truncate: Document last workaround.
[gnulib.git] / ChangeLog
blobf574c3668f49677e0f7c7e9c8fb17963398ab2cb
1 2021-01-09  Bruno Haible  <bruno@clisp.org>
3         truncate: Document last workaround.
4         * doc/posix-functions/truncate.texi: Document the AIX bug.
6 2021-01-08  Paul Eggert  <eggert@cs.ucla.edu>
8         dynarray: work even if ‘free’ is replaced
9         Problem reported by Darshit Shah in:
10         https://lists.gnu.org/r/bug-gnulib/2021-01/msg00140.html
11         * lib/malloc/dynarray-skeleton.c (DYNARRAY_FREE): New macro.
12         Use it everywhere instead of DYNARRAY_NAME (free).
14         tempname: don’t block for minutes
15         Derived from a patch proposed by Adhemerval Zanella in:
16         https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
17         * lib/tempname.c (random_bits): Use GRND_NONBLOCK.
19         tempname: sync with proposed glibc patch
20         This is from Adhemerval Zanella in:
21         https://sourceware.org/pipermail/libc-alpha/2021-January/121301.html
22         * lib/tempname.c (__lxstat64): Remove.
23         (__lstat64, __stat64): New replacement macros.  All uses changed.
25         regex: stop using alloca
26         * lib/regex_internal.h: Do not include <alloca.h> or define
27         __libc_use_alloca or alloca.  Patch written by Adhemerval Zanella:
28         https://sourceware.org/pipermail/libc-alpha/2021-January/121374.html
29         * modules/regex (Depends-on): Remove alloca-opt.
31         regexec: remove alloca usage in build_trtable
32         Prompted by this different change proposed by Adhemerval Zanella:
33         https://sourceware.org/pipermail/libc-alpha/2021-January/121373.html
34         * lib/regexec.c (build_trtable): Prevent inlining,
35         so that it doesn’t bloat the caller’s stack.
36         Use auto variables instead of alloca/malloc.
37         After these changes, build_trtable’s total stack allocation is
38         only 20 KiB on a 64-bit machine, and this is less than glibc’s 64
39         KiB cutoff so there’s little point to using alloca to shrink it.
40         Although Gnulib traditionally has used a 4 KiB cutoff, going to 20
41         KiB here should not be a significant problem in practice;
42         Gnulib-using packages concerned about overflow of tiny stacks can
43         compile with something like gcc -fstack-clash-protection.
45         scratch_buffer: add scratch_buffer_dupfree macro
46         * lib/scratch_buffer.h (__libc_scratch_buffer_dupfree):
47         New macro, needed to support recent changes in this module.
49         regex: remove alloca usage on regex set_regs
50         Derived from this patch by Adhemerval Zanella:
51         https://sourceware.org/pipermail/libc-alpha/2021-January/121372.html
52         * lib/regex_internal.h: Include dynarray.h, for Gnulib.
53         * lib/regexec.c (DYNARRAY_STRUCT, DYNARRAY_ELEMENT)
54         (DYNARRAY_PREFIX): New macros.
55         Include malloc/dynarray-skeleton.c.
56         (set_regs): Use dynarray rather than alloca.
57         * modules/regex (Depends-on): Add dynarray.
59         dynarray: new module
60         * config/srclist.txt: Mention the new files.
61         * lib/cdefs.h (__attribute_maybe_unused__): New macro,
62         like Gnulib’s _GL_ATTRIBUTE_MAYBE_UNUSED but with glibc
63         naming conventions.
64         * lib/libc-config.h: Use it instead of __glibc_likely.
65         * lib/dynarray.h, modules/dynarray: New files.
66         * lib/malloc/dynarray-skeleton.c, lib/malloc/dynarray.h:
67         * lib/malloc/dynarray_at_failure.c:
68         * lib/malloc/dynarray_emplace_enlarge.c:
69         * lib/malloc/dynarray_finalize.c, lib/malloc/dynarray_resize.c:
70         * lib/malloc/dynarray_resize_clear.c, modules/dynarray:
71         New files, from glibc with the following changes needed for
72         portability to compilers that are not recent-enough GCC.
73         * lib/malloc/dynarray_at_failure.c: Include stdlib.h, for abort.
74         (__libc_dynarray_at_failure) [!_LIBC]: Simply abort.
75         * lib/malloc/dynarray_emplace_enlarge.c:
76         * lib/malloc/dynarray_resize.c:
77         Include intprops.h, and use INT_MULTIPLY_WRAPV instead
78         of __builtin_mul_overflow.
79         * lib/malloc/dynarray.h (__libc_dynarray_at_failure):
80         Use _Noreturn instead of __attribute__ ((noreturn)).
81         * lib/malloc/dynarray_resize_clear.c: Do not include stdlib.h;
82         it’s not needed.
83         (__libc_dynarray_resize_clear): Do not do arithmetic on void *.
84         * lib/malloc/dynarray-skeleton.c (struct DYNARRAY_STRUCT):
85         Do not use anonymous unions, as they are not in C99. All uses changed.
86         Use __nonnull (X) instead of __attribute__ ((nonnull X)),
87         and __attribute_maybe_unused__ instead of __attribute__ ((unused)).
89 2021-01-06  Simon Josefsson  <simon@josefsson.org>
91         bootstrap: Fix parsing of package name.
92         * build-aux/bootstrap (package): Attempt to use autoconf --trace
93         to parse AC_INIT before falling back to sed expression.
95 2021-01-07  Bruno Haible  <bruno@clisp.org>
97         localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
98         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
99         LOCALENAME_ENHANCE_LOCALE_FUNCS.
100         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE):
101         Set gt_working_uselocale.
102         (gt_INTL_THREAD_LOCALE_NAME): Set gt_fake_locales, gt_good_uselocale,
103         gt_localename_enhances_locale_funcs, LOCALENAME_ENHANCE_LOCALE_FUNCS.
104         Define HAVE_GOOD_USELOCALE, LOCALENAME_ENHANCE_LOCALE_FUNCS.
105         * m4/localename.m4 (gl_LOCALENAME): Test
106         gt_localename_enhances_locale_funcs instead of gt_nameless_locales.
107         * modules/locale (Makefile.am): Substitute
108         LOCALENAME_ENHANCE_LOCALE_FUNCS.
109         * lib/locale.in.h (newlocale, duplocale, freelocale): Don't override if
110         module 'localename' is in use but LOCALENAME_ENHANCE_LOCALE_FUNCS is 0.
111         * lib/localename.c (HAVE_GOOD_USELOCALE): Don't define here.
112         (get_locale_t_name, newlocale, duplocale, freelocale): Define if
113         LOCALENAME_ENHANCE_LOCALE_FUNCS.
115 2021-01-06  Bruno Haible  <bruno@clisp.org>
117         logb: Fix test failure on glibc/powerpc.
118         * doc/posix-functions/logb.texi: Update platform info.
119         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Test against bug with negative
120         subnormal numbers.
122 2021-01-06  Paul Eggert  <eggert@cs.ucla.edu>
124         libc-config: simplify clang __has_* macros
125         cdefs.h sometimes used names like __glibc_clang_has_attribute and
126         sometimes __glibc_has_attribute.  There is no need in glibc or
127         Gnulib to distinguish clang from other compilers here, so be
128         consistent and use the simpler names.
129         * lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
130         Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
131         All uses changed.
132         (__glibc_clang_has_attribute): Remove. All uses replaced
133         by __glibc_has_attribute.
134         * lib/libc-config.h [!__glibc_likely]: Undef them here too.
135         This fixes a problem where __glibc_has_attribute was not undeffed.
137 2021-01-06  Bruno Haible  <bruno@clisp.org>
139         flock: Update documentation.
140         * doc/glibc-functions/flock.texi: Document what to expect on AIX and
141         Solaris.
143 2021-01-06  Bruno Haible  <bruno@clisp.org>
145         ilogbl: Fix compilation error with xlclang on AIX 7.2.
146         * lib/math.in.h (ilogbl): Undefine macro before declaration.
148 2021-01-06  Bruno Haible  <bruno@clisp.org>
150         ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
151         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test also some denormalized
152         argument.
153         * doc/posix-functions/ilogbl.texi: Mention the AIX bug.
155 2021-01-06  Bruno Haible  <bruno@clisp.org>
157         ilogb: Fix test failures on AIX 7.1 in 64-bit mode.
158         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Test also some denormalized
159         argument.
160         * doc/posix-functions/ilogb.texi: Mention the AIX bug.
162 2021-01-05  Bruno Haible  <bruno@clisp.org>
164         fclose: Fix test failure on AIX 7.2.
165         * m4/fclose.m4 (gl_FUNC_FCLOSE_STDIN): New macro.
166         (gl_FUNC_FCLOSE): Invoke it. Set REPLACE_FCLOSE accordingly.
167         * doc/posix-functions/fclose.texi: Update platform information.
168         * doc/posix-functions/fflush.texi: Likewise.
170 2021-01-05  Bruno Haible  <bruno@clisp.org>
172         pipe-filter-gi: Fix test failure on AIX 7.2.
173         * lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.
175 2021-01-05  Bruno Haible  <bruno@clisp.org>
177         utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
178         * lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
179         times differ by less than 0.01 seconds.
180         * tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
181         flag.
183 2021-01-05  Bruno Haible  <bruno@clisp.org>
185         utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
186         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
187         test for trailing slash handling. Improve cross-compilation guesses.
188         Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
189         * lib/utimensat.c (rpl_utimensat): Add alternative implementation when
190         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
191         * lib/utimens.c: Use the overridden utimensat when
192         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
193         * doc/posix-functions/utimensat.texi: Mention the AIX bug.
195 2021-01-05  Bruno Haible  <bruno@clisp.org>
197         ptsname_r, ptsname: Avoid test failures on AIX 7.2.
198         * tests/test-ptsname_r.c (main): On AIX, set a 20-seconds timer.
199         * tests/test-ptsname.c (main): Likewise. On AIX, open a pty through
200         /dev/ptc and don't test the BSD ptys.
202 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
204         libc-config: merge from glibc
205         Use a better way of keeping glibc <sys/cdefs.h> and gnulib
206         lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms
207         where <sys/cdefs.h> does not work well enough for Gnulib.
208         * lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than
209         _GL_DEFS_H as an include guard.
210         (__THROW, __THROWNL, __NTH, __NTHNL):
211         Define to noexcept for C++11 and later.
212         (__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3.
213         (__warndecl): Remove.
214         (__attribute_copy__): New macro, for GCC 9 support.
215         (__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1)
216         (__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL)
217         (__REDIRECT_LDBL, __LDBL_REDIR_NTH):
218         Redirections for IEEE long double on powerpc64le.
219         (__LDBL_REDIR2_DECL): New macro.
220         (__attr_access): New macro, for GCC 10 bounds checking.
221         (__attribute_returns_twice__): New macro, for setjmp etc.
222         * lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is
223         undefined.  The following changes apply only if __glibc_likely
224         is not defined.
225         (__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__)
226         (__glibc_clang_has_attribute, __glibc_clang_has_extension)
227         (__glibc_objsize, __glibc_objsize0):
228         Undef these new (or newer) <cdefs.h> macros.
229         (__P, __PMT, __always_inline): Do not undef, since cdefs.h does that.
230         (__glibc_likely): Do not undef, since this is inside
231         ifndef __glibc_likely.
232         (__warndecl): Do not undef; no longer defined.
234 2021-01-05  Jim Meyering  <meyering@fb.com>
236         maintainer-makefile: correct preceding change
237         * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
239 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
241         maint: note syncs to glibc
242         * config/srclist.txt: filename.h, idx.h, scratch_buffer.h and
243         scratch_buffer_dupfree.c are now identical to glibc.  Add
244         commentary about some other syncs we’d like.
245         * modules/filename, modules/idx (Maintainer): Add glibc.
247 2021-01-05  Bruno Haible  <bruno@clisp.org>
249         truncate: Work around trailing slash bug in truncate() on AIX 7.2.
250         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate
251         rejects trailing slashes. Set REPLACE_TRUNCATE and define
252         TRUNCATE_TRAILING_SLASH_BUG if not.
253         * lib/truncate.c (orig_truncate): New function.
254         (truncate): Add alternative implementation when
255         TRUNCATE_TRAILING_SLASH_BUG is defined.
256         * modules/truncate (Depends-on): Add sys_stat, stat.
258 2021-01-05  Bruno Haible  <bruno@clisp.org>
260         mkfifoat: Fix cross-compilation guess (regression from 2021-01-04).
261         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Fix copy-and-paste mistake.
263 2021-01-05  Bruno Haible  <bruno@clisp.org>
265         ffsll: Override completely broken implementation on AIX in 32-bit mode.
266         * m4/ffsll.m4 (gl_FUNC_FFSLL): Test whether ffsll minimally works. If
267         not, set REPLACE_FFSLL.
268         * lib/string.in.h (ffsll): Consider REPLACE_FFSLL.
269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
270         REPLACE_FFSLL.
271         * modules/string (Makefile.am): Substitute REPLACE_FFSLL.
272         * modules/ffsll (Depends-on, configure.ac): Consider REPLACE_FFSLL.
273         * doc/glibc-functions/ffsll.texi: Mention the AIX 7.2 bug.
275 2021-01-04  Bruno Haible  <bruno@clisp.org>
277         symlinkat: Fix trailing slash handling.
278         * lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
279         trailing slash handling.
280         * modules/symlinkat (Depends-on): Update conditions.
282 2021-01-04  Bruno Haible  <bruno@clisp.org>
284         mkfifoat: Update module description.
285         * modules/mkfifoat (Depends-on): Update conditions after last commits.
287 2021-01-04  Bruno Haible  <bruno@clisp.org>
289         link: Improve trailing slash handling on native Windows.
290         * lib/link.c (link): If stat() fails, provide a better errno.
292 2021-01-04  Bruno Haible  <bruno@clisp.org>
294         mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
295         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
296         * lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
297         * lib/mknodat.c: Add an overriding implementation of mknodat().
298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
299         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
300         * modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
301         * doc/posix-functions/mknodat.texi: Mention the AIX bug.
303         mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
304         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
305         trailing slashes. Set REPLACE_MKFIFOAT if not.
306         * lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
307         * lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
309         REPLACE_MKFIFOAT.
310         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
311         * modules/mkfifoat (Depends-on): Add fstatat.
312         (configure.ac): Consider REPLACE_MKFIFOAT.
313         * doc/posix-functions/mkfifoat.texi: Mention the AIX bug.
315 2021-01-04  Bruno Haible  <bruno@clisp.org>
317         libc-config: Avoid overriding the headers from an installed newer glibc.
318         Reported by Paul E Murphy <murphyp@linux.ibm.com> in
319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
320         * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
321         * lib/libc-config.h: Update accordingly.
323 2021-01-04  Simon Josefsson  <simon@josefsson.org>
325         maintainer-makefile: Invoke syntax-checks regardless of locale.
326         * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
327         environment because [a-z] may not include 'w' in all locales.
329 2021-01-04  Bruno Haible  <bruno@clisp.org>
331         nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
332         Reported by Mike Gran <spk121@yahoo.com> in
333         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.
334         * lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
335         * lib/time_rz.c: Likewise.
336         * lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
337         HAVE_TM_ZONE.
338         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.
340 2021-01-04  Bruno Haible  <bruno@clisp.org>
342         expm1f-ieee: Work around AIX 7.2 bug.
343         * m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
344         module 'expm1f-ieee' is in use, check whether expm1f works according to
345         IEEE.
346         * m4/expm1f-ieee.m4: New file.
347         * modules/expm1f-ieee (Files): Add it.
348         (Depends-on): Update conditions.
349         (configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
350         * doc/posix-functions/expm1f.texi: Mention the AIX bug.
352 2021-01-04  Bruno Haible  <bruno@clisp.org>
354         ffsl, ffsll: Work around AIX 7.2 problem.
355         * lib/string.in.h: On AIX, include <strings.h> for the declarations of
356         ffsl and ffsll.
357         * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
358         * doc/glibc-functions/ffsll.texi: Likewise.
360 2021-01-04  Bruno Haible  <bruno@clisp.org>
362         ssfmalloc: Fix includes.
363         * lib/ssfmalloc.h: Include <strings.h>, for ffs().
364         * tests/test-ssfmalloc.c: Include <string.h>, for memset().
366 2021-01-03  Bruno Haible  <bruno@clisp.org>
368         quotearg tests: Avoid test failures on Solaris 11.3.
369         * tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
370         'cp -a'.
372 2021-01-03  Bruno Haible  <bruno@clisp.org>
374         tests: Fix link errors on Solaris, when libunistring-optional is in use.
375         * modules/wcwidth (Link): New section.
376         * modules/wcswidth (Link): New section.
377         * modules/mbchar (Link): New section.
378         * modules/mbfile (Link): Link against libunistring.
379         * modules/mbiter (Link): Likewise.
380         * modules/mbuiter (Link): Likewise.
381         * modules/mbmemcasecmp (Link): Likewise.
382         * modules/mbscasecmp (Link): Likewise.
383         * modules/mbscasestr (Link): Likewise.
384         * modules/mbschr (Link): Likewise.
385         * modules/mbscspn (Link): Likewise.
386         * modules/mbslen (Link): Likewise.
387         * modules/mbsncasecmp (Link): Likewise.
388         * modules/mbsnlen (Link): Likewise.
389         * modules/mbspbrk (Link): Likewise.
390         * modules/mbspcasecmp (Link): Likewise.
391         * modules/mbsrchr (Link): Likewise.
392         * modules/mbssep (Link): Likewise.
393         * modules/mbsspn (Link): Likewise.
394         * modules/mbsstr (Link): Likewise.
395         * modules/mbstok_r (Link): Likewise.
396         * modules/mbswidth (Link): Likewise.
397         * modules/exclude (Link): Likewise.
398         * modules/propername (Link): Likewise.
399         * modules/regex-quote (Link): Likewise.
400         * modules/trim (Link): Likewise.
401         * modules/mbmemcasecmp-tests (Makefile.am): Link the test program
402         against libunistring.
403         * modules/mbscasecmp-tests (Makefile.am): Likewise.
404         * modules/mbscasestr-tests (Makefile.am): Likewise.
405         * modules/mbschr-tests (Makefile.am): Likewise.
406         * modules/mbscspn-tests (Makefile.am): Likewise.
407         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
408         * modules/mbspbrk-tests (Makefile.am): Likewise.
409         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
410         * modules/mbsrchr-tests (Makefile.am): Likewise.
411         * modules/mbsspn-tests (Makefile.am): Likewise.
412         * modules/mbsstr-tests (Makefile.am): Likewise.
413         * modules/exclude-tests (Makefile.am): Likewise.
414         * modules/regex-quote-tests (Makefile.am): Likewise.
416 2021-01-03  Bruno Haible  <bruno@clisp.org>
418         c32ispunct tests: Avoid test failures on FreeBSD.
419         * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
420         FreeBSD 12.1.1.
422 2021-01-04  Simon Josefsson  <simon@josefsson.org>
424         doc: Repeat warning that --with-tests cannot be used twice.
425         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
426         --with-tests limitation.
428 2021-01-03  Bruno Haible  <bruno@clisp.org>
430         iconv, iconv_open: Improve documentation.
431         Reported by Noah Misch <noah@leadboat.com> in
432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
433         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
434         problems handled by Gnulib".
435         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
436         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
438 2021-01-03  Bruno Haible  <bruno@clisp.org>
440         iconv-h: Fix module description.
441         * modules/iconv-h (Include): Check HAVE_ICONV_H.
443 2021-01-03  Noah Misch  <noah@leadboat.com>
445         iconv_open: Fix module description.
446         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
448 2021-01-03  Bruno Haible  <bruno@clisp.org>
450         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
451         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
452         stricter: Add tests for offsetof-based alignof.
453         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
454         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
456 2021-01-03  Bruno Haible  <bruno@clisp.org>
458         free-posix: Work around GCC mis-optimization bug.
459         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
460         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
462 2021-01-02  Bruno Haible  <bruno@clisp.org>
464         valgrind-tests: Disable valgrind if it would cause all tests to fail.
465         Suggested by Simon Josefsson <simon@josefsson.org> in
466         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
467         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
468         executable produced by the current compiler. Set VALGRIND to empty if it
469         does not work. Don't set VALGRIND to empty if it merely does not accept
470         the --error-exitcode=1 --leak-check=full options.
472 2021-01-02  Bruno Haible  <bruno@clisp.org>
474         valgrind-tests: Really enable the valgrind options test.
475         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
476         valgrind options --error-exitcode=1 --leak-check=full always work.
478 2021-01-02  Bruno Haible  <bruno@clisp.org>
480         utimensat: Fix test failures on macOS 10.13.
481         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
482         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
483         utimensat, recognize a filename ending in a slash that does not point
484         to a directory.
486 2021-01-02  Bruno Haible  <bruno@clisp.org>
488         utimens: Fix test failure on macOS 10.13.
489         * lib/utimens.c: Include <string.h>.
491         utimens: Fix test failure on macOS 10.13.
492         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
493         filename ending in a slash that does not point to a directory.
495 2021-01-02  Bruno Haible  <bruno@clisp.org>
497         utimens: Avoid test failures on macOS 10.13.
498         Reported by Martin Storsjö <martin@martin.st> in
499         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
500         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
501         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
502         only the atime is requested to change.
503         * tests/test-futimens.h (test_futimens): Likewise.
504         * tests/test-lutimens.h (test_lutimens): Likewise.
506 2021-01-02  Bruno Haible  <bruno@clisp.org>
508         renameatu: Fix test failures on macOS.
509         Reported by Martin Storsjö <martin@martin.st> in
510         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
511         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
512         Instead, treat it as a variant of renameat, with all possible bugs that
513         renameat might have.
515 2021-01-02  Bruno Haible  <bruno@clisp.org>
517         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
518         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
520         * tests/test-getgroups.c: Silence gcc warnings of type
521         -Wstringop-overflow.
523 2021-01-02  Bruno Haible  <bruno@clisp.org>
525         timespec_get: Add tests.
526         * tests/test-timespec_get.c: New file.
527         * modules/timespec_get-tests: New file.
529         timespec_get: New module.
530         * lib/time.in.h (timespec_get): New declaration.
531         * lib/timespec_get.c: New file.
532         * m4/timespec_get.m4: New file.
533         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
534         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
535         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
536         HAVE_TIMESPEC_GET.
537         * modules/timespec_get: New file.
538         * tests/test-time-c++.cc (timespec_get): Check signature.
539         * doc/glibc-functions/timespec_get.texi: Mention the new module.
541 2021-01-01  Bruno Haible  <bruno@clisp.org>
543         time: Define TIME_UTC.
544         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
545         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
546         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
547         * tests/test-time.c: Check that TIME_UTC is defined and a positive
548         integer.
549         * doc/posix-headers/time.texi: Mention TIME_UTC.
551 2021-01-01  Bruno Haible  <bruno@clisp.org>
553         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
554         * modules/stddef (Depends-on): Add extensions.
556 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
558         canonicalize: remove NARROW_ADDRESSES optimization
559         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
560         Remove, and remove all uses, as the optimization is arguably not
561         worth the extra complexity.  Suggested by Adhemerval Zanella in:
562         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
564 2021-01-01  Bruno Haible  <bruno@clisp.org>
566         stddef: Try harder to get max_align_t defined on OpenBSD.
567         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
569 2021-01-01  Bruno Haible  <bruno@clisp.org>
571         aligned_alloc: Fix test failure on OpenBSD 6.8.
572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
573         _ISOC11_SOURCE.
574         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
575         comment.
577 2021-01-01  Bruno Haible  <bruno@clisp.org>
579         posixtm tests: Disable part of the test on plaforms where it fails.
580         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
582 2021-01-01  Bruno Haible  <bruno@clisp.org>
584         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
585         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
586         Solaris 11 OmniOS.
587         * tests/test-c32isprint.c (main): Likewise.
588         * tests/test-c32ispunct.c (main): Likewise.
590 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
592         libc-config: port to Sun C 5.9
593         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
594         definition.  It’s not needed for Gnulib and elicits a diagnostic
595         from Sun C 5.9 Patch 124867-12 2009/11/22.
597 2021-01-01  Bruno Haible  <bruno@clisp.org>
599         quotearg tests: Avoid test failures on Solaris 11.
600         * modules/quotearg-tests (Makefile.am): Set host_os in
601         TESTS_ENVIRONMENT.
602         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
603         directory that contains the .mo file.
605 2021-01-01  Bruno Haible  <bruno@clisp.org>
607         maint: Update copyright notices in --version output.
608         List the most recent year in which changes were made, per
609         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
610         * build-aux/declared.sh (func_version): Say 2019.
611         * build-aux/libtool-next-version (func_version): Likewise.
612         * build-aux/run-test (func_version): Likewise.
613         * check-module (COPYRIGHT_NOTICE): Say 2012.
614         * lib/git-merge-changelog.c (main): Say 2020.
616 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
618         filename: change filename.h comment to LGPLv2.1+
619         * lib/filename.h: Change license notice to match what should be in
620         glibc, and what modules/filename specifies.  This is to simplify
621         syncing with glibc.
623         doc: mention year-0 bugs in Solaris etc.
624         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
625         * doc/posix-functions/localtime.texi:
626         * doc/posix-functions/localtime_r.texi:
627         * doc/posix-functions/mktime.texi:
628         Mention year-0 bugs in localtime etc.
630 2020-12-31  Bruno Haible  <bruno@clisp.org>
632         ptsname_r: Fix test failure on Solaris.
633         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
634         the device.
636 2020-12-31  Bruno Haible  <bruno@clisp.org>
638         posixtm tests: Disable part of the test on plaforms where it fails.
639         * tests/test-posixtm.c (T): Disable two tests on Solaris.
641 2020-12-31  Bruno Haible  <bruno@clisp.org>
643         poll tests: Avoid test failure on AIX.
644         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
645         shutdown" test on AIX.
646         * doc/posix-functions/poll.texi: Mention the AIX bug.
648 2020-12-31  Bruno Haible  <bruno@clisp.org>
650         poll tests: Avoid test failure on BSD and Solaris systems.
651         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
652         "expecting POLLHUP after shutdown" test on all platforms except Linux.
654 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
656         fnmatch: merge from glibc + proposal
657         This merges the change proposed by Adhemerval Zanella in:
658         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
659         which fixes a Gnulib bug that led to a failed assert.
660         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
661         check that it stays nonnegative.  Use __flexarr instead of
662         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
663         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
665         glob: merge proposed glibc changes
666         This merges the change proposed by Adhemerval Zanella in:
667         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
668         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
670 2020-12-31  Bruno Haible  <bruno@clisp.org>
672         memalign: Work around Solaris bug.
673         * lib/memalign.c: New file.
674         * m4/memalign.m4: New file.
675         * modules/memalign (Files): Add them.
676         (Depends-on): Add malloc-h.
677         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
678         memalign.c. Set module indicator.
679         (Include): Include <malloc.h> unconditionally.
680         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
682         malloc-h: Add tests.
683         * tests/test-malloc-h.c: New file.
684         * modules/malloc-h-tests: New file.
685         * tests/test-malloc-h-c++.cc: New file.
686         * modules/malloc-h-c++-tests: New file.
688         malloc-h: New module.
689         * lib/malloc.in.h: New file.
690         * m4/malloc_h.m4: New file.
691         * modules/malloc-h: New file.
692         * doc/glibc-headers/malloc.texi: New file.
693         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
695 2020-12-31  Bruno Haible  <bruno@clisp.org>
697         unistd: Fix portability warnings.
698         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
700 2020-12-31  Bruno Haible  <bruno@clisp.org>
702         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
703         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
704         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
705         * lib/utime.c: Include <errno.h>.
707 2020-12-30  Karl Berry  <karl@freefriends.org>
709         config: srclistvars doc.
710         * config/srclistvars.sh: doc a couple of unusual source repo urls.
712 2020-12-30  Bruno Haible  <bruno@clisp.org>
714         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
715         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
716         with no errno.
717         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
718         EINVAL.
720 2020-12-29  Jim Meyering  <meyering@fb.com>
722         regex-tests: tweak to avoid a clang-10 warning
723         * tests/test-regex.c: Compare with explicit zero, rather than
724         as boolean to avoid this from clang-10:
725         test-regex.c:315:9: error: converting the result of '<<' to a \
726           boolean always evaluates to true \
727           [-Werror,-Wtautological-constant-compare]
728         if (! REG_STARTEND)
730         hash: add casts-to-float to avoid clang-10 warnings
731         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
732         to avoid this warning from clang-10 (for use in grep):
733           hash.c:501:11: error: implicit conversion from 'unsigned long' \
734             to 'float' changes value from 18446744073709551615 to \
735             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
736           if (SIZE_MAX <= new_candidate)
737         (hash_insert_if_absent): Likewise.
739 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
741         canonicalize: fix size overflow treatment
742         This also has some minor cleanups.
743         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
744         stddef.h, since the code no longer refers directly to ptrdiff_t.
745         * lib/canonicalize-lgpl.c (realpath_stk):
746         * lib/canonicalize.c (canonicalize_filename_mode_stk):
747         Treat size overflow like other out-of-memory.
748         * lib/canonicalize.c: No need to include stdlib.h, since
749         the code no longer refers to stdlib.h functions (other
750         than those that canonicalize.h must declare).
751         * lib/canonicalize.c (canonicalize_filename_mode_stk):
752         Do not bother terminating the string result on error.
754 2020-12-29  Bruno Haible  <bruno@clisp.org>
756         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
757         * lib/gl_list.hh: Include <stdlib.h>.
758         * lib/gl_map.hh: Likewise.
759         * lib/gl_omap.hh: Likewise.
760         * lib/gl_set.hh: Likewise.
761         * lib/gl_oset.hh: Likewise.
763 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
765         canonicalize: fix ptrdiff_t overflow bug
766         Problem reported by Adhemerval Zanella in:
767         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
768         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
769         Include intprops.h.
770         (NARROW_ADDRESSES): New constant.
771         * lib/canonicalize-lgpl.c (realpath_stk):m
772         * lib/canonicalize.c (canonicalize_filename_mode_stk):
773         Work even if strlen (END) does not fit in idx_t, or if adding
774         N to it overflows.
775         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
776         Add intprops.
778 2020-12-28  Bruno Haible  <bruno@clisp.org>
780         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
781         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
782         acl_is_expected_elfclass, use 'expr', not 'test'.
784 2020-12-28  Bruno Haible  <bruno@clisp.org>
786         ptsname_r: Fix a compiler warning on Solaris.
787         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
789 2020-12-28  Bruno Haible  <bruno@clisp.org>
791         gnulib-tool: Fix logic whether to add a dummy.c.
792         * gnulib-tool (func_remove_if_blocks): New function.
793         (func_modules_add_dummy): Use it to eliminate all conditional statements
794         from the automake snippet.
796 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
798         faccessat: revert recent EOVERFLOW change
799         I misunderstood the glibc source code.  Deduced from
800         Adhemerval Zanella’s proposed glibc patch in:
801         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
802         * doc/posix-functions/faccessat.texi: It is not a problem.
803         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
804         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
805         * lib/faccessat.c: Revert to simpler version now that
806         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
807         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
808         Remove.  All uses removed.
809         * modules/canonicalize, modules/canonicalize-lgpl (Files):
810         Remove m4/faccessat.m4.
812         canonicalize-lgpl: accommodate picky cpp
813         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
814         case preprocessor is picky.  Reported by Adhemerval Zanella in:
815         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
817         canonicalize: simplify via scratch_buffer_dupfree
818         * config/srclist.txt: Adjust accordingly.
819         * lib/canonicalize-lgpl.c (realpath_stk):
820         * lib/canonicalize.c (canonicalize_filename_mode_stk):
821         Simplify by using scratch_buffer_dupfree.
822         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
823         * lib/malloc/scratch_buffer_dupfree.c: New file.
824         * modules/scratch_buffer (Files, Depends-on):
825         Add malloc/scratch_buffer_dupfree.c.
827 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
829         regex: remove glibc21.m4
830         It doesn’t seem to be needed any more; at least, I couldn’t
831         reproduce the circa-2013 problem.  Perhaps the recent
832         --conditional-dependencies fixes have removed the need for it.
833         * m4/glibc21.m4: Remove.  All uses removed.
835 2020-12-26  Bruno Haible  <bruno@clisp.org>
837         gnulib-tool: Make --conditional-dependencies work with --with-tests.
838         Reported by Paul Eggert in
839         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
840         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
841         dependencies like func_emit_lib_Makefile_am.
843 2020-12-26  Bruno Haible  <bruno@clisp.org>
845         execvpe: Make dependency to stdbool explicit.
846         * lib/execvpe.c: Include <stdbool.h>.
847         * modules/execvpe (Depends-on): Add stdbool.
849         execlp: Add tests.
850         * tests/test-execlp-main.c: New file.
851         * tests/test-execlp.sh: New file.
852         * modules/execlp-tests: New file.
854         execlp: New module.
855         * lib/execlp.c: New file.
856         * m4/execlp.m4: New file.
857         * modules/execlp: New file.
858         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
859         new module.
861         execle: Add tests.
862         * tests/test-execle-main.c: New file.
863         * tests/test-execle.sh: New file.
864         * modules/execle-tests: New file.
866         execle: New module.
867         * lib/execle.c: New file.
868         * m4/execle.m4: New file.
869         * modules/execle: New file.
870         * doc/posix-functions/execle.texi: Mention more Windows problems and the
871         new module.
873         execl: Add tests.
874         * tests/test-execl-main.c: New file.
875         * tests/test-execl.sh: New file.
876         * modules/execl-tests: New file.
878         execl: New module.
879         * lib/execl.c: New file.
880         * m4/execl.m4: New file.
881         * modules/execl: New file.
882         * doc/posix-functions/execl.texi: Mention more Windows problems and the
883         new module.
885         execv: Add tests.
886         * tests/test-execv-main.c: New file.
887         * tests/test-execv.sh: New file.
888         * modules/execv-tests: New file.
890         execv: New module.
891         * lib/execv.c: New file.
892         * m4/execv.m4: New file.
893         * modules/execv: New file.
894         * doc/posix-functions/execv.texi: Mention more Windows problems and the
895         new module.
897         execvp: Add tests.
898         * tests/test-execvp-main.c: New file.
899         * tests/test-execvp.sh: New file.
900         * modules/execvp-tests: New file.
902         execvp: New module.
903         * lib/execvp.c: New file.
904         * m4/execvp.m4: New file.
905         * modules/execvp: New file.
906         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
907         new module.
909         execvpe: Add tests.
910         * tests/test-execvpe-main.c: New file.
911         * tests/test-execvpe.sh: New file.
912         * modules/execvpe-tests: New file.
914         execvpe: New module.
915         * lib/execvpe.c: New file.
916         * m4/execvpe.m4: New file.
917         * modules/execvpe: New file.
918         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
919         new module.
921         execve: Add tests.
922         * tests/test-exec-child.c: New file.
923         * tests/test-execve-main.c: New file.
924         * tests/test-execve.sh: New file.
925         * modules/execve-tests: New file.
927         execve: New module.
928         * lib/execve.c: New file.
929         * m4/execve.m4: New file.
930         * modules/execve: New file.
931         * doc/posix-functions/execve.texi: Mention more Windows problems and the
932         new module.
934         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
935         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
936         execvpe): Add declarations for the new modules.
937         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
938         execv, execve, execvp, execvpe are declared.
939         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
940         REPLACE_EXEC*.
941         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
942         REPLACE_EXEC*.
943         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
944         execlp, execv, execve, execvp, execvpe.
946 2020-12-26  Bruno Haible  <bruno@clisp.org>
948         stack: Fix typo in comments.
949         * lib/stack.h: Fix typo in comments.
951 2020-12-26  Bruno Haible  <bruno@clisp.org>
953         bitset: Fix conflict with 'free-posix' module.
954         * lib/bitset/base.h: Include <stdlib.h>.
956 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
958         idx: change idx.h comment to LGPLv2.1+
959         * lib/idx.h: Change license notice to match what should be in glibc.
960         gnulib-tool will change it as appropriate anyway, so this is just
961         to simplify syncing with glibc.
963 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
965         MODULES.html.sh: Update after 2020-12-19 change.
966         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
968 2020-12-25  Bruno Haible  <bruno@clisp.org>
970         Make it possible to turn off the mkdir override on Windows.
971         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
972         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
974         GNULIB_MDA_MKDIR.
975         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
976         GNULIB_MDA_MKDIR.
977         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
978         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
980         Make it possible to turn off each of the Windows oldnames workarounds.
981         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
982         oldnames workarounds through a GNULIB_MDA_<func> symbol.
983         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
984         * lib/search.in.h (lfind, lsearch): Likewise.
985         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
986         Likewise.
987         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
988         * lib/string.in.h (memccpy, strdup): Likewise.
989         * lib/sys_stat.in.h (chmod, umask): Likewise.
990         * lib/time.in.h (tzset): Likewise.
991         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
992         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
993         read, rmdir, swab, unlink, write): Likewise.
994         * lib/utime.in.h (utime): Likewise.
995         * lib/wchar.in.h (wcsdup): Likewise.
996         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
997         GNULIB_MDA_<func> symbols.
998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
999         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
1000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1003         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1004         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
1005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1006         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
1007         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
1008         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
1009         symbols.
1010         * modules/math (Makefile.am): Likewise.
1011         * modules/search (Makefile.am): Likewise.
1012         * modules/stdio (Makefile.am): Likewise.
1013         * modules/stdlib (Makefile.am): Likewise.
1014         * modules/string (Makefile.am): Likewise.
1015         * modules/sys_stat (Makefile.am): Likewise.
1016         * modules/time (Makefile.am): Likewise.
1017         * modules/unistd (Makefile.am): Likewise.
1018         * modules/utime-h (Makefile.am): Likewise.
1019         * modules/wchar (Makefile.am): Likewise.
1021 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1023         canonicalize, canonicalize-lgpl: remove lint
1024         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
1025         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
1026         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1027         Sort shared include directives, for consistency.
1028         (IF_LINT): New macro.
1029         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
1030         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
1031         New macros.
1032         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
1033         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1034         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
1036 2020-12-24  Bruno Haible  <bruno@clisp.org>
1038         spawn-pipe: Use posix_spawn by default on native Windows.
1039         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
1040         (create_pipe): Use it to decide among the two possible implementations.
1041         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
1043 2020-12-24  Bruno Haible  <bruno@clisp.org>
1045         unistd-safer: Implement pipe_safer on native Windows.
1046         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
1047         * modules/unistd-safer (Depends-on): Add pipe-posix.
1049 2020-12-24  Bruno Haible  <bruno@clisp.org>
1051         execute: Use posix_spawn by default on native Windows.
1052         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
1053         (execute): Use it to decide among the two possible implementations.
1055 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1057         canonicalize-lgpl: merge proposed libc changes
1058         This merges the changes proposed for glibc in:
1059         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
1060         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
1061         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
1062         unconditionally.
1063         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
1064         (ISSLASH) [_LIBC]: Remove.
1066 2020-12-24  Bruno Haible  <bruno@clisp.org>
1068         posix_spawn-internal: Implement for native Windows.
1069         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
1070         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
1071         do_dup2, do_close): New functions.
1072         (__spawni): Implement on native Windows.
1073         * modules/posix_spawn-internal (Depends-on): Add filename,
1074         concat-filename, findprog-in, malloca, windows-spawn.
1075         * doc/posix-functions/posix_spawn.texi: Update.
1076         * doc/posix-functions/posix_spawnp.texi: Likewise.
1078 2020-12-24  Bruno Haible  <bruno@clisp.org>
1080         windows-spawn: Export another auxiliary function.
1081         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
1082         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
1083         extracted from spawnpvech.
1084         (spawnpvech): Use it.
1086 2020-12-24  Bruno Haible  <bruno@clisp.org>
1088         windows-spawn: Export some more auxiliary functions.
1089         * lib/windows-spawn.h: Include <stdbool.h>.
1090         (struct inheritable_handles): New type.
1091         (init_inheritable_handles, compose_handles_block,
1092         free_inheritable_handles): New declarations.
1093         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
1094         New functions, based on spawnvech.
1095         (free_inheritable_handles): New function.
1096         (spawnpvech): Use them.
1098 2020-12-24  Bruno Haible  <bruno@clisp.org>
1100         windows-spawn: Export another auxiliary function.
1101         * lib/windows-spawn.h (compose_envblock): New declaration.
1102         * lib/windows-spawn.c (compose_envblock): New function, extracted from
1103         spawnpvech.
1104         (spawnpvech): Use it.
1106 2020-12-24  Bruno Haible  <bruno@clisp.org>
1108         windows-spawn: Export an auxiliary function.
1109         * lib/windows-spawn.h (compose_command): New declaration.
1110         * lib/windows-spawn.c (compose_command): New function, extracted from
1111         spawnpvech.
1112         (spawnpvech): Use it.
1114 2020-12-24  Bruno Haible  <bruno@clisp.org>
1116         posix_spawn* tests: Add support for native Windows.
1117         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
1118         like Cygwin.
1119         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
1120         SIGHUP and SIGPIPE. On native Windows, don't call
1121         posix_spawnattr_setsigmask.
1122         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
1123         * tests/test-posix_spawn-fchdir.c (main): Likewise.
1124         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
1125         output from Cygwin's 'pwd' program.
1126         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
1127         executable-shell-script part of the test.
1128         * tests/test-posix_spawnp-script.c (main): Likewise.
1129         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
1130         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1131         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1132         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
1133         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1134         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1135         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
1136         test the POSIX_SPAWN_PORTED conditional.
1137         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
1138         Define the POSIX_SPAWN_PORTED conditional here.
1140 2020-12-24  Bruno Haible  <bruno@clisp.org>
1142         sh-filename: Add support for native Windows.
1143         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
1145 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1147         careadlinkat: improve warning line number
1148         This propagates an idea first used in canonicalize-lgpl.
1149         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
1150         New macro.
1151         (careadlinkat): Use it.
1153         linkat: use eloop-threshold
1154         * lib/linkat.c: Include eloop-threshold.h.
1155         Do not include sys/param.h.
1156         (MAXSYMLINKS): Remove.
1157         (link_follow, linkat_follow): Use __eloop_threshold instead
1158         of MAXSYMLINKS.
1159         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
1160         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
1162         canonicalize-lgpl: use eloop-threshold
1163         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
1164         (MAXSYMLINKS, __eloop_threshold): Remove.
1165         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
1167         eloop-threshold: new module
1168         * config/srclist.txt: Add a comment about it.
1169         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
1171         canonicalize: prefer faccessat to stat
1172         A proper faccessat doesn't have the EOVERFLOW problem, and can be
1173         more efficient as it needn't gather data from the filesystem to
1174         fill in struct stat.  So use stat only if faccessat is absent,
1175         or when checking for symlink loops in canonicalize.c.
1176         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1177         Include fcntl.h, for AT_EACCESS.
1178         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
1179         (file_accessible): New function, based on faccessat but with
1180         a fallback to stat and with an EOVERFLOW workaround.
1181         (dir_check): Use it.
1182         (dir_suffix): New static constant.
1183         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
1184         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
1185         (__faccessat) [!_LIBC]: Define.
1186         (realpath_stk): Use dir_suffix now.
1187         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1188         If logical, don't check each component's existence; just check
1189         at the end, as that's enough.
1190         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1191         (gl_CANONICALIZE_LGPL_SEPARATE):
1192         Require gl_FUNC_FACCESSAT_EOVERFLOW,
1193         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
1194         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
1195         as the code does not use HAVE_READLINK.
1196         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1197         Add m4/faccessat.m4, m4/lstat.m4.
1198         (Depends-on): Add fcntl-lh.
1200         faccessat: work around F_OK EOVERFLOW bug
1201         * doc/posix-functions/faccessat.texi: Mention the problem.
1202         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
1203         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
1204         for F_OK and EOVERFLOW, which means we can return 0.
1205         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
1206         (gl_FUNC_FACCESSAT): Use it.
1208         stat failing with EOVERFLOW implies existence
1209         * lib/euidaccess.c (euidaccess):
1210         * lib/file-has-acl.c (file_has_acl):
1211         * lib/link.c (link, rpl_link):
1212         * lib/mkdir.c (rpl_mkdir):
1213         * lib/mkfifo.c (rpl_mkfifo):
1214         * lib/mknod.c (rpl_mknod):
1215         * lib/ptsname_r.c (__ptsname_r):
1216         * lib/symlink.c (rpl_symlink):
1217         * lib/symlinkat.c (rpl_symlinkat):
1218         * lib/unlink.c (rpl_unlink):
1219         * lib/unlinkat.c (rpl_unlinkat):
1220         * lib/utime.c (utime):
1221         If stat fails with EOVERFLOW the file exists, so treat it that way
1222         in file-existence tests that do not need struct stat values.
1224         canonicalize-lgpl: remove freea macro
1225         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
1227         canonicalize, canonicalize-lgpl: fix symlink bug
1228         Problem reported by Adhemerval Zanella in:
1229         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
1230         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1231         (suffix_requires_dir_check, dir_check): New functions.
1232         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
1233         closer to the related GCC diagnostics.
1234         * lib/canonicalize-lgpl.c (realpath_stk):
1235         * lib/canonicalize.c (canonicalize_file_mode_stk):
1236         Use them to fix a bug with .../symlink-to-regular-file/ etc.
1237         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
1238         (realpath_stk): New function,
1239         with the contents of the old __realpath and a new scratch buffer arg.
1240         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
1241         (__realpath): Use it.
1242         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
1243         Add test cases for the bugs.
1245 2020-12-24  Bruno Haible  <bruno@clisp.org>
1247         execute: Treat signalled processes like wait-process does.
1248         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
1249         (execute): Recognize the case where the exit code indicates a signalled
1250         child process.
1251         * tests/test-execute-main.c (main): Update expected test result.
1252         * modules/execute (Depends-on): Add sys_wait.
1254 2020-12-24  Bruno Haible  <bruno@clisp.org>
1256         windows-spawn: Improve errno upon failure on native Windows.
1257         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
1258         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
1259         * tests/executable-script.sh: New file.
1260         * tests/test-posix_spawn-script.c (main): Also try executing
1261         executable-script.sh.
1262         * tests/test-posix_spawnp-script.c (main): Likewise.
1263         * tests/test-execute-script.c (main): Likewise.
1264         * tests/test-spawn-pipe-script.c (main): Likewise.
1265         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
1266         * modules/posix_spawnp-tests (Files): Likewise.
1267         * modules/execute-tests (Files): Likewise.
1268         * modules/spawn-pipe-tests (Files): Likewise.
1270 2020-12-24  Bruno Haible  <bruno@clisp.org>
1272         findprog-in: Improve errno upon failure on native Windows.
1273         * lib/findprog-in.c (find_in_given_path): If the file basename has no
1274         dot and the search with a suffix returned no result, do also a search
1275         without a suffix, and set errno = ENOEXEC if we find a file in this way.
1276         * tests/test-spawn-pipe-script.c (main): Update expected errno.
1278 2020-12-23  Bruno Haible  <bruno@clisp.org>
1280         posix_spawn, posix_spawnp: Fix execution of scripts.
1281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
1282         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
1283         or posix_spawnp allows unsecure execution of scripts.
1284         * doc/posix-functions/posix_spawn.texi: Document the script execution
1285         problem.
1286         * doc/posix-functions/posix_spawnp.texi: Likewise.
1288 2020-12-23  Bruno Haible  <bruno@clisp.org>
1290         Add unit tests regarding execution of scripts.
1291         * tests/executable-script: New file.
1292         * tests/executable-shell-script: New file.
1293         * tests/test-posix_spawn-script.c: New file.
1294         * tests/test-posix_spawnp-script.c: New file.
1295         * tests/test-execute-script.c: New file.
1296         * tests/test-spawn-pipe-script.c: New file.
1297         * modules/posix_spawn-tests (Files): Add
1298         tests/test-posix_spawn-script.c, tests/executable-script,
1299         tests/executable-shell-script.
1300         (Makefile.am): Compile and run test-posix_spawn-script.
1301         * modules/posix_spawnp-tests (Files): Add
1302         tests/test-posix_spawnp-script.c, tests/executable-script,
1303         tests/executable-shell-script.
1304         (Makefile.am): Compile and run test-posix_spawnp-script.
1305         * modules/execute-tests (Files): Add tests/test-execute-script.c,
1306         tests/executable-script, tests/executable-shell-script.
1307         (Makefile.am): Compile and run test-execute-script.
1308         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
1309         tests/executable-script, tests/executable-shell-script.
1310         (Makefile.am): Compile and run test-spawn-pipe-script.
1312 2020-12-23  Bruno Haible  <bruno@clisp.org>
1314         Don't execute scripts without '#!' marker through /bin/sh.
1315         This reflects the change done in glibc through
1316         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
1317         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
1318         * lib/spawni.c (internal_function): Remove macro.
1319         (script_execute): Remove function.
1320         (__spawni): Don't invoke script_execute.
1321         * lib/execute.c (execute): Disable the ENOEXEC handling.
1322         * lib/spawn-pipe.c (create_pipe): Likewise.
1323         * NEWS: Mention the change.
1325 2020-12-23  Bruno Haible  <bruno@clisp.org>
1327         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
1328         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
1329         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
1330         * lib/spawni.c (__spawni): Update function parameters.
1332 2020-12-23  Bruno Haible  <bruno@clisp.org>
1334         posix_spawn tests: Add two more tests.
1335         * tests/test-posix_spawn-inherit0.c: New file, based on
1336         tests/test-posix_spawn-open2.c.
1337         * tests/test-posix_spawn-inherit1.c: New file, based on
1338         tests/test-posix_spawn-open2.c.
1339         * modules/posix_spawn-tests (Files): Add them.
1340         (Depends-on): Add fflush.
1341         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
1342         test-posix_spawn-inherit1.
1344 2020-12-23  Bruno Haible  <bruno@clisp.org>
1346         posix_spawn tests: Add another test.
1347         * tests/test-posix_spawn-open2.c: New file, based on
1348         tests/test-posix_spawn-open1.c.
1349         * modules/posix_spawn-tests (Files): Add it.
1350         (Makefile.am): Compile and run test-posix_spawn-open1.
1352 2020-12-20  Bruno Haible  <bruno@clisp.org>
1354         Remove support for broken <wchar.h> in AIX 3.
1355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
1357 2020-12-20  Bruno Haible  <bruno@clisp.org>
1359         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
1360         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
1361         * lib/mbchar.h: Likewise.
1362         * lib/mbiter.h: Likewise.
1363         * lib/mbuiter.h: Likewise.
1364         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
1365         * lib/mbfile.h: Don't include <time.h>.
1366         * lib/mbswidth.h: Update comment.
1367         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
1368         <wchar.h>.
1369         * lib/wctype.in.h: Likewise.
1370         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
1371         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
1372         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
1373         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
1374         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
1375         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
1376         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
1377         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
1378         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
1379         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
1380         AC_FUNC_MBRTOWC): Likewise.
1381         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
1382         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
1383         Likewise.
1384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
1385         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1386         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
1388         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
1389         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1390         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
1391         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
1392         Likewise.
1393         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
1394         gl_WCSRTOMBS_NULL): Likewise.
1395         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1396         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1397         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1399         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1400         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
1401         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
1402         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
1403         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
1404         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
1406 2020-12-20  Bruno Haible  <bruno@clisp.org>
1408         isnanf: Fix autoconf test.
1409         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
1411 2020-12-20  Bruno Haible  <bruno@clisp.org>
1413         Remove some of the support for obsolete IRIX 4 and 5.
1414         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
1415         libsun.
1416         * tests/init.sh (setup_): Don't talk about IRIX 5.
1418 2020-12-20  Bruno Haible  <bruno@clisp.org>
1420         filemode: Remove Cray support.
1421         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1422         (filemodestring): Don't produce an 'M' type.
1423         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1424         * m4/st_dm_mode.m4: Remove file.
1425         * modules/filemode (Files): Remove it.
1427 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1429         free-posix: assume glibc 2.33 fixes this.
1430         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1431         Use compile-time test rather than guessing for cross-builds.
1433 2020-12-20  Bruno Haible  <bruno@clisp.org>
1435         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1436         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1437         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1438         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1440 2020-12-20  Bruno Haible  <bruno@clisp.org>
1442         float: Fix compilation error when gnulib's float.h exists twice.
1443         Reported by Santiago Vila <sanvila@unex.es>.
1444         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1446 2020-12-19  Bruno Haible  <bruno@clisp.org>
1448         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1449         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1450         Don't trust _POSIX_VERSION for this test.
1452 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1454         free-posix: port to GNU/Linux
1455         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1456         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1457         other GNU/Linux hosts.
1459 2020-12-19  Bruno Haible  <bruno@clisp.org>
1461         free-posix: Add tests.
1462         * tests/test-free.c: New file.
1463         * tests/macros.h (ASSERT_NO_STDIO,
1464         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1465         WRITE_TO_STDERR): New macros.
1466         * modules/free-posix-tests: New file.
1468 2020-12-18  Bruno Haible  <bruno@clisp.org>
1470         free-posix: Add C++ declaration test.
1471         * tests/test-stdlib-c++.cc (free): New declaration.
1473 2020-12-18  Bruno Haible  <bruno@clisp.org>
1475         free-posix: New module, renamed from 'free'.
1476         * modules/free-posix: Renamed from modules/free.
1477         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1479         not GNULIB_FREE.
1480         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1481         GNULIB_FREE.
1482         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1483         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1484         what it does.
1485         * NEWS: Mention that module 'free' no longer exists.
1486         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1487         * modules/canonicalize-lgpl (Depends-on): Likewise.
1489 2020-12-18  Bruno Haible  <bruno@clisp.org>
1491         free: Remove support for obsolete platforms.
1492         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1493         CANNOT_FREE_NULL.
1494         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1495         * modules/free (Description): Update.
1496         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1498 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1500         intprops: port to ICC 2021.1 Beta 20201112
1501         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1502         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1503         Add a clause for other compilers that claim to support
1504         __builtin_mul_overflow_p, since we might as well find out about
1505         slackers other than Clang and ICC.
1506         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1507         like older GCCs even when it claims to be a newer one.
1509 2020-12-18  Bruno Haible  <bruno@clisp.org>
1511         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1512         Reported by Stefan Liebler <stli@linux.ibm.com> in
1513         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1514         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1515         GCC 5.x and 6.x.
1516         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1517         GCC 5.x and 6.x.
1519 2020-12-17  Bruno Haible  <bruno@clisp.org>
1521         free: Fix warning.
1522         Reported by Pádraig Brady <P@draigBrady.com> in
1523         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1524         * lib/stdlib.in.h (free): New declaration.
1525         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1526         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1527         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1528         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1529         'free' as a macro here.
1530         * modules/free (Depends-on): Add stdlib.
1531         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1533 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1535         canonicalize-lgpl: fix AIX test failures
1536         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1537         Problem reported by Bruno Haible in:
1538         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1539         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1540         (__realpath): When testing a file name ending in '/', use stat
1541         rather than readlink, so that it does the right thing on AIX.
1542         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1544         canonicalize: omit second readlink when not needed
1545         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1546         Omit second readlink when (can_exist != CAN_MISSING
1547         && startlen != 0 && !logical).  Simplify.
1549         canonicalize: remove arbitrary 8192-byte limit
1550         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1551         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1552         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1553         using scratch buffers.  Lessen the number of differences between
1554         the two source files, to simplify this and future maintenance.
1555         * lib/canonicalize-lgpl.c (__realpath):
1556         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1557         Use scratch buffers instead of malloc and malloca.  This avoids
1558         the need for alloca, and avoids the need for malloc in most cases.
1559         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1560         easier to compare, e.g., by sorting include files and by switching
1561         to the GNU convention of calling file names "file names", not
1562         "path names".  Include stdbool.h, scratch_buffer.h.
1563         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1564         (malloca) [_LIBC]: Remove.
1565         [!_LIBC]: Do not include malloca.h.
1566         (get_path_max): New function, so that pathconf is called only in
1567         the rare and dubious case when when RESOLVED is not null and
1568         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1569         file name, as we care about the longest file name starting from
1570         "/" (not from the input file name), and POSIX does not specify
1571         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1572         not defined, do not worry about overriding a path_max of 0, and do
1573         not let path_max exceed IDX_MAX.
1574         (__realpath): Remove an assumption that file name components
1575         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1576         the Hurd, presumably).
1577         When allocating the result, allocate it to just the right size;
1578         this costs nothing when the result is smaller than 1023 bytes,
1579         and for larger results it's probably worth the CPU to call realloc,
1580         as canonicalize.c already does.
1581         * lib/canonicalize.c: Include attribute.h.
1582         Do not include pathmax.h or xgetcwd.h.
1583         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1584         work on platforms with no fixed limit.
1585         (canonicalize_filename_mode_stk): New function, with
1586         the content of the old canonicalize_filename_mode.
1587         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1588         since the scratch buffers now do memory management for us.
1589         Use rawmemchr instead of adding strlen.
1590         Use mempcpy instead of mempcpy + size.
1591         Assume free preserves errno.
1592         (canonicalize_filename_mode): Use it.
1593         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1594         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1595         scratch_buffer, stdbool, xalloc-die.
1596         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1597         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1599         canonicalize-lgpl: simplify merge to glibc
1600         This patch lessens the differences between git glibc
1601         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1602         The (perhaps wishful) goal is to make them identical.
1603         * lib/canonicalize-lgpl.c [!_LIBC]:
1604         Include <libc-config.h>, not config.h.
1605         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1606         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1607         Do not include alloca.h, since we use malloca now.
1608         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1609         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1610         freea so that the mainline code can be kept #ifdef free.
1611         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1612         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1613         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1614         __eloop_threshold.  All uses of their definiens changed.
1615         (SIZE_MAX): Remove; no longer needed.
1616         (alloc_failed): Remove, and remove all instances.
1617         No need for alloc_failed now that free preserves errno.
1618         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1619         the glibc tradition and is safer when the 2nd argument is null.
1620         Use __rawmemchr instead of strchr.
1621         Use __mempcpy where appropriate.
1622         Simplify test for overflow so that it does not need SIZE_MAX.
1623         Do not preserve errno around free or freea calls; no longer needed.
1624         Mark __realpath with libc_hidden_def.
1625         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1626         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1627         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1629         free: preserve errno
1630         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1631         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1632         platforms that do not preserve errno.
1633         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1634         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1635         * modules/free (configure.ac): Also replace 'free' if
1636         it does not preserve errno.
1638         idx: simplify IDX_MAX, remove IDX_WIDTH
1639         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1640         to UNSIGNED_IDX_T.
1641         (IDX_WIDTH): Remove, since it’s not used and its value
1642         arguably should be PTRDIFF_WIDTH anyway.
1644 2020-12-16  Bruno Haible  <bruno@clisp.org>
1646         posix_spawn_file_actions_addfchdir-tests: Rename test.
1647         * tests/test-posix_spawn-fchdir.c: Renamed from
1648         tests/test-posix_spawn5.c.
1649         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1650         Update.
1652         posix_spawn_file_actions_addchdir-tests: Rename test.
1653         * tests/test-posix_spawn-chdir.c: Renamed from
1654         tests/test-posix_spawn4.c.
1655         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1656         Update.
1658         posix_spawn-tests: Rename test.
1659         * tests/test-posix_spawn-open1.c: Renamed from
1660         tests/test-posix_spawn3.c.
1661         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1663         posix_spawnp-tests: Rename test.
1664         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1665         tests/test-posix_spawn2.c.
1666         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1667         tests/test-posix_spawn2.in.sh.
1668         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1670         posix_spawnp-tests: Rename test.
1671         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1672         tests/test-posix_spawn1.c.
1673         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1674         tests/test-posix_spawn1.in.sh.
1675         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1677 2020-12-14  Bruno Haible  <bruno@clisp.org>
1679         findprog-in: Allow overriding the current directory.
1680         * lib/findprog.h (find_in_given_path): Add directory argument.
1681         * lib/findprog-in.c (find_in_given_path): Likewise.
1682         * lib/execute.c (execute): Update caller.
1683         * lib/spawn-pipe.c (create_pipe): Likewise.
1684         * lib/windows-spawn.c (spawnpvech): Likewise.
1685         * NEWS: Mention the change.
1687 2020-12-14  Bruno Haible  <bruno@clisp.org>
1689         posix_spawn-internal: Make better use of 'const'.
1690         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1691         of argv and envp.
1692         * lib/spawni.c (__spawni, script_execute): Likewise.
1693         * lib/spawn.c (posix_spawn): Update caller.
1694         * lib/spawnp.c (posix_spawnp): Likewise.
1696 2020-12-14  Bruno Haible  <bruno@clisp.org>
1698         spawn: Make it compile on native Windows.
1699         * modules/spawn (Depends-on): Add signal-h.
1701 2020-12-14  Bruno Haible  <bruno@clisp.org>
1703         windows-spawn: Avoid shadowing a variable.
1704         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1706 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1708         string: port memchr macro to AIX 7.2 XLC
1709         Its <string.h> defines a memchr macro to help inlining.
1710         * lib/string.in.h (memchr): #undef before #defining.
1712         canonicalize: fix AIX test failures
1713         Problem reported by Bruno Haible in:
1714         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1715         * lib/canonicalize.c (canonicalize_filename_mode):
1716         When testing a file name ending in '/', use stat rather than
1717         readlink, so that it does the right thing on AIX.
1718         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1719         recent changes in the Gnulib readlink module.
1721         Assume readlink/readlinkat ERANGE fix
1722         * lib/areadlink-with-size.c (areadlink_with_size):
1723         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1724         * lib/careadlinkat.c (readlink_stk):
1725         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1726         since the Gnulib readlink and readlinkat modules now fix that.
1728         getcwd: port to AIX
1729         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1730         in case our sys/stat.h #defined a function macro with the same name.
1732         readlink, readlinkat: add ERANGE portability
1733         Fix some portability issues with Gnulib's readlink and readlinkat,
1734         notably mostly working around the ERANGE problem in AIX and HP-UX.
1735         * doc/posix-functions/readlink.texi:
1736         * doc/posix-functions/readlinkat.texi:
1737         ERANGE problem is mostly fixed now.  Mention AIX problem with
1738         trailing / and EINVAL.  Lessen differences between these two files.
1739         * lib/readlink.c (rpl_readlink):
1740         * lib/readlinkat.c (rpl_readlinkat):
1741         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1742         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1743         Lessen spurious differences between the readlink and readlinkat code.
1744         * lib/readlinkat.c (rpl_readlinkat):
1745         Fix bug where stat was used where fstatat was intended.
1746         * m4/readlink.m4 (gl_FUNC_READLINK):
1747         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1748         to identify readlink problems more precisely.  All uses changed.
1749         Guess no on AIX or HP-UX for this variable.
1750         Add check for whether readlink truncates results,
1751         and define new macro READLINK_TRUCATE_BUG accordingly.
1752         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1753         Also check gl_cv_func_readlink_trailing_slash when deciding
1754         whether to replace readlinkat.
1755         * modules/readlinkat (Depends-on): Most dependencies are also
1756         needed if replacing readlinkat.  fstatat is different, as it
1757         is needed only if replacing an existing readlinkat.
1759 2020-12-13  Bruno Haible  <bruno@clisp.org>
1761         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1762         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1763         the stdin_handle and/or stdout_handle.
1765 2020-12-12  Bruno Haible  <bruno@clisp.org>
1767         Fix gnulib-tool error when some modules occur in tests/.
1768         * doc/gnulib.texi (Specification): Update statistics.
1769         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1770         (Using AC_LIBOBJ): New section.
1771         * check-AC_LIBOBJ: New file.
1772         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1773         * modules/fopen-gnu (Files): Add lib/fopen.c.
1774         * modules/memmem (Files): Add lib/memmem.c.
1775         * modules/renameat (Files): Add lib/at-func2.c.
1776         * modules/strcasestr (Files): Add lib/strcasestr.c.
1777         * modules/strstr (Files): Add lib/strstr.c.
1779 2020-12-11  Bruno Haible  <bruno@clisp.org>
1781         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1782         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1783         elements of argv.
1784         * lib/sh-quote.c (shell_quote_argv): Likewise.
1785         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1786         the return type.
1787         * lib/windows-spawn.c (prepare_spawn): Likewise.
1788         * lib/os2-spawn.h (prepare_spawn): Likewise.
1789         * lib/os2-spawn.c (prepare_spawn): Likewise.
1790         * lib/execute.h (execute): Does not need write access to the elements of
1791         prog_argv.
1792         * lib/execute.c (execute): Likewise.
1793         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1794         Likewise.
1795         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1796         create_pipe_out): Likewise.
1797         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1798         Likewise.
1799         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1800         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1801         * lib/javaexec.h (execute_fn): Does not need write access to the
1802         elements of prog_argv.
1803         * lib/javaexec.c (execute_java_class): Update variable types and remove
1804         casts to 'char *'.
1805         * lib/csharpexec.h (execute_fn): Does not need write access to the
1806         elements of prog_argv.
1807         * lib/csharpexec.c (execute_csharp_using_mono,
1808         execute_csharp_using_sscli): Update variable types and remove casts to
1809         'char *'.
1810         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1811         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1812         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1813         is_jikes_present): Update variable types and remove casts to 'char *'.
1814         * lib/javaversion.c (execute_and_read_line): Does not need write access
1815         to the elements of prog_argv.
1816         * lib/csharpcomp.c (compile_csharp_using_mono,
1817         compile_csharp_using_sscli): Update variable types and remove casts to
1818         'char *'.
1819         * tests/test-sh-quote.c (main): Update variable types and remove casts
1820         to 'char *'.
1821         * tests/test-execute-main.c (main): Update variable types and remove
1822         casts to 'char *'.
1823         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1824         remove casts to 'char *'.
1825         * NEWS: Mention the changes.
1827 2020-12-11  Bruno Haible  <bruno@clisp.org>
1829         execute-tests: Fix compilation error with MSVC.
1830         * tests/test-execute-child.c (is_device): With _fstat, use
1831         'struct _stat', not 'struct stat'.
1833 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1835         vararrays: just use 2.70
1836         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1837         and later, since Autoconf 2.70 matches Gnulib now.
1839         sys_types: just use 2.70
1840         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1841         Reindent to match Autoconf sources.
1842         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1844         stdint: port to Autoconf 2.70
1845         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1846         instead of assuming that AC_INCLUDES_DEFAULT does it.
1847         The old code relied on AC_INCLUDES_DEFAULT being called
1848         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1849         but this does not occur in Autoconf 2.70.
1851         pid_t.m4: just use 2.70
1852         * m4/pid_t.m4 (AC_TYPE_PID_T):
1853         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1855         largefile: just use 2.70
1856         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1857         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1859         AC_C_RESTRICT: update from Autoconf
1860         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1861         as a prerequisite, not 2.69c, since 2.70 is now out.
1862         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1863         Try __restrict__ before __restrict.
1865         extensions: update from Autoconf
1866         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1867         Provide a default implementation for Autoconf 2.69 or earlier.
1868         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1869         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1871         alloca: update from Autoconf
1872         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1873         Trivial update to match Autoconf 2.70.
1875 2020-12-11  Bruno Haible  <bruno@clisp.org>
1877         memchr: Work around memory overrun bug on AIX 7.2.
1878         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1879         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1881 2020-12-11  Bruno Haible  <bruno@clisp.org>
1883         execute-tests: Fix compilation error on AIX in 32-bit mode.
1884         * tests/test-execute-child.c: In order to get the original definition of
1885         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1886         include the system's <sys/stat.h> and use it before including other
1887         header files.
1889 2020-12-10  Bruno Haible  <bruno@clisp.org>
1891         windows-spawn: Relicense under LGPLv2+.
1892         * modules/windows-spawn (License): Change to LGPLv2+.
1894 2020-12-10  Bruno Haible  <bruno@clisp.org>
1896         execute, spawn-pipe: Fix memory leak on native Windows.
1897         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1898         * lib/windows-spawn.c: Don't include xalloc.h.
1899         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1900         prepare_spawn.
1901         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1902         elements of *new_argv together.
1903         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1904         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1905         * lib/os2-spawn.c: Don't include xalloc.h.
1906         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1907         elements of *new_argv together.
1908         * lib/execute.c: Include xalloc.h.
1909         (execute): Check return value of prepare_spawn. Free the memory
1910         allocated by prepare_spawn.
1911         * modules/execute (Depends-on): Add xalloc-die.
1912         * lib/spawn-pipe.c: Include xalloc.h.
1913         (create_pipe): Check return value of prepare_spawn. Free the memory
1914         allocated by prepare_spawn.
1915         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1917 2020-12-10  Bruno Haible  <bruno@clisp.org>
1919         findprog-in: Relicense under LGPLv2+.
1920         Paul Smith's approval is in
1921         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1922         * modules/findprog-in (License): Change to LGPLv2+.
1924 2020-12-10  Bruno Haible  <bruno@clisp.org>
1926         findprog-in: Don't exit upon out-of-memory.
1927         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1928         code.
1929         * lib/findprog-in.c: Don't include xalloc.h.
1930         (find_in_given_path): Call concatenated_filename, not
1931         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1932         return NULL with errno set.
1933         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1934         concat-filename, strdup-posix, malloc-posix.
1936 2020-12-09  Bruno Haible  <bruno@clisp.org>
1938         fmaf: Work around a bug on FreeBSD 12.2/arm.
1939         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1940         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1942 2020-12-09  Bruno Haible  <bruno@clisp.org>
1944         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1945         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1946         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1947         * lib/glthread/threadlib.c: Include <errno.h>.
1948         (glthread_in_use): For FreeBSD, provide an alternative implementation
1949         that uses pthread_key_create.
1951 2020-12-09  Bruno Haible  <bruno@clisp.org>
1953         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1954         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1955         not 'isnan'.
1957 2020-12-08  Bruno Haible  <bruno@clisp.org>
1959         std-gnu11: Make compatible with Autoconf 2.70.
1960         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1961         use.
1963 2020-12-08  Bruno Haible  <bruno@clisp.org>
1965         argp: Avoid undefined behaviour when invoking qsort().
1966         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1967         Reported by Jeffrey Walton <noloader@gmail.com> in
1968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1969         * lib/argp-help.c (group_cmp): Remove third argument.
1970         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1971         upon hol_cluster_cmp.
1972         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1973         (hol_entry_cmp): Rewritten to implement a total order.
1975 2020-12-08  Bruno Haible  <bruno@clisp.org>
1977         argp: Improve comments.
1978         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1979         null pointer.
1980         (struct hol_entry): Fix comment regarding sort order of group.
1981         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1982         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1983         (hol_cluster_is_child, argp_hol): Move functions.
1984         (HOL_ENTRY_PTRCMP): Remove unused macro.
1986 2020-12-08  Bruno Haible  <bruno@clisp.org>
1988         argp: Don't pass invalid arguments to isspace() and isalnum().
1989         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1990         before passing it to isspace() or isalnum().
1992 2020-12-08  Bruno Haible  <bruno@clisp.org>
1994         argp: Don't rely on undefined behaviour of _tolower().
1995         Patch by Eric Blake
1996         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1997         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1998         not upper-case.  Pass correct range to tolower.
2000 2020-12-07  Bruno Haible  <bruno@clisp.org>
2002         unicodeio: Fix wrong result on FreeBSD.
2003         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2004         characters on all platforms.
2006 2020-12-07  Bruno Haible  <bruno@clisp.org>
2008         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
2009         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
2010         FreeBSD systems.
2012 2020-12-07  Bruno Haible  <bruno@clisp.org>
2014         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
2015         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
2016         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
2017         trivially of sbrk is not available.
2018         * doc/glibc-functions/sbrk.texi: Mention that the function does not
2019         exist in FreeBSD 12.2/arm64.
2020         * doc/glibc-functions/brk.texi: Likewise.
2022 2020-12-07  Bruno Haible  <bruno@clisp.org>
2024         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
2025         Suggested by Zack Weinberg in
2026         <https://savannah.gnu.org/support/?110294>.
2027         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
2028         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
2030 2020-12-07  Bruno Haible  <bruno@clisp.org>
2032         Tweak the Windows oldnames workaround.
2033         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2034         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
2035         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
2036         always.
2037         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
2038         * lib/stdlib.in.h (putenv): Likewise.
2040 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2042         doc: fix flat address space discussion
2043         * doc/gnulib-readme.texi (Other portability assumptions):
2044         Move the all-bits-zero assumption outside the flat address space
2045         section, since the two issues are independent.
2047         doc: document -static-libubsan more
2048         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
2049         -static-libubsan a bit more.  Mostly cons.
2051 2020-12-06  Bruno Haible  <bruno@clisp.org>
2053         doc: Add more details regarding the undefined behaviour sanitizer.
2054         * doc/gnulib-readme.texi (High Quality): Describe
2055         -fsanitize-undefined-trap-on-error better.
2057 2020-12-06  Bruno Haible  <bruno@clisp.org>
2059         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
2060         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2061         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
2062         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
2063         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
2064         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
2065         a preprocessor #define.
2066         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
2067         * lib/search.in.h (lfind, lsearch): Likewise.
2068         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
2069         Likewise.
2070         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
2071         * lib/string.in.h (memccpy, strdup): Likewise.
2072         * lib/sys_stat.in.h (chmod, umask): Likewise.
2073         * lib/time.in.h (tzset): Likewise.
2074         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
2075         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
2076         read, rmdir, swab, unlink, write): Likewise.
2077         * lib/utime.in.h (utime): Likewise.
2078         * lib/wchar.in.h (wcsdup): Likewise.
2079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
2080         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
2081         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
2082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
2083         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2084         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2085         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
2086         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
2088         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
2089         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
2090         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
2091         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
2092         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
2094 2020-12-06  Bruno Haible  <bruno@clisp.org>
2096         doc: Mention some missing function declarations.
2097         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
2098         AIX.
2099         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
2100         FreeBSD.
2101         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
2102         Cygwin.
2103         * doc/pastposix-functions/fcvt.texi: Likewise.
2104         * doc/pastposix-functions/gcvt.texi: Likewise.
2106 2020-12-06  Bruno Haible  <bruno@clisp.org>
2108         doc: Tweak example.
2109         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
2110         'print'.
2112 2020-12-06  Bruno Haible  <bruno@clisp.org>
2114         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
2115         * tests/test-filenamecat.c: Include idx.h.
2116         (main): Mark prefixlen as nonnegative.
2117         * modules/filenamecat-tests (Depends-on): Add idx.
2119 2020-12-06  Bruno Haible  <bruno@clisp.org>
2121         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
2122         * lib/time_rz.c: Include idx.h.
2123         (save_abbr): Mark zone_size as nonnegative.
2124         * modules/time_rz (Depends-on): Add idx.
2126 2020-12-06  Bruno Haible  <bruno@clisp.org>
2128         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
2129         * lib/parse-datetime.y: Include idx.h.
2130         (textint): Mark digits as nonnegative.
2131         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
2132         dsts_seen, times_seen, zones_seen as nonnegative.
2133         (lookup_word): Mark wordlen as nonnegative.
2134         (yylex): Mark count as nonnegative.
2135         (parse_datetime2): Mark tzsize as nonnegative.
2136         * modules/parse-datetime (Depends-on): Add idx.
2138 2020-12-06  Bruno Haible  <bruno@clisp.org>
2140         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
2141         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
2142         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
2143         nonnegative.
2144         * modules/fnmatch (Depends-on): Add idx.
2146 2020-12-06  Bruno Haible  <bruno@clisp.org>
2148         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
2149         * lib/c-stack.c: Include idx.h.
2150         (die): Mark buflen as nonnegative.
2151         * modules/c-stack (Depends-on): Add idx.
2153 2020-12-06  Bruno Haible  <bruno@clisp.org>
2155         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
2156         * lib/backupfile.c: Include idx.h.
2157         (numbered_backup): Mark base_offset as nonnegative.
2158         (backupfile_internal): Likewise.
2159         * modules/backup-rename (Depends-on): Add idx.
2160         * modules/backupfile (Depends-on): Likewise.
2162 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2164         doc: fix curved quotes issue
2165         * doc/gnulib.texi: Set txicodequoteundirected and
2166         txicodequotebacktick so that ` and ' in examples do not generate
2167         curved single quotes that do the wrong thing when cut and pasted.
2169         doc: mention static and dynamic checking
2170         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
2171         for static and dynamic checking.
2173         intprops: Add INT_ADD_OK etc.
2174         * doc/intprops.texi (Checking Integer Overflow): New section.
2175         * lib/intprops.h: From a suggestion by Bruno Haible in:
2176         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
2177         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
2179         doc: move exotic platfroms to Target Platforms
2180         * doc/gnulib-intro.texi (Supported Platforms)
2181         (Formerly Supported Platforms, Unsupported Platforms):
2182         New subsections, split off from Target Platforms.
2183         (Unsupported Platforms): Move the exotic-platform stuff here ...
2184         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
2185         section.
2187         doc: mention intptr_t etc. and IBM i
2188         * doc/gnulib-readme.texi (Other portability assumptions):
2189         Mention intptr_t and uintptr_t, and that arithmetic on them
2190         works in the usual way.
2191         (Exotic platforms): New section, containing material from
2192         the old 'Integer Portability' section.  Also mention IBM i.
2193         * doc/intprops.texi (Wraparound Arithmetic):
2194         Say that the macros work on unsigned integers too.
2195         (Integer Portability): Remove.
2197 2020-12-04  Bruno Haible  <bruno@clisp.org>
2199         utime: Fix a test failure on macOS 10.13.
2200         Reported by Martin Storsjö <martin@martin.st> in
2201         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2202         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
2203         slashes on files.
2204         * lib/utime.c (utime): Add alternative implementation for Unix
2205         platforms.
2206         * modules/utime (Depends-on): Add stat.
2207         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
2208         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
2209         trailing-slash bug.
2210         * doc/posix-functions/open.texi: Likewise.
2211         * doc/posix-functions/stat.texi: Likewise.
2212         * doc/posix-functions/symlink.texi: Likewise.
2214 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2216         intprops: update doc and mention Unisys
2217         * doc/gnulib-readme.texi (Other portability assumptions):
2218         Also mention ptrdiff_t when talking about widths and overflow.
2219         * doc/intprops.texi (Integer Properties): Summarize new section.
2220         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
2221         evaluates its argument.
2222         (Integer Bounds): Fix typo.
2223         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
2224         Document that the _WRAPV macros now support pointers to unsigned
2225         integers.
2226         (Integer Range Overflow): Update SEI CERT citation.
2227         (Integer Portability): New subsection, which mentions
2228         the oddball Unisys platforms as non-Gnulib targets.
2230 2020-12-03  Bruno Haible  <bruno@clisp.org>
2232         idx: Clarify that idx_t always behaves like a signed type.
2233         Suggested by Paul Eggert in
2234         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
2235         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
2236         Don't test UNSIGNED_IDX_T.
2238 2020-12-03  Bruno Haible  <bruno@clisp.org>
2240         idx: New module.
2241         * lib/idx.h: New file.
2242         * modules/idx: New file.
2243         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
2244         ptrdiff_t.
2245         * lib/canonicalize.c: Likewise.
2246         * modules/canonicalize-lgpl (Depends-on): Add idx.
2247         * modules/canonicalize (Depends-on): Likewise.
2249 2020-12-03  Bruno Haible  <bruno@clisp.org>
2251         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
2252         Reported by Martin Storsjö <martin@martin.st> in
2253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2254         * tests/test-fprintf-posix3.c: Skip the test on macOS.
2255         (main): Return a different exit code at each point. Allow 100 KB extra
2256         memory consumption.
2257         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
2258         doesn't work" diagnostic.
2260 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2262         canonicalize: refactor can_mode flag
2263         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
2264         (multiple_bits_set): ... this new static function.  Uses changed.
2265         (canonicalize_filename_mode): Refactor for clarity to avoid
2266         modifying the CAN_MODE argument.
2268         canonicalize: prefer signed integer types
2269         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
2270         (seen_triple, canonicalize_filename_mode): Prefer signed to
2271         unsigned types where either will do, as they avoid some glitches
2272         in comparisons and can trap on overflow when debugging.
2274         canonicalize: fix most of another EOVERFLOW issue
2275         * lib/canonicalize.c (canonicalize_filename_mode):
2276         Do not call stat if fewer than 20 symlinks have been traversed.
2277         This avoids EOVERFLOW failure in the common case where there
2278         are not that many symlinks, while continuing to catch loops
2279         (or fail due to EOVERFLOW) in the unusual case when there
2280         are many symlinks to traverse.
2282         canonicalize: do not assume symlinks have st_ino
2283         * lib/canonicalize.c (canonicalize_filename_mode):
2284         When checking for loops, use st_dev and st_ino from the parent
2285         directory not from the symlink, as pre-2017 POSIX says these
2286         members are not reliable for symlinks.  Couple this with START
2287         (the remaining file name to be resolved), not NAME (the whole file
2288         name with START as its suffix).
2289         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
2291         canonicalize: fix EOVERFLOW bug
2292         * lib/canonicalize.c (canonicalize_filename_mode):
2293         When testing whether a directory entry is a symbolic link, or a
2294         directory or other, do not use lstat or stat or
2295         areadlink_with_size.  Just use areadlink, as this suffices and it
2296         avoids the EOVERFLOW problem that lstat and stat have.
2297         * modules/canonicalize (Depends-on): Depend on areadlink instead
2298         of areadlink-with-size and stat.
2300         canonicalize-lgpl: fix EOVERFLOW bug
2301         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
2302         (__realpath): Do not use lstat.  Just use readlink, as this
2303         suffices and it avoids the EOVERFLOW problem that lstat has.
2304         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
2306 2020-12-02  Bruno Haible  <bruno@clisp.org>
2308         strsignal-tests: Fix test failure on macOS 10.13.
2309         Reported by Martin Storsjö <martin@martin.st> in
2310         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2311         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
2312         to be longer than the expected result.
2314 2020-12-02  Bruno Haible  <bruno@clisp.org>
2316         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
2317         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
2318         recursive self-include problem on FreeBSD 12.2 in C++ mode.
2320 2020-12-02  Bruno Haible  <bruno@clisp.org>
2322         spawn-pipe: Allow caller to specify directory for the subprocess.
2323         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2324         Add directory argument.
2325         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
2326         (create_pipe): Add directory argument. If specified, resolve the program
2327         file name and make it absolute, first. Pass the directory to spawnpvech
2328         and posix_spawn_file_actions_addchdir.
2329         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
2330         argument.
2331         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
2332         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
2333         * tests/test-spawn-pipe-main.c (test_pipe): Update.
2334         * NEWS: Mention the change.
2335         * lib/csharpcomp.c (compile_csharp_using_mono,
2336         compile_csharp_using_sscli): Update.
2337         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
2338         is_gcj_43): Update.
2339         * lib/javaversion.c (execute_and_read_line): Update.
2340         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
2341         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
2343 2020-12-02  Bruno Haible  <bruno@clisp.org>
2345         execute: Allow caller to specify directory for the subprocess.
2346         * lib/execute.h (execute): Add directory argument.
2347         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
2348         (execute): Add directory argument. If specified, resolve the program
2349         file name and make it absolute, first. Pass the directory to spawnpvech
2350         and posix_spawn_file_actions_addchdir.
2351         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
2352         posix_spawn, posix_spawn_file_actions_addchdir.
2353         * tests/test-execute-main.c: Add test for passing a directory.
2354         * tests/test-execute-child.c: Likewise.
2355         * tests/test-execute.sh: Update.
2356         * modules/execute-tests (Depends-on): Add mkdir.
2357         * NEWS: Mention the change.
2358         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
2359         * lib/csharpexec.c (execute_csharp_using_mono,
2360         execute_csharp_using_sscli): Update.
2361         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2362         compile_using_javac, compile_using_jikes, is_javac_present,
2363         is_jikes_present): Update.
2364         * lib/javaexec.c (execute_java_class): Update.
2366 2020-12-01  Bruno Haible  <bruno@clisp.org>
2368         vma-iter: Add support for macOS11/arm64.
2369         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
2370         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
2371         and by Martin Storsjö <martin@martin.st> in
2372         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2373         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
2375 2020-12-01  Bruno Haible  <bruno@clisp.org>
2377         spawn-pipe: Fix handling of OS/2 kLIBC.
2378         Reported by KO Myung-Hun <komh78@gmail.com> in
2379         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
2380         * modules/spawn-pipe (configure.ac): Use the common idiom for
2381         recognizing the OS/2 operating system.
2383 2020-11-30  Bruno Haible  <bruno@clisp.org>
2385         execute: Fix uninitialized use of errno.
2386         * lib/execute.c (execute): Preserve errno across several system calls.
2388 2020-11-30  Bruno Haible  <bruno@clisp.org>
2390         access tests: Fix test failure on native Windows.
2391         * tests/test-access.c (main): Change permissions of f2 file before
2392         attempting to remove it.
2394 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
2396         faccessat: link with $(LIB_EACCESS)
2397         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
2398         module depends on euidaccess.
2400 2020-11-30  Bruno Haible  <bruno@clisp.org>
2402         execute, spawn-pipe: Make multithread-safe on native Windows.
2403         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
2404         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
2405         (spawnpvech): New declaration.
2406         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
2407         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
2408         (_): Remove macro.
2409         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
2410         undup_safer_noinherit): Remove functions.
2411         (spawnpvech): New function.
2412         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
2413         cloexec, dup2, error, gettext-h.
2414         * lib/execute.c: Include msvc-nothrow.h.
2415         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
2416         * lib/spawn-pipe.c: Include msvc-nothrow.h.
2417         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
2418         instead of _spawnvpe.
2419         * modules/execute (Depends-on): Add msvc-nothrow.
2420         * modules/spawn-pipe (Depends-on): Likewise.
2422 2020-11-30  Bruno Haible  <bruno@clisp.org>
2424         execute, spawn-pipe: Improve documentation.
2425         * lib/execute.h: Describe progname, prog_path, prog_argv.
2426         * lib/spawn-pipe.h: Likewise.
2428 2020-11-30  Bruno Haible  <bruno@clisp.org>
2430         execute tests: Add more tests.
2431         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2432         inherited file descriptors >= 3.
2433         * tests/test-execute-child.c: Likewise.
2434         * tests/test-execute.sh: Update.
2436 2020-11-30  Bruno Haible  <bruno@clisp.org>
2438         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2439         Reported by comex <comexk@gmail.com> in
2440         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2441         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2442         don't expect an ELF header.
2444 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2446         bitset: use integer_length in table implementation
2447         * lib/bitset/table.c (tbitset_list_reverse): Use
2448         BITSET_FOR_EACH_BIT_REVERSE.
2450 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2452         bitset: use integer_length in list implementation
2453         * lib/bitset/list.c (lbitset_list_reverse): Use
2454         BITSET_FOR_EACH_BIT_REVERSE.
2456 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2458         bitset: use integer_length in vector implementation
2459         * lib/bitset/array.c (vbitset_list_reverse): Use
2460         BITSET_FOR_EACH_BIT_REVERSE.
2462 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2464         bitset: use integer_length in array implementation
2465         * modules/bitset (Depends-on): Add integer_length_l.
2466         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2467         * lib/bitset/array.c (abitset_list_reverse): Use it.
2469 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2471         bitset: style: use consistent names
2472         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2473         and 'boffset' as 'bitoff', for consistency with the other
2474         implementations.
2475         * bitset/table.c (tbitset_list_reverse): Likewise.
2477 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2479         bitset: style: sort header
2480         * lib/bitset/base.h (bitset_ffs): Rename as...
2481         (bitset_ffs_): this.
2482         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2484 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2486         bitset: tests: check BITSET_FOR_EACH_REVERSE
2487         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2488         Check BITSET_FOR_EACH_REVERSE.
2490 2020-11-29  Bruno Haible  <bruno@clisp.org>
2492         spawn-pipe tests: Fix test failure with MSVC.
2493         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2494         (gl_msvc_invalid_parameter_handler): New function.
2495         (main): Set a global invalid-parameter handler.
2496         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2498 2020-11-29  Bruno Haible  <bruno@clisp.org>
2500         execute: Add tests.
2501         * tests/test-execute.sh: New file.
2502         * tests/test-execute-main.c: New file.
2503         * tests/test-execute-child.c: New file.
2504         * modules/execute-tests: New file.
2506 2020-11-29  Bruno Haible  <bruno@clisp.org>
2508         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2509         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2510         works.
2511         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2512         fallback implementation as on Haiku.
2513         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2514         effective.
2515         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2517 2020-11-29  Bruno Haible  <bruno@clisp.org>
2519         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2520         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2521         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2522         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2523         * lib/windows-spawn.c: Remove modifications for kLIBC.
2524         * modules/spawn-pipe (Files): Add the new files.
2525         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2527 2020-11-28  Bruno Haible  <bruno@clisp.org>
2529         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2530         Reported by Paul Eggert in
2531         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2532         * m4/sparcv8+.m4: New file.
2533         * modules/sparcv8+: New file.
2534         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2536 2020-11-28  Bruno Haible  <bruno@clisp.org>
2538         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2539         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2541 2020-11-28  Bruno Haible  <bruno@clisp.org>
2543         windows-spawn: New module.
2544         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2545         implementations.
2546         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2547         * modules/windows-spawn: New file.
2548         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2549         * lib/spawn-pipe.c: Likewise.
2550         * modules/execute (Files): Remove lib/w32spawn.h.
2551         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2552         xalloc.
2553         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2554         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2555         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2556         xalloc.
2557         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2559 2020-11-27  Bruno Haible  <bruno@clisp.org>
2561         ssfmalloc tests: Port to macOS 11.
2562         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2564 2020-11-26  Bruno Haible  <bruno@clisp.org>
2566         Fix dependencies of modules that use '_exit' on native Windows.
2567         Reported by Jim Meyering in
2568         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2569         * modules/_Exit (Depends-on): Add unistd.
2570         * modules/closein (Depends-on): Likewise.
2571         * modules/closeout (Depends-on): Likewise.
2572         * modules/forkpty (Depends-on): Likewise.
2573         * modules/posix_spawn-internal (Depends-on): Likewise.
2574         * modules/savewd (Depends-on): Likewise.
2575         * modules/stat-time-tests (Depends-on): Likewise.
2577 2020-11-26  Bruno Haible  <bruno@clisp.org>
2579         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2580         * modules/raise-tests (Depends-on): Add unistd.
2581         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2583 2020-11-25  Jim Meyering  <meyering@fb.com>
2585         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2586         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2587         non-NULL, since we don't bother handing strdup failure.
2589         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2590         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2591         * tests/test-raise.c: Include unistd.h.
2592         (handler): Use _exit, not exit.
2594 2020-11-23  Bruno Haible  <bruno@clisp.org>
2596         Use the correct printf format attribute for mingw.
2597         Reported by Reuben Thomas <rrt@sc3d.org> in
2598         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2600         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2601         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2603         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2604         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2605         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2606         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2607         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2608         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2610         * modules/vasnprintf (Depends-on): Add stdio.
2611         * lib/vasnprintf.h: Include <stdio.h>.
2612         (asnprintf, vasnprintf): Use the standard printf format attribute.
2614         * modules/xvasprintf (Depends-on): Add stdio.
2615         * lib/xvasprintf.h: Include <stdio.h>.
2616         (xasprintf, xvasprintf): Use the standard printf format attribute.
2618         * modules/xprintf (Depends-on): List stdio first.
2619         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2620         depends on GNULIB_VPRINTF_POSIX.
2621         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2622         GNULIB_VFPRINTF_POSIX.
2624         * modules/c-vasnprintf (Depends-on): Add stdio.
2625         * lib/c-vasnprintf.h: Include <stdio.h>.
2626         (c_vasnprintf): Use the standard printf format attribute.
2628         * modules/c-vasprintf (Depends-on): Add stdio.
2629         * lib/c-vasprintf.h: Include <stdio.h>.
2630         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2632         * modules/c-vsnprintf (Depends-on): Add stdio.
2633         * lib/c-vsnprintf.h: Include <stdio.h>.
2634         (c_vsnprintf): Use the standard printf format attribute.
2636         * modules/c-snprintf (Depends-on): Add stdio.
2637         * lib/c-snprintf.h: Include <stdio.h>.
2638         (c_snprintf): Use the standard printf format attribute.
2640         * modules/c-xvasprintf (Depends-on): Add stdio.
2641         * lib/c-xvasprintf.h: Include <stdio.h>.
2642         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2644         * modules/error (Depends-on): Depend on stdio always.
2645         * lib/error.h: Include <stdio.h>.
2646         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2647         (error, error_at_line): Use a printf format attribute that depends on
2648         GNULIB_VFPRINTF_POSIX.
2649         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2650         _GL_ATTRIBUTE_FORMAT_PRINTF.
2652         * modules/verror (Depends-on): Add stdio.
2653         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2654         (verror, verror_at_line): Use the standard printf format attribute.
2655         * lib/verror.c: Include "error.h".
2657         * modules/argp (Depends-on): Add stdio.
2658         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2659         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2661         * modules/libtextstyle-optional (Depends-on): Add stdio.
2662         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2663         printf format attribute.
2665         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2666         format attribute.
2668 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2670         selinux-at, selinux-h: use const correct declarations
2671         * lib/se-selinux.in.h: Use const for "set" functions,
2672         to match current selinux, and support cleaner user code.
2673         * lib/selinux-at.c: Likewise.
2674         * lib/selinux-at.h: Likewise.
2676 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2678         canonicalize-lgpl: fix memory leak
2679         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2680         which could have occurred if BUF was so large that malloc was
2681         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2682         this eliminates the need to free BUF separately.
2684 2020-11-22  Bruno Haible  <bruno@clisp.org>
2686         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2687         * modules/xvasprintf (Depends-on): Add xalloc.
2688         * modules/pipe-filter-gi (Depends-on): Likewise.
2689         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2690         * modules/spawn-pipe (Depends-on): Likewise.
2692 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2694         bootstrap: add option hooks
2695         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2696         (bootstrap_option_hook): Likewise.
2697         (usage): Call bootstrap_print_option_usage_hook.
2699 2020-11-22  Bruno Haible  <bruno@clisp.org>
2701         argp: Don't break getprogname on non-glibc systems.
2702         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2703         program_invocation_name and program_invocation_short_name.
2705 2020-11-22  Bruno Haible  <bruno@clisp.org>
2707         doc: Document <link.h>.
2708         * doc/glibc-headers/link.texi: New file.
2709         * doc/gnulib.texi: Include it.
2711 2020-11-22  Bruno Haible  <bruno@clisp.org>
2713         doc: Add references to the LSB.
2714         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2715         * doc/posix-functions/*.texi: Likewise.
2717 2020-11-22  Bruno Haible  <bruno@clisp.org>
2719         doc: Fix a makeinfo warning (regression 2020-11-03).
2720         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2722 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2724         parse-datetime: fix printf format typo
2725         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2726         previous patch to this file.  Problem reported by Chris Elvidge in
2727         <https://bugs.gnu.org/44763#32>.
2729         setlocale-null-tests: work around GCC bug 44511
2730         * tests/test-setlocale_null-mt-all.c:
2731         * tests/test-setlocale_null-mt-one.c:
2732         Ignore -Wreturn-type, to work around GCC bug 44511.
2734         nl_langinfo-tests: work around GCC bug 44511
2735         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2736         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2737         Problem reported for GNU grep by Andreas Schwab
2738         <https://bugs.gnu.org/44535>.
2740         selinux-h: add stubs for selabel_open etc.
2741         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2742         because matchpathcon is deprecated in favor of selabel_open etc.,
2743         so this patch adds stubs for these functions.
2744         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2745         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2746         as it is needed for selabel_open and selinux/selinux.h declares
2747         this type here.
2748         * modules/selinux-h (Files): Add the new files.
2749         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2750         (lib_SOURCES): Add se-label.in.h, se-label.c.
2751         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2752         (selinux/label.h): New rule, mimicking selinux/context.h.
2753         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2754         (Include): Add selinux/label.h.
2756 2020-11-21  Bruno Haible  <bruno@clisp.org>
2758         Update after 'test-driver' in Automake changed.
2759         * build-aux/test-driver.diff: Rebase.
2761 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2763         read-file: remove dead assignment
2764         * lib/read-file.c (fread_file): Remove dead assignment when
2765         RF_SENSITIVE is set, flagged by clang-analyzer.
2767 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2769         bitset: tests: exercise the stats too
2771         * tests/test-bitset.c: Display the stats at the end of the test.
2772         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2773         last bin, display "256-..." rather that "256-511", since the last bin
2774         does count item greater than or equal to 256.
2776 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2778         bitset: tests: try harder to break it
2779         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2780         BITSET_LIST_SIZE.
2781         (main): Likewise.
2782         While at it, also exercise super small bitsets.
2784 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2786         bitset: use ffs where possible in the vector implementation
2787         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2789 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2791         bitset: use ffs where possible in the table implementation
2792         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2794 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2796         bitset: check empty and full bitsets
2797         * tests/test-bitset.c (check_zero, check_ones): New.
2798         (check_attributes): Use them.
2800 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2802         bitset: be sure to always return a value
2803         * lib/bitset/array.c (abitset_small_list): Always update *next and
2804         return a value.
2806 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2808         vcs-to-changelog: Expect spaces in file names
2809         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2810         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2811         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2812         tabs to spaces.
2813         (list_changes): Use tabs to identify file names.
2815 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2817         bitset: strengthen tests
2818         * tests/test-bitset.c (compare): Also check count.
2819         Deal only with random values, move the one-bit tests to...
2820         (check_one_bit): this new function.
2821         (check_attributes): Call it.
2823 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2825         bitset: fix iteration over table bitsets
2826         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2828 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2830         bitset: rename internal details for consistency
2831         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2833 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2835         bitset: test: run deterministic tests on several bitset sizes
2836         * tests/test-bitset.c (check_attributes): Run it with small and large
2837         sizes.
2839 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2841         bitset: use ffs where possible in the list implementation
2842         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2844 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2846         bitset: use ffs where possible in array implementation
2847         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2849 2020-11-17  Bruno Haible  <bruno@clisp.org>
2851         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2852         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2854         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2855         C++ mode.
2857 2020-11-17  Bruno Haible  <bruno@clisp.org>
2859         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2860         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2861         is always declared.
2862         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2863         declared.
2865 2020-11-17  Bruno Haible  <bruno@clisp.org>
2867         Fix link errors on AIX.
2868         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2869         * modules/getumask (Link): Link with $(LIBTHREAD).
2870         * modules/getumask-tests (Makefile.am): Link test-getumask with
2871         $(LIBTHREAD).
2872         * modules/supersede (Link): Link with $(LIBTHREAD).
2873         * modules/supersede-tests (Makefile.am): Link test-supersede with
2874         $(LIBTHREAD).
2875         * modules/fatal-signal (Link): New section.
2876         * modules/execute (Link): New section.
2877         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2878         * modules/javaexec (Link): Link with $(LIBTHREAD).
2879         * modules/spawn-pipe (Link): New section.
2880         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2881         $(LIBTHREAD).
2882         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2883         * modules/javacomp (Link): Link with $(LIBTHREAD).
2884         * modules/javaversion (Link): Link with $(LIBTHREAD).
2885         * modules/pipe-filter-gi (Link): New section.
2886         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2887         test-pipe-filter-gi2-main with $(LIBTHREAD).
2888         * modules/pipe-filter-ii (Link): New section.
2889         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2890         test-pipe-filter-ii2-main with $(LIBTHREAD).
2891         * modules/term-style-control (Link): New section.
2892         * modules/term-style-control-tests (Makefile.am): Link
2893         test-term-style-control-hello, test-term-style-control-yes with
2894         $(LIBTHREAD).
2895         * modules/wait-process (Link): New section.
2896         * modules/nonblocking-pipe-tests (Makefile.am): Link
2897         test-nonblocking-pipe-main with $(LIBTHREAD).
2898         * modules/nonblocking-socket-tests (Makefile.am): Link
2899         test-nonblocking-socket-main with $(LIBTHREAD).
2901 2020-11-16  Bruno Haible  <bruno@clisp.org>
2903         Fix link errors on platforms with libunistring.
2904         * modules/c32isalnum (Link): New section.
2905         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2906         $(LIBUNISTRING).
2907         * modules/c32isalpha (Link): New section.
2908         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2909         $(LIBUNISTRING).
2910         * modules/c32isblank (Link): New section.
2911         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2912         $(LIBUNISTRING).
2913         * modules/c32iscntrl (Link): New section.
2914         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2915         $(LIBUNISTRING).
2916         * modules/c32isdigit (Link): New section.
2917         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2918         $(LIBUNISTRING).
2919         * modules/c32isgraph (Link): New section.
2920         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2921         $(LIBUNISTRING).
2922         * modules/c32islower (Link): New section.
2923         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2924         $(LIBUNISTRING).
2925         * modules/c32isprint (Link): New section.
2926         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2927         $(LIBUNISTRING).
2928         * modules/c32ispunct (Link): New section.
2929         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2930         $(LIBUNISTRING).
2931         * modules/c32isspace (Link): New section.
2932         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2933         $(LIBUNISTRING).
2934         * modules/c32isupper (Link): New section.
2935         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2936         $(LIBUNISTRING).
2937         * modules/c32isxdigit (Link): New section.
2938         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2939         $(LIBUNISTRING).
2940         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2941         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2942         $(LIBUNISTRING).
2944 2020-11-16  Bruno Haible  <bruno@clisp.org>
2946         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2947         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2949         * modules/getumask-tests (Makefile.am): Link test-getumask with
2950         $(LIBINTL).
2951         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2952         * modules/supersede-tests (Makefile.am): Link test-supersede with
2953         $(LIBINTL).
2954         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2955         $(LIBINTL).
2957 2020-11-16  Bruno Haible  <bruno@clisp.org>
2959         getumask: Document link dependencies.
2960         * modules/getumask (Link): New section.
2962 2020-11-16  Bruno Haible  <bruno@clisp.org>
2964         Update link dependencies in modules after 2020-09-09 change.
2965         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2966         * modules/mkdtemp (Link): Likewise.
2967         * modules/mkostemp (Link): Likewise.
2968         * modules/mkostemps (Link): Likewise.
2969         * modules/mkstemp (Link): Likewise.
2970         * modules/mkstemps (Link): Likewise.
2971         * modules/supersede (Link): Likewise.
2972         * modules/tmpfile (Link): Likewise.
2973         * modules/tmpfile-safer (Link): Likewise.
2975 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2977         getumask-tests: port to Solaris 10 etc.
2978         Problem reported by Tom Christensen in:
2979         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2980         * modules/getumask-tests (test_getumask_LDADD):
2981         Add $(LIB_CLOCK_GETTIME).
2983 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2985         bitset: use ffsl to accelerate iterations over set bits
2986         Suggested by Bruno Haible.
2987         * modules/bitset: Depend upon ffsl.
2988         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2989         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2991 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2993         bitset: more tests
2994         * tests/test-bitset.c (compare): Make it clear that the random values
2995         should not be modified.
2996         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2998 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3000         bitset: fix the copy from lbitset to other types
3001         * lib/bitset/list.c (lbitset_copy): Rename as...
3002         (lbitset_copy_): this.
3003         (lbitset_copy): New.
3004         Dispatch to heterogeneous/homogeneous copy.
3006 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3008         bitset: making debug traces more useful
3009         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
3011         bitset: comment changes
3012         * lib/bitset.c: Move some documenting comments to...
3013         * lib/bitset.h: here.
3014         * lib/bitset/array.c: Fix some comments.
3016 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
3018         careadlinkat: warn better about GCC bug 93644
3019         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
3020         not in effect, use "#warning" to let builders know more clearly
3021         about GCC bug 93644, because the bug triggers even if no -W option
3022         is given to GCC.
3024 2020-11-13  Jim Meyering  <meyering@fb.com>
3026         hard-locale-tests: avoid a -Wstrict-prototypes warning
3027         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
3028         changing "main ()" to "main (void)". This was the only case that
3029         triggered a warning when building grep with --enable-gcc-warnings.
3031 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3033         time_rz: simplify CVE-2017-7476 fix
3034         * lib/time_rz.c: Do not include limits.h; I think it was included
3035         under the mistaken impression that limits.h defines SIZE_MAX.
3036         (SIZE_MAX): Remove.
3037         (save_abbr): Put string length into a ptrdiff_t variable,
3038         so that the size comparison works naturally.  This
3039         fixes CVE-2017-7476 in a cleaner way.
3041         parse-datetime: streamline overflow checking
3042         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
3043         did not work for unsigned destinations, and since time_t might
3044         be unsigned that meant it did not work for time_t destinations.
3045         This limitation of INT_ADD_WRAPV has been fixed, so we can
3046         now streamline parse-datetime.y a bit.
3047         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
3048         has not been used for a while.
3049         (yylex, parse_datetime2): Assume C99 declarations after statements.
3050         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
3051         to TYPE_MINIMUM.
3052         (parse_datetime2): No need for time_overflow now that
3053         INT_ADD_WRAPV works for unsigned results.
3055         parse-datetime-tests: port to Alpine Linux 3.12.1
3056         * tests/test-parse-datetime.c: Include errno.h for errno,
3057         and unistd.h for _SC_TZNAME_MAX and sysconf.
3058         (main): In the outlandishly-long time zone abbreviation test,
3059         do not exceed TZNAME_MAX as this has undefined behavior,
3060         and on Alpine Linux 3.12.1 it makes the test fail.
3062 2020-11-09  Pádraig Brady  <P@draigBrady.com>
3064         mgetgroups: avoid warning with clang
3065         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
3066         so disable -Wpointer-sign for all clang versions.
3068 2020-11-07  Bruno Haible  <bruno@clisp.org>
3070         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
3071         Reported by Simon Josefsson in
3072         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
3073         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
3074         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
3075         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3077 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3079         tests: pacify Sun C 5.9
3080         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
3081         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
3082         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
3083         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
3084         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
3085         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
3086         Remove unreachable ‘return NULL;’s.
3088         tests: port better to XLC 12.01
3089         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
3090         even in code that is not executed, as IBM XLC 12.01 complains "The
3091         subscript -1 is less than zero."
3092         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
3093         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
3094         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
3095         arguments than are required by the macro definition."
3097 2020-11-03  Bruno Haible  <bruno@clisp.org>
3099         aligned-malloc: Use fixes from the new modules.
3100         * modules/aligned-malloc (Depends-on): Add posix_memalign,
3101         aligned_alloc, memalign.
3102         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3104 2020-11-03  Bruno Haible  <bruno@clisp.org>
3106         aligned_alloc: Add tests.
3107         * tests/test-aligned_alloc.c: New file.
3108         * modules/aligned_alloc-tests: New file.
3110         aligned_alloc: New module.
3111         * lib/stdlib.in.h (aligned_alloc): New declaration.
3112         * lib/aligned_alloc.c: New file.
3113         * m4/aligned_alloc.m4: New file.
3114         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
3115         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
3116         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3117         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
3118         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3119         * modules/aligned_alloc: New file.
3120         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
3121         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
3122         AIX bug.
3124 2020-11-03  Bruno Haible  <bruno@clisp.org>
3126         posix_memalign: Add tests.
3127         * tests/test-posix_memalign.c: New file.
3128         * modules/posix_memalign-tests: New file.
3130         posix_memalign: New module.
3131         * lib/stdlib.in.h (posix_memalign): New declaration.
3132         * lib/posix_memalign.c: New file.
3133         * m4/posix_memalign.m4: New file.
3134         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
3135         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
3136         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3137         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
3138         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3139         * modules/posix_memalign: New file.
3140         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
3141         * doc/posix-functions/posix_memalign.texi: Mention the new module and
3142         the OpenBSD bug.
3144 2020-11-03  Bruno Haible  <bruno@clisp.org>
3146         memalign: Add tests.
3147         * tests/test-memalign.c: New file.
3148         * modules/memalign-tests: New file.
3150         memalign: New module.
3151         * modules/memalign: New file.
3152         * doc/glibc-functions/memalign.texi: Mention the new module.
3154 2020-11-03  Bruno Haible  <bruno@clisp.org>
3156         verify tests: Fix crash with GCC (regression 2020-11-02).
3157         * tests/test-verify.c (main): Fix initializer of s.
3159 2020-11-03  Pádraig Brady  <P@draigBrady.com>
3161         mountlist: recognize more file system types as remote
3163         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
3164         "remote" file systems from stat.c in coreutils.
3166 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
3168         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
3169         * tests/test-verify.c (main): Initialize state variable.
3170         Reported by Bruno Haible for GCC 5.4.0.
3172 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
3174         dfa.h: support inclusion from C++
3175         * lib/dfa.h: Allow multiple inclusion, and inclusion from
3176         C++ code.  The latter was suggested by Arnold Robbins.
3178 2020-11-01  Bruno Haible  <bruno@clisp.org>
3180         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
3181         * tests/test-ssfmalloc.c: Include <limits.h>.
3182         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
3184 2020-11-01  Bruno Haible  <bruno@clisp.org>
3186         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
3187         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
3189 2020-11-01  Jim Meyering  <meyering@fb.com>
3191         dfa-tests: test for today's invalid-merge fix
3192         * tests/test-dfa-invalid-merge.sh: New file.
3193         * modules/dfa-tests (Files): Add it.
3194         (TESTS): Add it.
3196 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3198         dfa: retain sequences of similar nodes in optimization
3199         DFA was merging similar nodes when it should not.  For example,
3200         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
3201         is not merged.  Problem reported by Gonzalo Padrino in
3202         https://bugs.gnu.org/44351
3203         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
3204         optimization.
3206 2020-11-01  Jim Meyering  <meyering@fb.com>
3208         test-dfa-match-aux.c: accept EREs, not BREs
3209         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
3210         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
3212 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
3214         verify tests: avoid -Wmissing-declarations warnings
3215         * tests/test-verify.c (test_assume_expressions): Add declaration.
3216         (test_assume_optimization): Likewise.
3217         (test_assume_noreturn): Likewise.
3218         (main): Move down after all other definitions.  While at it, also
3219         call test_assume_expressions and test_assume_optimization as a
3220         runtime check.
3222 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3224         sys_stat: update comments for S_IRWXUGO, S_IXUGO
3225         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
3226         Perhaps these macros should be removed, as they’re not in either
3227         POSIX or GNU.  They could be moved to stat-macros.h, which would
3228         be cleaner in some sense.
3230 2020-10-25  Bruno Haible  <bruno@clisp.org>
3232         ssfmalloc tests: Small tweaks.
3233         * tests/test-ssfmalloc.c: Add comments.
3234         (alloc_pages): Don't require PROT_EXEC bits.
3235         (block_sizes): Add more small sizes, for better coverage of
3236         ssfmalloc-bitmap.h.
3238         ssfmalloc tests: Portability to Minix.
3239         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
3240         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
3241         * m4/mmap-anon.m4: Update comment.
3243         ssfmalloc: Portability to AIX.
3244         * modules/ssfmalloc (Include): Add ssfmalloc.h.
3245         (Link): New section.
3246         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
3247         $(LIBTHREAD).
3249         ssfmalloc: Portability to Cygwin.
3250         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
3251         (pg_offset_t): Define depending on PAGESIZE_MAX.
3252         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
3253         (PAGESIZE_MAX): New macro.
3255         ssfmalloc: Fix buffer overrun in bitmap search.
3256         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
3257         word *words_end.
3259 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3261         doc: mention ‘restrict’ and C++
3262         * doc/gnulib-readme.texi (C99 features assumed): Document
3263         that ‘restrict’ should be avoided in C++ code.
3265 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
3267         selinux-at, selinux-h: port to SELinux 3.1
3268         The new release finally deprecated the typedef 'security_context_t',
3269         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
3270         Use the simpler 'char *' instead.
3271         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
3272         (lgetfilecon): Likewise.
3273         (fgetfilecon): Likewise.
3274         (map_to_failure): Likewise.
3275         (rpl_getfilecon): Likewise.
3276         (rpl_lgetfilecon): Likewise.
3277         (rpl_fgetfilecon): Likewise.
3278         * lib/se-selinux.in.h (security_context_t): Remove typedef.
3279         (getcon): Adjust type of context parameter.
3280         (freecon): Likewise.
3281         (getfscreatecon): Likewise.
3282         (setfscreatecon): Likewise.
3283         (matchpathcon): Likewise.
3284         (getfilecon): Likewise.
3285         (lgetfilecon): Likewise.
3286         (fgetfilecon): Likewise.
3287         (setfilecon): Likewise.
3288         (lsetfilecon): Likewise.
3289         (fsetfilecon): Likewise.
3290         (security_check_context): Likewise.
3291         (security_check_context_raw): Likewise.
3292         (setexeccon): Likewise.
3293         (security_compute_create): Likewise.
3294         * lib/selinux-at.c (getfileconat): Likewise.
3295         (lgetfileconat): Likewise.
3296         (setfileconat): Likewise.
3297         (lsetfileconat): Likewise.
3298         * lib/selinux-at.h: Likewise.
3300 2020-10-19  Bruno Haible  <bruno@clisp.org>
3302         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
3303         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
3304         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
3305         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
3306         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
3307         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
3308         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
3310 2020-10-18  Bruno Haible  <bruno@clisp.org>
3312         ssfmalloc: Add tests.
3313         * tests/test-ssfmalloc.c: New file.
3314         * modules/ssfmalloc-tests: New file.
3316         ssfmalloc: New module.
3317         * lib/ssfmalloc.h: New file.
3318         * lib/ssfmalloc-bitmap.h: New file.
3319         * modules/ssfmalloc: New file.
3321 2020-10-18  Bruno Haible  <bruno@clisp.org>
3323         wchar: Fix configure test result on some versions of AIX.
3324         Reported by Clément Chigot <clement.chigot@atos.net> in
3325         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
3326         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
3327         systems.
3329 2020-10-18  Bruno Haible  <bruno@clisp.org>
3331         time: Fix warning about asctime when asctime is not used.
3332         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
3333         invocation.
3335 2020-10-18  Bruno Haible  <bruno@clisp.org>
3337         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
3338         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
3339         '_GL_ATTRIBUTE_CONST'.
3340         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
3341         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
3342         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3343         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
3344         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
3345         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
3346         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
3348 2020-10-18  Bruno Haible  <bruno@clisp.org>
3350         obstack: Fix a clang warning.
3351         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
3353 2020-10-16  Bruno Haible  <bruno@clisp.org>
3355         hash: Rename hash_delete to hash_remove.
3356         * lib/hash.h (hash_remove): Renamed from hash_delete.
3357         (hash_delete): New declaration.
3358         * lib/hash.c (hash_remove): Renamed from hash_delete.
3359         (hash_delete): New function.
3360         * tests/test-hash.c (main): Update.
3361         * lib/fts-cycle.c (leave_dir): Likewise.
3362         * NEWS: Mention the change.
3364 2020-10-16  Bruno Haible  <bruno@clisp.org>
3366         hash, xhash: Make usable from C++.
3367         * lib/hash.h: Add extern "C".
3369 2020-10-16  Bruno Haible  <bruno@clisp.org>
3371         hash, xhash: Move comments to the .h file.
3372         * lib/hash.c: Move comments meant for the user from here...
3373         * lib/xhash.c: ... and here...
3374         * lib/hash.h: ... to here.
3376 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
3378         Don't declare an intention to modify the return value of strerror.
3379         * tests/test-perror2.c (main): Assign the return value of strerror to a
3380         'const char *' variable.
3382 2020-10-11  Bruno Haible  <bruno@clisp.org>
3384         *printf: Avoid "expanded before it was required" warning.
3385         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
3386         AC_DEFUN_ONCE.
3388 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
3390         getprogname: Add support for OpenServer 6 and UnixWare 7.
3391         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
3392         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
3394 2020-10-11  Bruno Haible  <bruno@clisp.org>
3396         tests: Avoid a name clash on UnixWare.
3397         Reported by Tim Rice <tim@multitalents.net> in
3398         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
3399         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
3401 2020-10-11  Bruno Haible  <bruno@clisp.org>
3403         stdioext: Update comments regarding UnixWare.
3404         Reported by Tim Rice <tim@multitalents.net> in
3405         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3406         * lib/fbufmode.c: Update comments.
3407         * lib/fflush.c: Likewise.
3408         * lib/fpending.c: Likewise.
3409         * lib/fpurge.c: Likewise.
3410         * lib/freadable.h: Likewise.
3411         * lib/freadable.c: Likewise.
3412         * lib/freadahead.c: Likewise.
3413         * lib/freading.h: Likewise.
3414         * lib/freading.c: Likewise.
3415         * lib/freadptr.c: Likewise.
3416         * lib/freadseek.c: Likewise.
3417         * lib/fseeko.c: Likewise.
3418         * lib/fseterr.c: Likewise.
3419         * lib/fwritable.h: Likewise.
3420         * lib/fwritable.c: Likewise.
3421         * lib/fwriting.h: Likewise.
3422         * lib/fwriting.c: Likewise.
3424 2020-10-11  Bruno Haible  <bruno@clisp.org>
3426         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3427         Reported by Tim Rice <tim@multitalents.net> in
3428         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3429         Uses the info from
3430         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3431         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3433 2020-10-11  Bruno Haible  <bruno@clisp.org>
3435         stdioext: Avoid compilation errors on UnixWare 7.
3436         Reported by Tim Rice <tim@multitalents.net> in
3437         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3438         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3439         * lib/fpurge.c: Likewise.
3440         * lib/freadable.h: Likewise.
3441         * lib/freading.h: Likewise.
3442         * lib/fwritable.h: Likewise.
3443         * lib/fwriting.h: Likewise.
3444         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3445         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3446         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3447         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3448         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3449         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3451 2020-10-11  Bruno Haible  <bruno@clisp.org>
3453         stdioext: Update comments regarding Cygwin.
3454         * lib/fpending.c: Update comments.
3455         * lib/fpurge.c: Likewise.
3456         * lib/freadable.h: Likewise.
3457         * lib/freadable.c: Likewise.
3458         * lib/freading.h: Likewise.
3459         * lib/freading.c: Likewise.
3460         * lib/fwritable.h: Likewise.
3461         * lib/fwritable.c: Likewise.
3462         * lib/fwriting.h: Likewise.
3463         * lib/fwriting.c: Likewise.
3465 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3467         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3468         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3469         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3471 2020-10-10  Bruno Haible  <bruno@clisp.org>
3473         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3474         Reported by Marc Nieper-Wißkirchen in
3475         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3476         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3477         gl_linked_iterator_from_to): Mark as 'pure'.
3478         (gl_linked_iterator_free): Mark as 'const'.
3479         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3480         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3481         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3482         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3483         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3484         (gl_tree_iterator_free): Mark as 'const'.
3485         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3486         'pure'.
3487         (gl_tree_iterator_free): Mark as 'const'.
3488         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3489         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3490         (gl_tree_iterator_free): Mark as 'const'.
3491         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3492         compare_position_threshold): Mark as 'pure'.
3493         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3494         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3495         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3496         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3497         'pure'.
3498         (gl_array_iterator_free): Mark as 'const'.
3499         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3500         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3501         (gl_array_iterator_free): Mark as 'const'.
3502         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3503         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3504         gl_array_iterator_atleast): Mark as 'pure'.
3505         (gl_array_iterator_free): Mark as 'const'.
3506         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3507         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3508         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3509         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3510         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3511         gl_carray_sortedlist_search): Mark as 'pure'.
3512         (gl_carray_iterator_free): Mark as 'const'.
3514 2020-10-10  Bruno Haible  <bruno@clisp.org>
3516         rbtree-list: Avoid possible compiler warnings.
3517         This mirrors the change of avltree-list on 2014-09-16.
3518         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3519         declaration. Add cast to void for ignored value of check_invariants.
3521 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3523         stack: New module.
3524         * MODULES.html.sh: Add entry for the stack module.
3525         * modules/stack: New file.
3526         * modules/stack-tests: New file.
3527         * lib/stack.h: New file.
3528         * tests/test-stack.c: New file.
3530 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3532         attribute: improve const, pure doc
3533         Problem reported by Marc Nieper-Wißkirchen in:
3534         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3535         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3536         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3538 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3540         thread: pacify GCC on Solaris 10
3541         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3542         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3543         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3544         where pthread_t is unsigned int.
3546 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3548         c-stack: avoid AS_IF
3549         Problem reported by Bruno Haible in:
3550         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3551         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3553         c-stack: pacify GCC 9.3.1 when using libsigsegv
3554         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3556 2020-10-04  Bruno Haible  <bruno@clisp.org>
3558         localename: Fix a couple of "unused parameter" warnings.
3559         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3560         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3561         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3562         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3563         parameter list.
3565 2020-10-04  Bruno Haible  <bruno@clisp.org>
3567         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3568         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3569         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3571         HAVE_SNPRINTF_TRUNCATION_C99.
3572         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3573         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3575 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3577         c-stack: streamline Solaris configuration
3578         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3579         the code is used only if a test for sigaltstack worked
3580         in some other way.
3581         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3582         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3583         heuristic does not work).
3584         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3585         we no longer require the libsigsegv module.
3586         (Depends-on): Depend on havelib, not libsigsegv.
3588         c-stack: stop using SIGSTKSZ
3589         It’s been proposed to stop making SIGSTKSZ an integer constant:
3590         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3591         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3592         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3593         * lib/c-stack.c (SIGSTKSZ): Remove.
3594         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3595         All uses changed.
3597         c-stack: fix libsigsegv typo
3598         Problem reported by Bruno Haible in:
3599         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3600         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3601         to be used only on Solaris (exactly where it is not needed!).
3603 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3605         MODULES.html.sh: Fix typo.
3606         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3608 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3610         version-etc: pacify Oracle Studio 12.6
3611         Without this patch, it complains: "version-etc.h", line 64:
3612         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3613         pedantic mode.
3614         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3616 2020-09-27  Bruno Haible  <bruno@clisp.org>
3618         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3619         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3620         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3621         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3622         ourselves; don't use AC_DECL_SYS_SIGLIST.
3624 2020-09-27  Bruno Haible  <bruno@clisp.org>
3626         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3627         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3628         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3629         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3630         instead of _AC_COMPUTE_INT.
3632 2020-09-27  Bruno Haible  <bruno@clisp.org>
3634         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3635         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3636         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3637         Based on a patch by Paul Eggert.
3638         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3639         test STDC_HEADERS. Assume <stdlib.h> exists.
3640         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3642 2020-09-27  Bruno Haible  <bruno@clisp.org>
3644         Enable testing of prereleases of Autoconf 2.70.
3645         Suggested by Paul Eggert in
3646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3647         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3648         >= 2.70.
3649         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3650         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3651         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3653 2020-09-27  Bruno Haible  <bruno@clisp.org>
3655         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3656         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3657         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3658         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3659         AC_PROG_CC, depending on the Autoconf version.
3661 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3663         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3664         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3665         of AC_HELP_STRING.
3666         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3668 2020-09-27  Bruno Haible  <bruno@clisp.org>
3670         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3671         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3672         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3673         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3675 2020-09-27  Bruno Haible  <bruno@clisp.org>
3677         extensions: Simplify last commit.
3678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3679         AC_GNU_SOURCE ever.
3681 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3683         extensions: require AC_GNU_SOURCE only for <=2.63
3684         Problem reported by Gavin Smith in:
3685         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3686         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3687         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3688         shouldn’t be needed after that, and Autoconf 2.70 complains about
3689         it being obsolete.
3691 2020-09-26  Bruno Haible  <bruno@clisp.org>
3693         regex-tests: Make test more robust.
3694         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3695         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3697 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3699         regex-tests: fix possible Turkish false-alarm
3700         * modules/regex-tests (Depends-on): Add wctype-h.
3701         * tests/test-regex.c: Include wctype.h.
3702         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3703         as the Turkish regex test assumes this.
3705         regex-tests: fix test and add debug output
3706         Perhaps this will fix the recent grep test failure reported at:
3707         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3708         At least, the debug output should help narrow down the failure.
3709         * tests/test-regex.c: Include stdarg.h, stdio.h.
3710         (exit_status): New var.
3711         (report_error): New function.
3712         (main): Use it to report failures to stdout instead of merely
3713         exiting with some nonzero status.  The status info alone isn’t
3714         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3715         regex before calling re_compile_pattern, fixing a portability bug.
3717         regex: no longer match glibc
3718         * config/srclist.txt: Comment out regex_internal.c for now.
3720 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3722         regex: fix ignore-case Turkish bug
3723         * lib/regex_internal.c (build_wcs_upper_buffer):
3724         Do not assume that converting single-byte character to upper
3725         yields a single-byte character.  This is not true for Turkish,
3726         where towupper (L'i') yields L'İ', which is not single-byte.
3727         * tests/test-regex.c (main): Test for this bug.
3729         regex: port to weird isascii platforms
3730         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3732 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3734         dfa: make dfasupported a global function
3735         * lib/dfa.c (dfasupported): Rename, and make it global.
3736         Update caller.
3737         * lib/dfa.h (dfasupported): Add prototype.
3739 2020-09-20  Bruno Haible  <bruno@clisp.org>
3741         canonicalize: Add support for UNC file names on native Windows.
3742         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3743         <https://savannah.gnu.org/bugs/?59079>.
3744         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3745         extend the prefix to include the server.
3747 2020-09-20  Bruno Haible  <bruno@clisp.org>
3749         supersede: Fix test failures on native Windows.
3750         * lib/supersede.c (open_supersede): Handle non-regular files on native
3751         Windows like on Solaris.
3752         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3754 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3756         test-stdalign: test Oracle Studio better
3757         * doc/posix-headers/stdalign.texi (stdalign.h):
3758         * tests/test-stdalign.c (main):
3759         Sun Studio Bug #2125432 seems to be fixed.
3761         c-stack: output diagnostic in single 'write'
3762         * lib/c-stack.c (die): In the typical case, use just one 'write'
3763         syscall to output the diagnostic, as this lessens interleaving.
3764         (die, c_stack_action): Assume C99.
3765         * modules/c-stack (Depends-on): Add c99, mempcpy.
3767         c-stack: improve checking if !libsigsegv
3768         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3769         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3770         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3771         I found these problems while looking into this bug report:
3772         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3773         * lib/c-stack.c: Include c-stack.h first, to test interface.
3774         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3775         max_align_t, intprops.h for INT_ADD_WRAPV.
3776         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3777         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3778         for libsigsegv 2.8 and earlier since the bug should be fixed
3779         after that.
3780         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3781         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3782         Assume sprintf returns byte count; this assumption is safe now.
3783         (page_size): New static volatile variable, since sysconf isn’t
3784         documented to be async-signal-safe on Solaris.  This variable is
3785         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3786         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3787         SIGINFO_WORKS).
3788         (segv_handler): Use it if present.  Never report null pointer
3789         dereference as a stack overflow.  Check for (unlikely) unsigned
3790         and/or pointer overflow.
3791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3792         Rename cache variables to gl_cv_sys_stack_overflow_works
3793         and gl_cv_sys_xsi_stack_overflow_heuristic.
3794         All uses changed.
3795         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3796         c-stack no longer uses STACK_DIRECTION.
3797         Do not check for unistd.h, since we depend on unistd.
3798         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3799         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3800         stdbool, stddef.
3802 2020-09-20  Bruno Haible  <bruno@clisp.org>
3804         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3805         * m4/musl.m4: Revert 2020-09-19 patch.
3806         * m4/setlocale_null.m4: Likewise.
3807         * modules/setlocale-null: Likewise.
3809 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3810             Bruno Haible  <bruno@clisp.org>
3812         relocatable-prog: Fix for multiple relocatable library directories.
3813         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3814         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3815         being attached to a single one.
3817 2020-09-19  Jim Meyering  <meyering@fb.com>
3819         test-verify.c: avoid -Wshadow warnings
3820         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3821         (enum): Capitalize member names. Adjust uses.
3823 2020-09-19  Bruno Haible  <bruno@clisp.org>
3825         havelib: Avoid linking with libc.a on GNU systems.
3826         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3827         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3828         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3829         dependency_libs value of a .la file, ignore '-lc' options on GNU
3830         systems.
3832 2020-09-19  Bruno Haible  <bruno@clisp.org>
3834         Fix recognition of musl libc on Alpine Linux 3.10.
3835         Reported by Jeffrey Walton <noloader@gmail.com> in
3836         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3837         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3838         (gl_MUSL_LIBC): Require it.
3839         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3840         * modules/setlocale-null (Files): Add m4/musl.m4.
3842 2020-09-19  Bruno Haible  <bruno@clisp.org>
3844         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3845         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3847         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3848         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3849         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3850         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3851         or <threads.h>.
3852         (ITEMS, MAX_RESULT_LEN): New macros.
3853         (nl_langinfo_unlocked): New function.
3854         (gl_get_nl_langinfo_lock): New declaration.
3855         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3856         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3857         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3858         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3859         REPLACE_NL_LANGINFO.
3860         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3861         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3862         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3863         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3864         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3866 2020-09-18  Bruno Haible  <bruno@clisp.org>
3868         fsusage, getaddrinfo: Produce more regular configure output.
3869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3870         corresponding AC_MSG_RESULT.
3871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3873 2020-09-18  Bruno Haible  <bruno@clisp.org>
3875         Add back gl_SILENT.
3876         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3878 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3880         c-stack-tests: fix -fsanitize=undefined false alarm
3881         * tests/test-c-stack2.sh: Skip the test-harness self-test
3882         if ‘gcc -fsanitize=undefined’ is in use.
3884 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3886         signalblocking: simplify and remove gl_SILENT
3887         gl_SILENT was problematic because if a trap was sprung, stderr
3888         generated during the trap was lost.  Avoid the problem by
3889         removing the need for gl_SILENT.
3890         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3891         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3892         Simplify, avoiding the need for gl_SILENT while preserving the
3893         ability of the user to override the value of the cache variable,
3894         now ac_cv_func_sigprocmask.
3896 2020-09-17  Bruno Haible  <bruno@clisp.org>
3898         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3899         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3900         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3901         AS_MESSAGE_FD.
3903 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3905         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3906         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3907         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3908         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3909         Define to 0.
3910         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3911         Do not use __builtin_mul_overflow_p.
3913         libc-config: port __THROW to Ubuntu 4
3914         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3915         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3916         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3917         The GCC 3.3.4 documentation says the attribute should work, but
3918         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3919         little point or desire to research this circa-2004 platform further,
3920         so just avoid the attribute there.
3922 2020-09-17  Jim Meyering  <meyering@fb.com>
3924         test-dfa-match.sh: port timeout work-around to newer Busybox
3925         * tests/test-dfa-match.sh: Update timeout -t portability test to
3926         accommodate Busybox 1.30.0 and newer.
3928 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3930         fnmatch: adjust to match glibc fix
3931         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3932         This does not affect Gnulib; it merely keeps Gnulib and glibc
3933         closer together, to help with any eventual merge, by incorporating
3934         a recent glibc patch.  The patch and the following commentary is
3935         by Andreas Schwab.
3936         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3937         contains the index into the extra array, whereas wextra points
3938         into the extra array at this index, containing the length of the
3939         following collating sequence in the wide character representation.
3941 2020-09-16  Bruno Haible  <bruno@clisp.org>
3943         stat, fstat: Fix compilation error with old mingw headers.
3944         Reported by Eli Zaretskii <eliz@gnu.org> in
3945         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3946         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3947         define it.
3949 2020-09-16  Bruno Haible  <bruno@clisp.org>
3951         stat, fstat: Fix when compiling for versions older than Windows Vista.
3952         Reported by Eli Zaretskii <eliz@gnu.org> in
3953         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3954         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3955         that was originally set before we redefined it.
3956         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3957         (gl_PREREQ_STAT): Require it.
3958         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3960 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3962         dfa: remove dfa-heap-overrun workaround
3963         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3964         both sets map[*] and does other things.  This reverts
3965         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3966         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3967         fixed the underlying problem.
3969 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3971         dfa: avoid use of uninitialized constraint
3972         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3973         to zero here.
3974         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3975         use of an uninitialized constraint by later code when ! (flags[i]
3976         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3977         the constraint.  Problem found by running 'valgrind src/grep -E
3978         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3980         dfa: assume C99 in reorder_tokens
3981         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3983         dfa: fix dfa-heap-overrun failure
3984         * lib/dfa.c (reorder_tokens): When setting
3985         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3986         that (i < d->follows[i].elems[j].index), use two loops, one to set
3987         the map array and the other to use it.  The incorrect assumption
3988         caused some elements to be missed, and this in turn caused grep's
3989         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3990         with GCC.  I found this bug while investigating
3991         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3992         and I think the bug also occurs on GNU/Linux but with more-subtle
3993         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3994         recent changes make the bug more likely.
3996 2020-09-13  Bruno Haible  <bruno@clisp.org>
3998         parse-datetime: Make the build rule work with parallel 'make'.
3999         Reported by Daiki Ueno <ueno@gnu.org> in
4000         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
4001         * modules/parse-datetime (Makefile.am): Use a phony target and the
4002         general idiom for rules that produce multiple files.
4004 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
4006         getpass: Check for nonnull prompt argument while avoiding warnings.
4007         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
4008         (getpass) [!_WIN32]: Print prompt only if nonnull.
4010 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4012         dfa: epsilon-closure tweaks (Bug#40634)
4013         Rename BACKWORD to BACKWARD consistently.
4014         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
4015         (addtok_mb): Redo slightly to make it act more like a state machine.
4016         Check depth only when it increases.
4017         (epsclosure): Let the switch test the tokens.
4018         (dfaanalyze): Cache tindex.  Simplify position loops.
4019         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
4020         only if it is not null, since we're testing that anyway.
4021         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
4023 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4025         dfa: use backward set in removal of epsilon closure
4026         When removing in epsilon closure, the code searched all nodes
4027         sequentially, and this was slow for some cases.  Build a backward
4028         set before search, and only check previous position with the set.
4029         Problem reported in <https://bugs.gnu.org/40634>.
4030         * lib/dfa.c (struct dfa): New member 'epsilon'.
4031         (addtok_mb): Check whether a pattern has epsilon node or not.
4032         (epsclosure): New arg BACKWORD; caller changed.  When removing
4033         epsilon node and reconnecting, check only previous positions.
4034         Treat BEG as if it were character.
4035         (dfaanalyze): Build backward set.
4037 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4039         canonicalize: fix pointer indexing bugs
4040         Problem reported by Florian Weimer in:
4041         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
4042         * lib/canonicalize-lgpl.c (__realpath):
4043         * lib/canonicalize.c (canonicalize_filename_mode):
4044         Do not generate a pointer past the end of the array.
4045         * lib/canonicalize.c (canonicalize_filename_mode):
4046         Do not use a pointer after passing it to realloc.
4048 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4050         tempname: help merge with glibc
4051         Inspired by draft patches by Adhemerval Zanella in:
4052         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
4053         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
4054         * lib/tempname.c: Include stdalign.h, time.h.
4055         If _LIBC, do not include random-bits.h.
4056         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
4057         (RANDOM_BITS): Remove, replacing with ...
4058         (random_bits): ... this new static function.  All uses changed.
4059         Add entropy each time if getrandom is not supported.
4060         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
4061         Assume 64-bit support a la C99.
4062         (try_tempname_len): Take advantage of ASLR when initializing
4063         random value.
4064         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
4066         getcwd: merge recent glibc changes
4067         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
4068         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
4070 2020-09-06  Bruno Haible  <bruno@clisp.org>
4072         attribute: Clarify which file to include.
4073         * modules/attribute (Include): Add "attribute.h".
4075 2020-09-06  Bruno Haible  <bruno@clisp.org>
4077         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
4078         * lib/pipe-filter-ii.c: Include <process.h>.
4079         * lib/pipe-filter-gi.c: Likewise.
4081 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4083         verify: avoid __builtin_assume
4084         Our latest attempt to use Clang’s __builtin_assume caused a crash
4085         in GNU Emacs that we spent quite some time tracking down as being
4086         caused by the switch to __builtin_assume.  It’s not known whether
4087         the crash is due is a Clang bug or a portability bug in GNU Emacs.
4088         For now, play it safe and avoid __builtin_assume.
4089         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
4090         (assume): Simplify by not trying to use Clang’s __builtin_assume.
4092 2020-09-05  Bruno Haible  <bruno@clisp.org>
4094         Fix several "warning: no previous prototype for function".
4095         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
4096         in front of the declaration of the lookup function in
4097         unicase/locale-languages.h.
4098         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
4099         unictype/bidi_byname.h.
4100         * modules/unictype/category-byname (Makefile.am): Likewise in
4101         unictype/categ_byname.h.
4102         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
4103         unictype/combiningclass_byname.h.
4104         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
4105         unictype/joininggroup_byname.h.
4106         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
4107         unictype/joiningtype_byname.h.
4108         * modules/unictype/property-byname (Makefile.am): Likewise in
4109         unictype/pr_byname.h.
4110         * modules/unictype/scripts (Makefile.am): Likewise in
4111         unictype/scripts_byname.h.
4112         * modules/uninorm/composition (Makefile.am): Likewise in
4113         uninorm/composition-table.h.
4115 2020-09-05  Bruno Haible  <bruno@clisp.org>
4117         select: Fix "warning: no previous prototype for function".
4118         * lib/select.c: Include <sys/select.h>.
4120 2020-09-05  Bruno Haible  <bruno@clisp.org>
4122         Use module 'c99' when needed for variadic macros with '...' syntax.
4123         * modules/crypto/sm3 (Depends-on): Add c99.
4125 2020-09-05  Bruno Haible  <bruno@clisp.org>
4127         Use module 'c99' when needed for subobject initializer syntax.
4128         * modules/tempname (Depends-on): Add c99.
4129         * modules/nstrftime-tests (Depends-on): Likewise.
4131 2020-09-05  Bruno Haible  <bruno@clisp.org>
4133         Use module 'c99' when needed for declaration-after-statement syntax.
4134         * modules/backup-rename (Depends-on): Add c99.
4135         * modules/backupfile (Depends-on): Likewise.
4136         * modules/bitset-tests (Depends-on): Likewise.
4137         * modules/bitsetv (Depends-on): Likewise.
4138         * modules/c-strtod (Depends-on): Likewise.
4139         * modules/c-strtold (Depends-on): Likewise.
4140         * modules/clean-temp (Depends-on): Likewise.
4141         * modules/copy-file (Depends-on): Likewise.
4142         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
4143         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
4144         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
4145         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
4146         * modules/crypto/md5-buffer (Depends-on): Likewise.
4147         * modules/crypto/md5-tests (Depends-on): Likewise.
4148         * modules/crypto/sha1-buffer (Depends-on): Likewise.
4149         * modules/crypto/sha1-tests (Depends-on): Likewise.
4150         * modules/crypto/sha256-buffer (Depends-on): Likewise.
4151         * modules/crypto/sha256-tests (Depends-on): Likewise.
4152         * modules/crypto/sha512-buffer (Depends-on): Likewise.
4153         * modules/crypto/sha512-tests (Depends-on): Likewise.
4154         * modules/diffseq (Depends-on): Likewise.
4155         * modules/fatal-signal (Depends-on): Likewise.
4156         * modules/fchmodat (Depends-on): Likewise.
4157         * modules/fstrcmp (Depends-on): Likewise.
4158         * modules/fsusage (Depends-on): Likewise.
4159         * modules/fts (Depends-on): Likewise.
4160         * modules/fts-tests (Depends-on): Likewise.
4161         * modules/getumask (Depends-on): Likewise.
4162         * modules/git-merge-changelog (Depends-on): Likewise.
4163         * modules/hash-map (Depends-on): Likewise.
4164         * modules/hash-set (Depends-on): Likewise.
4165         * modules/lchmod (Depends-on): Likewise.
4166         * modules/libgmp-tests (Depends-on): Likewise.
4167         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
4168         * modules/linkedhash-map (Depends-on): Likewise.
4169         * modules/linkedhash-set (Depends-on): Likewise.
4170         * modules/long-options (Depends-on): Likewise.
4171         * modules/mbrtoc32 (Depends-on): Likewise.
4172         * modules/memchr2-tests (Depends-on): Likewise.
4173         * modules/memmem-tests (Depends-on): Likewise.
4174         * modules/memrchr-tests (Depends-on): Likewise.
4175         * modules/mktime-internal (Depends-on): Likewise.
4176         * modules/nstrftime (Depends-on): Likewise.
4177         * modules/opendirat (Depends-on): Likewise.
4178         * modules/parse-datetime (Depends-on): Likewise.
4179         * modules/quotearg-simple-tests (Depends-on): Likewise.
4180         * modules/same (Depends-on): Likewise.
4181         * modules/supersede (Depends-on): Likewise.
4182         * modules/supersede-tests (Depends-on): Likewise.
4183         * modules/time_rz (Depends-on): Likewise.
4184         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4185         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
4186         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
4187         * modules/xalloc (Depends-on): Likewise.
4188         * modules/xnanosleep (Depends-on): Likewise.
4190 2020-09-05  Bruno Haible  <bruno@clisp.org>
4192         Fix "warning: array initialized from parenthesized string constant".
4193         * tests/test-memmem.c (main): Remove parentheses around string constant.
4194         * tests/test-c-strcasestr.c (main): Likewise.
4195         * tests/test-strcasestr.c (main): Likewise.
4197 2020-09-05  Bruno Haible  <bruno@clisp.org>
4199         argmatch tests: Fix ISO C compliance warning.
4200         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
4201         invocation.
4203 2020-09-05  Bruno Haible  <bruno@clisp.org>
4205         uniname/uniname: Fix -Wshadow warning.
4206         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
4207         * modules/uniname/uniname (Depends-on): Add c99.
4209 2020-09-05  Bruno Haible  <bruno@clisp.org>
4211         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
4212         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
4213         argument to size_t.
4214         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
4215         n to size_t.
4217 2020-09-05  Bruno Haible  <bruno@clisp.org>
4219         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
4220         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
4221         u32_uctomb): Change type of last argument to ptrdiff_t.
4222         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4223         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4224         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
4225         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
4226         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
4228 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4230         manywarnings: remove -Wchkp and -Wabi from C++ too
4231         Suggested by Reuben Thomas in:
4232         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
4233         At some point somebody should merge the many other manywarnings-c.m4
4234         changes into manywarnings-c++.m4 too, e.g.,
4235         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
4236         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
4237         Remove -Wchkp, -Wabi.
4239 2020-08-30  Bruno Haible  <bruno@clisp.org>
4241         strerrorname_np: Add tests.
4242         * tests/test-strerrorname_np.c: New file.
4243         * modules/strerrorname_np-tests: New file.
4245         strerrorname_np: New module.
4246         * lib/string.in.h (strerrorname_np): New declaration.
4247         * lib/strerrorname_np.c: New file.
4248         * m4/strerrorname_np.m4: New file.
4249         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
4250         is declared.
4251         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
4252         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4253         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
4254         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4255         * modules/strerrorname_np: New file.
4256         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
4257         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
4258         the glibc 2.32 bug.
4260 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4262         perror, strerror_r: remove unportable tests
4263         Problem reported by Florian Weimer in:
4264         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
4265         * tests/test-perror2.c (main):
4266         * tests/test-strerror_r.c (main): Omit unportable tests.
4268 2020-08-26  Bruno Haible  <bruno@clisp.org>
4270         stdint, wchar, wctype-h: Change configure message.
4271         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
4272         enough..." instead of "checking whether wint_t is too small...".
4274 2020-08-26  Bruno Haible  <bruno@clisp.org>
4276         time_rz: Change configure message.
4277         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
4278         near extrema..." instead of "checking whether localtime loops forever
4279         near extrema...".
4281 2020-08-26  Bruno Haible  <bruno@clisp.org>
4283         stdint: Change configure message.
4284         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
4285         without ISO C predefines..." instead of "checking whether stdint.h
4286         predates C++11...".
4288 2020-08-26  Bruno Haible  <bruno@clisp.org>
4290         socketlib: Change configure message.
4291         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
4292         instead of "checking if we need to call WSAStartup in winsock2.h and
4293         -lws2_32...".
4295 2020-08-26  Bruno Haible  <bruno@clisp.org>
4297         include_next: Change configure message.
4298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
4299         code line length is unlimited..." instead of "checking whether system
4300         header files limit the line length...".
4302 2020-08-26  Bruno Haible  <bruno@clisp.org>
4304         getcwd: Change configure message.
4305         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
4306         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
4307         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
4309 2020-08-26  Bruno Haible  <bruno@clisp.org>
4311         chdir-long: Change configure message.
4312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
4313         system supports file names of any length..." instead of "checking
4314         whether this system has an arbitrary file name length limit...".
4315         Set gl_cv_have_unlimited_file_name_length instead of
4316         gl_cv_have_arbitrary_file_name_length_limit.
4317         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
4319 2020-08-26  Bruno Haible  <bruno@clisp.org>
4321         ceill: Change configure message.
4322         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
4323         instead of "checking whether ceill() breaks with small values...".
4325 2020-08-26  Bruno Haible  <bruno@clisp.org>
4327         iconv: Change configure message.
4328         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
4329         with its POSIX signature..." instead of "checking for iconv
4330         declaration...". Remove K&R C support.
4332 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4334         getcwd: help the merge back into glibc
4335         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
4336         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
4337         The idea is to make it easier for Gnulib lib/getcwd.c to match
4338         glibc io/getcwd-generic.c.
4339         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
4340         Include not-cancel.h.
4341         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
4342         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
4343         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
4344         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
4345         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
4346         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
4347         (__getcwd_generic): Rename from __getcwd.
4348         Use the abovementioned macros for consistency with glibc.
4349         (weak_alias): Remove.
4351 2020-08-25  Bruno Haible  <bruno@clisp.org>
4353         verify: Avoid warnings when assume(0) is used.
4354         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
4355         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
4356         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
4357         the constant 0.
4358         * tests/test-verify.c (f): New function.
4359         (state): New type.
4360         (test_assume_expressions, test_assume_optimization,
4361         test_assume_noreturn): New functions.
4363 2020-08-25  Bruno Haible  <bruno@clisp.org>
4365         fstrcmp: Clarification regarding NOTE_ORDERED.
4366         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
4368 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4370         diffseq: new option NOTE_ORDERED
4371         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
4372         * NEWS: Mention this.
4373         * lib/diffseq.h (NOTE_ORDERED): New macro.
4374         (IF_LINT2): Remove; no longer needed.
4375         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
4376         subproblem and iterate to do the larger.
4378 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4380         sys_types: let Autoconf 2.70 do pid_t
4381         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
4382         only for Autoconf versions 2.69 and earlier, since 2.70
4383         will be fixed.
4385 2020-08-23  Bruno Haible  <bruno@clisp.org>
4387         tests: Don't assume that pid_t fits in an 'int'.
4388         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
4389         of 'int'.
4390         * tests/test-nonblocking-socket-main.c (main): Likewise.
4392         sys_types: Fix definition of pid_t on 64-bit MSVC.
4393         * m4/pid_t.m4: New file.
4394         * modules/sys_types (Files): Add it.
4395         * modules/dirent (Files): Likewise.
4396         * modules/fcntl-h (Files): Likewise.
4397         * modules/sched (Files): Likewise.
4398         * modules/signal-h (Files): Likewise.
4399         * modules/spawn (Files): Likewise.
4400         * modules/sys_stat (Files): Likewise.
4401         * modules/sys_wait (Files): Likewise.
4402         * modules/termios (Files): Likewise.
4403         * modules/unistd (Files): Likewise.
4405 2020-08-23  Bruno Haible  <bruno@clisp.org>
4407         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
4408         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
4409         program.
4411 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4413         intprops: be consistent about +X vs X+0
4414         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
4416         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
4417         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
4418         is a bit-field, on older GCC or non-GCC compilers where we do
4419         things ourselves instead of using __builtin_mul_overflow.
4420         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4421         to applying sizeof to a bit-field.
4422         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4423         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4425 2020-08-23  Bruno Haible  <bruno@clisp.org>
4427         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4428         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4429         via Thomas Klausner <tk@giga.or.at> in
4430         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4431         * lib/supersede.c (open_supersede): When opening an existing non-regular
4432         file on Solaris, use O_CREAT although it should not be necessary.
4434 2020-08-23  Bruno Haible  <bruno@clisp.org>
4436         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4437         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4438         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4439         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4440         variable.
4442 2020-08-23  Bruno Haible  <bruno@clisp.org>
4444         libc-config: Improve comments.
4445         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4446         cannot use clang's __diagnose_if__ here.
4448 2020-08-22  Bruno Haible  <bruno@clisp.org>
4450         verify: Do use __builtin_assume on clang.
4451         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4452         variable in a statement expression.
4454 2020-08-22  Bruno Haible  <bruno@clisp.org>
4456         sig2str: Add more signals.
4457         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4459 2020-08-22  Bruno Haible  <bruno@clisp.org>
4461         doc: Update for OpenBSD 6.0, 6.7.
4462         * doc/*/*.texi: Update.
4463         * m4/printf.m4: Update comments and cross-compilation guesses.
4464         * m4/ceill.m4: Update comments.
4465         * m4/getcwd-abort-bug.m4: Likewise.
4466         * m4/ilogb.m4: Likewise.
4467         * m4/ilogbf.m4: Likewise.
4468         * m4/langinfo_h.m4: Likewise.
4469         * m4/modf.m4: Likewise.
4470         * m4/modff.m4: Likewise.
4472 2020-08-22  Bruno Haible  <bruno@clisp.org>
4474         doc: Mention sig2str module.
4475         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4477 2020-08-21  Bruno Haible  <bruno@clisp.org>
4479         sigdescr_np: Add tests.
4480         * tests/test-sigdescr_np.c: New file.
4481         * modules/sigdescr_np-tests: New file.
4483         sigdescr_np: New module.
4484         * lib/string.in.h (sigdescr_np): New declaration.
4485         * lib/sigdescr_np.c: New file.
4486         * m4/sigdescr_np.m4: New file.
4487         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4488         declared.
4489         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4490         HAVE_SIGDESCR_NP.
4491         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4492         HAVE_SIGDESCR_NP.
4493         * modules/sigdescr_np: New file.
4494         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4495         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4497 2020-08-20  Bruno Haible  <bruno@clisp.org>
4499         sigabbrev_np: Add tests.
4500         * tests/test-sigabbrev_np.c: New file.
4501         * modules/sigabbrev_np-tests: New file.
4503         sigabbrev_np: New module.
4504         * lib/string.in.h (sigabbrev_np): New declaration.
4505         * lib/sigabbrev_np.c: New file.
4506         * m4/sigabbrev_np.m4: New file.
4507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4508         declared.
4509         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4510         HAVE_SIGABBREV_NP.
4511         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4512         HAVE_SIGABBREV_NP.
4513         * modules/sigabbrev_np: New file.
4514         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4515         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4517 2020-08-20  Bruno Haible  <bruno@clisp.org>
4519         stdalign tests: Skip test with AIX xlclang.
4520         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4522 2020-08-20  Bruno Haible  <bruno@clisp.org>
4524         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4525         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4526         workaround as for GCC versions < 4.9.
4528 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4530         Sync up ProjectQuirks comments and documentation
4531         Transform the ProjectQuirks comments into a docstring so that it can
4532         be accessed from python as ProjectQuirks.__doc__ and harmonize
4533         descriptions with the documentation.
4534         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4535         Transform comments into a docstring.
4536         * doc/vcs-to-changelog.texi: Sync up description with comments.
4538         Split ProjectQuirks out into its own file
4539         ProjectQuirks is used by external quirks files and importing it from
4540         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4541         is cleaner to put it in its own file anyway.
4542         * build-aux/vcstocl/projectquirks.py: A new file...
4543         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4544         we move ProjectQuirks and import the file.
4546 2020-08-19  Bruno Haible  <bruno@clisp.org>
4548         uchar: Fix compilation errors in C++ mode on macOS.
4549         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4550         system header file before attempting to use 'char16_t' and 'char32_t'.
4552 2020-08-19  Bruno Haible  <bruno@clisp.org>
4554         ansi-c++-opt: Work around an autoconf macro reordering problem.
4555         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4556         section.
4558 2020-08-19  Bruno Haible  <bruno@clisp.org>
4560         math C++ tests: Fix compilation error in with GCC 10.
4561         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4562         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4563         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4565 2020-08-19  Bruno Haible  <bruno@clisp.org>
4567         uchar: Fix compilation errors in C++ mode on OpenBSD.
4568         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4569         CXX_HAS_UCHAR_TYPES is 1.
4570         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4571         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4572         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4574 2020-08-19  Bruno Haible  <bruno@clisp.org>
4576         Fix compilation errors in C++ mode on OpenBSD.
4577         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4578         OpenBSD with clang, use the approach without C preprocessor macro.
4580 2020-08-18  Bruno Haible  <bruno@clisp.org>
4582         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4583         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4584         AC_LANG_POP.
4586 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4588         verify: avoid __built_assume on Clang
4589         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4590         Clang 9 incorrectly diagnoses arguments as having side effects
4591         even when they do not.  I guess Clang 9 considers any function
4592         call as if it had a side effect here.
4594         libc-config: avoid Clang’s __diagnose_if__
4595         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4596         For now, do not use __diagnose_if__ here, as this fails
4597         on Fedora 31 with Clang 9.0.1, with diagnostic
4598         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4599         size than length of destination buffer
4600         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4601         for functions that are not called?
4603         careadlinkat: speedup for GCC 10 with GCC_LINT
4604         Inspired by a suggestion by Bruno Haible in:
4605         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4606         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4607         (readlink_stk): New function, with most of the old careadlinkat
4608         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4609         if GCC_LINT.
4610         (careadlinkat): Use the new function for everything but the
4611         stack buffer.
4613         * build-aux/gcc-warning.spec: Update comments.
4615 2020-08-17  Bruno Haible  <bruno@clisp.org>
4617         Assume autoconf >= 2.64.
4618         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4620 2020-08-17  Bruno Haible  <bruno@clisp.org>
4622         Revert autoupdate's revert.
4623         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4625 2020-08-17  Bruno Haible  <bruno@clisp.org>
4627         uchar C++ tests: Fix build error on FreeBSD 12.
4628         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4629         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4630         <cuchar> does not exist.
4632 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4634         time_rz: remove unused functions
4635         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4637         time_rz: fix issues with mktime_z failures
4638         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4639         Use a cheaper tm_yday test for failed mktime.
4641 2020-08-16  Bruno Haible  <bruno@clisp.org>
4643         intprops test: Strengthen on clang.
4644         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4646 2020-08-16  Bruno Haible  <bruno@clisp.org>
4648         nstrftime: Guide inlining also on clang.
4649         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4651 2020-08-16  Bruno Haible  <bruno@clisp.org>
4653         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4654         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4656 2020-08-16  Bruno Haible  <bruno@clisp.org>
4658         log2l: Disable MSVC workaround on clang.
4659         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4661 2020-08-16  Bruno Haible  <bruno@clisp.org>
4663         argp: Emit a warning also with clang.
4664         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4665         clang.
4667 2020-08-16  Bruno Haible  <bruno@clisp.org>
4669         libc-config: Enable __REDIRECT macro also on clang.
4670         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4671         __ASMNAME2): Define on clang like on GCC.
4673 2020-08-16  Bruno Haible  <bruno@clisp.org>
4675         regex: Use initializer shorthand syntax also with clang.
4676         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4677         with clang.
4679 2020-08-16  Bruno Haible  <bruno@clisp.org>
4681         regex: Use space optimization also with clang.
4682         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4683         with clang.
4685 2020-08-16  Bruno Haible  <bruno@clisp.org>
4687         Use _Static_assert and static_assert primitives when present on clang.
4688         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4689         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4690         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4692 2020-08-16  Bruno Haible  <bruno@clisp.org>
4694         Use 'throw ()' for optimization in C++ mode also on clang.
4695         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4696         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4697         * lib/md5.h (__THROW): Likewise.
4699 2020-08-16  Bruno Haible  <bruno@clisp.org>
4701         absolute-header: Add support for clang.
4702         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4703         HAVE_INCLUDE_NEXT expression.
4705 2020-08-16  Bruno Haible  <bruno@clisp.org>
4707         Fix "warning: implicitly declaring library function 'strcasecmp'".
4708         * lib/argp-help.c: Include <strings.h>.
4710 2020-08-16  Bruno Haible  <bruno@clisp.org>
4712         stdio: Don't break attribute 'scanf' on clang.
4713         * lib/stdio.in.h (scanf): Treat clang like GCC.
4715 2020-08-16  Bruno Haible  <bruno@clisp.org>
4717         Use __restrict also on clang.
4718         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4719         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4720         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4722 2020-08-16  Bruno Haible  <bruno@clisp.org>
4724         pthread-spin: Use GCC built-ins also on clang.
4725         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4726         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4727         also on clang.
4729 2020-08-16  Bruno Haible  <bruno@clisp.org>
4731         asyncsafe-spin tests: Update.
4732         * tests/test-asyncsafe-spin2.c: Update to match the change in
4733         lib/asyncsafe-spin.c from 2020-08-11.
4735 2020-08-16  Bruno Haible  <bruno@clisp.org>
4737         setenv: Use tree code also with clang.
4738         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4740 2020-08-16  Bruno Haible  <bruno@clisp.org>
4742         math: Optimize signbit also on clang.
4743         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4744         on clang.
4746 2020-08-16  Bruno Haible  <bruno@clisp.org>
4748         avltreehash-list, rbtreehash-list: Optimize also on clang.
4749         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4750         __builtin_expect also on clang.
4752 2020-08-16  Bruno Haible  <bruno@clisp.org>
4754         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4755         * lib/socket.c: Use WSASocketW, not WSASocketA.
4757         Fix "warning: format specifies type 'unsigned long'".
4758         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4759         argument to match the format directive.
4761         Fix "warning: no case matching constant switch condition '0'".
4762         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4764         Fix "warning: integer overflow in expression".
4765         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4766         remove a 'long' overflow.
4768         Fix "warning: "getpagesize" redefined".
4769         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4770         macro.
4772         Fix "warning: implicitly declaring library function 'strncasecmp'".
4773         * lib/strptime.c: Include <strings.h>.
4775         Fix "warning: 'snprintf' macro redefined".
4776         * lib/strerror_r.c (snprintf): Undefine before redefining.
4778         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4779         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4781         Fix "warning: '__stat64' macro redefined".
4782         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4784         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4785         * lib/stdio.in.h (printf): Treat clang like GCC.
4787         Fix "warning: attribute declaration must precede definition" with clang.
4788         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4789         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4790         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4791         on non-glibc systems.
4792         * lib/netdb.in.h (gai_strerror): Likewise.
4793         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4794         * lib/sys_stat.in.h (fstat): Likewise.
4795         * lib/utime.in.h (utime): Likewise.
4797         Fix undesired warnings.
4798         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4799         clang.
4801 2020-08-16  Bruno Haible  <bruno@clisp.org>
4803         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4804         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4805         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4806         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4807         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4809 2020-08-16  Bruno Haible  <bruno@clisp.org>
4811         Don't use Autoconf quadrigraphs.
4812         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4813         Autoconf quadrigraph.
4814         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4815         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4816         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4817         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4819         * m4/math_h.m4 (gl_MATH_H): Likewise.
4820         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4822 2020-08-16  Bruno Haible  <bruno@clisp.org>
4824         Fix quoting of AC_LANG_PROGRAM arguments.
4825         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4826         arguments through [[...]].
4827         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4828         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4830         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4831         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4832         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4833         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4835         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4836         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4837         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4838         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4839         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4841 2020-08-16  Bruno Haible  <bruno@clisp.org>
4843         Assume autoconf >= 2.64.
4844         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4845         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4846         * NEWS: Mention the changed requirement.
4847         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4848         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4850         variables.
4851         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4852         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4853         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4854         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4855         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4856         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4857         Likewise.
4858         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4859         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4860         * m4/configmake.m4: Update comment.
4862 2020-08-16  Bruno Haible  <bruno@clisp.org>
4864         sys_ioctl: Simplify.
4865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4866         AC_INCLUDES_DEFAULT.
4868 2020-08-16  Bruno Haible  <bruno@clisp.org>
4870         Fix quoting of AC_LANG_SOURCE arguments.
4871         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4872         GL_NOCRASH expansion.
4873         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4874         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4875         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4876         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4877         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4879 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4881         nstrftime: be more predictable about errno
4882         This aligns nstrftime better with draft POSIX 202x strftime.
4883         * lib/nstrftime.c: Include errno.h.
4884         (width_add, __strftime_internal): Set errno on failure,
4885         and preserve it on success.  Check for mktime_z failure.
4886         * modules/nstrftime (Depends-on): Add errno.
4887         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4888         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4889         (errno_test): New test function.
4890         (main): Call it.
4892 2020-08-15  Bruno Haible  <bruno@clisp.org>
4894         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4895         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4896         from dependency analysis first.
4898 2020-08-15  Bruno Haible  <bruno@clisp.org>
4900         Determine asm output option and filename suffix for MSVC/clang.
4901         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4902         clang-cl.
4904 2020-08-15  Bruno Haible  <bruno@clisp.org>
4906         doc: Update for MSVC/clang.
4907         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4908         that MSVC 14 does not have.
4910 2020-08-15  Bruno Haible  <bruno@clisp.org>
4912         Revert autoupdate's revert.
4913         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4915 2020-08-15  Bruno Haible  <bruno@clisp.org>
4917         frexpl: Fix configuration test result on MSVC.
4918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4919         zero.
4921 2020-08-15  Bruno Haible  <bruno@clisp.org>
4923         Support compiling without -loldnames on native Windows.
4924         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4925         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4926         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4927         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4928         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4930         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4931         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4932         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4933         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4934         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4936         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4937         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4938         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4939         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4940         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4942         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4943         Likewise.
4944         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4945         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4946         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4947         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4949         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4950         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4951         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4953         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4954         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4956         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4957         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4958         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4959         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4960         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4961         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4962         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4963         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4964         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4965         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4966         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4967         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4968         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4969         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4970         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4971         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4972         test for getcwd.
4973         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4974         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4975         with GL_MDA_DEFINES.
4976         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4977         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4978         prefixed symbol.
4979         * lib/search.in.h (lfind, lsearch): Likewise.
4980         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4981         Likewise.
4982         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4983         * lib/string.in.h (memccpy, strdup): Likewise.
4984         * lib/sys_stat.in.h (chmod, umask): Likewise.
4985         * lib/time.in.h (tzset): Likewise.
4986         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4987         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4988         read, rmdir, swab, unlink, write): Likewise.
4989         * lib/utime.in.h (utime): Likewise.
4990         * lib/wchar.in.h (wcsdup): Likewise.
4991         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4992         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4993         rpl_-prefixed macro.
4994         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4995         * lib/close.c (close_nothrow): On native Windows, use _close.
4996         * lib/creat.c (orig_creat): On native Windows, use _creat.
4997         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4998         * lib/dup2.c (dup2_nothrow): Use _dup2.
4999         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
5000         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
5001         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
5002         * lib/open.c (orig_open): On native Windows, use _open.
5003         * lib/read.c (read_nothrow): Use _read.
5004         * lib/rmdir.c: On native Windows, use _rmdir.
5005         * lib/unlink.c: On native Windows, use _unlink.
5006         * lib/write.c (write_nothrow): Use _write.
5007         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
5008         undefined symbol.
5009         * lib/sys_socket.in.h (close): Likewise.
5010         * lib/sys_time.in.h (close): Likewise.
5011         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
5013 2020-08-15  Bruno Haible  <bruno@clisp.org>
5015         Fix "unknown pragma ignored" warnings with clang on native Windows.
5016         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
5017         * lib/cbrtf.c: Likewise.
5018         * lib/ceil.c: Likewise.
5019         * lib/floor.c: Likewise.
5020         * lib/fma.c: Likewise.
5021         * lib/fmod.c: Likewise.
5022         * lib/rint.c: Likewise.
5023         * lib/round.c: Likewise.
5024         * lib/trunc.c: Likewise.
5025         * tests/test-ceil2.c: Likewise.
5026         * tests/test-ceilf2.c: Likewise.
5027         * tests/test-floor2.c: Likewise.
5028         * tests/test-floorf2.c: Likewise.
5029         * tests/test-trunc2.c: Likewise.
5030         * tests/test-truncf2.c: Likewise.
5031         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5032         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5034 2020-08-15  Bruno Haible  <bruno@clisp.org>
5036         Fix compilation errors in C++ mode with clang on native Windows.
5037         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
5038         non-glibc systems.
5039         * lib/sched.in.h (sched_yield): Likewise.
5041 2020-08-14  Bruno Haible  <bruno@clisp.org>
5043         stdnoreturn: Work around problem with MSVC/clang.
5044         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
5045         system header after <stdnoreturn.h>.
5046         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
5048 2020-08-14  Bruno Haible  <bruno@clisp.org>
5050         utime-h: Generate an utime.h file always.
5051         * modules/utime-h (Makefile.am): Generate utime.h always.
5052         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
5053         GL_GENERATE_UTIME_H.
5055 2020-08-14  Bruno Haible  <bruno@clisp.org>
5057         mktime, mktime-internal: Remove obsolete code.
5058         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
5060 2020-08-14  Bruno Haible  <bruno@clisp.org>
5062         getcwd: Remove obsolete code.
5063         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
5064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5066 2020-08-14  Bruno Haible  <bruno@clisp.org>
5068         tzset: Assume the function exists.
5069         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
5070         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
5071         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
5072         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
5073         HAVE_TZSET.
5074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
5075         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
5077         nstrftime: Assume tzset exists.
5078         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
5079         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
5080         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
5082         mktime, mktime-internal: Assume tzset exists.
5083         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
5084         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
5086 2020-08-14  Bruno Haible  <bruno@clisp.org>
5088         strdup: Assume the function exists.
5089         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
5090         whether strdup exists.
5091         * modules/strdup (Files): Remove lib/strdup.c.
5092         (configure.ac): Don't compile strdup.c.
5093         * modules/strdup-posix (Depends-on, configure.ac): Don't test
5094         ac_cv_func_strdup.
5095         * doc/posix-functions/strdup.texi: Update.
5096         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
5097         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
5098         (Depends-on): Remove unistr/u8-strlen.
5100 2020-08-13  Bruno Haible  <bruno@clisp.org>
5102         sys_random: Work around an uClibc bug.
5103         Reported by akater <nuclearspace@gmail.com>
5104         via Stefan Kangas <stefan@marxist.se>
5105         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
5106         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
5107         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
5108         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5109         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
5111 2020-08-12  Bruno Haible  <bruno@clisp.org>
5113         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
5114         Reported by Florian Weimer in
5115         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
5116         * lib/gen-uni-tables.c (output_predicate): Change the element type of
5117         the level3 array to 'unsigned int'.
5118         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
5119         * lib/unictype/categ_*.h: Regenerated.
5120         * lib/unictype/ctype_*.h: Regenerated.
5121         * lib/unictype/pr_*.h: Regenerated.
5122         * lib/unictype/sy_*.h: Regenerated.
5123         * lib/unicase/cased.h: Regenerated.
5124         * lib/unicase/ignorable.h: Regenerated.
5126 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5128         stdint: port intptr_t to more-recent MinGW
5129         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
5130         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
5131         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
5132         Apparently those two macros were removed in mingwrt-3.22
5133         dated 2016-07-14.
5135 2020-08-12  Bruno Haible  <bruno@clisp.org>
5137         thread-optim: Export function-like macros only.
5138         Suggested by Paul Eggert.
5139         * lib/thread-optim.h (gl_multithreaded): New macro.
5140         (IF_MT_DECL, IF_MT): Remove macros.
5141         * doc/multithread.texi (Multithreading Optimizations): Add a small
5142         example.
5143         * lib/fatal-signal.c: Update all uses.
5144         * lib/clean-temp.c: Likewise.
5145         * lib/localename.c: Likewise.
5146         * modules/localename (Depends-on): Add stdbool.
5148 2020-08-12  Bruno Haible  <bruno@clisp.org>
5150         Revert autoupdate's revert.
5151         * config/srclist.txt: Mark regex.h as needing sync with glibc.
5153 2020-08-11  Bruno Haible  <bruno@clisp.org>
5155         thread-optim: Fix a compiler warning.
5156         * lib/thread-optim.h (IF_MT_DECL): Define differently.
5158 2020-08-11  Bruno Haible  <bruno@clisp.org>
5160         Use __restrict also on clang.
5161         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
5162         (__restrict_arr): On clang, define like on GCC.
5163         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
5164         (_Restrict_arr_): Use _Restrict_ also on clang.
5165         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
5166         (_Restrict_arr_): Use _Restrict_ also on clang.
5168 2020-08-11  Bruno Haible  <bruno@clisp.org>
5170         Use flexible array syntax also on clang.
5171         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
5172         define like for GCC 3.
5174 2020-08-11  Bruno Haible  <bruno@clisp.org>
5176         fcntl: On native Windows, use _setmode, not setmode.
5177         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
5178         * lib/binary-io.h: Update comment.
5179         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
5180         * tests/test-dup2.c: Likewise.
5181         * tests/test-dup-safer.c: Likewise.
5182         * tests/test-fcntl.c: Likewise.
5184 2020-08-11  Bruno Haible  <bruno@clisp.org>
5186         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
5187         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
5188         * lib/spawn-pipe.c (create_pipe): Likewise.
5189         * tests/test-nonblocking-pipe-main.c (main): Likewise.
5190         * tests/test-nonblocking-socket-main.c (main): Likewise.
5191         * lib/wait-process.c: Update comment.
5192         * doc/posix-functions/fork.texi: Update.
5194 2020-08-11  Bruno Haible  <bruno@clisp.org>
5196         asyncsafe-spin: Use GCC built-ins also on clang.
5197         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
5198         the newer GCC built-ins also on clang.
5200 2020-08-11  Bruno Haible  <bruno@clisp.org>
5202         Use expression statements also on clang.
5203         * lib/cdefs.h (__extension__): Don't define to empty on clang.
5204         * lib/obstack.h (__extension__): Likewise.
5205         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
5206         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
5207         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
5208         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
5209         obstack_finish, obstack_free): Enable as optimized macros also on clang.
5210         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
5212 2020-08-10  Bruno Haible  <bruno@clisp.org>
5214         Use many __attribute__s with clang.
5215         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
5216         on clang.
5217         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
5218         New macros.
5219         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
5220         on clang.
5221         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
5222         also on older clang versions.
5223         (__attribute__): Don't define to empty on clang.
5224         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
5225         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
5226         (__attribute_const__): Use __attribute__ __const__ also on clang.
5227         (__attribute_used__): Use __attribute__ __used__ also on clang.
5228         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
5229         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
5230         clang.
5231         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
5232         clang.
5233         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
5234         also on clang.
5235         (__nonnull): Use __attribute__ __nonnull__ also on clang.
5236         (__attribute_warn_unused_result__): Use __attribute__
5237         __warn_unused_result__ also on clang.
5238         (__always_inline): Use __attribute__ __always_inline__ also on clang.
5239         (__attribute_artificial__): Use __attribute__ __artificial__ also on
5240         clang >= 7.
5241         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
5242         clang versions.
5243         (_Noreturn): Don't redefine on clang >= 3.5.
5244         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
5245         also on clang.
5246         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
5247         on clang.
5248         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5249         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5250         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5251         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
5252         also on clang.
5253         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5254         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
5255         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
5256         also on clang.
5257         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
5258         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
5259         __attribute__ __noreturn__ also on clang.
5260         * lib/obstack.h (__attribute_noreturn__): Likewise.
5261         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
5262         clang.
5263         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
5264         always_inline also on clang.
5265         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
5266         clang.
5268 2020-08-10  Bruno Haible  <bruno@clisp.org>
5270         c-ldtoastr tests: Fix test failure.
5271         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
5272         is longer than 'double'.
5274 2020-08-10  Bruno Haible  <bruno@clisp.org>
5276         Revert autoupdate's revert.
5277         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
5279 2020-08-09  Bruno Haible  <bruno@clisp.org>
5281         string: Fix build error in C++ mode with clang (regression from today).
5282         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
5283         parameters, one for GCC, one for clang.
5284         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
5285         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
5286         as return type.
5288 2020-08-09  Bruno Haible  <bruno@clisp.org>
5290         ftruncate: Use _chsize, not chsize.
5291         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
5292         * lib/ftruncate.c: Test HAVE__CHSIZE.
5293         (chsize_nothrow): Use _chsize, not chsize.
5295 2020-08-09  Bruno Haible  <bruno@clisp.org>
5297         Silence warnings from clang 10 with -Wimplicit-fallthrough.
5298         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
5299         clang >= 10.
5300         * lib/fnmatch.c (FALLTHROUGH): Likewise.
5301         * lib/fts.c (FALLTHROUGH): Likewise.
5302         * tests/macros.h (FALLTHROUGH): Likewise.
5303         * lib/regex_internal.h (FALLTHROUGH): Likewise.
5304         * config/srclist.txt: Mark it as needing sync with glibc.
5306 2020-08-09  Bruno Haible  <bruno@clisp.org>
5308         stdbool tests: Enable the stricter tests also on clang.
5309         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
5310         (e): Enable the address-to-bool conversion test also on clang.
5312 2020-08-09  Bruno Haible  <bruno@clisp.org>
5314         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
5315         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
5317 2020-08-09  Bruno Haible  <bruno@clisp.org>
5319         Use attribute __aligned__ with clang.
5320         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
5321         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
5323 2020-08-09  Bruno Haible  <bruno@clisp.org>
5325         Use __alignof__ with clang.
5326         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
5327         on clang.
5328         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
5329         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
5330         clang.
5331         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
5332         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
5333         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
5334         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
5336 2020-08-09  Bruno Haible  <bruno@clisp.org>
5338         ignore-value: Simplify on clang.
5339         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
5340         workaround.
5342 2020-08-09  Bruno Haible  <bruno@clisp.org>
5344         Use __typeof__ with clang.
5345         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
5346         "clang -std=gnu99".
5347         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
5348         * tests/test-stdint.c (verify_same_types): Enable the check also on
5349         clang.
5351 2020-08-09  Bruno Haible  <bruno@clisp.org>
5353         Add ability to emit user-defined warnings and errors with clang.
5354         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
5355         _GL_ATTRIBUTE_WARNING using an attribute for clang.
5356         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
5357         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
5358         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
5359         attribute for clang.
5361 2020-08-09  Bruno Haible  <bruno@clisp.org>
5363         intprops: Fix typo in comment.
5364         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
5366 2020-08-09  Bruno Haible  <bruno@clisp.org>
5368         Use __builtin_signbit* with clang.
5369         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
5370         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
5371         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5373         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5374         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
5375         not REPLACE_SIGNBIT_USING_GCC.
5377 2020-08-09  Bruno Haible  <bruno@clisp.org>
5379         Use __builtin_isnan with clang.
5380         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5381         not __builtin_isnanf. Also on clang.
5382         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
5383         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
5384         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
5385         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
5386         built-in.
5387         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5388         not __builtin_isnanl. Also on clang.
5389         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
5390         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
5391         * lib/math.in.h (__has_builtin): Remove macro.
5392         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
5393         __builtin_isnanf. Also on clang.
5394         (isnand, gl_isnan_d): With clang, use the GCC built-in.
5395         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
5396         __builtin_isnanl. Also on clang.
5397         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
5398         on clang.
5400 2020-08-09  Bruno Haible  <bruno@clisp.org>
5402         thread-optim: Fix logic error.
5403         Reported by Paul Eggert.
5404         * lib/thread-optim.h (IF_MT): Fix logic error.
5406 2020-08-08  Bruno Haible  <bruno@clisp.org>
5408         localename: Use module 'thread-optim'.
5409         * lib/localename.c: Include thread-optim.h.
5410         (struniq): Use IF_MT macro.
5411         * modules/localename (Depends-on): Add thread-optim.
5413         clean-temp: Use module 'thread-optim'.
5414         * lib/clean-temp.c: Include thread-optim.h.
5415         (register_temporary_file, unregister_temporary_file, create_temp_dir,
5416         register_temp_file, unregister_temp_file, register_temp_subdir,
5417         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
5418         close_temp, fclose_variant_temp): Use IF_MT macro.
5419         * modules/clean-temp (Depends-on): Add thread-optim.
5421         fatal-signal: Use module 'thread-optim'.
5422         * lib/fatal-signal.c: Include thread-optim.h.
5423         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5424         macro.
5425         * modules/fatal-signal (Depends-on): Add thread-optim.
5427 2020-08-08  Bruno Haible  <bruno@clisp.org>
5429         New module 'thread-optim'.
5430         * lib/thread-optim.h: New file.
5431         * modules/thread-optim: New file.
5432         * doc/multithread.texi (Multithreading Optimizations): New section.
5434 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5436         doc: more updates for glibc 2.32
5437         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5438         * doc/posix-functions/fchmodat.texi: Update.
5440 2020-08-07  Bruno Haible  <bruno@clisp.org>
5442         doc: Update for glibc 2.32.
5443         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5444         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5445         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5446         * doc/glibc-functions/sigabbrev_np.texi: New file.
5447         * doc/glibc-functions/sigdescr_np.texi: New file.
5448         * doc/glibc-functions/strerrordesc_np.texi: New file.
5449         * doc/glibc-functions/strerrorname_np.texi: New file.
5450         * doc/gnulib.texi: Include them.
5451         (Glibc sys/single_threaded.h): New section.
5452         * doc/pastposix-functions/h_errno.texi: Update.
5453         * doc/posix-functions/*.texi: Likewise.
5454         * doc/glibc-functions/*.texi: Likewise.
5456 2020-08-07  Bruno Haible  <bruno@clisp.org>
5458         alloca: No need to compile alloca.c with clang.
5459         * lib/alloca.c: Skip all code with clang.
5461         Use __builtin_alloca with clang.
5462         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5464 2020-08-06  Bruno Haible  <bruno@clisp.org>
5466         Use __builtin_assume with clang.
5467         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5468         (assume): Use __builtin_assume when available.
5470 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5472         libgmp: add <gmp/gmp.h> support
5473         * m4/libgmp.m4 (gl_LIBGMP):
5474         * modules/libgmp (configure.ac, Makefile.am):
5475         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5476         ‘#include <gmp.h>’.
5478 2020-08-06  Bruno Haible  <bruno@clisp.org>
5480         Consider that clang defines __OPTIMIZE__ like GCC does.
5481         * lib/streq.h: Define the inline functions also on clang.
5482         * lib/c-strcaseeq.h: Likewise.
5483         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5484         the GCC workaround to clang.
5486 2020-08-06  Bruno Haible  <bruno@clisp.org>
5488         safe-alloc: Remove unused code.
5489         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5491 2020-08-06  Bruno Haible  <bruno@clisp.org>
5493         Use __builtin_expect with clang everywhere.
5494         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5495         also on clang.
5497 2020-08-05  Bruno Haible  <bruno@clisp.org>
5499         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5500         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5501         built-in also on clang.
5502         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5503         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5505 2020-08-05  Bruno Haible  <bruno@clisp.org>
5507         Use __builtin_clz{,l,ll} with clang, also on Windows.
5508         * lib/integer_length.c: With clang, use the GCC built-in, not
5509         <intrin.h>.
5510         * lib/integer_length_l.c: Likewise.
5511         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5512         also on clang.
5513         * lib/vasnprintf.c (divide): Likewise.
5515 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5517         Update srclist.txt as per recent glibc changes
5518         * config/srclist.txt: Uncomment lines to reflect recent merges
5519         from Gnulib to glibc.
5521 2020-08-03  Bruno Haible  <bruno@clisp.org>
5523         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5524         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5526 2020-08-03  Bruno Haible  <bruno@clisp.org>
5528         integer_length_ll: Optimize for MSVC in 64-bit mode.
5529         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5530         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5532 2020-08-03  Bruno Haible  <bruno@clisp.org>
5534         integer_length_ll: Optimize for MSVC in 32-bit mode.
5535         * lib/integer_length_l.c: Include <intrin.h>.
5536         (integer_length): Define as inline function, like in
5537         lib/integer_length.c.
5539 2020-08-03  Bruno Haible  <bruno@clisp.org>
5541         integer_length: Optimize for MSVC.
5542         * lib/integer_length.c: Include <intrin.h>.
5543         (integer_length): With MSVC, use the _BitScanReverse built-in.
5545 2020-08-03  Bruno Haible  <bruno@clisp.org>
5547         ffsll: Optimize for MSVC in 64-bit mode.
5548         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5549         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5550         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5552 2020-08-03  Bruno Haible  <bruno@clisp.org>
5554         ffsll: Optimize for MSVC in 32-bit mode.
5555         * lib/ffsl.h: Include <intrin.h>.
5556         (ffs): Define as inline function, like in lib/ffs.c.
5558 2020-08-03  Bruno Haible  <bruno@clisp.org>
5560         ffs: Optimize for MSVC.
5561         * lib/ffs.c: Include <intrin.h>.
5562         (ffs): With MSVC, use the _BitScanForward built-in.
5564 2020-08-03  Bruno Haible  <bruno@clisp.org>
5566         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5567         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5568         variable.
5570 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5572         fopen: Avoid undesired interactions with glibc headers.
5573         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5574         __need_FILE, as the latter does not work with glibc.
5576 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5578         fcntl: document some F_SETLK errno variations
5579         * doc/posix-functions/fcntl.texi (fcntl): Document
5580         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5582 2020-08-02  Bruno Haible  <bruno@clisp.org>
5584         oset: Add an 'iterator_atleast' operation.
5585         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5586         extracted from gl_array_search_atleast.
5587         (gl_array_search_atleast): Use it.
5588         (gl_array_iterator_atleast): New function.
5589         (gl_array_oset_implementation): Use it.
5590         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5591         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5592         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5593         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5594         member.
5595         (gl_oset_iterator_atleast): New function.
5596         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5597         (gl_OSet::iterator): Add another auxiliary constructor.
5598         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5599         New functions.
5600         (main): Test also gl_oset_iterator_atleast.
5601         * tests/test-avltree_oset.c (is_at_least): New function.
5602         (main): Test also gl_oset_iterator_atleast.
5603         * tests/test-rbtree_oset.c (is_at_least): New function.
5604         (main): Test also gl_oset_iterator_atleast.
5605         * tests/test-oset-c++.cc (is_at_most): New function.
5606         (main): Test also gl_OSet::begin_atleast.
5608 2020-08-02  Bruno Haible  <bruno@clisp.org>
5610         oset-c++, omap-c++: Remove restriction for search_atleast method.
5611         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5612         a different type than the element.
5613         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5614         a different type than the key.
5616 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5618         gnumakefile: say ‘$(MAKE)’ not ‘make’
5619         * top/GNUmakefile (abort-due-to-no-makefile):
5620         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5621         This change is backported from Autoconf.
5623 2020-08-01  Bruno Haible  <bruno@clisp.org>
5625         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5626         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5627         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5628         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5629         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5630         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5632 2020-08-01  Bruno Haible  <bruno@clisp.org>
5634         libtextstyle-optional: Update tests.
5635         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5636         gl_LIBTEXTSTYLE_OPTIONAL.
5638 2020-08-01  Bruno Haible  <bruno@clisp.org>
5640         parse-datetime: Fix wrong #line statements.
5641         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5642         parse-datetime-gen.h.
5644 2020-08-01  Bruno Haible  <bruno@clisp.org>
5646         libtextstyle[-optional]: Allow requesting a minimum version.
5647         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5648         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5649         gl_LIBTEXTSTYLE_SEARCH): New macros.
5650         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5651         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5652         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5653         * modules/libtextstyle-optional (configure.ac): Don't invoke
5654         gl_LIBTEXTSTYLE_OPTIONAL.
5655         * NEWS: Mention the changes.
5657 2020-07-31  Bruno Haible  <bruno@clisp.org>
5659         _GL_CMP: Improve documentation.
5660         Reported by Paul Eggert in
5661         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5662         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5663         passed.
5665 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5667         largefile: sync with Autoconf master
5668         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5669         Avoid undefined behavior on platforms where off_t is 32 bits.
5670         See: https://bugs.debian.org/742780
5672         alloca: sync with Autoconf master
5673         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5674         Do not define if Autoconf 2.70 or later, since Autoconf master
5675         now matches us.
5677 2020-07-30  Bruno Haible  <bruno@clisp.org>
5679         unicodeio: Add comment.
5680         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5681         different iconv behaviours.
5683 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5685         Work around some Oracle Studio attribute bugs
5686         These were discovered when building bleeding-edge Emacs with
5687         Oracle Studio.
5688         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5689         Port to Oracle Studio 12.6, which mishandles __attribute__
5690         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5691         __has_attribute says they work.
5693 2020-07-29  Bruno Haible  <bruno@clisp.org>
5695         unicodeio: Fix wrong result on musl libc.
5696         Reported by A. Wilcox <awilfox@adelielinux.org> in
5697         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5698         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5699         on musl libc.
5700         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5701         * modules/unicodeio (Files): Add m4/musl.m4.
5703 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5705         fsusage, regex, stat-size: remove Cray support
5706         As near as I can make out this is actually support for UNICOS/mp,
5707         last released 2005, and Cray hasn’t supported that for years.
5708         * config/srclist.txt: Comment out regex.h for now.
5709         * lib/fsusage.c (get_fs_usage):
5710         * lib/regex.h (re_comp, re_exec):
5711         * lib/stat-size.h (ST_NBLOCKSIZE):
5712         Don’t worry about _CRAY.
5714 2020-07-29  Bruno Haible  <bruno@clisp.org>
5716         parse-datetime: Fix compilation error with bison 3.7.
5717         * modules/parse-datetime (Makefile.am): Create a generated header file
5718         parse-datetime-gen.h in the source directory. Correct #include and
5719         #line statements during preprocessing.
5721 2020-07-28  Bruno Haible  <bruno@clisp.org>
5723         fopen-gnu: Create files correctly (regression from 2020-05-24).
5724         * lib/fopen.c (rpl_open): Pass a third argument to open().
5726 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5728         xalloc-die: don’t depend on xalloc
5729         This removes a circular dependency, as xalloc depends on xalloc-die.
5730         * modules/xalloc-die (Files): Add lib/xalloc.h.
5731         (Depends-on): Remove xalloc.
5732         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5734         dfa-tests: port to MSVC
5735         Problem reported by Gisle Vanem in:
5736         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5737         Also, remove an unnecessary dependency on getprogname.
5738         * modules/dfa-tests (Depends-on): Remove getprogname.
5739         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5740         (exit_status): New static var.
5741         (dfawarn): Set it instead of exiting.
5742         Do not declare as _Noreturn, to pacify MSVC.
5743         (main): Return exit_status.
5745 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5747         argz: pacify MSVC
5748         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5749         Problem reported by Gisle Vanem.
5751         libgmp: remove dependency on havelib
5752         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5753         use the more-traditional AC_SEARCH_LIBS approach.
5754         This should work better with GNU Emacs configuration,
5755         which uses pkg-config instead of a havelib-style approach.
5756         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5757         * modules/libgmp (Depends-on): Remove havelib.
5759         libgmp: remove HAVE_GMP, LIB_GMP
5760         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5761         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5763 2020-07-26  Bruno Haible  <bruno@clisp.org>
5765         inttypes: Remove support for AIX 4.
5766         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5767         * m4/inttypes-pri.m4: Remove file.
5768         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5769         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5770         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5771         PRI_MACROS_BROKEN.
5772         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5774 2020-07-26  Bruno Haible  <bruno@clisp.org>
5776         gettimeofday: Remove workaround for Mac OS X 10.0.
5777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5778         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5779         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5780         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5781         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5782         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5783         * modules/localtime-buffer: Remove file.
5784         * lib/localtime-buffer.h: Remove file.
5785         * lib/localtime-buffer.c: Remove file.
5786         * m4/localtime-buffer.m4: Remove file.
5787         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5789 2020-07-26  Bruno Haible  <bruno@clisp.org>
5791         tzset: Remove workaround for Solaris 2.6.
5792         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5793         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5794         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5795         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5796         * lib/localtime-buffer.c: Likewise.
5797         * lib/localtime.c: Likewise.
5798         * lib/tzset.c: Don't include localtime-buffer.h.
5799         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5800         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5801         is 1.
5802         * modules/tzset (Depends-on): Remove localtime-buffer.
5804 2020-07-26  Bruno Haible  <bruno@clisp.org>
5806         expl: Simplify autoconf test.
5807         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5808         with small values..." test into the "checking whether expl works..."
5809         test.
5811 2020-07-26  Bruno Haible  <bruno@clisp.org>
5813         alloca: Remove Cray-2 and Cray Y-MP support.
5814         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5815         Enable also on Autoconf >= 2.69.
5816         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5817         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5818         i00afunc): Remove.
5820 2020-07-25  Bruno Haible  <bruno@clisp.org>
5822         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5823         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5825 2020-07-25  Bruno Haible  <bruno@clisp.org>
5827         sigprocmask: Small autoconf macro improvement.
5828         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5829         user to override the value of gl_cv_func_sigprocmask.
5830         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5832 2020-07-25  Bruno Haible  <bruno@clisp.org>
5834         Small autoconf macro improvements.
5835         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5836         override the value of gl_cv_func_working_mktime.
5837         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5838         compiler produces multi-arch binaries..." in the configure output.
5839         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5840         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5842 2020-07-25  Bruno Haible  <bruno@clisp.org>
5844         doc: Update for NetBSD 7.1, 8.0, 9.0.
5845         * doc/*/*.texi: Update.
5846         * m4/exp2l.m4: Update comments.
5847         * m4/expl.m4: Likewise.
5848         * m4/ilogb.m4: Likewise.
5849         * m4/ilogbf.m4: Likewise.
5850         * m4/log10l.m4: Likewise.
5851         * m4/logl.m4: Likewise.
5852         * m4/printf.m4: Likewise.
5853         * m4/rintl.m4: Likewise.
5854         * m4/wcwidth.m4: Likewise.
5856 2020-07-24  Bruno Haible  <bruno@clisp.org>
5858         doc: Update for Mac OS X 10.13.
5859         * doc/*/*.texi: Update.
5860         * m4/expm1l.m4: Update comments.
5861         * m4/getgroups.m4: Likewise.
5862         * m4/getlogin_r.m4: Likewise.
5863         * m4/linkat.m4: Likewise.
5864         * m4/printf.m4: Likewise.
5866 2020-07-24  Bruno Haible  <bruno@clisp.org>
5868         doc: Update for Cygwin 2.9.0.
5869         * doc/*/*.texi: Update.
5871 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5873         parse-datetime: modernize doc
5874         * doc/parse-datetime.texi: Use more-current examples.
5875         Don’t lead with 32-bit time_t, as it’s on its way out.
5876         Capitalize “Epoch” to be consistent with POSIX.
5878         timespec: remove dependence on ‘verify’
5879         * lib/timespec.h: Do not include verify.h; no longer needed.
5880         * modules/timespec (Depends-on): Remove ‘verify’.
5882         Optimize a few more three-valued comparisons
5883         * lib/timespec.h (timespec_cmp, timespec_sign):
5884         * lib/utimecmp.c (utimecmpat):
5885         Avoid conditional branches by using _GL_CMP.
5887         Fix _GL_CMP parenthesization typo
5888         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5890 2020-07-24  Bruno Haible  <bruno@clisp.org>
5892         dfa: Revert breaking gawk.
5893         Reported by Arnold Robbins <arnold@skeeve.com>.
5894         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5896 2020-07-23  Bruno Haible  <bruno@clisp.org>
5898         Optimize three-valued comparison between integers.
5899         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5900         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5901         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5902         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5903         * lib/dfa.c (compare): Likewise.
5904         * lib/fts.c (fts_compare_ino): Likewise.
5905         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5906         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5907         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5908         * lib/memcasecmp.c (memcasecmp): Likewise.
5909         * lib/memcmp2.c (memcmp2): Likewise.
5910         * lib/savedir.c (direntry_cmp_inode): Likewise.
5911         * lib/strcasecmp.c (strcasecmp): Likewise.
5912         * lib/strncasecmp.c (strncasecmp): Likewise.
5913         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5915 2020-07-23  Bruno Haible  <bruno@clisp.org>
5917         lchmod: Use /proc on Cygwin.
5918         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5920 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5922         fchmodat: Use /proc on Cygwin
5923         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5925 2020-07-21  Bruno Haible  <bruno@clisp.org>
5927         aligned-malloc: Optionally use aligned_alloc.
5928         * lib/aligned-malloc.h: Verify the alignment.
5929         (aligned_malloc): Use aligned_alloc as an alternative.
5930         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5931         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5932         'aligned-malloc' and 'pagealign_alloc'.
5934 2020-07-21  Bruno Haible  <bruno@clisp.org>
5936         aligned-malloc: Add tests.
5937         * tests/test-aligned-malloc.c: New file.
5938         * modules/aligned-malloc-tests: New file.
5940         aligned-malloc: New module.
5941         * lib/aligned-malloc.h: New file.
5942         * m4/malloc-align.m4: New file.
5943         * modules/aligned-malloc: New file.
5944         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5945         * doc/glibc-functions/memalign.texi: Likewise.
5947 2020-07-21  Bruno Haible  <bruno@clisp.org>
5949         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5950         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5951         sure PRIPTR_PREFIX is defined to "ll", not "l".
5953 2020-07-21  Bruno Haible  <bruno@clisp.org>
5955         printf-posix: Make an autoconf test more future-proof.
5956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5957         using uintptr_t.
5959 2020-07-20  Bruno Haible  <bruno@clisp.org>
5961         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5962         * modules/list (License): Change to LGPLv2+.
5963         * modules/array-list (License): Likewise.
5964         * modules/carray-list (License): Likewise.
5965         * modules/linked-list (License): Likewise.
5966         * modules/avltree-list (License): Likewise.
5967         * modules/rbtree-list (License): Likewise.
5968         * modules/oset (License): Likewise.
5969         * modules/array-oset (License): Likewise.
5970         * modules/avltree-oset (License): Likewise.
5971         * modules/rbtree-oset (License): Likewise.
5972         * modules/omap (License): Likewise.
5973         * modules/array-omap (License): Likewise.
5974         * modules/avltree-omap (License): Likewise.
5975         * modules/rbtree-omap (License): Likewise.
5977 2020-07-20  Bruno Haible  <bruno@clisp.org>
5979         oset: Add an 'update' operation.
5980         * lib/gl_array_oset.c (gl_array_update): New function.
5981         (gl_array_oset_implementation): Use it.
5982         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5983         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5984         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5985         extracted from gl_tree_nx_add_before.
5986         (gl_tree_nx_add_before): Invoke it.
5987         (gl_tree_add_node_after): New function, extracted from
5988         gl_tree_nx_add_after.
5989         (gl_tree_nx_add_after): Invoke it.
5990         (gl_tree_remove_node_no_free): New function, extracted from
5991         gl_tree_remove_node.
5992         (gl_tree_remove_node): Invoke it.
5993         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5994         extracted from gl_tree_nx_add_before.
5995         (gl_tree_nx_add_before): Invoke it.
5996         (gl_tree_add_node_after): New function, extracted from
5997         gl_tree_nx_add_after.
5998         (gl_tree_nx_add_after): Invoke it.
5999         (gl_tree_remove_node_no_free): New function, extracted from
6000         gl_tree_remove_node.
6001         (gl_tree_remove_node): Invoke it.
6002         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
6003         from gl_tree_iterator_next.
6004         (gl_tree_iterator_next): Invoke it.
6005         (gl_tree_prev_node, gl_tree_update): New functions.
6006         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6007         (gl_avltree_oset_implementation): Use gl_tree_update.
6008         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6009         (gl_rbtree_oset_implementation): Use gl_tree_update.
6010         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
6011         (gl_oset_update): New function.
6012         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
6013         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
6014         * modules/rbtree-oset (configure.ac): Likewise.
6015         * tests/test-oset-update.h: New file.
6016         * tests/test-array_oset.c: Include test-oset-update.h.
6017         (main): Invoke test_update.
6018         * tests/test-avltree_oset.c: Likewise.
6019         * tests/test-rbtree_oset.c: Likewise.
6020         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
6021         * modules/avltree-oset-tests (Files): Likewise.
6022         * modules/rbtree-oset-tests (Files): Likewise.
6023         * tests/test-oset-c++.cc (action): New function.
6024         (main): Test the 'update' member function.
6026 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6028         md5, sha1, sha256, sha512: pacify Autoconf 2.70
6029         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
6030         shell if, so that the argument to AC_CHECK_HEADERS is
6031         a simple string that does not require shell evaluation.
6032         This fixes a warning generated by Autoconf 2.69b.
6034 2020-07-12  Bruno Haible  <bruno@clisp.org>
6036         libgmp: Avoid warning when --without-libgmp is used.
6037         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
6038         GCC >= 8, not for GCC >= 4.6.
6040 2020-07-12  Bruno Haible  <bruno@clisp.org>
6042         libgmp: Link to the correct shared library.
6043         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
6044         * modules/libgmp (Depends-on): Add havelib.
6045         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
6046         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
6048 2020-07-12  Bruno Haible  <bruno@clisp.org>
6050         libgmp tests: Add some safety checks.
6051         * modules/libgmp-tests (Depends-on): Add verify.
6052         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
6053         (main): Verify that gmp.h and libgmp versions match.
6055 2020-07-10  Bruno Haible  <bruno@clisp.org>
6057         unicodeio: Fix wrong result on NetBSD.
6058         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6059         characters also on NetBSD.
6061 2020-07-09  Bruno Haible  <bruno@clisp.org>
6063         unicodeio: Fix wrong result on Solaris 11.
6064         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
6065         via Akim Demaille <akim.demaille@gmail.com> in
6066         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
6067         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6068         characters on Solaris.
6069         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
6070         UTF-8 output or the specified fallback.
6072 2020-07-08  Bruno Haible  <bruno@clisp.org>
6074         unicodeio: Add tests.
6075         * tests/test-unicodeio.c: New file.
6076         * tests/test-unicodeio1.sh: New file.
6077         * tests/test-unicodeio2.sh: New file.
6078         * tests/test-unicodeio3.sh: New file.
6079         * modules/unicodeio-tests: New file.
6081 2020-07-08  Bruno Haible  <bruno@clisp.org>
6083         unicodeio: Document link requirements.
6084         * modules/unicodeio (Link): New section.
6086 2020-07-07  Bruno Haible  <bruno@clisp.org>
6088         doc: Remove support for some very old platforms.
6089         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
6090         * doc/posix-functions/memcpy.texi: Likewise.
6091         * doc/posix-functions/memmove.texi: Likewise.
6092         * doc/posix-functions/memset.texi: Likewise.
6093         * doc/posix-functions/getcwd.texi: Likewise.
6095         memchr: Remove support for some very old platforms.
6096         * m4/memchr-obsolete.m4: Remove file.
6097         * modules/memchr-obsolete: Remove file.
6098         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
6099         absent. Don't define HAVE_MEMCHR.
6100         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
6101         * modules/memchr (Depends-on): Remove memchr-obsolete.
6102         (configure.ac): Assume HAVE_MEMCHR is 1.
6103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6104         HAVE_MEMCHR.
6105         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
6106         * doc/posix-functions/memchr.texi: Don't mention module
6107         'memchr-obsolete'.
6108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6109         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6110         * modules/strnlen (Depends-on): Remove memchr-obsolete.
6112         dup2: Remove support for some very old platforms.
6113         * m4/dup2-obsolete.m4: Remove file.
6114         * modules/dup2-obsolete: Remove file.
6115         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
6116         Don't define HAVE_DUP2.
6117         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
6118         * lib/dup2.c: Likewise.
6119         * modules/dup2 (Depends-on, configure.ac): Likewise.
6120         (Depends-on): Remove dup2-obsolete.
6121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
6122         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
6123         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
6125 2020-07-07  Bruno Haible  <bruno@clisp.org>
6127         canonicalize: Trim module dependencies.
6128         * lib/hash-triple.h: Group declarations.
6129         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
6130         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
6131         (STREQ): Remove macro.
6132         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
6133         * modules/hash-triple-simple: New file, based on modules/hash-triple.
6134         * modules/hash-triple (Files): Remove lib/hash-triple.h.
6135         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
6136         * modules/canonicalize (Depends-on): Remove hash-triple. Add
6137         hash-triple-simple.
6138         * modules/file-set (Depends-on): Likewise.
6140 2020-07-07  Bruno Haible  <bruno@clisp.org>
6142         Clarify dependencies to double-slash-root.
6143         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
6144         (Depends-on): Add double-slash-root.
6145         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
6146         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
6148 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6150         libgmp: new module
6151         The idea is to let programs simply include <gmp.h>, and
6152         so long as they live within the mini-gmp subset they need
6153         not worry about whether the GMP libraries are installed.
6154         * MODULES.html.sh: Mention it.
6155         * config/srclist.txt: Mention files copied from GMP source.
6156         * config/srclistvars.sh (GMP): New var.
6157         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
6158         * modules/libgmp-tests, tests/test-libgmp.c: New files.
6159         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
6161 2020-07-05  Bruno Haible  <bruno@clisp.org>
6163         mkancesdirs: Trim module dependencies.
6164         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
6165         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
6167 2020-07-05  Bruno Haible  <bruno@clisp.org>
6169         getprogname: Trim module dependencies.
6170         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
6171         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
6172         basename-lgpl.
6174 2020-07-05  Bruno Haible  <bruno@clisp.org>
6176         filenamecat-lgpl: Trim module dependencies.
6177         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
6178         dirname.h.
6179         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
6180         basename-lgpl, filename.
6182 2020-07-05  Bruno Haible  <bruno@clisp.org>
6184         backupfile, backup-rename: Trim module dependencies.
6185         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
6186         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
6187         basename-lgpl.
6188         * modules/backup-rename (Depends-on): Likewise.
6190 2020-07-05  Bruno Haible  <bruno@clisp.org>
6192         argp: Trim module dependencies.
6193         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
6194         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
6196 2020-07-05  Bruno Haible  <bruno@clisp.org>
6198         basename-lgpl: New module.
6199         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
6200         lib/basename-lgpl.c.
6201         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
6202         <stdbool.h>, filename.h.
6203         (last_component): Rename a local variable.
6204         * lib/dirname.h: Include basename-lgpl.h.
6205         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
6206         (last_component, base_len): Remove declarations.
6207         * modules/basename-lgpl: New file.
6208         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
6209         (Depends-on): Add basename-lgpl. Remove double-slash-root.
6210         (Makefile.am): Don't compile basename-lgpl.c.
6211         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
6212         not 'dirname'.
6214 2020-07-05  Bruno Haible  <bruno@clisp.org>
6216         dirname, dirname-lgpl: Simplify.
6217         * m4/dirname.m4: Remove file.
6218         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
6219         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
6220         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
6222 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
6224         tests: avoid shadowing warning
6225         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
6227 2020-07-05  Bruno Haible  <bruno@clisp.org>
6229         supersede: Add tests.
6230         * tests/test-supersede.c: New file.
6231         * tests/test-supersede-open.h: New file.
6232         * tests/test-supersede-fopen.h: New file.
6233         * modules/supersede-tests: New file.
6235         supersede: New module.
6236         * lib/supersede.h: New file.
6237         * lib/supersede.c: New file.
6238         * m4/supersede.m4: New file.
6239         * modules/supersede: New file.
6241 2020-07-05  Bruno Haible  <bruno@clisp.org>
6243         Add some copyright headers.
6244         * lib/dev-ino.h: Add copyright header.
6245         * lib/di-set.h: Likewise.
6246         * lib/fchown-stub.c: Likewise.
6247         * lib/file-set.h: Likewise.
6248         * lib/hash-triple.h: Likewise.
6249         * lib/idcache.h: Likewise.
6250         * lib/ino-map.h: Likewise.
6251         * lib/mkancesdirs.h: Likewise.
6252         * lib/scratch_buffer.h: Likewise.
6253         * lib/se-context.in.h: Likewise.
6254         * lib/stdopen.h: Likewise.
6255         * lib/userspec.h: Likewise.
6257 2020-07-04  Bruno Haible  <bruno@clisp.org>
6259         getrandom: Relicense under LGPLv2+.
6260         Paul Eggert's approval is in
6261         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
6262         * modules/getrandom (License): Change to LGPLv2+.
6264 2020-07-04  Bruno Haible  <bruno@clisp.org>
6266         getumask: Add tests.
6267         * tests/test-getumask.c: New file.
6268         * modules/getumask-tests: New file.
6270         getumask: New module.
6271         * lib/sys_stat.in.h (getumask): New declaration.
6272         * lib/getumask.c: New file.
6273         * m4/getumask.m4: New file.
6274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
6275         declared.
6276         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
6277         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
6278         HAVE_GETUMASK.
6279         * modules/getumask: New file.
6280         * tests/test-sys_stat-c++.cc (getumask): Check signature.
6281         * doc/glibc-functions/getumask.texi: New file.
6282         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
6284 2020-07-04  Bruno Haible  <bruno@clisp.org>
6286         clean-temp: Add support for temporary files with given mode.
6287         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
6288         * lib/clean-temp.c (struct try_create_file_params): New type.
6289         (try_create_file): New function.
6290         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
6291         gen_tempname.
6293 2020-07-04  Bruno Haible  <bruno@clisp.org>
6295         clean-temp: Document limitations.
6296         * lib/clean-temp.h: Document limitations.
6298 2020-07-04  Bruno Haible  <bruno@clisp.org>
6300         clean-temp: Add support for temporary files with unpredictable names.
6301         * lib/clean-temp.h (gen_register_open_temp): New declaration.
6302         * lib/clean-temp.c: Include tempname.h.
6303         (gen_register_open_temp): New function.
6304         * modules/tempname (configure.ac): Define a module indicator.
6306 2020-07-04  Bruno Haible  <bruno@clisp.org>
6308         clean-temp: Add support for temporary files anywhere in the file system.
6309         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
6310         cleanup_temporary_file): New declarations.
6311         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
6312         variables.
6313         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
6314         (dir_cleanup_list): Renamed from cleanup_list.
6315         (cleanup_action): Process the file_cleanup_list as well.
6316         (do_init_clean_temp): New function.
6317         (clean_temp_once): New variable.
6318         (init_clean_temp): New function.
6319         (create_temp_dir): Invoke it.
6320         (register_temporary_file, unregister_temporary_file,
6321         cleanup_temporary_file): New functions.
6322         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
6323         argument.
6325 2020-07-04  Bruno Haible  <bruno@clisp.org>
6327         clean-temp: Improve comments.
6328         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6329         fwriteerror_temp, close_stream_temp): Clarify intended use.
6330         * lib/clean-temp.c: Likewise.
6332 2020-07-04  Bruno Haible  <bruno@clisp.org>
6334         clean-temp: Make multithread-safe, part 2.
6335         * lib/fatal-signal.h: Include <signal.h>.
6336         (get_fatal_signal_set): New declaration.
6337         * lib/fatal-signal.c (get_fatal_signal_set): New function.
6338         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
6339         (struct closeable_fd): New type.
6340         (fatal_signal_set): New variable.
6341         (init_fatal_signal_set): New function.
6342         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
6343         (cleanup_action): Invoke asyncsafe_close instead of close.
6344         (create_temp_dir): Invoke init_fatal_signal_set.
6345         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
6346         element.
6347         (unregister_fd): Remove function.
6348         (close_temp): Cleanup descriptors list on the fly. Invoke
6349         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
6350         (fclose_variant_temp): New function.
6351         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
6352         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
6354 2020-07-04  Bruno Haible  <bruno@clisp.org>
6356         clean-temp: Make multithread-safe, part 1.
6357         * lib/clean-temp.c: Include glthread/lock.h.
6358         (cleanup_list_lock): New variable.
6359         (register_temp_file, unregister_temp_file, register_temp_subdir,
6360         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
6361         (create_temp_dir): Likewise. Don't free the old array.
6362         (descriptors_lock): New variable.
6363         (register_fd, unregister_fd): Use it.
6364         * modules/clean-temp (Depends-on): Add lock.
6366 2020-07-04  Bruno Haible  <bruno@clisp.org>
6368         fatal-signal: Make multithread-safe.
6369         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6370         (do_init_fatal_signal_set): New function, extracted from
6371         init_fatal_signal_set.
6372         (fatal_signal_set_once): New variable.
6373         (init_fatal_signal_set): Use gl_once.
6375 2020-07-03  Bruno Haible  <bruno@clisp.org>
6377         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
6378         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
6379         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
6380         <bcrypt.h>.
6382 2020-07-03  Bruno Haible  <bruno@clisp.org>
6384         dfa tests: Follow common file naming conventions.
6385         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
6386         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
6387         * tests/test-dfa-invalid-char-class.sh: Renamed from
6388         tests/dfa-invalid-char-class.sh. Update.
6389         * modules/dfa-tests (Files, Makefile.am): Update.
6391 2020-07-03  Bruno Haible  <bruno@clisp.org>
6393         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
6394         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
6395         the GCC extended asm syntax also for the Sun Studio 12 compilers.
6397 2020-07-03  Bruno Haible  <bruno@clisp.org>
6399         asyncsafe-spin: Reduce code duplication.
6400         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
6401         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
6402         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
6404 2020-07-03  Bruno Haible  <bruno@clisp.org>
6406         lchmod: Simplify after 2020-02-22 change.
6407         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6409 2020-07-03  Bruno Haible  <bruno@clisp.org>
6411         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
6412         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
6414 2020-07-03  Bruno Haible  <bruno@clisp.org>
6416         dfa: Make sure the compiler does not barf on 'inline'.
6417         * modules/dfa (configure.ac): Require AC_C_INLINE.
6419 2020-07-03  Bruno Haible  <bruno@clisp.org>
6421         bitset: Make sure the compiler does not barf on 'inline'.
6422         * modules/bitset (configure.ac): New section.
6424 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6426         manywarnings: improve port to GCC 10.1
6427         * build-aux/gcc-warning.spec: Also list warnings that are default
6428         or are enabled by already-given flags.  This lets us speed up
6429         checking for attributes, and makes the generated compilation
6430         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6431         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6432         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6433         to shell variables that may have long values.
6434         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6435         consequences of other flags, to speed up checking and
6436         shorten commands.
6438         tests: pacify gcc -fanalyzer on zerosize_ptr
6439         * tests/test-memcasecmp.c (main):
6440         * tests/test-memchr.c (main):
6441         * tests/test-memchr2.c (main):
6442         * tests/test-memcmp.c (main):
6443         * tests/test-memmem.c (main):
6444         * tests/test-memrchr.c (main):
6445         * tests/unistr/test-chr.h (main):
6446         * tests/unistr/test-cmp.h (test_cmp):
6447         Check whether zerosize_ptr returns NULL before using it.
6448         This pacifies GCC 10.1’s new fanalyzer option, and matches
6449         other uses of zerosize_ptr.
6451 2020-07-01  Bruno Haible  <bruno@clisp.org>
6453         asyncsafe-spin: Add tests.
6454         * tests/test-asyncsafe-spin1.c: New file.
6455         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6456         tests/test-pthread-spin.c.
6457         * modules/asyncsafe-spin-tests: New file.
6459 2020-07-01  Bruno Haible  <bruno@clisp.org>
6461         asyncsafe-spin: New module.
6462         * lib/asyncsafe-spin.h: New file.
6463         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6464         * modules/asyncsafe-spin: New file.
6466 2020-07-01  Bruno Haible  <bruno@clisp.org>
6468         windows-spin: Fix race condition on multiprocessor systems.
6469         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6471 2020-07-01  Bruno Haible  <bruno@clisp.org>
6473         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6474         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6475         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6476         an implementation based on other GCC built-ins.
6478 2020-07-01  Bruno Haible  <bruno@clisp.org>
6480         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6481         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6482         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6483         lock byte.
6485 2020-07-01  Bruno Haible  <bruno@clisp.org>
6487         pthread-spin: Add error checking.
6488         * lib/pthread-spin.c: Include <stdbool.h>.
6489         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6490         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6491         the unlocks.
6492         * modules/pthread-spin (Depends-on): Add stdbool.
6494 2020-07-01  Bruno Haible  <bruno@clisp.org>
6496         pthread-spin: Add tests.
6497         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6498         * modules/pthread-spin-tests: New file.
6500 2020-07-01  Bruno Haible  <bruno@clisp.org>
6502         tests: Reduce code duplication.
6503         * tests/atomic-int-posix.h: New file, extracted from
6504         tests/test-pthread-mutex.c.
6505         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6506         * tests/test-pthread-rwlock.c: Likewise.
6507         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6508         * modules/pthread-rwlock-tests (Files): Likewise.
6510 2020-07-01  Bruno Haible  <bruno@clisp.org>
6512         tests: Refactor.
6513         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6514         * tests/test-mtx.c: Include it. Remove the corresponding code.
6515         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6517 2020-07-01  Bruno Haible  <bruno@clisp.org>
6519         tests: Refactor.
6520         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6521         * tests/test-lock.c: Include it. Remove the corresponding code.
6522         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6524 2020-06-29  Bruno Haible  <bruno@clisp.org>
6526         sys_socket: Don't define socklen_t if it is already defined on mingw.
6527         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6528         <https://savannah.gnu.org/bugs/?57725>,
6529         by Rahul Das <bokul_4u@yahoo.com> in
6530         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6531         and by Eli Zaretskii <eliz@gnu.org> in
6532         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6533         * lib/sys_socket.in.h (socklen_t): Remove definition.
6535 2020-06-29  Bruno Haible  <bruno@clisp.org>
6537         alloca-opt: Fix warning on mingw.
6538         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6539         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6540         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6541         whether alloca is defined.
6543 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6545         getrandom: do not depend on ‘open’ on mingw
6546         Similarly for at-internal, getloadavg.  These modules do not call
6547         the ‘open’ function when they are compiled on mingw.  On mingw,
6548         this avoids having to compile open.c when building Emacs, which
6549         does its own thing with ‘open’.
6550         * modules/at-internal, modules/getloadavg, modules/getrandom:
6551         (Depends-on): Don’t depend on ‘open’ on mingw.
6552         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6553         * modules/getloadavg (Depends-on):
6554         Depend on intprops, open, stdbool, stdlib only if compiling
6555         getloadavg.c.
6557 2020-06-28  Bruno Haible  <bruno@clisp.org>
6559         doc: Add a note about sigprocmask vs. pthread_sigmask.
6560         * doc/posix-functions/sigprocmask.texi: Add note.
6562 2020-06-28  Bruno Haible  <bruno@clisp.org>
6564         getrandom: Fix compilation errors on older versions of mingw.
6565         Reported by Eli Zaretskii <eliz@gnu.org> in
6566         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6567         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6568         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6569         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6570         BCryptGenRandom ourselves.
6572 2020-06-28  Bruno Haible  <bruno@clisp.org>
6574         clean-temp: Fix wrong errno in error message.
6575         * lib/clean-temp.c (create_temp_dir): Save errno around
6576         unblock_fatal_signals call.
6578 2020-06-27  Bruno Haible  <bruno@clisp.org>
6580         fatal-signal: Make multithread-safe.
6581         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6583 2020-06-27  Bruno Haible  <bruno@clisp.org>
6585         clean-temp: Don't force deletion of temporary files on native Windows.
6586         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6587         argument.
6588         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6589         * NEWS: Mention the change.
6590         * lib/javacomp.c (write_temp_file): Update.
6592 2020-06-27  Bruno Haible  <bruno@clisp.org>
6594         fatal-signal: Make multithread-safe.
6595         * lib/fatal-signal.c: Include glthread/lock.h.
6596         (at_fatal_signal_lock): New variable.
6597         (at_fatal_signal): Use it.
6598         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6599         (block_fatal_signals, unblock_fatal_signals): Use them.
6600         * modules/fatal-signal (Depends-on): Add lock.
6602 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6604         getloadavg: don’t depend on fopen-gnu
6605         This is for Emacs, which does not need fopen-gnu for anything else,
6606         and which would need it only on a NetBSD platform where getloadavg
6607         does not work (does that even happen?).
6608         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6609         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6611         * tests/test-getloadavg.c (main): Fix typo.
6613 2020-06-27  Bruno Haible  <bruno@clisp.org>
6615         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6616         * modules/tempname (Link): New section.
6617         * modules/mkdtemp (Link): Likewise.
6618         * modules/clean-temp (Link): Likewise.
6619         * modules/mkstemp (Link): Likewise.
6620         * modules/stdlib-safer (Link): Likewise.
6621         * modules/mkstemps (Link): Likewise.
6622         * modules/mkostemp (Link): Likewise.
6623         * modules/mkostemps (Link): Likewise.
6624         * modules/tmpfile (Link): Likewise.
6625         * modules/tmpfile-safer (Link): Likewise.
6626         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6627         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6628         $(LIB_GETRANDOM).
6629         * NEWS: Mention the changes.
6631 2020-06-27  Bruno Haible  <bruno@clisp.org>
6633         fopen-gnu: Simplify code.
6634         * lib/fopen.c: Include <stdbool.h>.
6635         (rpl_fopen): Use a single variable open_flags instead of
6636         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6637         * modules/fopen (Depends-on): Add stdbool.
6639 2020-06-26  Bruno Haible  <bruno@clisp.org>
6641         canonicalize: Improve documentation.
6642         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6643         return convention.
6645 2020-06-26  Bruno Haible  <bruno@clisp.org>
6647         xgetcwd: Improve documentation.
6648         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6650 2020-06-26  Bruno Haible  <bruno@clisp.org>
6652         getcwd: Improve documentation.
6653         * lib/getcwd.c (__getcwd): Document the failure return convention.
6655 2020-06-26  Bruno Haible  <bruno@clisp.org>
6657         fchdir: Improve documentation.
6658         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6659         convention.
6661 2020-06-26  Bruno Haible  <bruno@clisp.org>
6663         filenamecat-lgpl: Set errno upon failure.
6664         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6665         return convention.
6666         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6668 2020-06-26  Bruno Haible  <bruno@clisp.org>
6670         areadlink-with-size: Set errno upon failure.
6671         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6672         fails.
6673         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6675 2020-06-26  Bruno Haible  <bruno@clisp.org>
6677         copy-file: Shrink dependencies.
6678         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6679         qcopy-acl.
6681 2020-06-26  Bruno Haible  <bruno@clisp.org>
6683         doc: Mention declaration fixes implemented by some modules.
6684         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6685         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6686         declaration appear in <unistd.h>.
6687         * doc/posix-functions/dup.texi: Likewise.
6688         * doc/posix-functions/dup2.texi: Likewise.
6689         * doc/posix-functions/gethostname.texi: Likewise.
6690         * doc/posix-functions/isatty.texi: Likewise.
6691         * doc/posix-functions/lseek.texi: Likewise.
6692         * doc/posix-functions/unlink.texi: Likewise.
6693         * doc/posix-functions/read.texi: Mention the module 'read'.
6694         * doc/posix-functions/write.texi: Mention the effects of the module
6695         'write'.
6697 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6699         c-dtoastr, c-ldtoastr: new modules
6700         These modules provide the same functionality as the modules
6701         dtoastr and ldtoastr except for the formatting taking place in the
6702         C locale.
6703         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6704         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6705         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6706         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6707         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6708         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6709         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6710         modules/c-ldtoastr-tests: New files.
6711         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6712         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6714 2020-06-21  Bruno Haible  <bruno@clisp.org>
6716         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6717         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6719 2020-06-16  Bruno Haible  <bruno@clisp.org>
6721         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6722         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6724 2020-06-16  Bruno Haible  <bruno@clisp.org>
6726         thread, thrd: Avoid a compiler warning.
6727         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6729 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6731         windows-thread: Avoid a compiler warning.
6732         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6733         void.
6734         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6736 2020-06-15  Bruno Haible  <bruno@clisp.org>
6738         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6739         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6740         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6741         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6742         first.
6744 2020-06-06  Bruno Haible  <bruno@clisp.org>
6746         calloc-gnu tests: Avoid a test failure with clang.
6747         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6748         'volatile', to defeat compiler optimizations.
6750 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6752         getloadavg: fix double-increment bug
6753         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6754         Linux without glibc, Android, Cygwin.  This fixes a bug I
6755         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6756         Problem and fix reported by Semen Verchenko in:
6757         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6759         tempname: use getrandom, not getentropy
6760         This removes a dependency, as getentropy depends on getrandom.
6761         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6762         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6763         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6765 2020-06-01  Bruno Haible  <bruno@clisp.org>
6767         doc: New chapter 'Multithreading'.
6768         * doc/multithread.texi: New file.
6769         * doc/gnulib.texi: Include it.
6771 2020-06-01  Bruno Haible  <bruno@clisp.org>
6773         doc: Move 'Running self-tests under valgrind' section.
6774         * doc/gnulib.texi (Build Infrastructure Modules): Include
6775         valgrind-tests.texi here...
6776         (Miscellaneous Notes): ... not here.
6778 2020-06-01  Bruno Haible  <bruno@clisp.org>
6780         doc: Move 'Visual Studio Compatibility' section.
6781         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6782         here...
6783         (Build Infrastructure Modules): ... not here.
6785 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6787         doc: improve randomness discussion
6788         Inspired by comments from Jeffrey Walton in:
6789         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6790         * doc/glibc-functions/getentropy.texi (getentropy):
6791         * doc/glibc-functions/getrandom.texi (getrandom):
6792         Improve discussion of problems with "random" data,
6793         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6795 2020-06-01  Bruno Haible  <bruno@clisp.org>
6797         doc: Fix Texinfo syntax error.
6798         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6800 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6802         doc: Change '.' to '@.' where appropriate.
6803         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6804         * doc/glibc-functions/fstatfs.texi: Likewise.
6805         * doc/glibc-functions/fts_children.texi: Likewise.
6806         * doc/glibc-functions/fts_read.texi: Likewise.
6807         * doc/glibc-functions/getdirentries.texi: Likewise.
6808         * doc/glibc-functions/mkostemp.texi: Likewise.
6809         * doc/glibc-functions/mkostemps.texi: Likewise.
6810         * doc/glibc-functions/mkstemps.texi: Likewise.
6811         * doc/glibc-functions/preadv.texi: Likewise.
6812         * doc/glibc-functions/pwritev.texi: Likewise.
6813         * doc/glibc-functions/sendfile.texi: Likewise.
6814         * doc/glibc-functions/statfs.texi: Likewise.
6815         * doc/gnulib-intro.texi: Likewise.
6816         * doc/gnulib-tool.texi: Likewise.
6817         * doc/intprops.texi: Likewise.
6818         * doc/lib-symbol-visibility.texi: Likewise.
6819         * doc/licenses-texi.texi: Likewise.
6820         * doc/pastposix-functions/bcmp.texi: Likewise.
6821         * doc/pastposix-functions/bcopy.texi: Likewise.
6822         * doc/pastposix-functions/bzero.texi: Likewise.
6823         * doc/pastposix-functions/ecvt.texi: Likewise.
6824         * doc/pastposix-functions/fcvt.texi: Likewise.
6825         * doc/pastposix-functions/ftime.texi: Likewise.
6826         * doc/pastposix-functions/gcvt.texi: Likewise.
6827         * doc/pastposix-functions/getwd.texi: Likewise.
6828         * doc/pastposix-functions/index.texi: Likewise.
6829         * doc/pastposix-functions/mktemp.texi: Likewise.
6830         * doc/pastposix-functions/rindex.texi: Likewise.
6831         * doc/pastposix-functions/wcswcs.texi: Likewise.
6832         * doc/posix-functions/aio_cancel.texi: Likewise.
6833         * doc/posix-functions/aio_error.texi: Likewise.
6834         * doc/posix-functions/aio_fsync.texi: Likewise.
6835         * doc/posix-functions/aio_read.texi: Likewise.
6836         * doc/posix-functions/aio_return.texi: Likewise.
6837         * doc/posix-functions/aio_suspend.texi: Likewise.
6838         * doc/posix-functions/aio_write.texi: Likewise.
6839         * doc/posix-functions/creat.texi: Likewise.
6840         * doc/posix-functions/ctime.texi: Likewise.
6841         * doc/posix-functions/daylight.texi: Likewise.
6842         * doc/posix-functions/fgetpos.texi: Likewise.
6843         * doc/posix-functions/fopen.texi: Likewise.
6844         * doc/posix-functions/freopen.texi: Likewise.
6845         * doc/posix-functions/fseeko.texi: Likewise.
6846         * doc/posix-functions/fsetpos.texi: Likewise.
6847         * doc/posix-functions/fstatat.texi: Likewise.
6848         * doc/posix-functions/fstatvfs.texi: Likewise.
6849         * doc/posix-functions/ftello.texi: Likewise.
6850         * doc/posix-functions/ftruncate.texi: Likewise.
6851         * doc/posix-functions/getrlimit.texi: Likewise.
6852         * doc/posix-functions/lio_listio.texi: Likewise.
6853         * doc/posix-functions/localtime.texi: Likewise.
6854         * doc/posix-functions/lseek.texi: Likewise.
6855         * doc/posix-functions/mkstemp.texi: Likewise.
6856         * doc/posix-functions/mktime.texi: Likewise.
6857         * doc/posix-functions/open.texi: Likewise.
6858         * doc/posix-functions/openat.texi: Likewise.
6859         * doc/posix-functions/opendir.texi: Likewise.
6860         * doc/posix-functions/pread.texi: Likewise.
6861         * doc/posix-functions/pwrite.texi: Likewise.
6862         * doc/posix-functions/readdir.texi: Likewise.
6863         * doc/posix-functions/readdir_r.texi: Likewise.
6864         * doc/posix-functions/scandir.texi: Likewise.
6865         * doc/posix-functions/seekdir.texi: Likewise.
6866         * doc/posix-functions/setrlimit.texi: Likewise.
6867         * doc/posix-functions/statvfs.texi: Likewise.
6868         * doc/posix-functions/strftime.texi: Likewise.
6869         * doc/posix-functions/telldir.texi: Likewise.
6870         * doc/posix-functions/timezone.texi: Likewise.
6871         * doc/posix-functions/tmpfile.texi: Likewise.
6872         * doc/posix-functions/truncate.texi: Likewise.
6873         * doc/posix-functions/tzname.texi: Likewise.
6874         * doc/posix-functions/wcsftime.texi: Likewise.
6875         * doc/windows-sockets.texi: Likewise.
6877 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6879         getrandom-tests: do not assume GRND_RANDOM yields short read
6880         * tests/test-getrandom.c (main): Omit assertion that
6881         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6882         when b’s size is 100000.  This assertion fails with Linux kernel
6883         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6884         The separate blocking pool is going away in the Linux kernel, and
6885         they’ve added a flag GRND_INSECURE instead; see:
6886         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6887         The assertion was iffy anyway; what’s to prevent a kernel from
6888         lazily filling a large buffer with random bytes?
6890         read-file-test: pacify --enable-gcc-warnings
6891         * tests/test-read-file.c (test_read_file): Now static.
6893         tempname: merge from glibc and coreutils
6894         Also, merge in Gnulib’s more-recent methods of making it easier
6895         to share between Gnulib and glibc, and fix a few randomness
6896         glitches.
6897         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6898         (__set_errno): Remove; libc-config.h does that for us.
6899         Do not include <sys/time.h>.
6900         (__secure_getenv) [_LIBC]: New macro.
6901         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6902         (RANDOM_BITS): Rewrite.
6903         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6904         (random_value): New typedef.
6905         (try_file, try_dir, try_nocreate): Move up.
6906         (gen_tempname_len, try_tempname_len): New functions.
6907         (gen_tempname_len): Use a constant array rather than a switch.
6908         (try_tempname_len): Don’t assume string length fits in int.
6909         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6910         has enough entropy (it’s a bit short).
6911         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6912         (__try_tempname): Rewrite in terms of try_tempname_len.
6913         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6914         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6915         Add getentropy, libc-config.
6917 2020-05-31  Bruno Haible  <bruno@clisp.org>
6919         getrandom, getentropy: Mention the crypto/gc-random module.
6920         Suggested by Simon Josefsson in
6921         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6922         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6923         crypto/gc-random module.
6924         * doc/glibc-functions/getentropy.texi: Likewise.
6926 2020-05-31  Bruno Haible  <bruno@clisp.org>
6928         getentropy: Enhance tests.
6929         * tests/test-getentropy.c (main): Add one more test.
6930         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6932 2020-05-31  Bruno Haible  <bruno@clisp.org>
6934         getentropy: Work around a macOS and Solaris problem.
6935         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6936         'getentropy' module.
6937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6938         UNISTD_H_HAVE_SYS_RANDOM_H.
6939         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6940         UNISTD_H_HAVE_SYS_RANDOM_H.
6941         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6942         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6943         problem. List more platforms.
6945 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6947         fnmatch: merge from glibc
6948         Also, merge in Gnulib’s more-recent methods of making it easier
6949         to share between Gnulib and glibc.
6950         * lib/fnmatch.c: Reorder includes to match glibc better.
6951         Include libc-config.h instead of config.h.
6952         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6953         Do not include "../locale/elem-hash.h" if _LIBC.
6954         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6955         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6956         Include intprops.h, since glibc has it now.
6957         (SIZE_MAX): Remove; use (size_t) -1 instead.
6958         Omit the "Comment out all this code" ifdef, since Gnulib
6959         has never really needed it.
6960         (STREQ): Remove; no longer used.
6961         (__libc_use_alloca, alloca, alloca_account): Define as
6962         needed if !_LIBC.
6963         (ISWCTYPE): Remove; all uses replaced by iswctype.
6964         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6965         (internal_function): Remove.  All uses removed.
6966         (STRUCT): New macro.
6967         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6968         (WMEMCMP): New macro.
6969         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6970         and <locale/weightwc.h>.
6971         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6972         __builtin_expect.  Check for integer overflow more
6973         systematically.  Account for alloca storage better when
6974         recursive.  Use strnlen instead of strlen for efficiency.
6975         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6976         (struct STRUCT): New type.
6977         (FCT, EXT): New ENDS and ALLOCA_USED args.
6978         All callers changed.
6979         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6980         Simplify by assuming WIDE_CHAR_SUPPORT.
6981         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6982         Cast cold to UCHAR to avoid signedness warning.
6983         (END): Check for invalid pattern.
6984         (EXT): Improve alloca/malloc checking (taken from glibc),
6985         and improve it some more by using intprops.h and checking
6986         for integer overflow and using bool for booleans.
6987         * lib/libc-config.h (compat_symbol): New macro.
6988         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6989         acceptable to non-GCC when a trailing semicolon is added.
6990         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6991         libc-config, strnlen.  Remove alloca.
6993 2020-05-31  Bruno Haible  <bruno@clisp.org>
6995         getrandom: Doc and test tweaks.
6996         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6997         it sets errno when failing.
6998         * tests/test-getrandom.c (main): Disable the high-quality check on those
6999         platforms on which it fails.
7000         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
7001         Cygwin to the list of platforms that don't have the function. Add a note
7002         about the quality of the result.
7003         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
7004         declaration; this is fixed by module 'getrandom'.
7006 2020-05-31  Bruno Haible  <bruno@clisp.org>
7008         getrandom: Add support for native Windows.
7009         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
7010         <wincrypt.h>.
7011         (CRYPT_VERIFY_CONTEXT): New macro.
7012         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
7013         'A'.
7014         (GetProcAddress): New macro.
7015         (BCryptGenRandomFuncType): New type.
7016         (BCryptGenRandomFunc, initialized): New variables.
7017         (initialize): New function.
7018         (getrandom): On native Windows, use <bcrypt.h> API when available, and
7019         <wincrypt.h> API as fallback.
7020         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
7021         * modules/getrandom (Link): New section.
7022         * modules/getentropy (Link): Likewise.
7023         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
7024         $(LIB_GETRANDOM).
7025         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
7026         $(LIB_GETRANDOM).
7027         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
7028         against $(LIB_GETRANDOM).
7029         * doc/glibc-functions/getrandom.texi: Mention the native Windows
7030         support.
7032 2020-05-31  Bruno Haible  <bruno@clisp.org>
7034         getrandom: Simplify the determination of the random number devices.
7035         Suggested by Paul Eggert in
7036         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
7037         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
7038         macros.
7039         * modules/getrandom (Depends-on): Remove crypto/gc-random.
7041 2020-05-31  Bruno Haible  <bruno@clisp.org>
7043         crypto/gc-random: Fix list of crypto devices for Solaris.
7044         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
7046 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
7048         list: fix GCC warnings
7049         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
7050         (gl_tree_next_node, gl_tree_node_nx_set_value)
7051         (gl_tree_previous_node, gl_tree_next_node):
7052         Mark unused arguments.
7053         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
7054         * lib/gl_anylinked_list2.h (gl_linked_node_value)
7055         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
7057         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
7058         the same variable name in nested scopes.
7060 2020-05-31  Bruno Haible  <bruno@clisp.org>
7062         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
7063         Reported by Akim Demaille in
7064         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
7065         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
7066         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
7067         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
7068         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
7069         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
7071 2020-05-30  Bruno Haible  <bruno@clisp.org>
7073         wmemchr: Relicense under LGPLv2+.
7074         * modules/wmemchr (License): Set to LGPLv2+.
7076 2020-05-30  Bruno Haible  <bruno@clisp.org>
7078         wmempcpy: New module.
7079         Reported by Paul Eggert in
7080         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
7081         * lib/wchar.in.h (wmempcpy): New declaration.
7082         * lib/wmempcpy.c: New file.
7083         * m4/wmempcpy.m4: New file.
7084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
7085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
7086         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
7087         HAVE_WMEMPCPY.
7088         * modules/wmempcpy: New file.
7089         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
7090         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
7091         * modules/mempcpy (Description): Fix typo.
7093 2020-05-30  Bruno Haible  <bruno@clisp.org>
7095         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
7096         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
7098 2020-05-30  Bruno Haible  <bruno@clisp.org>
7100         sys_random: Work around macOS bug.
7101         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
7102         <stdlib.h> before <sys/random.h>.
7103         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
7104         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
7105         first.
7106         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
7108 2020-05-30  Bruno Haible  <bruno@clisp.org>
7110         getrandom: Override incompatible system function on Solaris 11.
7111         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
7112         * lib/getrandom.c (getrandom): When the system has getrandom, just
7113         invoke it.
7114         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
7115         system's getrandom function's prototype is not the expected one.
7116         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
7117         REPLACE_GETRANDOM.
7118         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
7119         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
7120         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
7121         EAGAIN.
7122         * doc/glibc-functions/getrandom.texi: Mention the new module and the
7123         Solaris problem.
7125 2020-05-30  Bruno Haible  <bruno@clisp.org>
7127         sys_random: Add C++ tests.
7128         * tests/test-sys_random-c++.cc: New file.
7129         * modules/sys_random-c++-tests: New file.
7130         * modules/sys_random-tests (Depends-on): Depend on it.
7132         sys_random: Add tests.
7133         * tests/test-sys_random.c: New file.
7134         * modules/sys_random-tests: New file.
7136         sys_random: New module.
7137         * lib/sys_random.in.h: Use the common idioms for overridable header
7138         files.
7139         * m4/sys_random_h.m4: New file.
7140         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
7141         * modules/sys_random: New file.
7142         * modules/getrandom (Files): Remove lib/sys_random.in.h.
7143         (Depends-on): Add sys_random.
7144         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
7145         gl_UNISTD_MODULE_INDICATOR.
7146         (Makefile.am): Don't generate sys/random.h here.
7147         * doc/glibc-headers/sys_random.texi: New file.
7148         * doc/gnulib.texi: Include it.
7150 2020-05-30  Bruno Haible  <bruno@clisp.org>
7152         unistd: Remove conflicting declaration of getrandom().
7153         * lib/unistd.in.h (getrandom): Remove declaration.
7154         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
7155         declared.
7156         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
7157         HAVE_GETRANDOM.
7158         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
7159         HAVE_GETRANDOM.
7161 2020-05-30  Bruno Haible  <bruno@clisp.org>
7163         getrandom: Add tests.
7164         * tests/test-getrandom.c: New file.
7165         * modules/getrandom-tests: New file.
7167 2020-05-30  Bruno Haible  <bruno@clisp.org>
7169         crypto/gc-random: Fix link error on MSVC.
7170         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
7171         * modules/crypto/gc-random (Link): New section.
7172         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
7173         $(LIB_GC_RANDOM).
7175 2020-05-30  Bruno Haible  <bruno@clisp.org>
7177         Don't assume that UNICODE is not defined.
7178         Many Windows API functions are defined differently (redirecting to a
7179         function with suffix 'W') if the application defines the macro UNICODE
7180         than by default (redirecting to a function with suffix 'A').
7181         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
7182         variant with suffix 'A'.
7183         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
7184         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
7185         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
7186         * lib/getlogin.c (GetUserName): Likewise.
7187         * lib/getlogin_r.c (GetUserName): Likewise.
7188         * lib/gettimeofday.c (LoadLibrary): Likewise.
7189         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
7190         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
7191         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
7192         * lib/mountlist.c (GetDriveType): Likewise.
7193         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
7194         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
7195         Likewise.
7196         * lib/physmem.c (GetModuleHandle): Likewise.
7197         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7198         PeekMessage, DispatchMessage): Likewise.
7199         * lib/progreloc.c (GetModuleFileName): Likewise.
7200         * lib/putenv.c (SetEnvironmentVariable): Likewise.
7201         * lib/read.c (GetNamedPipeHandleState): Likewise.
7202         * lib/readdir.c (FindNextFile): Likewise.
7203         * lib/relocatable.c (GetModuleFileName): Likewise.
7204         * lib/rename.c (MoveFileEx): Likewise.
7205         * lib/rewinddir.c (FindFirstFile): Likewise.
7206         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7207         PeekMessage, DispatchMessage): Likewise.
7208         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
7209         * lib/socket.c (WSASocket): Likewise.
7210         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
7211         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
7212         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
7213         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
7214         * lib/tmpdir.c (GetTempPath): Likewise.
7215         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
7216         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
7217         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
7218         * lib/windows-cond.c (CreateEvent): Likewise.
7219         * lib/windows-rwlock.c (CreateEvent): Likewise.
7220         * lib/windows-timedmutex.c (CreateEvent): Likewise.
7221         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
7222         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
7223         * lib/write.c (GetNamedPipeHandleState): Likewise.
7225 2020-05-30  Bruno Haible  <bruno@clisp.org>
7227         physmem: Fix compilation errors on MSVC.
7228         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
7229         * modules/physmem (Depends-on): Add unistd.
7231 2020-05-29  Bruno Haible  <bruno@clisp.org>
7233         gnulib-tool: Fix link errors with a particular set of modules on mingw.
7234         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
7235         LDADD a second time, after the second occurrence of libtests.a.
7236         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
7238 2020-05-29  Bruno Haible  <bruno@clisp.org>
7240         fnmatch: Rely on more gnulib modules.
7241         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
7242         wmempcpy, mempcpy.
7243         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
7244         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
7245         HAVE_MEMPCPY are all 1.
7246         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
7247         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
7249 2020-05-29  Bruno Haible  <bruno@clisp.org>
7251         Avoid dynamic lookup of Windows API functions when possible.
7252         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
7253         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
7254         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
7255         (use_win32_p): Define differently.
7256         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
7257         CreateHardLinkFunc, initialized, initialize): Don't define in a build
7258         for Windows XP or higher.
7260 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7262         read-file: disable buffering if RF_SENSITIVE is set
7263         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
7264         Suggested by Glenn Strauss.
7265         (fread_file): Suggest calling setvbuf before calling this
7266         function.  Suggested by Bruno Haible.
7268 2020-05-29  Bruno Haible  <bruno@clisp.org>
7270         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
7271         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
7272         program.
7273         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
7274         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
7275         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
7276         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
7278 2020-05-29  Bruno Haible  <bruno@clisp.org>
7280         Fix compilation error on native Windows (regression from 2020-05-28).
7281         Reported by Daiki Ueno.
7282         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
7283         macro when not using dynamic loading.
7284         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
7285         QueryFullProcessImageNameFunc): Likewise.
7286         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
7287         GetFinalPathNameByHandleFunc): Likewise.
7289 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7291         fopen-gnu-tests: fix "\x" escape usage
7292         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
7294 2020-05-28  Bruno Haible  <bruno@clisp.org>
7296         Avoid dynamic loading of Windows API functions when possible.
7297         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7298         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
7299         * lib/gettimeofday.c (GetProcAddress,
7300         GetSystemTimePreciseAsFileTimeFuncType,
7301         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
7302         define in a build for Windows 8 or higher.
7303         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
7304         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
7305         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
7306         in a build for Windows Vista or higher.
7307         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
7308         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
7309         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
7311 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7313         explicit_bzero-tests: improve -Wmissing-declarations pacification
7314         * tests/test-explicit_bzero.c: Now noinline.
7315         Suggested by Bruno Haible in:
7316         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
7318 2020-05-28  Bruno Haible  <bruno@clisp.org>
7320         Fix build errors due to read-file changes (regression from 2020-05-27).
7321         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
7322         invocation.
7323         * tests/test-sameacls.c (main): Likewise.
7324         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
7325         read_binary_file.
7326         * tests/test-pipe-filter-ii1.c (main): Likewise.
7328 2020-05-28  Bruno Haible  <bruno@clisp.org>
7330         fts: Make more robust in multithreaded applications.
7331         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
7332         * modules/fts (Depends-on): Add 'open'.
7334 2020-05-28  Bruno Haible  <bruno@clisp.org>
7336         relocatable-prog: Make more robust in multithreaded applications.
7337         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
7338         relocatable-prog-wrapper.
7339         (find_executable): Pass an O_CLOEXEC flag to open().
7340         * modules/relocatable-prog (Depends-on): Add 'open'.
7342 2020-05-28  Bruno Haible  <bruno@clisp.org>
7344         getloadavg: Make more robust in multithreaded applications.
7345         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
7346         Simplify use of O_CLOEXEC.
7347         * modules/getloadavg (Depends-on): Add 'open'.
7349 2020-05-28  Bruno Haible  <bruno@clisp.org>
7351         vma-iter: Make more robust in multithreaded applications.
7352         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
7353         open().
7354         * modules/vma-iter (Depends-on): Add 'open'.
7356 2020-05-28  Bruno Haible  <bruno@clisp.org>
7358         truncate: Make more robust in multithreaded applications.
7359         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
7361 2020-05-28  Bruno Haible  <bruno@clisp.org>
7363         pagealign_alloc: Make more robust in multithreaded applications.
7364         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
7365         open().
7366         * modules/pagealign_alloc (Depends-on): Add 'open'.
7368 2020-05-28  Bruno Haible  <bruno@clisp.org>
7370         openat: Make more robust in multithreaded applications.
7371         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
7373 2020-05-28  Bruno Haible  <bruno@clisp.org>
7375         at-internal: Make more robust in multithreaded applications.
7376         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
7377         open().
7379 2020-05-28  Bruno Haible  <bruno@clisp.org>
7381         mountlist: Make more robust in multithreaded applications.
7382         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
7383         open().
7384         * modules/mountlist (Depends-on): Add 'open'.
7386 2020-05-28  Bruno Haible  <bruno@clisp.org>
7388         login_tty: Make more robust in multithreaded applications.
7389         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
7390         * modules/login_tty (Depends-on): Add 'open'.
7392 2020-05-28  Bruno Haible  <bruno@clisp.org>
7394         javacomp: Make more robust in multithreaded applications.
7395         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
7396         open().
7397         * modules/javacomp (Depends-on): Add 'open'.
7399 2020-05-28  Bruno Haible  <bruno@clisp.org>
7401         getprogname: Make more robust in multithreaded applications.
7402         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
7403         * modules/getprogname (Depends-on): Add 'open'.
7405 2020-05-28  Bruno Haible  <bruno@clisp.org>
7407         get_progname_of: Make more robust in multithreaded applications.
7408         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
7409         open().
7410         * modules/get_progname_of (Depends-on): Add 'open'.
7412 2020-05-28  Bruno Haible  <bruno@clisp.org>
7414         get_ppid_of: Make more robust in multithreaded applications.
7415         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
7416         * modules/get_ppid_of (Depends-on): Add 'open'.
7418 2020-05-28  Bruno Haible  <bruno@clisp.org>
7420         get-rusage-as: Make more robust in multithreaded applications.
7421         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7422         flag to open().
7423         * modules/get-rusage-as (Depends-on): Add 'open'.
7425 2020-05-28  Bruno Haible  <bruno@clisp.org>
7427         crypto/gc: Make more robust in multithreaded applications.
7428         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7429         * modules/crypto/gc (Depends-on): Add 'open'.
7431 2020-05-28  Bruno Haible  <bruno@clisp.org>
7433         copy-file: Make more robust in multithreaded applications.
7434         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7435         open().
7437 2020-05-28  Bruno Haible  <bruno@clisp.org>
7439         chown: Make more robust in multithreaded applications.
7440         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7442 2020-05-28  Bruno Haible  <bruno@clisp.org>
7444         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7445         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7447 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7449         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7450         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7451         specified on Windows.
7452         * tests/test-fopen-gnu.c (DATA): New define.
7453         (main): Add test for reading binary files with an 'e' flag.
7455 2020-05-27  Bruno Haible  <bruno@clisp.org>
7457         Don't assume that UNICODE is not defined.
7458         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7459         differently if the application defines the macro UNICODE.
7460         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7461         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7462         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7463         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7464         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7466 2020-05-27  Bruno Haible  <bruno@clisp.org>
7468         Improve pattern for defining _WIN32_WINNT.
7469         Newer versions of the Windows API may not only add, but also remove API
7470         functions. Therefore, when the user is e.g. building for Windows 10, we
7471         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7472         use of APIs that were present in Windows 8 but removed in Windows 10.
7473         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7474         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7475         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7476         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7477         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7479 2020-05-27  Bruno Haible  <bruno@clisp.org>
7481         javacomp: Make more robust in multithreaded applications.
7482         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7483         * modules/javacomp (Depends-on): Add fopen-gnu.
7485 2020-05-27  Bruno Haible  <bruno@clisp.org>
7487         mountlist: Make more robust in multithreaded applications.
7488         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7489         to fopen.
7490         * modules/mountlist (Depends-on): Add fopen-gnu.
7492 2020-05-27  Bruno Haible  <bruno@clisp.org>
7494         sethostname: Make more robust in multithreaded applications.
7495         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7496         * modules/sethostname (Depends-on): Add fopen-gnu.
7498 2020-05-27  Bruno Haible  <bruno@clisp.org>
7500         readutmp: Make more robust in multithreaded applications.
7501         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7502         * modules/readutmp (Depends-on): Add fopen-gnu.
7504 2020-05-27  Bruno Haible  <bruno@clisp.org>
7506         getpass: Make more robust in multithreaded applications.
7507         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7508         * modules/getpass (Depends-on): Add fopen-gnu.
7510 2020-05-27  Bruno Haible  <bruno@clisp.org>
7512         getloadavg: Make more robust in multithreaded applications.
7513         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7514         * modules/getloadavg (Depends-on): Add fopen-gnu.
7516 2020-05-27  Bruno Haible  <bruno@clisp.org>
7518         exclude: Make more robust in multithreaded applications.
7519         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7520         * modules/exclude (Depends-on): Add fopen-gnu.
7522 2020-05-27  Bruno Haible  <bruno@clisp.org>
7524         bitset: Make more robust in multithreaded applications.
7525         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7526         'e' flag to fopen.
7527         * modules/bitset (Depends-on): Add fopen-gnu.
7529 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7531         read-file: add RF_SENSITIVE flag
7532         * lib/read-file.h (RF_SENSITIVE): New define.
7533         * lib/read-file.c (fread_file, read_file): Take into account of
7534         RF_SENSITIVE flag.
7535         * modules/read-file (Depends-on): Add explicit_bzero.
7536         This adds an alternative behavior of those functions to explicitly
7537         clear the internal memory block when it becomes unused.  This is
7538         useful for reading sensitive information from a file.
7540 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7542         read-file: add flags to modify reading behavior
7543         * lib/read-file.h (RF_BINARY): New define.
7544         (fread_file, read_file): Take FLAGS argument.
7545         (read_binary_file): Remove.
7546         * lib/read-file.c (internal_read_file): Merge into ...
7547         (read_file): ... here.
7548         * modules/read-file-tests (Files): Add "tests/macros.h".
7549         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7550         * NEWS: Mention this change.
7552 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7554         doc/gnulib-intro.texi: add missing "to" in sentence
7555         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7556         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7557         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7559 2020-05-26  Bruno Haible  <bruno@clisp.org>
7561         count-one-bits: Fix MSVC specific code.
7562         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7564         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7565         using GCC.
7566         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7567         (__popcnt64): In 32-bit mode, define as an inline function.
7568         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7570 2020-05-26  Bruno Haible  <bruno@clisp.org>
7572         argz: Avoid name clashes through argz.h.
7573         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7574         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7575         * lib/argz.h: Don't use __ prefixed identifiers.
7576         (const): Remove definition.
7577         (argz_next): Remove inline definitions.
7579 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7581         read-file: make use of fopen-gnu
7582         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7583         (read_binary_file): Likewise.
7584         * modules/read-file (Depends-on): Add fopen-gnu.
7586 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7588         getentropy, getrandom: new modules
7589         * MODULES.html.sh (func_all_modules):
7590         * lib/unistd.in.h (getentropy, getrandom):
7591         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7592         * modules/unistd (unistd.h):
7593         Add support for getentropy, getrandom.
7594         * doc/glibc-functions/getentropy.texi (getentropy):
7595         * doc/glibc-functions/getrandom.texi (getrandom):
7596         These are now fixed on some platforms.
7597         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7598         * m4/getentropy.m4, m4/getrandom.m4:
7599         * modules/getentropy, modules/getentropy-tests:
7600         * modules/getrandom, modules/getrandom-tests:
7601         * tests/test-getentropy.c, tests/test-getrandom.c:
7602         New files.
7604 2020-05-25  Bruno Haible  <bruno@clisp.org>
7606         Add missing C99 dependencies.
7607         Reported by Paul Smith <psmith@gnu.org> in
7608         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7609         * modules/assert (Depends-on): Add c99.
7610         * modules/filenamecat-lgpl (Depends-on): Likewise.
7611         * modules/libc-config (Depends-on): Likewise.
7612         * modules/mktime (Depends-on): Likewise.
7613         * modules/random_r (Depends-on): Likewise.
7614         * modules/regex (Depends-on): Likewise.
7615         * modules/scratch_buffer (Depends-on): Likewise.
7616         * modules/timespec-add (Depends-on): Likewise.
7617         * modules/timespec-sub (Depends-on): Likewise.
7618         * modules/verify (Depends-on): Likewise.
7620 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7622         explicit_bzero-tests: pacify -Wmissing-declarations
7623         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7624         Now static.
7626 2020-05-24  Bruno Haible  <bruno@clisp.org>
7628         fopen-gnu: Add tests.
7629         * tests/test-fopen-gnu.c: New file.
7630         * modules/fopen-gnu-tests: New file.
7632         fopen-gnu: New module.
7633         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7634         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7635         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7636         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7637         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7638         * modules/fopen-gnu: New file.
7639         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7641 2020-05-24  Bruno Haible  <bruno@clisp.org>
7643         open, openat: Really support O_CLOEXEC.
7644         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7645         O_CLOEXEC flag to orig_open.
7646         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7647         pass a O_CLOEXEC flag to orig_openat.
7648         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7649         * modules/open-tests (Depends-on): Add fcntl.
7650         * modules/openat-tests (Depends-on): Likewise.
7651         * modules/fcntl-safer-tests (Depends-on): Likewise.
7653 2020-05-24  Bruno Haible  <bruno@clisp.org>
7655         fopen: Fix the trailing slash workaround.
7656         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7657         write access. Pass the right flags to open().
7658         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7660 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7662         assure: new macro ‘affirm’
7663         * lib/assure.h: Include verify.h.
7664         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7665         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7666         and commentary by Bruno Haible in:
7667         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7668         * modules/assure (Depends-on:): Add verify.
7670 2020-05-23  Bruno Haible  <bruno@clisp.org>
7672         calloc-gnu: Make test work in non-flat address spaces.
7673         Uses code by Paul Eggert.
7674         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7675         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7677 2020-05-23  Bruno Haible  <bruno@clisp.org>
7679         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7680         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7681         AC_RUN_IFELSE invocations.
7683 2020-05-23  Bruno Haible  <bruno@clisp.org>
7685         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7686         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7687         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7688         don't have it.
7689         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7690         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7691         don't have it.
7692         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7693         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7694         it.
7695         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7696         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7697         it.
7698         * lib/math.in.h (__has_builtin): New macro.
7699         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7700         it.
7701         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7702         it.
7703         (isnan): Don't use the builtins on clang versions that don't have
7704         __builtin_isnanf and __builtin_isnanl.
7706 2020-05-23  Bruno Haible  <bruno@clisp.org>
7708         calloc-gnu: Avoid wrong configure results with clang.
7709         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7710         'volatile', to defeat compiler optimizations.
7712 2020-05-23  Bruno Haible  <bruno@clisp.org>
7714         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7715         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7716         'long double' values by reference, with values taken from a statically
7717         allocated array.
7719 2020-05-23  Bruno Haible  <bruno@clisp.org>
7721         findprog-in: Ignore directories.
7722         Reported by Frederick Eaton via Dmitry Goncharov in
7723         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7724         * lib/findprog-in.c (find_in_given_path): When the file found is a
7725         directory, set errno to EACCES and, during a PATH search, continue
7726         searching.
7727         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7729 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7731         verify: document ‘assume’ better
7732         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7734 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7736         gendocs: Clarify licenses for templates.
7737         * doc/gendocs_template: Add a GNU All-Permissive license notice
7738         and bump Parent-Version.
7739         * doc/gendocs_template_min: Add a GNU All-Permissive license
7740         notice and copy the explanatory comment about the license notice
7741         at the bottom from gendocs_template.
7743 2020-05-21  Bruno Haible  <bruno@clisp.org>
7745         group-member: Relicense under LGPLv2+.
7746         Jim Meyering's approval is in
7747         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7748         Paul Eggert's approval is in
7749         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7750         Eric Blake's approval is in
7751         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7752         * modules/group-member (License): Change to LGPLv2+.
7754 2020-05-21  Bruno Haible  <bruno@clisp.org>
7756         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7757         Reported by Tim Rühsen in
7758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7759         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7761 2020-05-21  Bruno Haible  <bruno@clisp.org>
7763         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7764         Reported by Tim Rühsen in
7765         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7766         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7767         before returning with status 0.
7769 2020-05-21  Bruno Haible  <bruno@clisp.org>
7771         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7772         Reported by Tim Rühsen in
7773         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7774         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7776 2020-05-21  Bruno Haible  <bruno@clisp.org>
7778         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7779         Reported by Tim Rühsen in
7780         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7781         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7782         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7783         respectively.
7785 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7787         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7788         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7790 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7792         ftoastr: fix ifndef typo
7793         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7795 2020-05-19  Bruno Haible  <bruno@clisp.org>
7797         havelib: Tweak documentation.
7798         * doc/havelib.texi (Searching for Libraries): Fix typo.
7800 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7802         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7803         This was needed earlier because modules had to import the main script,
7804         but that is no longer true.  Rename the script so that it is
7805         consistent with all other scripts in gnulib and uses hyphens.
7806         * build-aux/vcs_to_changelog.py: Rename to...
7807         * build-aux/vcs-to-changelog.py: ... this.
7808         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7809         * modules/vcs-to-changelog: Likewise.
7811 2020-05-17  Bruno Haible  <bruno@clisp.org>
7813         Clarify intended usage of the license file modules.
7814         Reported by Asher Gordon <AsDaGo@posteo.net> in
7815         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7816         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7817         GNU AGPL. Explain the intended usage of the modules.
7818         * modules/fdl (Notice): Discourage use as a module.
7819         * modules/fdl-1.3 (Notice): Likewise.
7821 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7823         hash: add hash_xinsert
7824         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7826 2020-05-16  Bruno Haible  <bruno@clisp.org>
7828         findprog-lgpl: Fix link error (existing since 2008-09-02).
7829         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7830         findprog-lgpl.c, not findprog.c.
7831         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7832         XNMALLOC.
7834 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7836         c-stack: pacify -Wunused-result when DEBUG
7837         Problem reported by Marc Nieper-Wißkirchen in:
7838         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7839         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7840         Explicitly ignore write failures.
7842 2020-05-13  Jim Meyering  <meyering@fb.com>
7844         announce-gen: improve a comment
7845         * build-aux/announce-gen: Improve comment.
7847 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7849         xalloc: pacify -Wanalyzer-possible-null-argument
7850         Problem reported for GCC 10.1.0 by Bruno Haible in:
7851         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7852         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7853         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7854         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7856 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7858         careadlinkat: fix GCC 10 workaround
7859         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7860         Massage the code so that it’s closer to what it was before
7861         the GCC 10.1.0 workaround was introduced.  This fixes
7862         a loop when !buffer and the bug workaround is in effect.
7863         Remove unnecessary casts.  Defend in a different way
7864         against (buffer && !buffer_size), by adding at least 1
7865         to buf_size each time through the loop.
7867 2020-05-10  Bruno Haible  <bruno@clisp.org>
7869         doc: Mark HP-UX as unsupported.
7870         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7872 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7874         careadlinkat: limit GCC workaround
7875         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7876         10.1.0 and later, since the workaround is pretty bad and the GCC
7877         bug should get fixed.
7879 2020-05-10  Bruno Haible  <bruno@clisp.org>
7881         havelib: Enhance documentation.
7882         * doc/havelib.texi (Searching for Libraries): Mention the bad
7883         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7885 2020-05-10  Bruno Haible  <bruno@clisp.org>
7887         attribute: Clarify list of attributes.
7888         * lib/attribute.h: Reorder the list of attributes, and group them by
7889         purpose.
7891 2020-05-10  Bruno Haible  <bruno@clisp.org>
7893         string: Fix compilation error in C++ mode.
7894         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7895         _GL_WARN_ON_USE.
7896         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7897         instead of _GL_WARN_ON_USE.
7899 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7901         announce-gen: add support for dist-lzip
7902         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7904 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7906         manywarnings: port to GCC 10.1
7907         * build-aux/gcc-warning.spec:
7908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7909         Add GCC 10.1.0 warnings.
7911         careadlinkat: pacify -Wreturn-local-addr
7912         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7913         Pacify gcc 10’s -Wreturn-local-addr option.
7914         Simplify some of the later code.
7916 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7918         attribute: remove ATTRIBUTE_DEPRECATED
7919         * lib/attribute.h: Improve recently-added comments, mostly
7920         by shortening them (use active voice, etc.).
7921         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7922         Problem reported by Bruno Haible in:
7923         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7925 2020-05-09  Bruno Haible  <bruno@clisp.org>
7927         attribute: Add comments.
7928         * lib/attribute.h: Document each macro.
7930 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7932         bitset: use the attribute module
7933         * modules/bitset: Depend on 'attribute'.
7934         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7935         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7936         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7937         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7939 2020-05-09  Bruno Haible  <bruno@clisp.org>
7941         c-stack: Fix warning when DEBUG is enabled.
7942         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7943         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7944         * lib/c-stack.c: Include <stdio.h>.
7946 2020-05-09  Bruno Haible  <bruno@clisp.org>
7948         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7949         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7950         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7951         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7952         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7953         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7954         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7955         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7956         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7957         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7958         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7959         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7960         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7962 2020-05-09  Bruno Haible  <bruno@clisp.org>
7964         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7965         Reported by Akim Demaille in
7966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7967         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7968         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7969         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7971 2020-05-09  Bruno Haible  <bruno@clisp.org>
7973         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7974         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7975         that usually comes from m4/gnulib-common.m4.
7976         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7978 2020-05-09  Bruno Haible  <bruno@clisp.org>
7980         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7981         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7982         that usually comes from m4/gnulib-common.m4.
7983         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7984         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7985         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7987 2020-05-09  Bruno Haible  <bruno@clisp.org>
7989         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7990         * lib/uchar.in.h (char16_t): Define as macro if
7991         GNULIB_OVERRIDES_CHAR16_T.
7992         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7993         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7994         (gl_UCHAR_H): Invoke them.
7995         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7996         GNULIB_OVERRIDES_CHAR32_T.
7997         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7998         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7999         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
8000         GNULIB_OVERRIDES_CHAR32_T.
8002 2020-05-09  Bruno Haible  <bruno@clisp.org>
8004         Macro tweaks.
8005         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
8006         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
8008 2020-05-08  Bruno Haible  <bruno@clisp.org>
8010         c32rtomb: Avoid compilation failure on Haiku.
8011         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
8012         inline definitions.
8013         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
8015 2020-05-08  Bruno Haible  <bruno@clisp.org>
8017         mbrtoc32: Avoid compilation failure on Haiku.
8018         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
8019         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
8020         AC_CHECK_FUNCS_ONCE.
8021         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
8023 2020-05-08  Bruno Haible  <bruno@clisp.org>
8025         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
8026         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
8028 2020-05-08  Bruno Haible  <bruno@clisp.org>
8030         list: Update documentation.
8031         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8032         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
8033         * doc/containers.texi (Container data types): Document the new list
8034         operations and their complexity.
8036 2020-05-08  Bruno Haible  <bruno@clisp.org>
8038         ignore-value tests: Use module 'attribute'.
8039         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
8040         * tests/test-ignore-value.c: Include attribute.h.
8041         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
8042         * modules/ignore-value-tests (Depends-on): Add attribute.
8044 2020-05-08  Bruno Haible  <bruno@clisp.org>
8046         uniname/uniname: Use module 'attribute'.
8047         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
8048         * lib/uniname/uninames.h: Regenerated.
8049         * lib/uniname/uniname.c: Include attribute.h.
8050         * modules/uniname/uniname (Depends-on): Add attribute.
8052 2020-05-08  Bruno Haible  <bruno@clisp.org>
8054         c32rtomb: Use module 'attribute'.
8055         * lib/c32rtomb.c: Include attribute.h.
8056         (FALLTHROUGH): Remove macro.
8057         * modules/c32rtomb (Depends-on): Add attribute.
8059 2020-05-08  Bruno Haible  <bruno@clisp.org>
8061         xsize: Use module 'attribute'.
8062         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
8063         * modules/xsize (Depends-on): Add attribute.
8065 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
8067         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
8069         * lib/attribute.h: Minor style fixes.
8071         Fix version-etc glitch on OpenIndiana
8072         Problem reported by Mats Erik Andersson in:
8073         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
8074         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
8075         that now clashes with gnulib-common.h.  All uses changed.
8077 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8079         attribute: new module
8080         This simplifies use of GCC and C2X attributes like ‘deprecated’.
8081         * MODULES.html.sh: Add attribute.
8082         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
8083         * doc/gnulib.texi (Particular Modules): Add Attributes.
8084         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
8085         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
8086         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
8087         * lib/vasnprintf.c:
8088         Include attribute.h, and let it define FALLTHROUGH.
8089         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
8090         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
8091         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
8092         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
8093         This is a copy since Gawk doesn’t use Gnulib.
8094         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
8095         is incompatible with gl_COMMON_BODY’s.  All uses changed.
8096         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
8097         Keep the existing FALLTHROUGH definition since Glibc might use it,
8098         and it does no harm to Gnulib’s FALLTHROUGH.
8099         * lib/fts_.h, lib/inttostr.h:
8100         (__GNUC_PREREQ): Remove; no longer needed.
8101         (__attribute_warn_unused_result__): Remove.  All uses
8102         replaced by _GL_ATTRIBUTE_NODISCARD.
8103         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
8104         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
8105         __attribute__ ((__warn_unused_result__)), for forward
8106         compatibility to C2X.
8107         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
8108         _GL_ATTRIBUTE_NODISCARD.
8109         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
8110         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
8111         replaced by gl_COMMON_BODY’s implementation, which has a
8112         slightly different signature.
8113         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
8114         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
8115         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
8116         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
8117         No doubt all uses should be replaced, at some point.
8118         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
8119         (_Noreturn): Use it.
8120         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
8121         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
8122         (_GL_ATTRIBUTE_COLD)
8123         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
8124         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
8125         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
8126         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
8127         (_GL_ATTRIBUTE_MAYBE_UNUSED)
8128         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
8129         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
8130         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
8131         (_GL_ATTRIBUTE_RETURNS_NONNULL)
8132         (_GL_ATTRIBUTE_SENTINEL): New macros.
8133         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
8134         * modules/fnmatch, modules/freopen-safer, modules/fts:
8135         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
8136         * modules/quotearg, modules/savewd:
8137         * modules/unistdio/u16-u16-vasnprintf:
8138         * modules/unistdio/u16-vasnprintf:
8139         * modules/unistdio/u32-u32-vasnprintf:
8140         * modules/unistdio/u32-vasnprintf:
8141         * modules/unistdio/u8-u8-vasnprintf:
8142         * modules/unistdio/u8-vasnprintf:
8143         * modules/unistdio/ulc-vasnprintf:
8144         * modules/unistr/u8-uctomb, modules/vasnprintf:
8145         (Depends-on:): Add attribute module.
8147 2020-05-03  Bruno Haible  <bruno@clisp.org>
8149         bison: Fix today's commit.
8150         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
8152 2020-05-03  Bruno Haible  <bruno@clisp.org>
8154         list-c++: Add get_first, get_last, set_first, set_last operations.
8155         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
8156         set_first, set_last.
8157         * lib/gl_list.h: Tweak comments.
8159 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
8161         bison: rely on bison's %require to check a version requirement
8162         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
8163         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
8164         enough of not.
8165         So far it is the only know Yacc tool that supports '%require'.
8166         Other yaccs will actually even choke on seeing the -o option after the
8167         input file name.
8168         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
8170 2020-05-02  Bruno Haible  <bruno@clisp.org>
8172         list: Add get_first, get_last, set_first, set_last operations.
8173         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
8174         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
8175         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
8177 2020-05-02  Bruno Haible  <bruno@clisp.org>
8179         list: Remove redundant code for remove_first and remove_last operations.
8180         * lib/gl_list.h (struct gl_list_implementation): Remove fields
8181         remove_first, remove_last.
8182         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
8183         * lib/gl_array_list.c: Revert last change.
8184         * lib/gl_carray_list.c: Likewise.
8185         * lib/gl_anylinked_list2.h: Likewise.
8186         * lib/gl_linked_list.c: Likewise.
8187         * lib/gl_linkedhash_list.c: Likewise.
8188         * lib/gl_anytree_list2.h: Likewise.
8189         * lib/gl_avltree_list.c: Likewise.
8190         * lib/gl_avltreehash_list.c: Likewise.
8191         * lib/gl_rbtree_list.c: Likewise.
8192         * lib/gl_rbtreehash_list.c: Likewise.
8193         * lib/gl_sublist.c: Likewise.
8195 2020-05-02  Bruno Haible  <bruno@clisp.org>
8197         bison-i18n: Add support for cross-compilation.
8198         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
8199         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
8200         via Akim Demaille <akim@lrde.epita.fr>.
8201         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
8202         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
8203         Don't use bison's --print-localedir option when cross-compiling.
8204         Also, fix an error message and a comment.
8206 2020-05-01  Bruno Haible  <bruno@clisp.org>
8208         list: Add remove_first and remove_last operations.
8209         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8210         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
8211         * lib/gl_list.h (struct gl_list_implementation): Add fields
8212         remove_first, remove_last.
8213         (gl_list_remove_first, gl_list_remove_last): New functions.
8214         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
8215         functions, based on gl_array_remove_at.
8216         (gl_array_list_implementation): Implement the new operations.
8217         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
8218         New functions, based on gl_carray_remove_at.
8219         (gl_carray_list_implementation): Implement the new operations.
8220         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
8221         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
8222         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
8223         new operations.
8224         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
8225         Likewise.
8226         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
8227         New functions, based on gl_tree_remove_at.
8228         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
8229         new operations.
8230         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8231         Likewise.
8232         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
8233         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
8234         Likewise.
8235         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
8236         New functions, based on gl_sublist_remove_at.
8237         (gl_sublist_list_implementation): Implement the new operations.
8238         * lib/gl_list.hh (class gl_List): Add methods remove_first,
8239         remove_last.
8240         * tests/test-array_list.c (main): Test also gl_list_remove_first and
8241         gl_list_remove_last.
8242         * tests/test-avltree_list.c (main): Likewise.
8243         * tests/test-avltreehash_list.c (main): Likewise.
8244         * tests/test-carray_list.c (main): Likewise.
8245         * tests/test-linked_list.c (main): Likewise.
8246         * tests/test-linkedhash_list.c (main): Likewise.
8247         * tests/test-rbtree_list.c (main): Likewise.
8248         * tests/test-rbtreehash_list.c (main): Likewise.
8250 2020-05-01  Bruno Haible  <bruno@clisp.org>
8252         parse-datetime: Fix a build failure with an older bison version.
8253         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
8254         parse-datetime.tab.c if a suitable version of bison was not found.
8256 2020-05-01  Bruno Haible  <bruno@clisp.org>
8258         bison: New module.
8259         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
8260         m4/parse-datetime.m4.
8261         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
8262         * modules/bison: New file.
8263         * modules/parse-datetime (Files): Remove m4/bison.m4.
8264         (Depends-on): Add bison.
8266 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
8268         Update users.txt.
8269         * users.txt: Add poke.
8271 2020-04-28  Bruno Haible  <bruno@clisp.org>
8273         posix_spawn_file_actions_addfchdir tests: Enhance test.
8274         * tests/test-posix_spawn5.c: Include findprog.h.
8275         (test): New function, extracted from main.
8276         (main): Invoke it. Also, invoke it with a program name such as
8277         "bin/pwd".
8278         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
8279         findprog.
8281 2020-04-28  Bruno Haible  <bruno@clisp.org>
8283         posix_spawn_file_actions_addchdir tests: Enhance test.
8284         * tests/test-posix_spawn4.c: Include findprog.h.
8285         (test): New function, extracted from main.
8286         (main): Invoke it. Also, invoke it with a program name such as
8287         "bin/pwd".
8288         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
8289         findprog.
8291 2020-04-28  Bruno Haible  <bruno@clisp.org>
8293         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
8294         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
8295         access elements of the wrong union member.
8297 2020-04-27  Bruno Haible  <bruno@clisp.org>
8299         getdate: Remove deprecated module.
8300         * modules/getdate: Remove file.
8301         * doc/getdate.texi: Remove file.
8302         * lib/getdate.h: Remove file.
8303         * NEWS: Mention the removal.
8305 2020-04-27  Bruno Haible  <bruno@clisp.org>
8307         realloc: Remove deprecated module.
8308         * modules/realloc: Remove file.
8309         * NEWS: Mention the removal.
8311 2020-04-27  Bruno Haible  <bruno@clisp.org>
8313         calloc: Remove deprecated module.
8314         * modules/calloc: Remove file.
8315         * NEWS: Mention the removal.
8317 2020-04-27  Bruno Haible  <bruno@clisp.org>
8319         malloc: Remove deprecated module.
8320         * modules/malloc: Remove file.
8321         * NEWS: Mention the removal.
8323 2020-04-27  Bruno Haible  <bruno@clisp.org>
8325         fnmatch-posix: Remove deprecated module.
8326         * modules/fnmatch-posix: Remove file.
8327         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
8328         * NEWS: Mention the removal.
8330 2020-04-27  Bruno Haible  <bruno@clisp.org>
8332         pipe: Remove deprecated module.
8333         * modules/pipe: Remove file.
8334         * lib/pipe.h: Remove file.
8335         * NEWS: Mention the removal.
8337 2020-04-27  Bruno Haible  <bruno@clisp.org>
8339         getopt: Remove deprecated module.
8340         * modules/getopt: Remove file.
8341         * NEWS: Mention the removal.
8343 2020-04-27  Bruno Haible  <bruno@clisp.org>
8345         remove-dest-slash: Remove deprecated module.
8346         * modules/rename-dest-slash: Remove file.
8347         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
8348         Update.
8349         * NEWS: Mention the removal.
8351 2020-04-27  Bruno Haible  <bruno@clisp.org>
8353         unictype/bidicategory-*: Remove deprecated modules.
8354         * modules/unictype/bidicategory-all: Remove file.
8355         * modules/unictype/bidicategory-byname: Remove file.
8356         * modules/unictype/bidicategory-name: Remove file.
8357         * modules/unictype/bidicategory-of: Remove file.
8358         * modules/unictype/bidicategory-test: Remove file.
8359         * MODULES.html.sh (Unicode string functions): Update.
8360         * NEWS: Mention the removals.
8362 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8364         Tune fts for FTS_LOGICAL+FTS_NOSTAT
8365         From a suggestion by Askar Safin in:
8366         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
8367         * lib/fts.c (fts_build): If file types are known, optimize
8368         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
8369         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
8370         non-directories.
8372 2020-04-19  Bruno Haible  <bruno@clisp.org>
8374         vasnprintf: Add support for printing wide characters using escapes.
8375         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
8376         (wctomb_fallback): New function.
8377         (local_wctomb): New function.
8378         (local_wcrtomb): New function or macro.
8379         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
8380         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
8381         %lc.
8383 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8385         fts: remove NOSTAT_LEAF_OPTIMIZATION
8386         It caused ‘find’ and ‘du’ to dump core, and it was useful
8387         only for obsolescent Linux filesystems anyway.  Problem reported in:
8388         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
8389         Quite possibly there is still a serious underlying fts bug with
8390         tight-loop-check and mutating file systems, but if so this patch
8391         should cause the bug to be triggered less often.
8392         * lib/fts.c (enum leaf_optimization): Remove
8393         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
8394         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
8395         (leaf_optimization): Remove special cases for ReiserFS and XFS.
8396         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
8397         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
8398         Remove.  All uses removed.
8400 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8402         explicit_bzero: Improve code style.
8403         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
8405 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8407         explicit_bzero: On native Windows, use SecureZeroMemory().
8408         * lib/explicit_bzero.c: Include <windows.h>.
8409         (explicit_bzero): On native Windows, use SecureZeroMemory.
8411 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8413         explicit_bzero: Use memset_s() when available.
8414         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
8415         (explicit_bzero): Use memset_s when available.
8416         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
8418 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8420         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8421         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8422         free() that overwrite the memory with canaries.
8424 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8426         bootstrap: recommend git submodule update --init
8427         Reported by Bruno Haible.
8428         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8429         * build-aux/bootstrap: recommand "git submodule update --init"
8430         rather than "git submodule init".
8432 2020-04-12  Bruno Haible  <bruno@clisp.org>
8434         explicit_bzero: Add tests.
8435         * tests/test-explicit_bzero.c: New file.
8436         * modules/explicit_bzero-tests: New file.
8438 2020-04-11  Bruno Haible  <bruno@clisp.org>
8440         explicit_bzero: Relicense under LGPLv2+.
8441         Approved by Paul Eggert.
8442         * modules/explicit_bzero (License): Change to LGPLv2+.
8444 2020-04-10  Bruno Haible  <bruno@clisp.org>
8446         findprog, relocatable-prog: Ignore directories during PATH search.
8447         Reported by Frederick Eaton via Dmitry Goncharov in
8448         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8450         * lib/findprog.c (find_in_path): When the file found in a PATH element
8451         is a directory, continue searching.
8452         * modules/findprog (Depends-on): Add sys_stat, stat.
8453         * modules/findprog-lgpl (Depends-on): Likewise.
8455         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8456         element is a directory, continue searching.
8457         * lib/relocwrapper.c: Update comments.
8458         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8459         (configure.ac-early): New section.
8461 2020-04-10  Bruno Haible  <bruno@clisp.org>
8463         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8464         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8465         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8466         * MODULES.html.sh: In a git-less tarball, use the date of the first
8467         ChangeLog entry.
8469 2020-04-04  Bruno Haible  <bruno@clisp.org>
8471         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8472         * m4/gettext.m4: Fix comments regarding the gettext library.
8473         * m4/intl-thread-locale.m4: Likewise.
8474         * m4/intlmacosx.m4: Likewise.
8475         * m4/lcmessage.m4: Likewise.
8476         * m4/nls.m4: Likewise.
8477         * m4/po.m4: Likewise.
8478         * m4/progtest.m4: Likewise.
8480 2020-04-04  Jim Meyering  <meyering@fb.com>
8482         maint: remove a stray inter-word space in a 6x-repeated comment
8483         Induce the changes by running this:
8484           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8485         * build-aux/announce-gen: Change "by  perl" to "by perl".
8486         * build-aux/gitlog-to-changelog: Likewise.
8487         * build-aux/prefix-gnulib-mk: Likewise.
8488         * build-aux/update-copyright: Likewise.
8489         * build-aux/useless-if-before-free: Likewise.
8490         * tests/test-update-copyright.sh: Likewise.
8492 2020-03-28  Bruno Haible  <bruno@clisp.org>
8494         Use module 'filename' instead of module 'dosname'.
8496         * lib/at-func.c: Include filename.h instead of dosname.h.
8497         * lib/unlinkat.c: Likewise.
8498         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8499         * modules/areadlinkat-with-size (Depends-on): Likewise.
8500         * modules/faccessat (Depends-on): Likewise.
8501         * modules/fchmodat (Depends-on): Likewise.
8502         * modules/fchownat (Depends-on): Likewise.
8503         * modules/fstatat (Depends-on): Likewise.
8504         * modules/mkdirat (Depends-on): Likewise.
8505         * modules/mkfifoat (Depends-on): Likewise.
8506         * modules/readlinkat (Depends-on): Likewise.
8507         * modules/selinux-at (Depends-on): Likewise.
8508         * modules/symlinkat (Depends-on): Likewise.
8509         * modules/unlinkat (Depends-on): Likewise.
8510         * modules/utimensat (Depends-on): Likewise.
8512         * lib/at-func2.c: Include filename.h instead of dosname.h.
8513         * modules/linkat (Depends-on): Add filename. Remove dosname.
8514         * modules/renameatu (Depends-on): Likewise.
8516         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8517         * lib/canonicalize-lgpl.c: Likewise.
8518         * modules/canonicalize (Depends-on): Add filename.
8519         * modules/canonicalize-lgpl (Depends-on): Likewise.
8521         * lib/dirname.h: Include filename.h instead of dosname.h.
8522         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8524         * lib/fchdir.c: Include filename.h instead of dosname.h.
8525         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8527         * lib/openat.c: Include filename.h instead of dosname.h.
8528         * modules/openat (Depends-on): Add filename. Remove dosname.
8530         * lib/rmdir.c: Include filename.h instead of dosname.h.
8531         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8533         * lib/savewd.c: Include filename.h instead of dosname.h.
8534         * modules/savewd (Depends-on): Add filename. Remove dosname.
8536         * lib/unlink.c: Include filename.h instead of dosname.h.
8537         * modules/unlink (Depends-on): Add filename. Remove dosname.
8539         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8540         * lib/relocwrapper.c: Update comments.
8542         * modules/lstat (Depends-on): Remove dosname.
8544 2020-03-28  Bruno Haible  <bruno@clisp.org>
8546         dosname: Redirect to 'filename'.
8547         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8548         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8549         * lib/dosname.h: Remove all definitions. Just include filename.h.
8550         * modules/dosname (Status, Notice): Mark as deprecated.
8551         (Depends-on): Add 'filename'.
8553 2020-03-28  Bruno Haible  <bruno@clisp.org>
8555         dosname: Change IS_RELATIVE_FILE_NAME.
8556         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8557         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8558         * NEWS: Mention the change.
8560 2020-03-28  Bruno Haible  <bruno@clisp.org>
8562         filename: Copy some definitions from module 'dosname'.
8563         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8564         (HAS_DEVICE): Document macro.
8565         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8566         (IS_ABSOLUTE_FILE_NAME): Consider
8567         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8568         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8569         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8570         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8571         IS_PATH_WITH_DIR.
8572         (DllMain): Update.
8573         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8574         IS_PATH_WITH_DIR.
8575         (find_executable): Update.
8576         * NEWS: Document the deprecations.
8578 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8580         getopt-posix: port __GETOPT_PREFIX to macOS
8581         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8582         Define to work around a problem with asm on macOS (Bug#40205).
8584 2020-03-22  Bruno Haible  <bruno@clisp.org>
8586         MODULES.html.sh: Add support for reproducible builds.
8587         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8588         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8589         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8590         current date.
8592 2020-03-22  Bruno Haible  <bruno@clisp.org>
8594         Several modules: Depend on stat.
8595         * modules/acl-permissions (Depends-on): Add stat.
8596         * modules/canonicalize (Depends-on): Likewise.
8597         * modules/file-has-acl (Depends-on): Likewise.
8598         * modules/fstat (Depends-on): Likewise.
8599         * modules/fstatat (Depends-on): Likewise.
8600         * modules/glob (Depends-on): Likewise.
8601         * modules/javacomp (Depends-on): Likewise.
8602         * modules/linkat (Depends-on): Likewise.
8603         * modules/mkdir (Depends-on): Likewise.
8604         * modules/pt_chown (Depends-on): Likewise.
8605         * modules/ptsname_r (Depends-on): Likewise.
8606         * modules/readlinkat (Depends-on): Likewise.
8607         * modules/rename (Depends-on): Likewise.
8608         * modules/renameatu (Depends-on): Likewise.
8609         * modules/tmpdir (Depends-on): Likewise.
8610         * modules/utimens (Depends-on): Likewise.
8611         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8612         * modules/same (Depends-on): Remove stat.
8614 2020-03-22  Bruno Haible  <bruno@clisp.org>
8616         acl-permissions: Improve autoconf macro.
8617         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8618         more reliably.
8620 2020-03-22  Bruno Haible  <bruno@clisp.org>
8622         file-has-acl: Fix module description.
8623         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8624         (Depends-on): Depend on acl-permissions unconditionally.
8626 2020-03-21  Bruno Haible  <bruno@clisp.org>
8628         unlink: Ensure errno also on native Windows.
8629         * modules/unlink (Depends-on): Add malloc-posix.
8631 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8633         unlink: fix malloc errno typo
8634         Problem reported by Tim Rühsen in:
8635         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8636         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8638 2020-03-16  Bruno Haible  <bruno@clisp.org>
8640         *printf-posix: Fix m4 error (regression from 2020-03-08).
8641         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8642         brackets in AC_COMPILE_IFELSE invocation.
8644 2020-03-08  Bruno Haible  <bruno@clisp.org>
8646         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8647         * modules/crypto/af_alg (Depends-on): Add fstat.
8648         * modules/renameatu (Depends-on): Likewise.
8649         * modules/same (Depends-on): Likewise.
8650         * modules/term-style-control (Depends-on): Likewise.
8652 2020-03-08  Bruno Haible  <bruno@clisp.org>
8654         *printf-posix: Document why it's overridden on some glibc systems.
8655         Reported by Adrian Bunk <bunk@stusta.de> in
8656         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8657         * doc/posix-functions/*printf.texi: Document the problem with the %n
8658         directive on some glibc systems.
8659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8660         the cross-compilation guesses accordingly.
8662 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8664         open, openat: port to (O_RDWR | O_RDONLY) != 0
8665         Potential portability problem reported by Dan Gohman in:
8666         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8667         * lib/open.c (open):
8668         * lib/openat.c (rpl_openat):
8669         Don’t assume O_RDONLY is disjoint from O_RDWR.
8671 2020-03-07  Bruno Haible  <bruno@clisp.org>
8673         openat: Fix theoretically possible issue on GNU/Hurd.
8674         Reported by Dan Gohman <sunfish@mozilla.com> in
8675         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8676         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8677         ignore the bits that are also set in O_RDONLY.
8679 2020-02-24  Bruno Haible  <bruno@clisp.org>
8681         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8682         Reported by Jens Rehsack <sno@netbsd.org> in
8683         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8684         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8685         cross-compiling.
8687 2020-02-24  Bruno Haible  <bruno@clisp.org>
8689         fcntl: Add witness of gnulib override.
8690         Reported by Jens Rehsack <sno@netbsd.org> in
8691         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8692         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8693         macros.
8695 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8697         Update users.txt.
8698         * users.txt: Add datamash, time.
8700 2020-02-23  Bruno Haible  <bruno@clisp.org>
8702         uni*/base: Use 'restrict'.
8703         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8704         from lib/regex.h.
8705         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8706         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8707         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8708         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8709         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8710         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8711         '_UC_RESTRICT'.
8712         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8713         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8714         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8715         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8716         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8717         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8718         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8719         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8720         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8721         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8722         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8723         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8724         '_UC_RESTRICT'.
8725         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8726         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8727         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8728         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8729         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8730         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8731         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8732         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8734 2020-02-23  Bruno Haible  <bruno@clisp.org>
8736         glob, spawn: Use improved '_Restrict_' definition.
8737         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8738         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8740 2020-02-23  Bruno Haible  <bruno@clisp.org>
8742         crypto/gc: Use 'restrict'.
8743         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8744         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8746         crypto/hmac-*: Use 'restrict'.
8747         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8748         'restrict'.
8749         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8750         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8751         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8752         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8754         crypto/sm3: Use 'restrict'.
8755         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8756         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8758         crypto/*-buffer: Use 'restrict'.
8759         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8760         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8762         crypto/sha512-buffer: Use 'restrict'.
8763         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8764         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8765         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8767         crypto/sha256-buffer: Use 'restrict'.
8768         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8769         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8770         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8772         crypto/sha1-buffer: Use 'restrict'.
8773         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8774         'restrict'.
8775         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8777         crypto/md5-buffer: Use 'restrict'.
8778         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8779         'restrict'.
8780         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8782         crypto/md4: Use 'restrict'.
8783         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8784         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8786         crypto/md2: Use 'restrict'.
8787         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8788         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8790         crypto/rijndael: Use 'restrict'.
8791         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8792         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8793         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8795         crypto/arctwo: Use 'restrict'.
8796         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8797         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8799         crypto/arcfour: Use 'restrict'.
8800         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8801         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8803         careadlinkat: Use 'restrict'.
8804         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8805         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8806         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8808         regex-quote: Use 'restrict'.
8809         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8810         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8812         system-quote: Use 'restrict'.
8813         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8814         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8816         sh-quote: Use 'restrict'.
8817         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8818         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8820         quotearg: Use 'restrict'.
8821         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8822         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8824         parse-datetime: Use 'restrict'.
8825         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8826         'restrict'.
8827         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8829         nstrftime: Use 'restrict'.
8830         * lib/strftime.h (nstrftime): Use 'restrict'.
8831         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8833         mbstok_r: Use 'restrict'.
8834         * lib/string.in.h (mbstok_r): Use 'restrict'.
8836         xmemcoll: Use 'restrict'.
8837         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8838         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8840         memcoll: Use 'restrict'.
8841         * lib/memcoll.h (memcoll): Use 'restrict'.
8842         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8844         vasnprintf: Use 'restrict'.
8845         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8846         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8848         c-vasnprintf: Use 'restrict'.
8849         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8850         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8852         c-vsnprintf: Use 'restrict'.
8853         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8854         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8856         c-snprintf: Use 'restrict'.
8857         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8858         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8860         astrxfrm: Use 'restrict'.
8861         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8862         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8864         amemxfrm: Use 'restrict'.
8865         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8866         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8868 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8870         fchmodat, lchmod: simplify
8871         It appears that we may have overengineered lchmod and fchmodat,
8872         in that the code was prepared for some hypothetical platforms but
8873         was so complicated that it was hard to understand.  I attempted to
8874         improve the situation by simplifying the code when this
8875         simplification should not hurt on real platforms; we can re-add
8876         complexity later to port to platforms I didn’t know about.
8877         * lib/fchmodat.c (fchmodat):
8878         * lib/lchmod.c (lchmod):
8879         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8880         around the /proc code that needs it.
8881         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8882         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8883         Do not include <config.h> twice.
8884         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8885         lchmod on any known hosts.
8886         (lchmod): Do not defer to fchmodat, so that the lchmod module
8887         need not depend on the fchmodat module (which is a circular
8888         dependency).  Do not use openat, since ‘open’ suffices.
8889         Coalesce calls to lchmod/chmod.
8890         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8891         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8892         * modules/lchmod (Depends-on, configure.ac):
8893         * modules/sys_stat (Depends-on):
8894         Do not worry about replacing lchmod, since that shouldn’t happen.
8895         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8896         Do not worry about whether lchmod works on non-symlinks,
8897         since every known lchmod works on non-symlinks.
8898         * modules/lchmod (Depends-on):
8899         Remove circular dependency on fchmodat.
8901 2020-02-22  Bruno Haible  <bruno@clisp.org>
8903         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8904         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8905         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8907 2020-02-22  Bruno Haible  <bruno@clisp.org>
8909         Use 'restrict' in all POSIX function declarations.
8910         * lib/iconv.in.h (iconv): Use 'restrict'.
8911         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8912         * lib/monetary.in.h (strfmon_l): Likewise.
8913         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8914         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8915         pthread_mutex_timedlock, pthread_rwlock_init,
8916         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8917         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8918         * lib/search.in.h (tdelete): Likewise.
8919         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8920         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8921         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8922         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8923         Likewise.
8924         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8925         strtoull): Likewise.
8926         * lib/string.in.h (strncat): Likewise.
8927         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8928         recvfrom): Likewise.
8929         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8930         * lib/time.in.h (strftime): Likewise.
8931         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8932         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8933         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8934         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8935         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8936         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8937         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8938         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8939         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8940         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8941         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8944         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8945         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8946         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8947         other *_h.m4 files.
8948         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8950 2020-02-22  Bruno Haible  <bruno@clisp.org>
8952         Update NEWS.
8953         * NEWS: Mention the last change.
8955 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8957         chmodat, chownat: new modules
8958         These are split from fchmodat, fchownat.  GNU Emacs needs the
8959         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8960         lchmodat.  Split the latter two into a new module chmodat.
8961         Similarly for fchownat.  This the same basic idea for why statat
8962         was split from fstatat on 2013-01-23.
8963         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8964         Rename from FCHMODAT_INLINE.  All uses changed.
8965         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8966         Rename from FCHOWNAT_INLINE.  All uses changed.
8967         * lib/openat.h:
8968         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8969         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8970         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8971         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8972         (configure.ac): Remove fchmodat module indicator.
8973         (Makefile.am): Omit chmodat.c.
8974         (Maintainer): Add self.
8975         * modules/fchownat: Similarly, but for chown.
8976         * tests/test-fchownat.c (BASE): Don't define if already defined.
8977         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8979 2020-02-22  Bruno Haible  <bruno@clisp.org>
8981         users.txt: Add groff.
8982         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8983         * users.txt: Add groff.
8985 2020-02-22  Bruno Haible  <bruno@clisp.org>
8987         gnulib-tool: Ensure copied files are writable.
8988         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8990         * gnulib-tool (func_ensure_writable): New function.
8991         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8992         func_create_testdir, copy-file): Invoke it after copying a file.
8994 2020-02-22  Bruno Haible  <bruno@clisp.org>
8996         users.txt: Update.
8997         * users.txt: Update URLs to projects that have moved or switched to git.
8998         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8999         over the summary view. Add gawk.
9001 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9003         largefile: remove _DARWIN_USE_64_BIT_INODE
9004         It’s not needed in currently-supported macOS versions, and was
9005         problematic anyway in MacOS X 10.5 which was the only version that
9006         could use it.  Problem reported by Peter Eisentraut in:
9007         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
9008         * m4/largefile.m4 (AC_SYS_LARGEFILE):
9009         Don’t define _DARWIN_USE_64_BIT_INODE.
9010         This syncs with Autoconf master.
9012         Add ‘extern "C"’ to count-one-bits.h etc.
9013         This ports these .h files to C++.
9014         Problem reported by Simon Marchi in:
9015         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
9016         * lib/count-leading-zeros.h, lib/count-one-bits.h:
9017         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
9019 2020-02-19  Bruno Haible  <bruno@clisp.org>
9021         uninorm/decompose-internal: Avoid "no previous prototype" warning.
9022         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9023         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
9024         * lib/array-mergesort.h: Accept an optional macro definition
9025         STATIC_FROMTO.
9026         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
9028 2020-02-16  Bruno Haible  <bruno@clisp.org>
9030         fchmodat: Make more future-proof.
9031         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
9032         NEED_FCHMODAT_NONSYMLINK_FIX.
9033         (gl_PREREQ_FCHMODAT): New macro.
9034         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
9035         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
9036         without lchmod function.
9037         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
9039 2020-02-16  Bruno Haible  <bruno@clisp.org>
9041         lchmod: Make more future-proof.
9042         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
9043         (gl_PREREQ_LCHMOD): New macro.
9044         * lib/lchmod.c (orig_lchmod): New function.
9045         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
9046         Return EOPNOTSUPP only on Linux and on platforms without lchmod
9047         function.
9048         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
9050         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
9051         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
9053 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9055         xnanosleep: prefer pause, and get remaining time
9056         Problem reported by Vladimir Panteleev in:
9057         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
9058         * lib/xnanosleep.c: Include intprops.h, unistd.h.
9059         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
9060         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
9061         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
9062         * modules/xnanosleep (Depends-on): Add intprops, unistd.
9064 2020-02-16  Bruno Haible  <bruno@clisp.org>
9066         lchmod: Improve cross-compilation guess.
9067         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
9068         cross-compiling, guess depending on the platform.
9070 2020-02-16  Bruno Haible  <bruno@clisp.org>
9072         fstrcmp: Add API to clean up resources.
9073         Reported by Akim Demaille <akim@lrde.epita.fr> in
9074         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
9075         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
9076         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
9078 2020-02-14  Bruno Haible  <bruno@clisp.org>
9080         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
9081         Reported by Christian Biesinger in
9082         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
9083         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
9084         corresponding module is not enabled.
9085         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
9086         prototype if the corresponding module is not enabled.
9088 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
9090         fchmodat, lchmod: port to buggy Linux filesystems
9091         Problem reported by Florian Weimer in:
9092         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
9093         * lib/fchmodat.c (fchmodat):
9094         * lib/lchmod.c (lchmod):
9095         Don’t assume that chmod on the O_PATH-opened fd will do
9096         the right thing on a symbolic link.
9097         * lib/fchmodat.c (fchmodat):
9098         Don’t attempt to special-case
9099         any flag value other than AT_SYMLINK_NOFOLLOW.
9101 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
9103         lchmod: pacify Coverity CID 1491216
9104         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
9105         not complain about unreachable code at the ‘struct stat st;’
9106         declaration.
9108 2020-02-10  Bruno Haible  <bruno@clisp.org>
9110         copysignf: Fix link error on HP-UX with cc.
9111         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
9112         HP-UX, set COPYSIGNF_LIBM to -lm.
9114 2020-02-10  Bruno Haible  <bruno@clisp.org>
9116         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
9117         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
9118         with $(LIB_SEMAPHORE).
9119         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
9120         with $(LIB_SEMAPHORE).
9122 2020-02-10  Bruno Haible  <bruno@clisp.org>
9124         ptsname_r-tests: Avoid unused function warning.
9125         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
9127 2020-02-08  Bruno Haible  <bruno@clisp.org>
9129         lchmod: Add tests.
9130         * tests/test-lchmod.c: New file.
9131         * modules/lchmod-tests: New file.
9133 2020-02-08  Bruno Haible  <bruno@clisp.org>
9135         lchmod: Ensure declaration on HP-UX.
9136         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
9137         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
9139 2020-02-08  Bruno Haible  <bruno@clisp.org>
9141         fchmodat: Strengthen tests.
9142         * tests/test-fchmodat.c (BASE): New macro.
9143         (main): Use it, to avoid conflicts with other unit tests. Verify that
9144         fchmodat changed the file permission bits.
9146 2020-02-08  Bruno Haible  <bruno@clisp.org>
9148         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
9149         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
9150         '#undef __need_system_sys_stat_h'.
9152 2020-02-08  Bruno Haible  <bruno@clisp.org>
9154         fchmodat: Improve cross-compilation guesses.
9155         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
9156         cross-compiling, guess depending on the platform.
9157         * doc/posix-functions/fchmodat.texi: Clarify.
9159 2020-02-08  Bruno Haible  <bruno@clisp.org>
9161         Fix compilation errors in a testdir created with --with-c++-tests.
9162         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
9163         since it does not work any more with g++ >= 4.4.
9165 2020-02-08  Bruno Haible  <bruno@clisp.org>
9167         doc: Update for glibc 2.31.
9168         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
9169         * doc/gnulib.texi: Include it.
9170         * doc/pastposix-functions/h_errno.texi: Update.
9171         * doc/posix-functions/*.texi: Likewise.
9173 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
9175         mountlist: consider smb3 file systems as remote
9176         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
9177         "smb3" as remote.
9179 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9181         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
9182         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
9183         they act like chmod on non-symlinks.
9184         * NEWS:
9185         * doc/glibc-functions/lchmod.texi (lchmod):
9186         * doc/posix-functions/fchmodat.texi (fchmodat):
9187         Mention this.
9188         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
9189         config.h, and undef it after including sys/stat.h the first time.
9190         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
9191         sys/stat.h a second time after defining orig_fchmodat.
9192         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
9193         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
9194         * lib/lchmod.c: New file.
9195         * lib/sys_stat.in.h (fchmodat, lchmod):
9196         Support replacing these functions.
9197         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
9198         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
9199         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
9200         Test that lchmod works on non-symlinks.
9201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
9202         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
9203         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
9204         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
9205         * modules/lchmod (Files): Add lib/lchmod.c.
9206         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
9207         (configure.ac): Compile lchmod.c if needed.
9208         (lib_SOURCES): Add lchmod.c.
9209         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
9210         and REPLACE_LCHMOD.
9211         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
9212         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
9214 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
9216         mountlist: Consider AFS filesystems as remote
9217         df --local relies on the ME_REMOTE macro to determine if a given
9218         mount entry should be considered "local".  There is special logic
9219         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
9220         kernel's kafs module or AuriStorFS is treated as a local mount.
9221         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
9222         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
9224 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9226         Port _Noreturn to older Clang
9227         Problem reported by Jeffery Walton in:
9228         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
9229         * lib/_Noreturn.h (_Noreturn):
9230         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9231         Assume _Noreturn works in Clang 3.5 and later.
9232         It is documented to work in Clang 3.5:
9233         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
9234         and is not documented in Clang 3.4:
9235         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
9236         Apple sets __clang_version__ to a different value, so use
9237         __apple_build_version__ there.  See:
9238         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
9240 2020-02-04  Pádraig Brady  <P@draigBrady.com>
9242         test-canonicalize: avoid unused function warning
9243         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
9244         with the same guard as that used to protect usage of the null_ptr
9245         function, so that one doesn't get a -Wunused warning.
9246         * tests/test-canonicalize-lgpl.c: Likewise.
9248 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9250         libc-config: port to Apple’s Clang variant
9251         * lib/libc-config.h (__glibc_clang_prereq):
9252         Port to Apple’s Clang variant, which uses a different
9253         numbering scheme for __clang_major__.
9255 2020-02-02  Bruno Haible  <bruno@clisp.org>
9257         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
9258         * doc/containers.texi: Document these new modules.
9260 2020-02-02  Bruno Haible  <bruno@clisp.org>
9262         omap-c++: Add tests.
9263         * tests/test-omap-c++.cc: New file.
9264         * modules/omap-c++-tests: New file.
9266         omap-c++: New module.
9267         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
9268         * modules/omap-c++: New file.
9270 2020-02-02  Bruno Haible  <bruno@clisp.org>
9272         map-c++: Add tests.
9273         * tests/test-map-c++.cc: New file.
9274         * modules/map-c++-tests: New file.
9276         map-c++: New module.
9277         * lib/gl_map.hh: New file, based on lib/gl_map.h.
9278         * modules/map-c++: New file.
9280 2020-02-02  Bruno Haible  <bruno@clisp.org>
9282         oset-c++: Add tests.
9283         * tests/test-oset-c++.cc: New file.
9284         * modules/oset-c++-tests: New file.
9286         oset-c++: New module.
9287         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
9288         * modules/oset-c++: New file.
9290 2020-02-02  Bruno Haible  <bruno@clisp.org>
9292         set-c++: Add tests.
9293         * tests/test-set-c++.cc: New file.
9294         * modules/set-c++-tests: New file.
9296         set-c++: New module.
9297         * lib/gl_set.hh: New file, based on lib/gl_set.h.
9298         * modules/set-c++: New file.
9300 2020-02-02  Bruno Haible  <bruno@clisp.org>
9302         list-c++: Add tests.
9303         * tests/test-list-c++.cc: New file.
9304         * modules/list-c++-tests: New file.
9306         list-c++: New module.
9307         * lib/gl_list.hh: New file, based on lib/gl_list.h.
9308         * modules/list-c++: New file.
9310 2020-02-02  Bruno Haible  <bruno@clisp.org>
9312         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
9313         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
9314         '_Noreturn'.
9315         * lib/sigpipe-die.h (sigpipe_die): Likewise.
9317 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9319         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
9320         On x86_64 with glibc-2.30, gcc 9.2 is giving:
9321           error: argument 2 value '18446744073709551615'
9322           exceeds maximum object size 9223372036854775807
9323           [-Werror=alloc-size-larger-than=]
9324         The details of this restriction are discussed at:
9325         https://stackoverflow.com/q/42574890/4421
9326         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
9328 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9330         sysctl.h: avoid including on glibc
9331         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
9332         * lib/physmem.c: Likewise.
9334 2020-02-02  Bruno Haible  <bruno@clisp.org>
9336         list, set, oset, map, omap: Avoid imperative voice in documentation.
9337         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
9338         in the specification of functions.
9339         * lib/gl_set.h: Likewise.
9340         * lib/gl_oset.h: Likewise.
9341         * lib/gl_map.h: Likewise.
9342         * lib/gl_omap.h: Likewise.
9343         * lib/gl_*.h: Likewise.
9345 2020-02-01  Bruno Haible  <bruno@clisp.org>
9347         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
9348         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
9349         does.
9351 2020-01-29  Bruno Haible  <bruno@clisp.org>
9353         array-map, hash-map, linkedhash-map: Fix module description.
9354         * modules/array-map (Description): Fix description.
9355         * modules/hash-map (Description): Likewise.
9356         * modules/linkedhash-map (Description): Likewise.
9358 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9360         dfa: do not depend on isblank
9361         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
9362         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
9363         * modules/dfa (Depends-on): Remove isblank.
9364         * modules/isblank: Add a module indicator, for lib/dfa.c.
9366         dfa: do not assume 64-bit int
9367         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
9368         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
9369         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
9370         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
9371         Fall back to 32-bit words.
9372         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
9373         of 4 64-bit args.  All uses changed.
9375 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9377         regex: remove limits-h dependency
9378         * modules/regex (Depends-on): Remove limits-h, since the
9379         code no longer depends on ULONG_WIDTH already being defined.
9381         regex: port to non-GCC pre-IEC-60559
9382         Problem reported by Arnold Robbins in:
9383         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
9384         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
9386 2020-01-25  Bruno Haible  <bruno@clisp.org>
9388         c32isxdigit: Add tests.
9389         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
9390         * tests/test-c32isxdigit.sh: New file.
9391         * modules/c32isxdigit-tests: New file.
9393         c32isxdigit: New module.
9394         * lib/c32isxdigit.c: New file.
9395         * modules/c32isxdigit: New file.
9396         * doc/posix-functions/iswxdigit.texi: Mention the new module.
9398 2020-01-25  Bruno Haible  <bruno@clisp.org>
9400         c32isupper: Add tests.
9401         * tests/test-c32isupper.c: New file.
9402         * tests/test-c32isupper.sh: New file.
9403         * modules/c32isupper-tests: New file.
9405         c32isupper: New module.
9406         * lib/c32isupper.c: New file.
9407         * modules/c32isupper: New file.
9408         * doc/posix-functions/iswupper.texi: Mention the new module.
9410 2020-01-25  Bruno Haible  <bruno@clisp.org>
9412         c32isspace: Add tests.
9413         * tests/test-c32isspace.c: New file.
9414         * tests/test-c32isspace.sh: New file.
9415         * modules/c32isspace-tests: New file.
9417         c32isspace: New module.
9418         * lib/c32isspace.c: New file.
9419         * modules/c32isspace: New file.
9420         * doc/posix-functions/iswspace.texi: Mention the new module.
9422 2020-01-25  Bruno Haible  <bruno@clisp.org>
9424         c32ispunct: Add tests.
9425         * tests/test-c32ispunct.c: New file.
9426         * tests/test-c32ispunct.sh: New file.
9427         * modules/c32ispunct-tests: New file.
9429         c32ispunct: New module.
9430         * lib/c32ispunct.c: New file.
9431         * modules/c32ispunct: New file.
9432         * doc/posix-functions/iswpunct.texi: Mention the new module.
9434 2020-01-25  Bruno Haible  <bruno@clisp.org>
9436         c32isprint: Add tests.
9437         * tests/test-c32isprint.c: New file.
9438         * tests/test-c32isprint.sh: New file.
9439         * modules/c32isprint-tests: New file.
9441         c32isprint: New module.
9442         * lib/c32isprint.c: New file.
9443         * modules/c32isprint: New file.
9444         * doc/posix-functions/iswprint.texi: Mention the new module.
9446 2020-01-25  Bruno Haible  <bruno@clisp.org>
9448         c32islower: Add tests.
9449         * tests/test-c32islower.c: New file.
9450         * tests/test-c32islower.sh: New file.
9451         * modules/c32islower-tests: New file.
9453         c32islower: New module.
9454         * lib/c32islower.c: New file.
9455         * modules/c32islower: New file.
9456         * doc/posix-functions/iswlower.texi: Mention the new module.
9458 2020-01-25  Bruno Haible  <bruno@clisp.org>
9460         c32isgraph: Add tests.
9461         * tests/test-c32isgraph.c: New file.
9462         * tests/test-c32isgraph.sh: New file.
9463         * modules/c32isgraph-tests: New file.
9465         c32isgraph: New module.
9466         * lib/c32isgraph.c: New file.
9467         * modules/c32isgraph: New file.
9468         * doc/posix-functions/iswgraph.texi: Mention the new module.
9470 2020-01-25  Bruno Haible  <bruno@clisp.org>
9472         c32isdigit: Add tests.
9473         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9474         * tests/test-c32isdigit.sh: New file.
9475         * modules/c32isdigit-tests: New file.
9477         c32isdigit: New module.
9478         * lib/c32isdigit.c: New file.
9479         * modules/c32isdigit: New file.
9480         * doc/posix-functions/iswdigit.texi: Mention the new module.
9482 2020-01-25  Bruno Haible  <bruno@clisp.org>
9484         c32iscntrl: Add tests.
9485         * tests/test-c32iscntrl.c: New file.
9486         * tests/test-c32iscntrl.sh: New file.
9487         * modules/c32iscntrl-tests: New file.
9489         c32iscntrl: New module.
9490         * lib/c32iscntrl.c: New file.
9491         * modules/c32iscntrl: New file.
9492         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9494 2020-01-25  Bruno Haible  <bruno@clisp.org>
9496         c32isblank: Add tests.
9497         * tests/test-c32isblank.c: New file.
9498         * tests/test-c32isblank.sh: New file.
9499         * modules/c32isblank-tests: New file.
9501         c32isblank: New module.
9502         * lib/c32isblank.c: New file.
9503         * modules/c32isblank: New file.
9504         * doc/posix-functions/iswblank.texi: Mention the new module.
9506 2020-01-25  Bruno Haible  <bruno@clisp.org>
9508         c32isalpha: Add tests.
9509         * tests/test-c32isalpha.c: New file.
9510         * tests/test-c32isalpha.sh: New file.
9511         * modules/c32isalpha-tests: New file.
9513         c32isalpha: New module.
9514         * lib/c32isalpha.c: New file.
9515         * modules/c32isalpha: New file.
9516         * doc/posix-functions/iswalpha.texi: Mention the new module.
9518 2020-01-25  Bruno Haible  <bruno@clisp.org>
9520         c32isalnum: Add tests.
9521         * tests/test-c32isalnum.c: New file.
9522         * tests/test-c32isalnum.sh: New file.
9523         * modules/c32isalnum-tests: New file.
9525         c32isalnum: New module.
9526         * lib/c32isalnum.c: New file.
9527         * lib/c32is-impl.h: New file.
9528         * modules/c32isalnum: New file.
9529         * doc/posix-functions/iswalnum.texi: Mention the new module.
9531 2020-01-25  Bruno Haible  <bruno@clisp.org>
9533         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9534         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9535         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9536         c32isupper, c32isxdigit): New declarations.
9537         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9538         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9539         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9540         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9541         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9542         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9543         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9544         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9545         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9546         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9547         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9548         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9549         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9551 2020-01-25  Bruno Haible  <bruno@clisp.org>
9553         mbchar, wctype: Use the corrected iswxdigit function.
9554         * modules/mbchar (Depends-on): Add iswxdigit.
9555         * modules/wctype (Depends-on): Likewise.
9557         iswxdigit: Add tests.
9558         * tests/test-iswxdigit.c: New file.
9559         * tests/test-iswxdigit.sh: New file.
9560         * modules/iswxdigit-tests: New file.
9562         iswxdigit: New module.
9563         * m4/iswxdigit.m4: New file.
9564         * lib/wctype.in.h (iswxdigit): Potentially override.
9565         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9566         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9567         * lib/iswxdigit.c: New file.
9568         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9569         REPLACE_ISWXDIGIT.
9570         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9571         REPLACE_ISWXDIGIT.
9572         * modules/iswxdigit: New file.
9573         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9575 2020-01-25  Bruno Haible  <bruno@clisp.org>
9577         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9578         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9579         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9580         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9581         off_t on mingw, invoke _lseeki64 instead of lseek.
9583 2020-01-25  Bruno Haible  <bruno@clisp.org>
9585         iswdigit tests: Avoid test failure on Cygwin.
9586         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9587         byte sequence, return 0.
9589         iswdigit: Fix test failure on native Windows.
9590         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9592         mbchar, wctype: Use the corrected iswdigit function.
9593         * modules/mbchar (Depends-on): Add iswdigit.
9594         * modules/wctype (Depends-on): Likewise.
9596         iswdigit: Add tests.
9597         * tests/test-iswdigit.c: New file.
9598         * tests/test-iswdigit.sh: New file.
9599         * modules/iswdigit-tests: New file.
9601         iswdigit: New module.
9602         * m4/iswdigit.m4: New file.
9603         * lib/wctype.in.h (iswdigit): Potentially override.
9604         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9605         * lib/iswdigit.c: New file.
9606         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9607         REPLACE_ISWDIGIT.
9608         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9609         REPLACE_ISWDIGIT.
9610         * modules/iswdigit: New file.
9611         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9613 2020-01-25  Bruno Haible  <bruno@clisp.org>
9615         hard-locale tests: Make it easy to reuse the musl test.
9616         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9617         * modules/hard-locale-tests (Files): Add it.
9618         (configure.ac): Invoke gl_MUSL_LIBC.
9620 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9622         regex: port to Gawk on nonstandard platforms
9623         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9624         This is useful for Gawk, which does not use the Gnulib stdlib-h
9625         module.  Problem reported by Arnold Robbins in:
9626         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9628 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9630         regex: fix bug with >=16 subexpressions
9631         * lib/regex_internal.h (struct re_backref_cache_entry):
9632         Use bitset_word_t as the type of eps_reachable_subexps_map,
9633         instead of unsigned short int.  This fixes a bug I introduced
9634         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9635         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9636         Remove unused member 'unused'.
9638         regex: simplify definition of BITSET_WORD_BITS
9639         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9640         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9641         * lib/regex_internal.h (BITSET_WORD_BITS):
9642         * modules/regex (Depends-on): Add limits-h.
9643         Simplify now that we can use ULONG_WIDTH.
9645 2020-01-20  Bruno Haible  <bruno@clisp.org>
9647         mbrtoc32: Add note about FreeBSD 12.
9648         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9649         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9650         affected.
9652 2020-01-20  Bruno Haible  <bruno@clisp.org>
9654         unistr/u8-uctomb: Fix warning.
9655         Reported by Andreas Schwab <schwab@suse.de> in
9656         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9657         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9658         (u8_uctomb): Add FALLTHROUGH markers.
9660 2020-01-20  Bruno Haible  <bruno@clisp.org>
9662         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9663         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9664         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9665         (glthread_once): Use it.
9667 2020-01-19  Bruno Haible  <bruno@clisp.org>
9669         threadlib: Disable use of weak symbols on FreeBSD 11.
9670         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9671         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9672         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9673         against a bug in FreeBSD 11.
9675 2020-01-19  Bruno Haible  <bruno@clisp.org>
9677         iconv_open: Improve z/OS support.
9678         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9679         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9680         Remove mapping for EUC-TW.
9682 2020-01-18  Bruno Haible  <bruno@clisp.org>
9684         Rename ~~gnulib.m4 to zzgnulib.m4.
9685         Suggested by Paul Eggert.
9686         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9687         * gnulib-tool (func_get_filelist): Update.
9688         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9690 2020-01-18  Bruno Haible  <bruno@clisp.org>
9692         doc: Update license notices.
9693         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9694         reference to a section or to a "file as part of this distribution".
9696 2020-01-18  Bruno Haible  <bruno@clisp.org>
9698         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9699         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9700         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9701         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9702         AC_EGREP_CPP.
9704 2020-01-18  Bruno Haible  <bruno@clisp.org>
9706         Ensure Automake does not drop ~~gnulib.m4.
9707         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9708         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9710 2020-01-18  Bruno Haible  <bruno@clisp.org>
9712         Fix major regression from 2020-01-10.
9713         Reported by Paul Eggert in
9714         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9715         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9716         Don't AC_REQUIRE anything.
9717         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9718         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9719         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9720         use ac_compile instead.
9721         (AC_CHECK_DECL): Remove override.
9722         * m4/~~gnulib.m4: New file.
9723         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9724         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9726 2020-01-17  Bruno Haible  <bruno@clisp.org>
9727             Paul Eggert  <eggert@cs.ucla.edu>
9729         glob: Fix use-after-free bug.
9730         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9731         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9732         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9733         end_name.
9735 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9737         vcs-to-changelog: Fix parsing of fndecl without args.
9738         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9739         for empty arguments.
9741 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9743         vcs-to-changelog: Add documentation.
9744         * doc/vcs-to-changelog.texi: New file.
9745         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9746         section.
9748 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9750         vcs-to-changelog: Allow loading of custom quirks file.
9751         * build-aux/vcs_to_changelog.py: New commandline option -q.
9753 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9755         vcs-to-changelog: Fix formatting of ChangeLog output.
9756         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9757         output.
9759 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9761         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9762         Reported in
9763         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9764         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9766 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9768         crypto/gc-pbkdf2: New module.
9769         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9770         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9771         * lib/gc-pbkdf2.c: New file.
9772         * lib/gc-pbkdf2-sha1.c: Use new interface.
9773         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9774         * modules/crypto/gc-pbkdf2: New file.
9775         * modules/crypto/gc-pbkdf2-tests: New file.
9776         * tests/test-gc-pbkdf2.c: New file.
9778 2020-01-12  Bruno Haible  <bruno@clisp.org>
9780         c32stombs: Add tests.
9781         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9782         * tests/test-c32stombs-1.sh: New file, based on
9783         tests/test-c32srtombs-1.sh.
9784         * tests/test-c32stombs-2.sh: New file, based on
9785         tests/test-c32srtombs-2.sh.
9786         * tests/test-c32stombs-3.sh: New file, based on
9787         tests/test-c32srtombs-3.sh.
9788         * tests/test-c32stombs-4.sh: New file, based on
9789         tests/test-c32srtombs-4.sh.
9790         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9792         c32stombs: New module.
9793         * lib/uchar.in.h (c32stombs): New declaration.
9794         * lib/c32stombs.c: New file.
9795         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9796         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9797         * modules/c32stombs: New file.
9798         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9799         * doc/posix-functions/wcstombs.texi: Mention the new module.
9801 2020-01-11  Jim Meyering  <meyering@fb.com>
9803         perl: require the "warnings" module
9804         * m4/perl.m4: Also "use warnings", so we reject the perl found
9805         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9806         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9808 2020-01-10  Bruno Haible  <bruno@clisp.org>
9810         Fix major regression from 2020-01-04.
9811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9812         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9813         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9814         AC_DEFUN_ONCE.
9815         (AC_CHECK_DECL): Invoke, not require, it.
9817 2020-01-10  Bruno Haible  <bruno@clisp.org>
9819         c32snrtombs: Add tests.
9820         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9821         * tests/test-c32snrtombs-1.sh: New file, based on
9822         tests/test-wcsnrtombs1.sh.
9823         * tests/test-c32snrtombs-2.sh: New file, based on
9824         tests/test-wcsnrtombs2.sh.
9825         * tests/test-c32snrtombs-3.sh: New file, based on
9826         tests/test-wcsnrtombs3.sh.
9827         * tests/test-c32snrtombs-4.sh: New file, based on
9828         tests/test-wcsnrtombs4.sh.
9829         * modules/c32snrtombs-tests: New file, based on
9830         modules/wcsnrtombs-tests.
9832         c32snrtombs: New module.
9833         * lib/uchar.in.h (c32snrtombs): New declaration.
9834         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9835         INTERNAL_STATE, WCRTOMB.
9836         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9837         * lib/c32snrtombs.c: New file.
9838         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9839         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9840         * modules/c32snrtombs: New file.
9841         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9842         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9844 2020-01-09  Bruno Haible  <bruno@clisp.org>
9846         c32srtombs: Add tests.
9847         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9848         * tests/test-c32srtombs-1.sh: New file, based on
9849         tests/test-wcsrtombs1.sh.
9850         * tests/test-c32srtombs-2.sh: New file, based on
9851         tests/test-wcsrtombs2.sh.
9852         * tests/test-c32srtombs-3.sh: New file, based on
9853         tests/test-wcsrtombs3.sh.
9854         * tests/test-c32srtombs-4.sh: New file, based on
9855         tests/test-wcsrtombs4.sh.
9856         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9858         c32srtombs: New module.
9859         * lib/uchar.in.h (c32srtombs): New declaration.
9860         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9861         INTERNAL_STATE, WCRTOMB.
9862         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9863         * lib/c32srtombs.c: New file.
9864         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9865         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9866         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9867         * modules/c32srtombs: New file.
9868         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9869         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9871 2020-01-08  Bruno Haible  <bruno@clisp.org>
9873         c32tob: Make consistent with mbrtoc32.
9874         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9875         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9876         use c32rtomb, not wctob.
9877         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9878         (Depends-on): Add c32rtomb.
9879         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9881 2020-01-08  Bruno Haible  <bruno@clisp.org>
9883         c32rtomb: Add tests.
9884         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9885         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9886         * tests/test-c32rtomb-w32.c: New file, based on
9887         tests/test-wcrtomb-w32.c.
9888         * tests/test-c32rtomb-w32-1.sh: New file, based on
9889         tests/test-wcrtomb-w32-1.sh.
9890         * tests/test-c32rtomb-w32-2.sh: New file, based on
9891         tests/test-wcrtomb-w32-2.sh.
9892         * tests/test-c32rtomb-w32-3.sh: New file, based on
9893         tests/test-wcrtomb-w32-3.sh.
9894         * tests/test-c32rtomb-w32-4.sh: New file, based on
9895         tests/test-wcrtomb-w32-4.sh.
9896         * tests/test-c32rtomb-w32-5.sh: New file, based on
9897         tests/test-wcrtomb-w32-5.sh.
9898         * tests/test-c32rtomb-w32-6.sh: New file, based on
9899         tests/test-wcrtomb-w32-6.sh.
9900         * tests/test-c32rtomb-w32-7.sh: New file, based on
9901         tests/test-wcrtomb-w32-7.sh.
9902         * modules/c32rtomb-tests: New file.
9904         c32rtomb: New module.
9905         * lib/uchar.in.h (c32rtomb): New declaration.
9906         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9907         * m4/c32rtomb.m4: New file.
9908         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9909         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9910         REPLACE_C32RTOMB.
9911         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9912         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9913         * modules/c32rtomb: New file.
9914         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9915         * doc/posix-functions/c32rtomb.texi: Document the new module.
9916         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9918 2020-01-08  Bruno Haible  <bruno@clisp.org>
9920         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9921         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9922         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9923         but is not working.
9924         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9925         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9926         differ, use the system's mbrtoc32, adding workarounds.
9927         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9928         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9929         Windows problem.
9930         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9931         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9932         use mbrtoc32, not btowc.
9933         * modules/btoc32 (Depends-on): Add mbrtoc32.
9934         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9935         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9936         * modules/mbsrtoc32s (Depends-on): Update conditions.
9937         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9938         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9939         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9940         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9941         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9943 2020-01-07  Bruno Haible  <bruno@clisp.org>
9945         wcrtomb: Make multithread-safe, except possibly on IRIX.
9946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9947         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9948         WCRTOMB_RETVAL_BUG.
9949         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9950         wctomb only on IRIX.
9952 2020-01-05  Jim Meyering  <meyering@fb.com>
9954         tests: skip thread-using tests when threading is disabled
9955         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9956         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9957         of those, so they are skipped in this case.
9958         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9959         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9960         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9962 2020-01-05  Bruno Haible  <bruno@clisp.org>
9964         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9965         Reported by Jim Meyering in
9966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9967         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9968         (GNULIB_defined_ptsname_r): New macro.
9969         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9970         (main): Disable the NULL argument test if canonicalize_file_name does
9971         not come from gnulib.
9972         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9973         (main): Disable the NULL argument test if canonicalize_file_name does
9974         not come from gnulib.
9975         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9976         (test_errors): Disable the NULL argument test if ptsname_r does not come
9977         from gnulib.
9979 2020-01-04  Jim Meyering  <meyering@fb.com>
9981         update-copyright: reenable its always-skipped test
9982         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9983         on 2019-06-15. Without those, an internal preliminary test would
9984         fail, causing this test always to be skipped.
9985         Verify that the test is now run and passes via this:
9986           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9988 2020-01-05  Bruno Haible  <bruno@clisp.org>
9990         mbstoc32s: Add tests.
9991         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9992         * tests/test-mbstoc32s-1.sh: New file, based on
9993         tests/test-mbsrtoc32s-1.sh.
9994         * tests/test-mbstoc32s-2.sh: New file, based on
9995         tests/test-mbsrtoc32s-2.sh.
9996         * tests/test-mbstoc32s-3.sh: New file, based on
9997         tests/test-mbsrtoc32s-3.sh.
9998         * tests/test-mbstoc32s-4.sh: New file, based on
9999         tests/test-mbsrtoc32s-4.sh.
10000         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
10002         mbstoc32s: New module.
10003         * lib/uchar.in.h (mbstoc32s): New declaration.
10004         * lib/mbstoc32s.c: New file.
10005         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
10006         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
10007         * modules/mbstoc32s: New file.
10008         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
10009         * doc/posix-functions/mbstowcs.texi: Mention the new module.
10011 2020-01-05  Bruno Haible  <bruno@clisp.org>
10013         Tweak recently added tests.
10014         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
10015         * tests/test-mbsrtoc32s.c: Likewise.
10016         * tests/test-mbsnrtoc32s.c: Likewise.
10018 2020-01-04  Bruno Haible  <bruno@clisp.org>
10020         mbsnrtoc32s: Add tests.
10021         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
10022         * tests/test-mbsnrtoc32s-1.sh: New file, based on
10023         tests/test-mbsnrtowcs1.sh.
10024         * tests/test-mbsnrtoc32s-2.sh: New file, based on
10025         tests/test-mbsnrtowcs2.sh.
10026         * tests/test-mbsnrtoc32s-3.sh: New file, based on
10027         tests/test-mbsnrtowcs3.sh.
10028         * tests/test-mbsnrtoc32s-4.sh: New file, based on
10029         tests/test-mbsnrtowcs4.sh.
10030         * modules/mbsnrtoc32s-tests: New file, based on
10031         modules/mbsnrtowcs-tests.
10033         mbsnrtoc32s: New module.
10034         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
10035         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10036         INTERNAL_STATE, MBRTOWC.
10037         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10038         * lib/mbsnrtoc32s.c: New file.
10039         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
10040         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
10041         * modules/mbsnrtoc32s: New file.
10042         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
10043         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
10045 2020-01-04  Bruno Haible  <bruno@clisp.org>
10047         mbsrtoc32s tests: Enhance test.
10048         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
10049         test strings for UTF-8 and GB18030.
10051 2020-01-04  Bruno Haible  <bruno@clisp.org>
10053         mbsrtoc32s: Fix bug.
10054         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
10055         that SMALL_WCHAR_T is defined.
10057 2020-01-04  Bruno Haible  <bruno@clisp.org>
10059         mbsrtoc32s: Add tests.
10060         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
10061         * tests/test-mbsrtoc32s-1.sh: New file, based on
10062         tests/test-mbsrtowcs1.sh.
10063         * tests/test-mbsrtoc32s-2.sh: New file, based on
10064         tests/test-mbsrtowcs2.sh.
10065         * tests/test-mbsrtoc32s-3.sh: New file, based on
10066         tests/test-mbsrtowcs3.sh.
10067         * tests/test-mbsrtoc32s-4.sh: New file, based on
10068         tests/test-mbsrtowcs4.sh.
10069         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
10071         mbsrtoc32s: New module.
10072         * lib/uchar.in.h (mbsrtoc32s): New declaration.
10073         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10074         INTERNAL_STATE, MBRTOWC.
10075         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10076         * lib/mbsrtoc32s.c: New file.
10077         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
10078         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
10079         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
10080         * modules/mbsrtoc32s: New file.
10081         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
10082         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
10084 2020-01-04  Bruno Haible  <bruno@clisp.org>
10086         mbrtowc, mbrtoc32: Tighten dependendies.
10087         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
10088         REPLACE_MBSTATE_T is 1.
10089         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10090         REPLACE_MBSTATE_T is 0.
10091         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
10092         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
10093         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10094         REPLACE_MBSTATE_T is 0.
10096 2020-01-04  Bruno Haible  <bruno@clisp.org>
10098         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
10099         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
10100         * modules/uchar (Files): Add stdint.m4.
10101         (Makefile.am): Substitute SMALL_WCHAR_T.
10102         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
10104 2020-01-04  Bruno Haible  <bruno@clisp.org>
10106         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
10107         Reported by Martin Storsjö <martin@martin.st> in
10108         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
10109         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
10110         New macros.
10111         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
10113 2020-01-04  Bruno Haible  <bruno@clisp.org>
10115         btoc32: Add tests.
10116         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
10117         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
10118         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
10119         * modules/btoc32-tests: New file, based on modules/btowc-tests.
10121         btoc32: New module.
10122         * lib/uchar.in.h (btoc32): New declaration.
10123         * lib/btoc32.c: New file.
10124         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
10125         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
10126         * modules/btoc32: New file.
10127         * tests/test-uchar-c++.cc: Test the signature of btoc32.
10128         * doc/posix-functions/btowc.texi: Mention the new module.
10130 2020-01-03  Bruno Haible  <bruno@clisp.org>
10132         uchar tests: Avoid compilation error with HP cc.
10133         * tests/test-uchar.c: Disable a test when HP cc is in use.
10135 2020-01-03  Bruno Haible  <bruno@clisp.org>
10137         mbrtoc32: Add tests.
10138         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
10139         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
10140         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
10141         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
10142         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
10143         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
10144         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
10145         * tests/test-mbrtoc32-w32-1.sh: New file, based on
10146         tests/test-mbrtowc-w32-1.sh.
10147         * tests/test-mbrtoc32-w32-2.sh: New file, based on
10148         tests/test-mbrtowc-w32-2.sh.
10149         * tests/test-mbrtoc32-w32-3.sh: New file, based on
10150         tests/test-mbrtowc-w32-3.sh.
10151         * tests/test-mbrtoc32-w32-4.sh: New file, based on
10152         tests/test-mbrtowc-w32-4.sh.
10153         * tests/test-mbrtoc32-w32-5.sh: New file, based on
10154         tests/test-mbrtowc-w32-5.sh.
10155         * tests/test-mbrtoc32-w32-6.sh: New file, based on
10156         tests/test-mbrtowc-w32-6.sh.
10157         * tests/test-mbrtoc32-w32-7.sh: New file, based on
10158         tests/test-mbrtowc-w32-7.sh.
10159         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
10161         mbrtoc32: New module.
10162         * lib/uchar.in.h (mbrtoc32): New declaration.
10163         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
10164         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
10165         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
10166         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
10167         REPLACE_MBRTOC32.
10168         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
10169         HAVE_MBRTOC32, REPLACE_MBRTOC32.
10170         * modules/mbrtoc32: New file, based on modules/mbrtowc.
10171         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
10172         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
10173         $(LIB_MBRTOWC).
10174         * doc/posix-functions/mbrtoc32.texi: Document the new module.
10175         * doc/posix-functions/mbrtowc.texi: Mention the new module.
10177 2020-01-03  Bruno Haible  <bruno@clisp.org>
10179         mbrtowc: Refactor to share code with mbrtoc32.
10180         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
10181         * lib/mbrtowc-impl-utf8.h: Likewise.
10182         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
10183         mbrtowc-impl.h.
10184         * modules/mbrtowc (Files): Add the new files.
10186 2020-01-03  Jim Meyering  <meyering@fb.com>
10188         doc: fix time.texi wording
10189         * doc/posix-headers/time.texi (time.h): Typo.
10191 2020-01-03  Bruno Haible  <bruno@clisp.org>
10193         mbrtowc: Refactor locale charset dispatching.
10194         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
10195         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
10196         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
10197         localcharset.h, streq.h.
10198         (enc_t): Remove type.
10199         (locale_enc): Remove function.
10200         (cached_locale_enc): Remove variable.
10201         (locale_enc_cached): Remove function.
10202         (mbrtowc): Invoke locale_encoding_classification.
10203         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
10204         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
10205         lc-charset-dispatch.c.
10206         (configure.ac): Arrange to compile lc-charset-dispatch.c.
10208 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10210         doc: mention 32-bit time_t issue
10211         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10212         * doc/posix-headers/time.texi (time.h): Mention 2038.
10214 2020-01-03  Bruno Haible  <bruno@clisp.org>
10216         mbrtowc: Ensure the mbtowc_lock is unique.
10217         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
10218         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
10219         lib/setlocale_null.c.
10220         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
10221         glthread/lock.h. Include mbtowc-lock.h.
10222         (mbtowc_lock): Remove declaration.
10223         (mbrtowc): Use mbtowc_with_lock.
10224         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
10225         threads.h. Set LIB_MBRTOWC.
10226         (gl_PREREQ_MBTOWC_LOCK): New macro.
10227         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
10228         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
10229         (Depends-on): Remove lock.
10230         (configure.ac): Arrange to compile mbtowc-lock.c.
10231         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
10232         * modules/acl (Link): Likewise.
10233         * modules/argmatch (Link): Likewise.
10234         * modules/backup-rename (Link): Likewise.
10235         * modules/backupfile (Link): Likewise.
10236         * modules/closein (Link): Likewise.
10237         * modules/closeout (Link): Likewise.
10238         * modules/copy-file (Link): Likewise.
10239         * modules/csharpcomp (Link): Likewise.
10240         * modules/csharpexec (Link): Likewise.
10241         * modules/dfa (Link): Likewise.
10242         * modules/exclude (Link): Likewise.
10243         * modules/fnmatch (Link): Likewise.
10244         * modules/fnmatch-gnu (Link): Likewise.
10245         * modules/fnmatch-posix (Link): Likewise.
10246         * modules/glob (Link): Likewise.
10247         * modules/human (Link): Likewise.
10248         * modules/javacomp (Link): Likewise.
10249         * modules/javaexec (Link): Likewise.
10250         * modules/javaversion (Link): Likewise.
10251         * modules/mbfile (Link): Likewise.
10252         * modules/mbiter (Link): Likewise.
10253         * modules/mbmemcasecmp (Link): Likewise.
10254         * modules/mbmemcasecoll (Link): Likewise.
10255         * modules/mbrlen (Link): Likewise.
10256         * modules/mbscasecmp (Link): Likewise.
10257         * modules/mbscasestr (Link): Likewise.
10258         * modules/mbschr (Link): Likewise.
10259         * modules/mbscspn (Link): Likewise.
10260         * modules/mbsinit (Link): Likewise.
10261         * modules/mbslen (Link): Likewise.
10262         * modules/mbsncasecmp (Link): Likewise.
10263         * modules/mbsnlen (Link): Likewise.
10264         * modules/mbsnrtowcs (Link): Likewise.
10265         * modules/mbspbrk (Link): Likewise.
10266         * modules/mbspcasecmp (Link): Likewise.
10267         * modules/mbsrchr (Link): Likewise.
10268         * modules/mbsrtowcs (Link): Likewise.
10269         * modules/mbssep (Link): Likewise.
10270         * modules/mbsspn (Link): Likewise.
10271         * modules/mbsstr (Link): Likewise.
10272         * modules/mbstok_r (Link): Likewise.
10273         * modules/mbswidth (Link): Likewise.
10274         * modules/mbuiter (Link): Likewise.
10275         * modules/mkdir-p (Link): Likewise.
10276         * modules/propername (Link): Likewise.
10277         * modules/quote (Link): Likewise.
10278         * modules/quotearg (Link): Likewise.
10279         * modules/quotearg-simple (Link): Likewise.
10280         * modules/regex-quote (Link): Likewise.
10281         * modules/rpmatch (Link): Likewise.
10282         * modules/sh-quote (Link): Likewise.
10283         * modules/system-quote (Link): Likewise.
10284         * modules/trim (Link): Likewise.
10285         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10286         * modules/unistdio/ulc-fprintf (Link): Likewise.
10287         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10288         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10289         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10290         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10291         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10292         * modules/xfreopen (Link): Likewise.
10293         * modules/xmemcoll (Link): Likewise.
10294         * modules/yesno (Link): Likewise.
10295         * modules/regex (Link): Add $(LIB_MBRTOWC).
10296         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
10297         instead of $(LIBTHREAD).
10298         * modules/argmatch-tests (Makefile.am): Likewise.
10299         * modules/closein-tests (Makefile.am): Likewise.
10300         * modules/copy-file-tests (Makefile.am): Likewise.
10301         * modules/dfa-tests (Makefile.am): Likewise.
10302         * modules/fnmatch-tests (Makefile.am): Likewise.
10303         * modules/glob-tests (Makefile.am): Likewise.
10304         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10305         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10306         * modules/mbrtowc-tests (Makefile.am): Likewise.
10307         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10308         * modules/mbscasestr-tests (Makefile.am): Likewise.
10309         * modules/mbschr-tests (Makefile.am): Likewise.
10310         * modules/mbscspn-tests (Makefile.am): Likewise.
10311         * modules/mbsinit-tests (Makefile.am): Likewise.
10312         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10313         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10314         * modules/mbspbrk-tests (Makefile.am): Likewise.
10315         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10316         * modules/mbsrchr-tests (Makefile.am): Likewise.
10317         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10318         * modules/mbsspn-tests (Makefile.am): Likewise.
10319         * modules/mbsstr-tests (Makefile.am): Likewise.
10320         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10321         * modules/quotearg-tests (Makefile.am): Likewise.
10322         * modules/readtokens-tests (Makefile.am): Likewise.
10323         * modules/sh-quote-tests (Makefile.am): Likewise.
10324         * modules/system-quote-tests (Makefile.am): Likewise.
10325         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10326         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10327         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10328         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10329         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10330         * modules/yesno-tests (Makefile.am): Likewise.
10331         * modules/exclude-tests (Makefile.am): Link the programs with
10332         $(LIB_MBRTOWC).
10333         * modules/regex-tests (Makefile.am): Likewise.
10334         * modules/regex-quote-tests (Makefile.am): Likewise.
10336 2020-01-03  Bruno Haible  <bruno@clisp.org>
10338         getopt-posix: Fix compilation failure in testdirs.
10339         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
10340         when the gnulib module 'getopt-posix' is enabled.
10341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
10342         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
10343         module indicator.
10344         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
10346 2020-01-03  Bruno Haible  <bruno@clisp.org>
10348         doc: Mention the 64-bit inode number problem.
10349         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
10350         64-bit inode number problem.
10351         * doc/posix-functions/stat.texi: Mention that this module fixes the
10352         64-bit inode number problem.
10353         * doc/posix-functions/lstat.texi: Likewise.
10354         * doc/posix-functions/fstat.texi: Likewise.
10355         * doc/posix-functions/readdir.texi: Add more details.
10356         * doc/posix-functions/readdir_r.texi: Likewise.
10358 2020-01-02  Bruno Haible  <bruno@clisp.org>
10360         wcrtomb: Add more tests.
10361         * tests/test-wcrtomb-w32.c: Include localcharset.h.
10362         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10363         locale_charset() returns the expected value; otherwise, skip the test.
10364         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
10365         * tests/test-wcrtomb-w32-7.sh: Likewise.
10366         * modules/wcrtomb-tests (Files): Add these files.
10367         (Depends-on): Add localcharset.
10368         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
10370 2020-01-02  Bruno Haible  <bruno@clisp.org>
10372         mbrtowc: Add more tests.
10373         * tests/test-mbrtowc-w32.c: Include localcharset.h.
10374         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10375         locale_charset() returns the expected value; otherwise, skip the test.
10376         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
10377         * tests/test-mbrtowc-w32-7.sh: Likewise.
10378         * modules/mbrtowc-tests (Files): Add these files.
10379         (Depends-on): Add localcharset.
10380         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
10382 2020-01-02  Bruno Haible  <bruno@clisp.org>
10384         mbrtowc: Fix test failures on MSVC (regression by previous commit).
10385         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
10386         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
10387         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
10388         MBRTOWC_STORES_INCOMPLETE_BUG.
10389         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
10391 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10393         doc: mention glibc bug 24269
10394         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
10395         Reformat slightly so that it looks nicer in the Grep manual.
10397 2020-01-02  Bruno Haible  <bruno@clisp.org>
10399         mbrtowc: Don't replace mbstate_t on MSVC.
10400         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
10401         a missing mbsinit function on native Windows.
10402         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
10403         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
10404         MSVC bug.
10405         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
10407 2020-01-02  Bruno Haible  <bruno@clisp.org>
10409         setlocale-null: Avoid crashing the MSVC linker.
10410         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
10411         MSVC.
10413 2020-01-02  Bruno Haible  <bruno@clisp.org>
10415         wchar: Make the HP-UX workaround work on HP-UX 11.31.
10416         * modules/wchar (Depends-on): Add inttypes-incomplete.
10417         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
10418         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
10419         of strtoimax.
10421 2020-01-02  Bruno Haible  <bruno@clisp.org>
10423         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10424         * lib/mbrtowc.c: Include <stdint.h>.
10425         * modules/mbrtowc (Depends-on): Add stdint.
10427 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10429         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10430         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10431         which will auto enable use of openssl, only for >= version 3,
10432         which is newly licensed under the Apache Software License.
10434 2020-01-01  Bruno Haible  <bruno@clisp.org>
10436         mbrtowc: Include function name in macro names.
10437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10438         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10439         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10440         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10441         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10442         C_LOCALE_MAYBE_EILSEQ.
10444 2020-01-01  Bruno Haible  <bruno@clisp.org>
10446         c32tob: New module.
10447         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10448         (c32tob): New declaration.
10449         * lib/c32tob.c: New file.
10450         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10451         macros.
10452         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10453         * modules/uchar (Depends-on): Add snippet/c++defs.
10454         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10455         uchar.h.
10456         * modules/c32tob: New file.
10457         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10458         defined.
10459         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10460         c32tob.
10461         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10462         * doc/posix-functions/wctob.texi: Mention the new module.
10464 2020-01-01  Bruno Haible  <bruno@clisp.org>
10466         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10467         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10468         $(LIB_SETLOCALE).
10470 2020-01-01  Bruno Haible  <bruno@clisp.org>
10472         hard-locale tests: Fix a conflict with the C++ tests.
10473         * modules/hard-locale-tests (Makefile.am): Build a program named
10474         'current-locale', not 'locale'.
10476 2020-01-01  Bruno Haible  <bruno@clisp.org>
10478         doc: Update documentation about wchar_t.
10479         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10480         wchar_t type.
10482 2020-01-01  Bruno Haible  <bruno@clisp.org>
10484         mbrtowc tests: Fix typos.
10485         * tests/test-mbrtowc.c (main): Fix typo.
10486         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10488 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10490         maint: update copyright notices
10491         Before doing the following changes done by hand, I also ran ‘make
10492         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10493         to do most of the copyright years automatically.  A few upstream
10494         sources are still in 2019 but these should eventually be changed
10495         automatically too.
10496         * build-aux/declared.sh (func_version):
10497         * build-aux/libtool-next-version (func_version):
10498         * build-aux/run-test (func_version):
10499         Update these notices by hand.  Put just the last year
10500         in output of programs, as per GNU coding standards.
10502 2019-12-31  Bruno Haible  <bruno@clisp.org>
10504         uchar: Add C++ tests.
10505         * tests/test-uchar-c++.cc: New file.
10506         * tests/test-uchar-c++2.cc: New file.
10507         * modules/uchar-c++-tests: New file.
10509         uchar: Add tests.
10510         * tests/test-uchar.c: New file.
10511         * modules/uchar-tests: New file.
10513         uchar: New module.
10514         * lib/uchar.in.h: New file.
10515         * m4/uchar.m4: New file.
10516         * modules/uchar: New file.
10517         * doc/posix-headers/uchar.texi: Mention the new module.
10519 2019-12-30  Jim Meyering  <meyering@fb.com>
10521         localeinfo: ->simple would be wrong for LC_ALL=C
10522         That would lead to using unnecessary and expensive code paths in dfa.c.
10523         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10524         error that would have made grep many times slower in the C locale.
10525         With this change, and a file created like this:
10526           yes 00 | head -10000000 > in
10527         Running grep as follows becomes more than 40 times faster:
10528           LC_ALL=C grep -Fw 0 in
10530 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10532         doc: document trouble with back-references
10533         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10535 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10537         doc: use “back-reference” for \1 etc.
10538         * doc/regex.texi: Consistently spell “back-reference” with
10539         a hyphen, since that’s how POSIX does it.
10541 2019-12-26  Jim Meyering  <meyering@fb.com>
10543         test-framework-sh: tighten an internal grep regexp
10544         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10545         that helps test for a working printf.
10547 2019-12-26  Bruno Haible  <bruno@clisp.org>
10549         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10550         Reported by Paul Eggert in
10551         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10552         Simplification by Jim Meyering.
10553         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10554         octal escape sequence in a UTF-8 locale.
10556 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10558         mbrtowc: port better to narrow-wchar_t platforms
10559         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10560         wchar_t is too narrow to represent all the Unicode characters,
10561         consider a byte sequence for an out-of-wchar_t-range character to
10562         be an encoding error.  This fixes grep’s surrogate-pair test
10563         failure on AIX 7.2.
10565 2019-12-24  Bruno Haible  <bruno@clisp.org>
10567         localcharset: Avoid referencing rpl_setlocale on native Windows.
10568         * lib/localcharset.c (setlocale): Undefine.
10570 2019-12-24  Bruno Haible  <bruno@clisp.org>
10572         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10573         * m4/semaphore.m4: New file.
10574         * modules/lock-tests (Files): Add it.
10575         (configure.ac): Require gl_SEMAPHORE.
10576         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10578 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10580         strptime: fix typo in previous patch
10581         Problem and fix reported by Bruno Haible in:
10582         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10583         * lib/strptime.c (day_of_the_week): Fix paren bug.
10585 2019-12-24  Bruno Haible  <bruno@clisp.org>
10587         setlocale-null: Make it easy to rely on the lock in another library.
10588         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10589         defined.
10591 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10593         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10594         Performanced analyzed by Bruno Haible in:
10595         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10596         * config/srclist.txt: Do not sync mktime.c for now.
10597         * lib/mktime.c (shr, ydhms_diff):
10598         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10599         * lib/strptime.c (day_of_the_week):
10600         * lib/xtime.h (xtime_sec):
10601         Redo with neither ‘%’ nor conditional branches.
10603 2019-12-23  Bruno Haible  <bruno@clisp.org>
10605         setlocale-null: Export the lock function also on non-Windows platforms.
10606         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10607         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10608         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10609         * modules/setlocale-null (configure.ac): Invoke it.
10610         (Files): Add m4/visibility.m4.
10612 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10614         gethrxtime: fix rounding bug with negative args
10615         Problem reported by Bruno Haible in:
10616         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10617         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10618         with negative rounding.  Common platforms can compute / and % with
10619         a single instruction, so the simplified code should be shorter and
10620         faster on these platforms anyway.
10622 2019-12-22  Bruno Haible  <bruno@clisp.org>
10624         gethrxtime: remove incorrect overflow detection
10625         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10626         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10627         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10628         cannot now see the need for anyway (even in cases where it works),
10629         as the patch is helpful only when the signs of S and NS disagree,
10630         and all callers pass nonnegative values for S and NS.
10632 2019-12-22  Bruno Haible  <bruno@clisp.org>
10634         setlocale-null: Add standalone include file.
10635         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10636         * lib/locale.in.h: Include setlocale_null.h.
10637         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10638         setlocale_null): Remove declarations.
10639         * lib/setlocale_null.c: Include setlocale_null.h.
10640         * lib/localename.c: Likewise.
10641         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10642         (Depends-on): Add snippet/arg-nonnull.
10643         (Include): Allow either "setlocale_null.h" or <locale.h>.
10645 2019-12-22  Bruno Haible  <bruno@clisp.org>
10647         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10648         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10649         AC_RUN_IFELSE test.
10650         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10651         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10652         problem.
10654 2019-12-22  Bruno Haible  <bruno@clisp.org>
10656         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10657         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10658         unconditional AC_LIBOBJ.
10659         * modules/selinux-at: Likewise.
10660         * modules/xmemdup0: Likewise.
10661         * modules/xstrtoll: Likewise.
10663 2019-12-22  Bruno Haible  <bruno@clisp.org>
10665         longlong: Mark module obsolete.
10666         * modules/longlong (Status, Notice): New sections.
10668         stdint: Assume that the compiler supports 'long long'.
10669         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10670         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10671         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10672         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10673         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10674         * modules/stdint (Files): Remove longlong.m4.
10675         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10676         HAVE_UNSIGNED_LONG_LONG_INT.
10678         inttypes-incomplete: Assume that the compiler supports 'long long'.
10679         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10680         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10681         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10682         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10683         HAVE_LONG_LONG_INT to be 1.
10684         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10685         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10687         malloca: Assume that the compiler supports 'long long'.
10688         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10689         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10690         * modules/malloca (Files): Remove longlong.m4.
10691         * modules/relocatable-prog-wrapper (Files): Likewise.
10693         atoll: Assume that the compiler supports 'long long'.
10694         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10695         * modules/atoll (Files): Remove longlong.m4.
10697         strtoll: Assume that the compiler supports 'long long'.
10698         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10699         * modules/strtoll (Files): Remove longlong.m4.
10701         strtoull: Assume that the compiler supports 'long long'.
10702         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10703         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10704         * modules/strtoull (Files): Remove longlong.m4.
10706         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10707         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10708         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10709         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10710         AC_TYPE_LONG_LONG_INT.
10711         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10712         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10713         * modules/strtoimax (Files): Remove longlong.m4.
10714         * modules/strtoumax (Files): Likewise.
10716         xstrtoll: Assume that the compiler supports 'long long'.
10717         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10718         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10720         vasnprintf: Assume that the compiler supports 'long long'.
10721         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10722         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10723         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10724         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10725         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10726         require AC_TYPE_LONG_LONG_INT.
10727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10728         gl_PREREQ_VASNPRINTF): Likewise.
10729         * modules/vasnprintf (Files): Remove longlong.m4.
10730         * modules/c-vasnprintf (Files): Likewise.
10731         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10732         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10733         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10734         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10735         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10736         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10737         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10739         gethrxtime: Assume that the compiler supports 'long long'.
10740         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10741         (XTIME_PRECISION): Define to 1000000000 always.
10742         (xtime_make, xtime_sec): Optimize accordingly.
10743         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10744         * modules/gethrxtime (Files): Remove longlong.m4.
10746         integer_length*: Assume that the compiler supports 'long long'.
10747         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10748         * modules/integer_length (Files): Remove longlong.m4.
10749         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10750         * modules/integer_length_l (Files): Remove longlong.m4.
10751         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10752         * modules/integer_length_ll (Files): Remove longlong.m4.
10753         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10755         count-one-bits: Assume that the compiler supports 'long long'.
10756         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10757         * m4/count-one-bits.m4: Remove file.
10758         * modules/count-one-bits (Files): Remove it.
10759         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10760         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10761         unconditionally.
10763         count-trailing-zeros: Assume that the compiler supports 'long long'.
10764         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10765         unconditionally.
10766         * m4/count-trailing-zeros.m4: Remove file.
10767         * modules/count-trailing-zeros (Files): Remove it.
10768         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10769         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10770         unconditionally.
10772         count-leading-zeros: Assume that the compiler supports 'long long'.
10773         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10774         unconditionally.
10775         * m4/count-leading-zeros.m4: Remove file.
10776         * modules/count-leading-zeros (Files): Remove it.
10777         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10778         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10779         unconditionally.
10781 2019-12-22  Bruno Haible  <bruno@clisp.org>
10783         localcharset: Update support for OpenBSD.
10784         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10786 2019-12-21  Bruno Haible  <bruno@clisp.org>
10788         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10789         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10790         NetBSD.
10791         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10793 2019-12-21  Bruno Haible  <bruno@clisp.org>
10795         threadlib: Improve code structure.
10796         * m4/threadlib.m4: Reorder macros. Add comments.
10798 2019-12-21  Bruno Haible  <bruno@clisp.org>
10800         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10801         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10802         here from m4/threads.m4).
10803         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10804         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10805         (gl_STDTHREADLIB): New macro.
10806         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10807         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10809 2019-12-21  Bruno Haible  <bruno@clisp.org>
10811         sched_yield: Don't depend on threadlib and yield.
10812         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10813         LIB_SCHED_YIELD.
10814         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10815         m4/yield.m4).
10816         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10817         gl_THREADLIB and gl_YIELD.
10818         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10819         based on $(LIB_SCHED_YIELD).
10820         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10821         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10822         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10823         (Depends-on): Remove threadlib.
10824         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10825         * modules/threads-h (Files): Remove m4/yield.m4.
10826         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10827         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10828         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10829         * modules/pthread-once-tests (Makefile.am): Likewise.
10830         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10831         * modules/pthread-tss-tests (Makefile.am): Likewise.
10833 2019-12-21  Bruno Haible  <bruno@clisp.org>
10835         threads-h: Don't depend on threadlib.
10836         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10837         not gl_THREADLIB_EARLY.
10839 2019-12-21  Bruno Haible  <bruno@clisp.org>
10841         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10842         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10843         with $(LIB_SETLOCALE).
10845 2019-12-21  Bruno Haible  <bruno@clisp.org>
10847         threadlib: Remove unused dependency (left over from 2019-07-06).
10848         * modules/threadlib (Depends-on): Remove havelib.
10850 2019-12-21  Bruno Haible  <bruno@clisp.org>
10852         New convention for multithread-safety tests.
10853         * tests/test-setlocale_null-mt-one.c: Renamed from
10854         tests/test-setlocale_null-one.c.
10855         * tests/test-setlocale_null-mt-all.c: Renamed from
10856         tests/test-setlocale_null-all.c.
10857         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10859 2019-12-21  Bruno Haible  <bruno@clisp.org>
10861         quotearg tests: Fix conflict with hard-locale tests.
10862         * tests/testlocale: Renamed from tests/locale.
10863         * modules/quotearg-tests (Files): Update.
10864         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10866 2019-12-21  Bruno Haible  <bruno@clisp.org>
10868         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10869         Reported by Daniel Richard G. in
10870         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10871         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10872         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10873         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10874         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10875         alternative to PTHREAD_RWLOCK_INITIALIZER.
10876         * lib/glthread/lock.c: Likewise.
10878 2019-12-21  Bruno Haible  <bruno@clisp.org>
10880         memcmp tests: Work around the clang bug.
10881         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10882         the clang optimization.
10884 2019-12-20  Bruno Haible  <bruno@clisp.org>
10886         localcharset: Add support for z/OS encoding names.
10887         * lib/localcharset.h: Mention which encodings are used as locale
10888         encodings on z/OS.
10890 2019-12-20  Bruno Haible  <bruno@clisp.org>
10892         iconv_open: Add support for z/OS encoding names.
10893         Reported by Daniel Richard G. in
10894         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10895         * lib/iconv_open-zos.gperf: New file.
10896         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10897         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10898         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10899         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10900         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10902 2019-12-20  Bruno Haible  <bruno@clisp.org>
10904         doc: Document the problem of the per-thread locale functions on z/OS.
10905         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10906         * doc/posix-functions/newlocale.texi: Likewise.
10907         * doc/posix-functions/duplocale.texi: Likewise.
10908         * doc/posix-functions/freelocale.texi: Likewise.
10910 2019-12-20  Bruno Haible  <bruno@clisp.org>
10912         localename, gettext: Fix host_os value for z/OS.
10913         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10914         cross-configuration code.
10916 2019-12-19  Jim Meyering  <meyering@fb.com>
10918         nstrftime: avoid a shadowing warning
10919         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10920         to avoid shadowing an "i" declared hundreds of lines above.
10922 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10924         dfa: struct dfamust now uses flexible array
10925         * lib/dfa.c: Include flexmember.h.
10926         (dfamust, dfamustfree): Adjust to struct dfamust change.
10927         This saves a call to malloc+free.
10928         * lib/dfa.h (struct dfamust): Make the final member a
10929         flexible array member.
10930         * modules/dfa (Depends-on): Add flexmember.
10932         dfa: fast->small for array elements
10933         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10934         since this type is used in arrays.  This change is more for
10935         documentation than for any practical effect, since the two types
10936         are the same on all known platforms.
10938 2019-12-19  Bruno Haible  <bruno@clisp.org>
10940         iconv tests: Test canonicalized, not system-dependent, encoding names.
10941         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10942         * modules/iconv-tests (Depends-on): Add iconv_open.
10944 2019-12-18  Bruno Haible  <bruno@clisp.org>
10946         localename: Fix test failure on AIX 7.2.
10947         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10948         locales on AIX.
10949         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10950         locales on AIX.
10952 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10954         Improve port of AC_C_RESTRICT to Oracle C++
10955         Problem reported by Christian Biesinger in:
10956         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10957         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10958         Oracle Developer Studio C++ 12.5 or later.
10960 2019-12-18  Bruno Haible  <bruno@clisp.org>
10962         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10963         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10965 2019-12-18  Bruno Haible  <bruno@clisp.org>
10967         localename: Ensure multithread-safety in future changes.
10968         * lib/localename.c (setlocale): Reference the system's setlocale().
10969         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10970         (gl_locale_name_posix): Likewise.
10971         * modules/localename (Depends-on): Add setlocale-null.
10973 2019-12-18  Bruno Haible  <bruno@clisp.org>
10975         setlocale-null: Make API more useful.
10976         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10977         callers changed.
10978         (setlocale_null): New declaration.
10979         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10980         extracted from setlocale_null_unlocked.
10981         (setlocale_null_unlocked): Invoke it.
10982         (setlocale_null_r): Renamed from setlocale_null.
10983         (setlocale_null): New function, extracted from setlocale_mtsafe in
10984         setlocale.c.
10985         * lib/setlocale.c: Don't include <errno.h>.
10986         (setlocale_mtsafe): Invoke setlocale_null.
10987         * lib/setlocale-lock.c: Update comments.
10988         * doc/posix-functions/setlocale.texi: Mention both functions.
10990 2019-12-18  Bruno Haible  <bruno@clisp.org>
10992         localename: Optimize code for native Windows.
10993         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10994         category (not allowed here).
10996 2019-12-18  Bruno Haible  <bruno@clisp.org>
10998         setlocale: Make calls with NULL argument multithread-safe.
10999         * lib/setlocale.c: Include <errno.h>.
11000         (setlocale_mtsafe): New function.
11001         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
11002         (setlocale_improved): Renamed from rpl_setlocale.
11003         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11004         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
11005         LIB_SETLOCALE.
11006         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
11007         (Link): New section.
11008         * tests/locale.c: Undefine setlocale.
11009         * tests/test-setlocale_null-one.c: Likewise.
11010         * tests/test-setlocale_null-all.c: Likewise.
11011         * modules/setlocale-tests (Makefile.am): Link the test programs with
11012         $(LIB_SETLOCALE).
11013         * modules/astrxfrm-tests (Makefile.am): Likewise.
11014         * modules/btowc-tests (Makefile.am): Likewise.
11015         * modules/c-ctype-tests (Makefile.am): Likewise.
11016         * modules/c-snprintf-tests (Makefile.am): Likewise.
11017         * modules/c-strcase-tests (Makefile.am): Likewise.
11018         * modules/c-vasprintf-tests (Makefile.am): Likewise.
11019         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
11020         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
11021         * modules/dfa-tests (Makefile.am): Likewise.
11022         * modules/duplocale-tests (Makefile.am): Likewise.
11023         * modules/hard-locale-tests (Makefile.am): Likewise.
11024         * modules/localcharset-tests (Makefile.am): Likewise.
11025         * modules/localename-tests (Makefile.am): Likewise.
11026         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11027         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11028         * modules/mbrtowc-tests (Makefile.am): Likewise.
11029         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11030         * modules/mbscasestr-tests (Makefile.am): Likewise.
11031         * modules/mbschr-tests (Makefile.am): Likewise.
11032         * modules/mbscspn-tests (Makefile.am): Likewise.
11033         * modules/mbsinit-tests (Makefile.am): Likewise.
11034         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11035         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11036         * modules/mbspbrk-tests (Makefile.am): Likewise.
11037         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11038         * modules/mbsrchr-tests (Makefile.am): Likewise.
11039         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11040         * modules/mbsspn-tests (Makefile.am): Likewise.
11041         * modules/mbsstr-tests (Makefile.am): Likewise.
11042         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11043         * modules/quotearg-tests (Makefile.am): Likewise.
11044         * modules/regex-tests (Makefile.am): Likewise.
11045         * modules/strfmon_l-tests (Makefile.am): Likewise.
11046         * modules/strtod-tests (Makefile.am): Likewise.
11047         * modules/strtold-tests (Makefile.am): Likewise.
11048         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11049         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11050         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11051         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
11052         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11053         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11054         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11055         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11056         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11057         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11058         * modules/wcrtomb-tests (Makefile.am): Likewise.
11059         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11060         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11061         * modules/wcwidth-tests (Makefile.am): Likewise.
11062         * doc/posix-functions/setlocale.texi: Mention that the multithread-
11063         safety fix is also available in module 'setlocale'.
11065 2019-12-18  Bruno Haible  <bruno@clisp.org>
11067         hard-locale: Make multithread-safe.
11068         * lib/hard-locale.h (hard_locale): Move documentation to here.
11069         * lib/hard-locale.c: Don't include <stdlib.h>.
11070         (GLIBC_VERSION): Remove macro.
11071         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
11072         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
11073         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
11074         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
11075         (Link): New section.
11076         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
11077         $(LIB_HARD_LOCALE).
11079 2019-12-18  Bruno Haible  <bruno@clisp.org>
11081         hard-locale: Avoid test failure on Haiku.
11082         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
11084 2019-12-18  Bruno Haible  <bruno@clisp.org>
11086         setlocale-null: Handle NULL result from setlocale.
11087         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
11088         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
11089         from setlocale or _wsetlocale.
11091 2019-12-18  Bruno Haible  <bruno@clisp.org>
11093         hard-locale: Add test.
11094         * tests/test-hard-locale.c: New file.
11095         * tests/locale.c: New file.
11096         * modules/hard-locale-tests: New file.
11098 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11100         dfa: do not match invalid UTF-8
11101         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
11102         from 5 to 9 tokens; this is needed due to the changes to
11103         add_utf8_anychar.
11104         (charclass_index): 2nd arg is now pointer-to-const.
11105         (add_utf8_anychar): Match only valid UTF-8 byte sequences
11106         instead of allowing overlong encodings or surrogate halves.
11108         dfa: simplify charclass by assuming C99
11109         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
11110         (charclass_word): Now always uint_fast64_t.
11111         (CHARCLASS_PAIR): Remove.
11112         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
11114         fts: tune via calloc
11115         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
11117         dfa: tune via xzalloc
11118         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
11120 2019-12-17  Bruno Haible  <bruno@clisp.org>
11122         localcharset: Fix multithread-safety bug on Windows and OS/2.
11123         * lib/localcharset.h (locale_charset): Clarify when the result becomes
11124         invalid.
11125         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
11126         assemble the result.
11128 2019-12-17  Bruno Haible  <bruno@clisp.org>
11130         localcharset: Optimize code for native Windows.
11131         * lib/localcharset.c (locale_charset): Don't bother calling
11132         setlocale (LC_ALL, NULL) since we're not interested in its result.
11134 2019-12-17  Bruno Haible  <bruno@clisp.org>
11136         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
11137         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
11138         setlocale.
11139         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
11140         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
11141         * modules/nl_langinfo (Depends-on): Add setlocale-null.
11143 2019-12-17  Bruno Haible  <bruno@clisp.org>
11145         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
11146         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
11147         stack-allocated buffer to assemble each result and different static
11148         buffers to return it.
11149         * tests/test-nl_langinfo-mt.c: New file.
11150         * modules/nl_langinfo-tests (Files): Add it.
11151         (Depends-on): Add thread, nanosleep.
11152         (Makefile.am): Build test-nl_langinfo-mt test.
11154 2019-12-17  Bruno Haible  <bruno@clisp.org>
11156         langinfo: Document more details.
11157         * doc/posix-headers/langinfo.texi: List platform details.
11158         * doc/posix-functions/nl_langinfo.texi: Likewise.
11160 2019-12-17  Bruno Haible  <bruno@clisp.org>
11162         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
11163         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
11164         and Martin Storsjö <martin@martin.st>
11165         in <https://savannah.gnu.org/bugs/?57406>.
11166         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
11167         mingw.
11169 2019-12-17  Bruno Haible  <bruno@clisp.org>
11171         glob: Avoid warning on mingw.
11172         Reported by Christian Biesinger <cbiesinger@google.com> in
11173         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
11174         * lib/glob.c (__stat64): Undefine first.
11176 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11178         xalloc: tune xzalloc for fresh allocations
11179         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
11180         because when the memory is freshly allocated from the OS via sbrk
11181         or mmap, calloc can avoid doing the memset.
11183         dfa: new function dfacopysyntax
11184         * lib/dfa.c (struct dfa): Move syntax member later so
11185         that dfacopysyntax can easily clear earlier members.
11186         (dfacopysyntax): New function, used by Gawk.
11188 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11190         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
11191         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
11192         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
11193         if not already defined.
11195         dfa: remove one dependency on MB_CUR_MAX
11196         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
11198         dfa: remove struct lexer_state.cur_mb_len
11199         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
11200         as it’s not needed and the code is simpler without it.
11201         All uses removed.
11203 2019-12-16  Bruno Haible  <bruno@clisp.org>
11205         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
11206         Reported by Arnold Robbins <arnold@skeeve.com>.
11207         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
11208         copied from lib/glthread/lock.h.
11209         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
11210         (setlocale_null_with_lock): If pthread_in_use() is false, use
11211         setlocale_null_unlocked directly.
11212         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
11213         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
11214         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
11215         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
11216         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
11217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
11219 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11221         dfa: make dfasyntax thread-safe
11222         Problem reported by Bruno Haible in:
11223         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
11224         * lib/dfa.c: Do not include locale.h.
11225         (struct dfa): Remove simple_locale member.
11226         All uses replaced by localeinfo.simple.
11227         (using_simple_locale): Remove; now present (with some
11228         changes) in localeinfo.c.
11229         (dfasyntax): No need to initialize removed member.
11231         localeinfo: record whether locale is simple
11232         * lib/localeinfo.c (using_simple_locale): New function,
11233         copied here from lib/dfa.c but with a change: it uses
11234         strcoll for its heuristic, instead of using setlocale.
11235         This lets it be thread-safe.
11236         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
11238 2019-12-15  Bruno Haible  <bruno@clisp.org>
11240         duplocale: Fix multithread-safety bug on AIX.
11241         * lib/duplocale.c: Don't include <stdlib.h>.
11242         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
11243         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11244         Set LIB_DUPLOCALE.
11245         * modules/duplocale (Depends-on): Add setlocale-null.
11246         (Link): New section.
11247         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
11248         $(LIB_DUPLOCALE).
11250 2019-12-15  Bruno Haible  <bruno@clisp.org>
11252         setlocale-null: Add tests.
11253         * tests/test-setlocale_null.c: New file.
11254         * tests/test-setlocale_null-one.c: New file.
11255         * tests/test-setlocale_null-all.c: New file.
11256         * modules/setlocale-null-tests: New file.
11258         setlocale-null: New module.
11259         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
11260         setlocale_null): New declarations.
11261         * lib/setlocale_null.c: New file.
11262         * lib/setlocale-lock.c: New file.
11263         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
11264         * m4/setlocale_null.m4: New file.
11265         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
11266         GNULIB_SETLOCALE_NULL.
11267         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
11268         * modules/setlocale-null: New file.
11269         * doc/posix-functions/setlocale.texi: Mention the new module.
11271 2019-12-15  Bruno Haible  <bruno@clisp.org>
11273         lock tests: Skip test when no multithreading is enabled.
11274         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
11276 2019-12-14  Bruno Haible  <bruno@clisp.org>
11278         locale, duplocale, localename: Fix last patch.
11279         Reported by Daniel Richard G. in
11280         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
11281         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
11282         Don't define if locale_t does not exist.
11284 2019-12-13  Bruno Haible  <bruno@clisp.org>
11286         locale, duplocale, localename: Fix errors if locale_t does not exist.
11287         Reported by Daniel Richard G. in
11288         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
11289         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
11290         macros.
11291         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
11292         HAVE_NEWLOCALE.
11293         * tests/test-localename.c: Likewise.
11294         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
11295         HAVE_DUPLOCALE.
11296         * tests/test-locale-c++.cc: Likewise.
11298 2019-12-13  Bruno Haible  <bruno@clisp.org>
11300         wcstok: Fix test failure on HP-UX.
11301         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
11302         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
11304 2019-12-12  Bruno Haible  <bruno@clisp.org>
11306         strtod, strtold tests: Avoid test failure on AIX 7.2.
11307         * tests/test-strtod1.c (main): Allow implementations in which ',' and
11308         '.' both are radix characters.
11309         * tests/test-strtold1.c (main): Likewise.
11311 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11313         dfa: prefer ptrdiff_t for API, too
11314         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
11315         but do this only for internal use for now.
11316         * NEWS: Mention the API change.
11317         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
11318         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
11319         values known to be nonnegative.
11320         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
11321         Prefer idx_t or ptrdiff_t to size_t for API.
11322         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
11323         Prefer ptrdiff_t to size_t for API.
11325         stdalign: port to xlclang 16.01
11326         Problem reportd by Bruno Haible in:
11327         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
11328         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
11329         ((__aligned__ (...))) with xlclang, as a top-level
11330         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
11331         xlclang version 16.01.0000.0001; the alignment directive is ignored.
11333 2019-12-12  Bruno Haible  <bruno@clisp.org>
11335         duplocale: Fix test failure on AIX 7.2 with xlclang.
11336         * lib/duplocale.c: Include <stdlib.h>.
11337         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
11338         value.
11340 2019-12-12  Bruno Haible  <bruno@clisp.org>
11342         stddef: Document the AIX xlc issue.
11343         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
11345 2019-12-12  Bruno Haible  <bruno@clisp.org>
11347         duplocale: Don't attempt to override if locale_t does not exist.
11348         Reported by Daniel Richard G. in
11349         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
11350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
11351         HAVE_DUPLOCALE to 0.
11353 2019-12-12  Bruno Haible  <bruno@clisp.org>
11355         wcwidth: Avoid test failure on AIX 7.2.
11356         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
11357         negative.
11358         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
11360 2019-12-12  Bruno Haible  <bruno@clisp.org>
11362         ilogbl: Work around Cygwin bug.
11363         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
11364         correct.
11365         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
11367 2019-12-12  Bruno Haible  <bruno@clisp.org>
11369         strtold: Work around Cygwin bug.
11370         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
11371         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
11372         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
11373         STRTOLD_HAS_UNDERFLOW_BUG is defined.
11374         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
11376 2019-12-12  Bruno Haible  <bruno@clisp.org>
11378         strtold: Fix autoconf test.
11379         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
11381 2019-12-11  Bruno Haible  <bruno@clisp.org>
11383         fsync tests: Skip test that is known to fail.
11384         * doc/posix-functions/fsync.texi: Update list of platforms.
11385         * tests/test-fsync.c (main): Skip test with read-only file descriptors
11386         that is known to fail on AIX and Cygwin.
11388 2019-12-11  Bruno Haible  <bruno@clisp.org>
11390         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
11391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
11392         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
11393         HAVE_GETADDRINFO as a C macro.
11394         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
11395         declare as replacement functions.
11396         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
11397         define as no-op overrides.
11398         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
11399         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
11400         * modules/getaddrinfo (Depends-on, configure.ac): Test
11401         REPLACE_GETADDRINFO.
11402         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
11403         problem.
11404         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
11405         convention problems.
11407 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11409         dfa: prefer signed integers for internals
11410         Signed integers can be checked more easily for integer overflow.
11411         * lib/dfa.c (position, struct lexer_state, struct parser_state)
11412         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
11413         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
11414         (nsubtoks, copytoks, closure, alloc_position_set, delete)
11415         (replace, state_index, epsclosure, charclass_context)
11416         (state_separate_contexts, merge_nfa_state, dfaoptimize)
11417         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
11418         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
11419         (comsubs, inboth, allocmust):
11420         Prefer a signed to an unsigned integer when calculating indexes,
11421         unless the integer is part of the external API (a bigger deal,
11422         and to be done later).
11424         dfa: fix index overflow
11425         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11426         very large regular expressions.
11428         dfa: update commentary for previous change
11429         * NEWS: Mention the change.
11430         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11432 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11434         dfa: separate parse and compile phase
11435         ‘dfamust’ must be called after parsing and before tokens are
11436         reordered, but both are executed in the compilation phase.
11437         Token reordering was introduced in Gnulib commit
11438         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11439         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11440         * lib/dfa.c (dfaparse): Change it to global function.
11441         (dfacomp): If first argument is NULL, skip parse.
11442         * lib/dfa.h: (dfaparse): Add a prototype.
11444 2019-12-11  Bruno Haible  <bruno@clisp.org>
11446         unistd tests: Fix link error on MSVC.
11447         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11448         $(LIB_GETLOGIN).
11450 2019-12-11  Bruno Haible  <bruno@clisp.org>
11452         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11453         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11454         and POSIX substitutes are supported in C++ mode.
11455         * NEWS: Likewise.
11457 2019-12-11  Bruno Haible  <bruno@clisp.org>
11459         stddef: Fix compilation error in C++ mode on MSVC.
11460         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11461         instead, include <cstddef>.
11463 2019-12-11  Bruno Haible  <bruno@clisp.org>
11465         unistd: Fix compilation error in C++ mode on MSVC.
11466         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11467         does not have <unistd.h>.
11469 2019-12-11  Bruno Haible  <bruno@clisp.org>
11471         locale: Fix compilation error in C++ mode on MSVC.
11472         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11473         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11474         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11475         int_n_sep_by_space): Define as macros on MSVC.
11477 2019-12-11  Bruno Haible  <bruno@clisp.org>
11479         wchar: Fix compilation error in C++ mode on MSVC.
11480         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11482 2019-12-11  Bruno Haible  <bruno@clisp.org>
11484         pthread-thread: Fix compilation error in C++ mode on MSVC.
11485         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11486         _GL_CXXALIAS_RPL invocation.
11488 2019-12-08  Bruno Haible  <bruno@clisp.org>
11490         Fix compilation errors in C++ mode on Haiku.
11491         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11492         non-glibc systems.
11493         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11494         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11495         posix_spawnattr_setschedparam): Likewise.
11496         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11497         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11498         * lib/unistd.in.h (usleep): Likewise.
11500 2019-12-08  Bruno Haible  <bruno@clisp.org>
11502         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11503         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11504         * modules/fseeko (configure.ac-early): Require it instead of
11505         AC_FUNC_FSEEKO.
11506         * modules/ftello (configure.ac-early): Likewise.
11507         * modules/fflush (configure.ac-early): Likewise.
11509 2019-12-08  Bruno Haible  <bruno@clisp.org>
11511         Fix compilation error in C++ mode on HP-UX 11.
11512         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11513         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11515 2019-12-08  Bruno Haible  <bruno@clisp.org>
11517         Fix compilation errors on HP-UX 11/ia64.
11518         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11519         _GL_FUNCDECL_SYS.
11521 2019-12-08  Bruno Haible  <bruno@clisp.org>
11523         Fix compilation error in C++ mode on OpenBSD.
11524         * lib/signal.in.h (signal): Declare on OpenBSD.
11526 2019-12-08  Bruno Haible  <bruno@clisp.org>
11528         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11529         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11530         instead of #error.
11532 2019-12-08  Bruno Haible  <bruno@clisp.org>
11534         Fix compilation errors in C++ mode on FreeBSD.
11535         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11536         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11537         * lib/threads.in.h (thrd_exit): Likewise.
11538         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11540 2019-12-08  Bruno Haible  <bruno@clisp.org>
11542         Fix compilation errors in C++ mode on macOS and FreeBSD.
11543         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11544         or FreeBSD with clang, use the approach without C preprocessor macro.
11546 2019-12-07  Bruno Haible  <bruno@clisp.org>
11548         Fix compilation errors in C++ mode on AIX with xlclang++.
11549         Reported by Christian Biesinger <cbiesinger@google.com> in
11550         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11551         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11553 2019-12-07  Bruno Haible  <bruno@clisp.org>
11555         Document compilation error in C++ mode on NetBSD 8.0.
11556         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11558 2019-12-07  Bruno Haible  <bruno@clisp.org>
11560         Fix compilation errors in C++ mode on Solaris 10.
11561         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11562         to non-empty on Solaris with a non-GCC compiler.
11563         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11565 2019-12-07  Bruno Haible  <bruno@clisp.org>
11567         Reword NEWS entry.
11568         * NEWS: Reword the latest NEWS entry.
11570 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11572         Move xstrtol_fatal to a new xstrtol-error module.
11573         * lib/xstrtol.h: Stop including <getopt.h>.
11574         (xstrtol_fatal): Move ...
11575         * lib/xstrtol-error.h: ... here.  New file.
11576         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11577         * tests/test-xstrtol.c: Likewise.
11578         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11579         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11580         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11581         * modules/xstrtol-error: New file.
11582         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11583         * MODULES.html.sh: Add xstrtol-error.
11584         * NEWS: Document the change.
11586 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11588         nstrftime: better width support for %N, %z
11589         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11590         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11591         a new WIDTH parameter.
11592         (add, add1, cpy): Use these macros.
11593         (width_add): Do not treat digits == 0 as a special case,
11594         do not pad if padding is ‘-’, and do not use a negative width.
11595         (__strftime_internal): Redo formatting of nanoseconds and numeric
11596         timezones to avoid buffer misuse in unusual cases, and so that
11597         widths make more sense.  Add support for widths greater than 9 to
11598         the %N format; they are zero filled on the right.
11599         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11601 2019-12-05  Bruno Haible  <bruno@clisp.org>
11603         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11604         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11605         set REPLACE_ISFINITE to 1.
11606         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11607         REPLACE_ISINF to 1.
11608         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11609         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11610         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11611         * lib/threads.in.h (call_once): Likewise.
11612         * lib/iconv.in.h (iconv): Likewise.
11614 2019-12-05  Bruno Haible  <bruno@clisp.org>
11616         wchar: Add more C++ tests.
11617         Reported by Christian Biesinger <cbiesinger@google.com> in
11618         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11619         * tests/test-wchar-c++3.cc: New file.
11620         * modules/wchar-c++-tests (Files): Add it.
11621         (Makefile.am): Compile it.
11623 2019-12-05  Bruno Haible  <bruno@clisp.org>
11625         Add more C++ tests.
11627         assert-h: Add C++ tests.
11628         * tests/test-assert-h-c++.cc: New file.
11629         * tests/test-assert-h-c++2.cc: New file.
11630         * modules/assert-h-c++-tests: New file.
11631         * modules/assert-h-tests: New file.
11633         ctype: Add C++ tests.
11634         * tests/test-ctype-c++.cc: New file.
11635         * tests/test-ctype-c++2.cc: New file.
11636         * modules/ctype-c++-tests: New file.
11637         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11639         errno: Add C++ tests.
11640         * tests/test-errno-c++.cc: New file.
11641         * tests/test-errno-c++2.cc: New file.
11642         * modules/errno-c++-tests: New file.
11643         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11645         float: Add C++ tests.
11646         * tests/test-float-c++.cc: New file.
11647         * tests/test-float-c++2.cc: New file.
11648         * modules/float-c++-tests: New file.
11649         * modules/float-tests (Depends-on): Add float-c++-tests.
11651         inttypes: Add more C++ tests.
11652         * tests/test-inttypes-c++2.cc: New file.
11653         * modules/inttypes-c++-tests (Files): Add it.
11654         (Makefile.am): Compile it.
11656         limits-h: Add C++ tests.
11657         * tests/test-limits-h-c++.cc: New file.
11658         * tests/test-limits-h-c++2.cc: New file.
11659         * modules/limits-h-c++-tests: New file.
11660         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11662         stdarg: Add C++ tests.
11663         * tests/test-stdarg-c++.cc: New file.
11664         * tests/test-stdarg-c++2.cc: New file.
11665         * modules/stdarg-c++-tests: New file.
11666         * modules/stdarg-tests: New file.
11668         stdbool: Add C++ tests.
11669         * tests/test-stdbool-c++.cc: New file.
11670         * tests/test-stdbool-c++2.cc: New file.
11671         * modules/stdbool-c++-tests: New file.
11672         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11674         stddef: Add C++ tests.
11675         * tests/test-stddef-c++.cc: New file.
11676         * tests/test-stddef-c++2.cc: New file.
11677         * modules/stddef-c++-tests: New file.
11678         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11680         stdint: Add C++ tests.
11681         * tests/test-stdint-c++.cc: New file.
11682         * tests/test-stdint-c++2.cc: New file.
11683         * modules/stdint-c++-tests: New file.
11684         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11686         wchar: Add more C++ tests.
11687         * tests/test-wchar-c++2.cc: New file.
11688         * modules/wchar-c++-tests (Files): Add it.
11689         (Makefile.am): Compile it.
11691         wctype-h: Add more C++ tests.
11692         * tests/test-wctype-h-c++2.cc: New file.
11693         * modules/wctype-h-c++-tests (Files): Add it.
11694         (Makefile.am): Compile it.
11696 2019-12-04  Bruno Haible  <bruno@clisp.org>
11698         Fix compilation errors in C++ mode with xlclang++ on AIX.
11699         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11700         C++ mode on AIX.
11701         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11702         without C preprocessor macro.
11703         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11704         _GL_CXXALIAS_SYS.
11705         * lib/threads.in.h (thrd_exit): Likewise.
11707 2019-12-04  Bruno Haible  <bruno@clisp.org>
11709         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11710         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11711         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11713 2019-12-04  Bruno Haible  <bruno@clisp.org>
11715         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11716         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11717         _GL_CXXALIASWARN invocation on non-glibc systems.
11718         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11719         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11720         iswctype, towlower, towupper): Likewise.
11722 2019-12-03  Bruno Haible  <bruno@clisp.org>
11724         Avoid hassles caused by [[noreturn]] in C++.
11725         Reported by Christian Biesinger <cbiesinger@google.com> in
11726         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11727         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11728         * lib/_Noreturn.h: Likewise.
11730 2019-12-02  Bruno Haible  <bruno@clisp.org>
11732         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11733         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11734         LIBMULTITHREAD.
11735         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11736         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11737         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11738         gl_THREADLIB.
11739         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11741 2019-12-02  Bruno Haible  <bruno@clisp.org>
11743         Fix some more link errors with --enable-threads=isoc.
11744         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11745         * modules/pthread-rwlock (Depends-on): Likewise.
11747 2019-12-02  Bruno Haible  <bruno@clisp.org>
11749         Fix link errors with --enable-threads=posix on AIX.
11750         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11751         program with $(LIBTHREAD).
11752         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11753         program with $(LIBTHREAD).
11755 2019-12-02  Bruno Haible  <bruno@clisp.org>
11757         Fix link errors with --enable-threads=posix on AIX.
11758         * modules/mbrtowc (Link): New section.
11759         * modules/acl (Link): Likewise.
11760         * modules/argmatch (Link): Likewise.
11761         * modules/backup-rename (Link): Likewise.
11762         * modules/backupfile (Link): Likewise.
11763         * modules/closein (Link): Likewise.
11764         * modules/closeout (Link): Likewise.
11765         * modules/copy-file (Link): Likewise.
11766         * modules/csharpcomp (Link): Likewise.
11767         * modules/csharpexec (Link): Likewise.
11768         * modules/dfa (Link): Likewise.
11769         * modules/exclude (Link): Likewise.
11770         * modules/fnmatch (Link): Likewise.
11771         * modules/fnmatch-gnu (Link): Likewise.
11772         * modules/fnmatch-posix (Link): Likewise.
11773         * modules/glob (Link): Likewise.
11774         * modules/human (Link): Likewise.
11775         * modules/javacomp (Link): Likewise.
11776         * modules/javaexec (Link): Likewise.
11777         * modules/javaversion (Link): Likewise.
11778         * modules/mbfile (Link): Likewise.
11779         * modules/mbiter (Link): Likewise.
11780         * modules/mbmemcasecmp (Link): Likewise.
11781         * modules/mbmemcasecoll (Link): Likewise.
11782         * modules/mbrlen (Link): Likewise.
11783         * modules/mbscasecmp (Link): Likewise.
11784         * modules/mbscasestr (Link): Likewise.
11785         * modules/mbschr (Link): Likewise.
11786         * modules/mbscspn (Link): Likewise.
11787         * modules/mbsinit (Link): Likewise.
11788         * modules/mbslen (Link): Likewise.
11789         * modules/mbsncasecmp (Link): Likewise.
11790         * modules/mbsnlen (Link): Likewise.
11791         * modules/mbsnrtowcs (Link): Likewise.
11792         * modules/mbspbrk (Link): Likewise.
11793         * modules/mbspcasecmp (Link): Likewise.
11794         * modules/mbsrchr (Link): Likewise.
11795         * modules/mbsrtowcs (Link): Likewise.
11796         * modules/mbssep (Link): Likewise.
11797         * modules/mbsspn (Link): Likewise.
11798         * modules/mbsstr (Link): Likewise.
11799         * modules/mbstok_r (Link): Likewise.
11800         * modules/mbswidth (Link): Likewise.
11801         * modules/mbuiter (Link): Likewise.
11802         * modules/mkdir-p (Link): Likewise.
11803         * modules/propername (Link): Likewise.
11804         * modules/quote (Link): Likewise.
11805         * modules/quotearg (Link): Likewise.
11806         * modules/quotearg-simple (Link): Likewise.
11807         * modules/regex-quote (Link): Likewise.
11808         * modules/rpmatch (Link): Likewise.
11809         * modules/sh-quote (Link): Likewise.
11810         * modules/system-quote (Link): Likewise.
11811         * modules/trim (Link): Likewise.
11812         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11813         * modules/unistdio/ulc-fprintf (Link): Likewise.
11814         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11815         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11816         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11817         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11818         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11819         * modules/xfreopen (Link): Likewise.
11820         * modules/xmemcoll (Link): Likewise.
11821         * modules/yesno (Link): Likewise.
11822         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11823         * modules/argmatch-tests (Makefile.am): Likewise.
11824         * modules/closein-tests (Makefile.am): Likewise.
11825         * modules/copy-file-tests (Makefile.am): Likewise.
11826         * modules/dfa-tests (Makefile.am): Likewise.
11827         * modules/fnmatch-tests (Makefile.am): Likewise.
11828         * modules/glob-tests (Makefile.am): Likewise.
11829         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11830         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11831         * modules/mbrtowc-tests (Makefile.am): Likewise.
11832         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11833         * modules/mbscasestr-tests (Makefile.am): Likewise.
11834         * modules/mbschr-tests (Makefile.am): Likewise.
11835         * modules/mbscspn-tests (Makefile.am): Likewise.
11836         * modules/mbsinit-tests (Makefile.am): Likewise.
11837         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11838         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11839         * modules/mbspbrk-tests (Makefile.am): Likewise.
11840         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11841         * modules/mbsrchr-tests (Makefile.am): Likewise.
11842         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11843         * modules/mbsspn-tests (Makefile.am): Likewise.
11844         * modules/mbsstr-tests (Makefile.am): Likewise.
11845         * modules/quotearg-tests (Makefile.am): Likewise.
11846         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11847         * modules/readtokens-tests (Makefile.am): Likewise.
11848         * modules/regex-quote-tests (Makefile.am): Likewise.
11849         * modules/sh-quote-tests (Makefile.am): Likewise.
11850         * modules/system-quote-tests (Makefile.am): Likewise.
11851         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11852         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11853         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11854         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11855         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11856         * modules/yesno-tests (Makefile.am): Likewise.
11858 2019-12-02  Bruno Haible  <bruno@clisp.org>
11860         Simplify link sections.
11861         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11862         * modules/lock (Link): Likewise.
11863         * modules/cond (Link): Likewise.
11864         * modules/tls (Link): Likewise.
11865         * modules/yield (Link): Likewise.
11866         * modules/regex (Link): Likewise.
11867         * modules/localename (Link): Likewise.
11868         * modules/unicase/locale-language (Link): Likewise.
11869         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11871 2019-12-02  Bruno Haible  <bruno@clisp.org>
11873         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11874         * tests/test-thread_self.c (main): Disable test on AIX.
11876 2019-12-01  Bruno Haible  <bruno@clisp.org>
11878         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11879         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11880         gl_THREADLIB_EARLY_BODY.
11881         (gl_THREADLIB_EARLY_BODY): Invoke it.
11882         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11883         (gl_THREADLIB_BODY): Invoke it.
11884         (gl_PTHREADLIB): New macro.
11885         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11886         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11887         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11888         * modules/pthread-h (Files): Add threadlib.m4.
11889         (Depends-on): Remove threadlib.
11890         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11891         and _THREAD_SAFE here.
11892         (Link): Use LIBPTHREAD, not LIBTHREAD.
11893         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11894         LIBMULTITHREAD.
11895         * modules/pthread-once (Link): Likewise.
11896         * modules/pthread-mutex (Link): Likewise.
11897         * modules/pthread-rwlock (Link): Likewise.
11898         * modules/pthread-cond (Link): Likewise.
11899         * modules/pthread-tss (Link): Likewise.
11900         * modules/pthread-spin (Link): Likewise.
11901         * modules/pthread (Link): Likewise.
11902         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11903         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11904         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11905         test_pthread_once2_LDADD): Likewise.
11906         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11907         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11908         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11909         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11911 2019-12-01  Bruno Haible  <bruno@clisp.org>
11913         cond: State linking requirements.
11914         * modules/cond (Link): New section.
11916 2019-12-01  Bruno Haible  <bruno@clisp.org>
11918         threadlib: Remove unnecessary file (left over from 2019-07-06).
11919         * modules/threadlib (Files): Remove config.rpath.
11921 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11923         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11924         Reported by Dagobert Michelsen <dam@opencsw.org> in
11925         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11926         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11927         list of strings instead of one string.
11928         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11929         * pygnulib/GLImport.py (execute): Likewise.
11931 2019-11-27  Bruno Haible  <bruno@clisp.org>
11933         openpty, forkpty: Fix build error on Solaris 11.4.
11934         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11935         also in <termios.h>.
11936         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11937         of the function also in <termios.h>.
11938         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11939         * doc/glibc-functions/forkpty.texi: Likewise.
11941 2019-11-27  Bruno Haible  <bruno@clisp.org>
11943         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11944         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11945         --enable-threads=isoc and --enable-threads=isoc+posix.
11946         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11947         When both the ISO C and the POSIX threads API are available, choose
11948         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11949         --enable-threads=isoc+posix was specified. When only the ISO C threads
11950         API is available and --enable-threads=iso was specified, choose
11951         USE_ISOC_THREADS.
11952         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11953         USE_ISOC_AND_POSIX_THREADS.
11954         * lib/glthread/lock.c: Likewise.
11955         * lib/glthread/cond.h: Likewise.
11956         * lib/glthread/cond.c: Likewise.
11957         * lib/glthread/tls.h: Likewise.
11958         * lib/glthread/tls.c: Likewise.
11959         * lib/glthread/yield.h: Likewise.
11960         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11961         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11962         * lib/glthread/thread.c: Likewise.
11963         * lib/glthread/threadlib.c: Likewise.
11964         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11965         USE_ISOC_AND_POSIX_THREADS.
11966         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11967         USE_ISOC_AND_POSIX_THREADS.
11968         * tests/test-tls.c: Likewise.
11969         * tests/test-thread_create.c (main): Likewise.
11970         * tests/test-pthread-cond.c: Likewise.
11971         * tests/test-pthread-mutex.c: Likewise.
11972         * tests/test-pthread-once2.c: Likewise.
11973         * tests/test-pthread-rwlock.c: Likewise.
11974         * tests/test-pthread-tss.c: Likewise.
11975         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11976         USE_POSIX_THREADS.
11978 2019-11-24  Bruno Haible  <bruno@clisp.org>
11980         mbrtowc: Modernize autoconf test.
11981         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11982         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11983         try a UTF-8 locale.
11984         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11986 2019-11-24  Bruno Haible  <bruno@clisp.org>
11988         Fix errors in C++ mode on mingw.
11989         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11990         instead of _GL_CXXALIAS_SYS.
11991         * lib/signal.in.h (pthread_sigmask): Likewise.
11992         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11993         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11994         Likewise.
11995         * lib/wchar.in.h (btowc): Likewise.
11997 2019-11-24  Bruno Haible  <bruno@clisp.org>
11999         sys_time: Fix errors in C++ mode on mingw.
12000         * lib/sys_time.in.h (timeval): Restore the redirection
12001         '#define timeval rpl_timeval', for when the symbol timeval is being used
12002         outside the 'gnulib' namespace.
12003         * lib/sys_select.in.h (select): In C++, write 'timeval', not
12004         'struct timeval'.
12006 2019-11-24  Bruno Haible  <bruno@clisp.org>
12008         iswctype: Fix errors in C++ mode on mingw.
12009         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
12010         is 1.
12011         * lib/iswctype.c (iswctype): Add another implementation, for the
12012         GNULIB_defined_wint_t case.
12013         * modules/iswctype (configure.ac): Compile iswctype.c also if
12014         GNULIB_OVERRIDES_WINT_T is 1.
12016 2019-11-24  Bruno Haible  <bruno@clisp.org>
12018         windows-timedmutex: Fix errors in C++ mode on mingw.
12019         * lib/windows-timedmutex.h: Add closing brace.
12021 2019-11-24  Bruno Haible  <bruno@clisp.org>
12023         Fix errors in C++ mode on Cygwin.
12024         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
12025         _GL_CXXALIAS_SYS.
12027 2019-11-24  Bruno Haible  <bruno@clisp.org>
12029         time_r: Fix for mingw (regression from 2019-11-16).
12030         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
12031         AC_LINK_IFELSE test only if the function does not appear to exist.
12033 2019-11-24  Bruno Haible  <bruno@clisp.org>
12035         wcstok: Add tests.
12036         * tests/test-wcstok.c: New file.
12037         * modules/wcstok-tests: New file.
12039 2019-11-24  Bruno Haible  <bruno@clisp.org>
12041         wcstok: Work around wrong signature on native Windows.
12042         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
12043         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
12044         REPLACE_WCSTOK.
12045         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
12046         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
12047         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
12048         * doc/posix-functions/wcstok.texi: Mention the problem.
12050 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12052         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
12053         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
12054         remove workaround for GCC bug 91450 as the bug should be fixed
12055         there too.
12057 2019-11-21  Bruno Haible  <bruno@clisp.org>
12059         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
12060         Reported by Christian Biesinger <cbiesinger@google.com> in
12061         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
12062         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
12063         non-glibc systems.
12064         * lib/locale.in.h (localeconv, setlocale): Likewise.
12065         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
12066         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
12067         rint, round, trunc): Likewise.
12068         * lib/monetary.in.h (strfmon_l): Likewise.
12069         * lib/pthread.in.h (pthread_mutexattr_getrobust,
12070         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
12071         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
12072         pthread_spin_destroy): Likewise.
12073         * lib/signal.in.h (raise, signal): Likewise.
12074         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
12075         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
12076         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
12077         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
12078         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
12079         Likewise.
12080         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
12081         Likewise.
12082         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
12083         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
12084         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
12085         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
12086         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
12087         wcsftime): Likewise.
12088         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
12090 2019-11-21  Bruno Haible  <bruno@clisp.org>
12092         Fix various errors in _GL_CXXALIAS_SYS invocations.
12093         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
12094         _GL_CXXALIAS_SYS.
12095         * lib/pthread.in.h (pthread_mutexattr_gettype,
12096         pthread_mutexattr_getrobust): Likewise.
12097         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
12098         * lib/sys_socket.in.h (recv, send): Likewise.
12099         * lib/unistd.in.h (getdtablesize): Likewise.
12100         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
12101         'struct timeval'.
12103 2019-11-21  Bruno Haible  <bruno@clisp.org>
12105         math tests: Update after 2019-08-28 change.
12106         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
12107         return type of 'bool', not 'int'.
12109 2019-11-21  Bruno Haible  <bruno@clisp.org>
12111         pthread-spin: Fix errors in C++ mode.
12112         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
12113         functions as nonexistent when <pthread.h> exists but does not define
12114         the pthread_spinlock_t type.
12116 2019-11-21  Bruno Haible  <bruno@clisp.org>
12118         pthread-mutex: Fix errors in C++ mode.
12119         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
12120         pthread_mutexattr_getrobust exists. If not, define
12121         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12122         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
12123         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
12124         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12125         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
12126         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
12127         definition.
12129 2019-11-19  Bruno Haible  <bruno@clisp.org>
12131         threads-h tests: Fix typo.
12132         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
12134 2019-11-19  Bruno Haible  <bruno@clisp.org>
12136         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
12137         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
12138         to 'const pthread_attr_t *'.
12139         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
12140         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
12142 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12144         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
12145         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
12146         work around GCC bug 91450 as the bug should be fixed there.
12148 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12150         glob: get closer to glibc glob.c
12151         Omit differences from glibc when the differences don’t matter.
12152         * lib/glob.c [_LIBC]: Include shlib-compat.h.
12153         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
12154         (glob_lstat): New function.
12155         (glob_in_dir): Use it.
12156         (GLOB_ATTRIBUTE): Define to empty if not already defined.
12157         Use changed.
12159 2019-11-18  Bruno Haible  <bruno@clisp.org>
12161         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
12162         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
12163         UINTPTR_MAX): Consider _WIN64.
12164         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
12165         a pointer.
12167 2019-11-18  Bruno Haible  <bruno@clisp.org>
12169         stdint: Fix value of WINT_MAX when we override wint_t.
12170         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
12171         when GNULIB_OVERRIDES_WINT_T is 1.
12173 2019-11-18  Bruno Haible  <bruno@clisp.org>
12175         vcs-to-changelog: New module.
12176         * modules/vcs-to-changelog: New file.
12177         * MODULES.html.sh (func_all_modules): Add it.
12179 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
12181         vcs-to-changelog: New script to generate ChangeLog-like output.
12182         Discussion:
12183         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
12184         * build-aux/vcs_to_changelog.py: New file.
12185         * build-aux/vcstocl/frontend_c.py: New file.
12186         * build-aux/vcstocl/misc_util.py: New file.
12187         * build-aux/vcstocl/vcs_git.py: New file.
12189 2019-11-18  Bruno Haible  <bruno@clisp.org>
12191         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
12192         Reported by Keith Marshall <keith@users.osdn.me> in
12193         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
12194         and <https://osdn.net/projects/mingw/ticket/39677>.
12195         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
12196         already been defined by mingw's <crtdefs.h>.
12198 2019-11-18  Bruno Haible  <bruno@clisp.org>
12200         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
12201         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
12202         conditionally enabled.
12204 2019-11-18  Bruno Haible  <bruno@clisp.org>
12206         gc: Mirror libgcrypt.m4 from libgcrypt.
12207         * config/srclistvars.sh (LIBGCRYPT): New variable.
12208         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
12210 2019-11-17  Bruno Haible  <bruno@clisp.org>
12212         locale, localename: Improve z/OS support.
12213         Reported by Daniel Richard G. in
12214         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
12215         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
12216         gl_LOCALE_H.
12217         (gl_LOCALE_H): Require it.
12218         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
12219         defined, don't even check for newlocale, duplocale, freelocale.
12220         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
12221         locale_t is not defined.
12223 2019-11-17  Bruno Haible  <bruno@clisp.org>
12225         havelib: Make libdirstems processing more flexible.
12226         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
12227         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
12228         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
12229         patch from 2017-02-19).
12230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
12231         libdirs, even when the first one exists as a directory.
12233 2019-11-17  Bruno Haible  <bruno@clisp.org>
12235         havelib: Match the bitness when searching for libraries.
12236         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
12237         acl_is_expected_elfclass.
12238         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
12239         file exists, in ELF, also test whether it has the ELF class that
12240         corresponds to the host's bitness.
12242 2019-11-17  Bruno Haible  <bruno@clisp.org>
12244         host-cpu-c-abi: Add support for unknown CPUs.
12245         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
12246         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
12247         32-bit or 64-bit.
12249 2019-11-17  Bruno Haible  <bruno@clisp.org>
12251         havelib: Remove redundant code.
12252         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
12253         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
12255 2019-11-17  Bruno Haible  <bruno@clisp.org>
12257         havelib: Fix a bug in dependency processing.
12258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
12259         of .la files, don't overwrite the value of additional_libdir for the
12260         next rounds.
12262 2019-11-16  Bruno Haible  <bruno@clisp.org>
12264         wctype-h: When overriding wint_t, override also the related functions.
12265         Reported by Christian Biesinger <cbiesinger@google.com> in
12266         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
12267         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
12268         REPLACE_ISWCNTRL to 1.
12269         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
12270         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
12271         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
12272         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
12273         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
12274         on mingw.
12275         * doc/posix-headers/wctype.texi: Likewise.
12277 2019-11-16  Bruno Haible  <bruno@clisp.org>
12279         time_r: Fix for mingw.
12280         Reported by Christian Biesinger <cbiesinger@google.com> in
12281         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
12282         * lib/time.in.h: On mingw, include <unistd.h>.
12283         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
12284         <time.h>. Test for localtime_r in a way that works when it is defined
12285         as an inline function.
12287 2019-11-13  Bruno Haible  <bruno@clisp.org>
12289         havelib: Revert last change.
12290         * build-aux/config.rpath: Revert last change. We can add msys2 support
12291         when it has been added to libtool.m4 upstream.
12293 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12295         config: add msys support
12296         Requested by Arnold Robbins in:
12297         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
12298         He also requested a change to config.guess, which I’ll forward
12299         upstream.
12300         * build-aux/ar-lib (func_file_conv):
12301         * build-aux/compile (func_file_conv):
12302         * build-aux/config.rpath (wl, with_gnu_ld)
12303         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
12304         Treat msys like cygwin.
12306 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12308         regex: now back in sync with glibc
12309         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
12310         regexec.c got merged into glibc and are now copies again.
12312 2019-10-27  Bruno Haible  <bruno@clisp.org>
12314         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
12315         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
12316         statement.
12317         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
12318         32-bit CPUs.
12320 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12322         timespec-add, timespec-sub: simplify
12323         * lib/timespec-add.c (timespec_add):
12324         * lib/timespec-sub.c (timespec_sub):
12325         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12326         work on unsigned integers.
12328 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12330         nstrftime: speed up integer overflow checking
12331         * lib/nstrftime.c: Include intprops.h.
12332         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
12333         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
12334         instead of doing it by hand.
12335         * modules/nstrftime (Depends-on): Add intprops.
12337         Port better to GCC under macOS
12338         Work around macOS header that has ‘#define __has_builtin(x) 0’
12339         when compiled by GCC.  Apple really, really doesn’t want you to
12340         use GCC, apparently.  Rroblem reported by Akim Demaille in:
12341         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
12342         The fix is to not trust __has_builtin when being compiled by
12343         recent-enough GCC.
12344         * lib/intprops.h (__has_builtin)
12345         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12346         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
12347         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
12348         Remove.  All uses removed.
12349         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
12350         directly, if defined and if not newer GCC.
12351         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
12352         New macro, that use __has_builtin directly, if defined and if
12353         not newer GCC.
12354         (assume): Use them.
12356 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
12358         maintainer-makefile: update rule for argmatch.
12359         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
12361 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
12363         bitset: let freeing functions accept NULL.
12364         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
12365         given NULL.
12366         * lib/bitset.h: Document that.
12367         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
12369 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12371         inttypes: use more-robust test for int range
12372         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
12373         Problem reported by Dagobert Michelsen in:
12374         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
12375         * lib/inttypes.in.h: Rely only on limits.h when checking
12376         int range.
12378 2019-10-15  Bruno Haible  <bruno@clisp.org>
12380         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
12381         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
12382         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
12383         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
12384         term_ostream_set_hyperlink): New functions.
12385         (term_styled_ostream_get_hyperlink_ref,
12386         term_styled_ostream_get_hyperlink_id,
12387         term_styled_ostream_set_hyperlink): New function aliases.
12389 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12391         update-copyright: use en dashes in .texi ranges
12392         * build-aux/update-copyright: Match year ranges like "1998--2019",
12393         which are used in the Autoconf manual.  Also, update ranges in
12394         .tex, .texi, and .texinfo files to use en dashes instead of
12395         hyphens.
12397 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12399         * config/srclist.txt: Remove posix/regex_internal.c for now.
12401 2019-10-13  Bruno Haible  <bruno@clisp.org>
12403         git-version-gen: Allow 'snapshot' as .tarball-version contents.
12404         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
12405         contents to the empty string.
12407 2019-10-12  Bruno Haible  <bruno@clisp.org>
12409         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
12410         * tests/test-intprops.c (main): Disable two more tests when using
12411         HP-UX cc.
12413 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12415         Simplify and regularize regex use of ‘assert’
12416         Also, tell GCC about the asserts even when compiling without
12417         debugging, to give it further optimization opportunities.
12418         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
12419         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
12420         (parse_expression, parse_bracket_exp):
12421         * lib/regex_internal.c (build_wcs_buffer)
12422         (build_wcs_upper_buffer, re_string_reconstruct)
12423         (re_string_context_at):
12424         * lib/regexec.c (re_search_stub, re_copy_regs)
12425         (re_search_internal, prune_impossible_nodes, check_matching)
12426         (check_halt_state_context, set_regs, sift_states_backward)
12427         (build_sifted_states, transit_state_mb, transit_state_bkref)
12428         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12429         (match_ctx_add_subtop):
12430         Use it instead of plain ‘assert’.
12432 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12434         regex: omit debug assignment when not debugging
12435         * lib/regexec.c (re_search_internal) [!DEBUG]:
12436         Remove unnecessary assignment.
12438         regex: tell compiler there’s at most 256 arcs out
12439         Partly this is to help the reader (and maybe help GCC);
12440         partly this is to pacify Coverity.
12441         * lib/regex_internal.h: Include verify.h.
12442         * lib/regexec.c (group_nodes_into_DFAstates):
12443         Tell the compiler that ndests cannot exceed SBC_MAX.
12444         * modules/regex (Depends-on): Add ‘verify’.
12446         regex: simplify by assuming C99
12447         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12448         temporarily.
12449         * lib/regex_internal.h (lock_define, re_match_context_t):
12450         Simplify by assuming C99 macros and const.
12451         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12452         initializers.  Remove unnecessary assignment, as mctx is now
12453         safely initialized earlier.
12455         regex: avoid copying of uninitialized storage
12456         * config/srclist.txt: Comment out regcomp.c temporarily.
12457         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12458         Initialize even when not checking for lint, as the behavior is
12459         arguably undefined otherwise and Coverity warns about it.
12461 2019-10-06  Bruno Haible  <bruno@clisp.org>
12463         access tests: Fix test failure when run as root.
12464         * tests/test-access.c: Include root-uid.h.
12465         (geteuid): Define fallback.
12466         (main): Don't expect that writing to a read-only file would fail when
12467         running as root. Also, remove the created files at the end.
12468         * modules/access-tests (Depends-on): Add root-uid.
12469         (configure.ac): Test whether geteuid exists.
12471 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12473         users.txt: add GNU nano
12474         Nano has been making use of gnulib since March 2017, version 2.8.0.
12476 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12478         bootstrap: simplify debugging of wget failures
12479         Problem reported by Tim Rühsen in:
12480         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12481         * build-aux/bootstrap (po_download_command_format):
12482         Invoke wget with -nv instead of -q, to make debugging easier.
12484 2019-09-29  Bruno Haible  <bruno@clisp.org>
12486         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12487         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12488         'const' attribute.
12490 2019-09-29  Bruno Haible  <bruno@clisp.org>
12492         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12493         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12495 2019-09-28  Bruno Haible  <bruno@clisp.org>
12497         Update comments that refer to POSIX.
12498         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12499         sentence about trailing slashes.
12500         * lib/fflush.c: Clarify the reasoning.
12501         * tests/test-fflush2.c: Cite the relevant sentence.
12503 2019-09-28  Bruno Haible  <bruno@clisp.org>
12505         access: Document limitations on Windows.
12506         Suggested by Zaretskii <eliz@gnu.org>.
12507         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12509 2019-09-28  Bruno Haible  <bruno@clisp.org>
12511         findprog-in: Fix comment.
12512         Reported by Eli Zaretskii <eliz@gnu.org>.
12513         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12514         condition.
12515         * lib/stat.c (rpl_stat): Fix typo in comment.
12516         * lib/utime.c (_gl_utimens_windows): Likewise.
12518 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12520         Update URLs and associated text
12521         (Thanks to Bruno Haible for proofreading this patch.)
12522         Prefer https: to http: in URLs where either will do, for the usual
12523         security reasons.  I also updated broken and/or moved URLs
12524         discovered during the process. In a few places I had to resort to
12525         archive.org, since I didn't find the originals elsewhere.
12527 2019-09-15  Paul Smith  <psmith@gnu.org>
12528             Bruno Haible  <bruno@clisp.org>
12530         findprog-in: Set errno when the search fails.
12531         * lib/findprog-in.c: Include <errno.h>.
12532         (find_in_given_path): Set errno before returning NULL.
12533         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12534         Define the term "slash".
12536 2019-09-15  Bruno Haible  <bruno@clisp.org>
12538         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12539         * modules/findprog (Depends-on): Add access.
12540         * modules/findprog-lgpl (Depends-on): Likewise.
12541         * modules/findprog-in (Depends-on): Likewise.
12543 2019-09-15  Bruno Haible  <bruno@clisp.org>
12545         access: Add tests.
12546         * tests/test-access.c: New file.
12547         * modules/access-tests: New file.
12549         access: New module.
12550         * lib/unistd.in.h (access): New declaration.
12551         * lib/access.c: New file.
12552         * m4/access.m4: New file.
12553         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12554         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12555         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12556         REPLACE_ACCESS.
12557         * modules/access: New file.
12558         * tests/test-unistd-c++.cc (access): Check signature.
12559         * doc/posix-functions/access.texi: Mention the new module.
12561 2019-09-15  Bruno Haible  <bruno@clisp.org>
12563         fcntl-h: Fix compilation error of creat.c on MSVC.
12564         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12565         defined.
12567 2019-09-15  Bruno Haible  <bruno@clisp.org>
12569         creat: Add tests.
12570         * tests/test-creat.c: New file, based on tests/test-open.h.
12571         * modules/creat-tests: New file.
12573         creat: New module.
12574         * lib/fcntl.in.h (creat): New declaration.
12575         * lib/creat.c: New file, based on lib/open.c.
12576         * m4/creat.m4: New file.
12577         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12578         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12579         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12580         * modules/open (Files): Add m4/open-slash.m4.
12581         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12582         REPLACE_CREAT.
12583         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12584         * modules/creat: New file.
12585         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12586         * doc/posix-functions/creat.texi: Mention the new module.
12588 2019-09-15  Bruno Haible  <bruno@clisp.org>
12590         open tests: Enhance test.
12591         * tests/test-open.h (test_open): Test the creation of an executable
12592         regular file. Also improve initial cleanup.
12594 2019-09-15  Bruno Haible  <bruno@clisp.org>
12596         intprops tests: Avoid build failure with HP-UX cc.
12597         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12598         "error 4018: Macro param too large after substitution - use -H option.".
12600 2019-09-14  Bruno Haible  <bruno@clisp.org>
12602         Make autoconf tests work with -Werror=implicit-function-declaration.
12603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12604         towupper() declaration.
12605         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12606         declaration.
12608 2019-09-14  Bruno Haible  <bruno@clisp.org>
12610         findprog-in: Better mimic the system on native Windows.
12611         Reported by Paul Smith <psmith@gnu.org>.
12612         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12613         non-empty suffixes when the file name already contains a '.'.
12615 2019-09-10  Bruno Haible  <bruno@clisp.org>
12617         wctob: Fix autoconf test.
12618         Based on patch by Florian Weimer <fweimer@redhat.com>.
12619         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12621 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12623         xhash: provide hash_xinitialize.
12624         Suggested by Egor Pugin <egor.pugin@gmail.com>
12625         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12626         * modules/xhash, lib/xhash.c: New.
12627         * lib/hash.h (hash_xinitialize): New.
12629 2019-09-09  Bruno Haible  <bruno@clisp.org>
12631         findprog-in: Make exec optimization optional.
12632         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12633         (find_in_given_path): Add optimize_for_exec parameter.
12634         * lib/findprog-in.c (find_in_given_path): Likewise.
12636 2019-09-08  Bruno Haible  <bruno@clisp.org>
12638         Add option to assume the best, not the worst, when cross-compiling.
12639         Suggested by Jonas Termansen <sortie@maxsi.org>.
12640         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12641         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12642         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12643         lt_cv_sys_argz_works.
12644         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12645         ac_cv_func_calloc_0_nonnull.
12646         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12647         --enable-cross-guesses for gl_cv_func_realpath_works.
12648         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12649         gl_cv_func_cbrtl_ieee.
12650         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12651         gl_cv_func_ceil_ieee.
12652         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12653         gl_cv_func_ceilf_ieee.
12654         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12655         gl_cv_func_ceill_ieee.
12656         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12657         ac_cv_func_chown_works.
12658         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12659         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12660         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12661         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12662         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12663         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12664         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12665         gl_cv_func_expl_works.
12666         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12667         gl_cv_func_expm1_ieee.
12668         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12669         gl_cv_func_expm1l_works.
12670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12671         gl_cv_func_open_directory_works.
12672         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12673         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12674         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12675         gl_cv_func_fchownat_empty_filename_works.
12676         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12677         gl_cv_func_fdopendir_works.
12678         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12679         gl_cv_func_floor_ieee.
12680         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12681         gl_cv_func_floorf_ieee.
12682         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12683         gl_cv_func_fma_works.
12684         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12685         gl_cv_func_fmaf_works.
12686         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12687         gl_cv_func_fmal_works.
12688         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12689         gl_cv_func_fmod_ieee.
12690         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12691         gl_cv_func_fmodf_ieee.
12692         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12693         gl_cv_func_fmodl_ieee.
12694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12695         gl_cv_func_fpurge_works.
12696         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12697         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12698         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12699         gl_cv_func_getcwd_null.
12700         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12702         gl_cv_func_working_getdelim.
12703         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12704         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12705         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12706         gl_cv_func_getgroups_works.
12707         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12708         am_cv_func_working_getline.
12709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12710         for gl_cv_func_getopt_gnu.
12711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12712         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12713         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12714         gl_cv_func_hypot_ieee.
12715         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12716         gl_cv_func_hypotf_ieee.
12717         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12718         gl_cv_func_hypotl_ieee.
12719         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12720         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12721         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12722         gl_cv_func_link_works.
12723         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12724         gl_cv_func_linkat_slash.
12725         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12726         gl_cv_func_log_ieee.
12727         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12728         gl_cv_func_logf_ieee.
12729         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12730         gl_cv_func_logl_works.
12731         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12732         gl_cv_func_log10_ieee.
12733         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12734         gl_cv_func_log10f_ieee.
12735         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12736         gl_cv_func_log10l_works.
12737         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12738         gl_cv_func_log1p_ieee.
12739         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12740         gl_cv_func_log1pf_ieee.
12741         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12742         gl_cv_func_log1pl_ieee.
12743         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12744         gl_cv_func_log2_ieee.
12745         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12746         gl_cv_func_log2f_ieee.
12747         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12748         --enable-cross-guesses for
12749         gl_cv_func_lstat_dereferences_slashed_symlink.
12750         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12751         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12752         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12753         gl_cv_C_locale_sans_EILSEQ.
12754         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12755         gl_cv_func_memchr_works.
12756         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12757         gl_cv_func_memmem_works_always.
12758         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12759         gl_cv_func_memmem_works_fast.
12760         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12761         gl_cv_func_mkdir_trailing_slash_works,
12762         gl_cv_func_mkdir_trailing_dot_works.
12763         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12764         gl_cv_func_mkfifo_works.
12765         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12766         gl_cv_func_mknod_works.
12767         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12768         gl_cv_func_working_mkstemp.
12769         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12770         gl_cv_func_working_mktime.
12771         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12772         gl_cv_func_modf_ieee.
12773         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12774         gl_cv_func_modff_ieee.
12775         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12776         gl_cv_func_modfl_ieee.
12777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12778         gl_cv_func_nanosleep.
12779         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12780         gl_cv_func_perror_works.
12781         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12782         gl_cv_func_printf_sizes_c99.
12783         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12784         gl_cv_func_printf_infinite.
12785         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12786         gl_cv_func_printf_infinite_long_double.
12787         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12788         gl_cv_func_printf_directive_a.
12789         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12790         gl_cv_func_printf_directive_f.
12791         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12792         gl_cv_func_printf_flag_zero.
12793         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12794         gl_cv_func_printf_enomem.
12795         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12796         gl_cv_func_snprintf_truncation_c99.
12797         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12798         gl_cv_func_snprintf_retval_c99.
12799         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12800         gl_cv_func_snprintf_directive_n.
12801         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12802         gl_cv_func_vsnprintf_zerosize_c99.
12803         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12804         gl_cv_func_pselect_detects_ebadf.
12805         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12806         Obey --enable-cross-guesses for
12807         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12808         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12809         gl_cv_func_ptsname_sets_errno.
12810         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12811         gl_cv_func_svid_putenv.
12812         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12813         gl_cv_func_readlink_works.
12814         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12815         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12816         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12817         gl_cv_func_re_compile_pattern_working.
12818         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12819         gl_cv_func_remainder_ieee.
12820         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12821         gl_cv_func_remainderf_ieee.
12822         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12823         gl_cv_func_remainderl_ieee.
12824         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12825         gl_cv_func_rintl_works.
12826         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12827         gl_cv_func_rmdir_works.
12828         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12829         gl_cv_func_round_ieee.
12830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12831         gl_cv_func_roundf_ieee.
12832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12833         gl_cv_func_roundl_ieee.
12834         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12835         gl_cv_func_select_detects_ebadf.
12836         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12837         gl_cv_func_setenv_works.
12838         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12839         gl_cv_func_unsetenv_works.
12840         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12841         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12842         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12843         gl_cv_func_sleep_works.
12844         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12845         gl_cv_func_stat_file_slash.
12846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12847         gl_cv_func_stpncpy.
12848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12849         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12850         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12851         gl_cv_func_strcasestr_linear.
12852         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12853         gl_cv_func_working_strerror.
12854         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12855         gl_cv_func_strerror_0_works.
12856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12857         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12859         gl_cv_func_strstr_works_always.
12860         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12861         gl_cv_func_strstr_linear.
12862         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12863         gl_cv_func_strtod_works.
12864         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12865         gl_cv_func_strtold_works.
12866         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12867         gl_cv_func_symlink_works.
12868         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12869         gl_cv_func_symlinkat_works.
12870         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12871         gl_cv_func_trunc_ieee.
12872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12873         gl_cv_func_truncf_ieee.
12874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12875         gl_cv_func_truncl_ieee.
12876         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12877         gl_cv_func_tzset_clobber.
12878         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12879         gl_cv_func_ungetc_works.
12880         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12881         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12882         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12883         gl_cv_func_usleep_works.
12884         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12885         gl_cv_func_futimesat_works.
12886         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12887         gl_cv_func_working_utimes.
12888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12889         gl_cv_func_wcwidth_works.
12890         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12891         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12892         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12893         links for testing. Obey --enable-cross-guesses for
12894         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12895         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12897 2019-09-08  Bruno Haible  <bruno@clisp.org>
12899         Clarify that cross-compilation guesses are guesses.
12900         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12901         cross-compiling.
12903 2019-09-08  Bruno Haible  <bruno@clisp.org>
12905         chown: Fix configure output (regression from 2019-03-23).
12906         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12907         gl_cv_func_chown_follows_symlink variable.
12909 2019-09-08  Bruno Haible  <bruno@clisp.org>
12911         findprog-in: New module.
12912         Suggested by Paul Smith <psmith@gnu.org>.
12913         * lib/findprog.h (find_in_given_path): New declaration.
12914         * lib/findprog-in.c: New file, based on lib/findprog.c.
12915         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12916         * modules/findprog-in: New file.
12918 2019-09-08  Bruno Haible  <bruno@clisp.org>
12920         findprog: Remove unused dependency.
12921         * modules/findprog (Depends-on): Remove strdup.
12923 2019-09-08  Bruno Haible  <bruno@clisp.org>
12925         findprog: Remove test that is obsolete since 2006-04-24.
12926         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12928 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12930         bitset: style changes
12931         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12932         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12933         xzalloc to xcalloc.
12934         Suggested by Paul Eggert.
12936 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12938         bitset: check memory allocation
12939         Reported by 江 祖铭 (Zu-Ming Jiang).
12940         With help from Paul Eggert.
12941         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12942         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12943         instead of realloc.
12944         When shrinking, accept failures.
12945         * lib/bitset/vector.c (vbitset_resize): Likewise.
12947 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12949         scratch_buffer: sync from glibc
12950         * config/srclist.txt: Add the scratch_buffer source
12951         code from glibc, since these should be in sync.
12952         Autoupdate.
12954 2019-09-07  Bruno Haible  <bruno@clisp.org>
12956         doc: Update for glibc 2.30.
12957         * doc/glibc-functions/gettid.texi: New file.
12958         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12959         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12960         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12961         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12962         * doc/glibc-functions/sem_clockwait.texi: New file.
12963         * doc/glibc-functions/tgkill.texi: New file.
12964         * doc/glibc-functions/twalk_r.texi: New file.
12965         * doc/gnulib.texi: Include them.
12966         (Glibc semaphore.h): New section.
12967         * doc/pastposix-functions/h_errno.texi: Update.
12968         * doc/posix-functions/*.texi: Likewise.
12970 2019-09-06  Bruno Haible  <bruno@clisp.org>
12972         symlink tests: Avoid test failure on Linux with Lustre file system.
12973         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12974         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12975         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12977 2019-09-01  Bruno Haible  <bruno@clisp.org>
12979         gitsub.sh: Add support for shallow-cloning of subdirectories.
12980         * top/gitsub.sh (func_usage): Document allowed git options with
12981         'git pull'.
12982         (func_pull): Accept GIT_OPTIONS argument.
12983         (pull): Parse git options before complaining about too many arguments.
12984         Pass the git options to func_pull.
12986 2019-08-29  Bruno Haible  <bruno@clisp.org>
12988         lock: Fix cross-compilation guesses.
12989         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12990         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12991         platforms.
12993 2019-08-28  Bruno Haible  <bruno@clisp.org>
12995         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12996         Reported by Martin Storsjö <martin@martin.st> in
12997         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12998         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12999         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
13000         files from GCC 6 or newer, use an override through '#define', because
13001         the inline definitions in the platform's <cmath> cannot be overridden
13002         in another way.
13004 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13006         Revert macOS INT_MULTIPLY_WRAPV patch
13007         Problem reported by Bruno Haible in:
13008         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
13009         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
13010         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13011         Go back to working around the Clang bug on macOS.
13013 2019-08-27  Bruno Haible  <bruno@clisp.org>
13015         libtool-next-version: Fix error output.
13016         * build-aux/libtool-next-version (func_fatal_error): Fix the program
13017         name.
13019 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13021         Speed up INT_MULTIPLY_WRAPV on macOS
13022         Assume that __builtin_mul_overflow works OK with Clang on macOS.
13023         Mattias Engdegård says it’s safe to assume the relevant library
13024         is always available there.
13025         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
13026         New temporary internal macro.
13027         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13028         No need to work around the Clang bug on macOS.
13030 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13032         intprops.h, verify.h: port better to clang
13033         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
13034         with Clang.  Problem reported privately by Mattias Engdegård.
13035         Also, insulate intprops.h and verify.h better against each other’s
13036         definitions of __has_builtin on non-Clang hosts.
13037         * lib/intprops.h (__has_builtin): Define a temporary substitute
13038         if __has_builtin is not already defined.
13039         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
13040         New temporary internal macros.
13041         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
13042         Now two separate macros, replacing the old
13043         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
13044         __builtin_mul_overflow is like the rest.  All uses changed.
13045         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
13046         Adjust to above changes.
13047         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
13048         longer relevant.  All uses changed.
13049         * lib/verify.h (__has_builtin): Treat like intprops.h,
13050         so that the two .h files do not collide with each other.
13051         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
13052         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
13054 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13056         intprops: say why not Clang __builtin_add_overflow
13057         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
13058         Mention Clang in comment, responding to a query from
13059         Mattias Engdegård.
13061 2019-08-24  Bruno Haible  <bruno@clisp.org>
13063         doc: Document most of the files outside of modules.
13064         * doc/gnulib.texi (Build Infrastructure Files,
13065         Release Management Files): New chapters.
13067 2019-08-24  Bruno Haible  <bruno@clisp.org>
13069         bootstrap: Keep in sync with the 'gettext' module.
13070         Reported by Assaf Gordon in
13071         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
13072         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
13073         * build-aux/po/remove-potcdate.sin: Likewise.
13075 2019-08-24  Bruno Haible  <bruno@clisp.org>
13077         crypto/gc-sha512: Add tests.
13078         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
13079         * modules/crypto/gc-sha512-tests: New file.
13081         crypto/gc-sha256: Add tests.
13082         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
13083         * modules/crypto/gc-sha256-tests: New file.
13085         crypto/gc-sha256, crypto/gc-sha512: New modules.
13086         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
13087         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
13088         (MAX_DIGEST_SIZE): Set to 64.
13089         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
13090         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
13091         (gc_sha256, gc_sha512): New functions.
13092         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
13093         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
13094         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
13096 2019-08-24  Bruno Haible  <bruno@clisp.org>
13098         crypto/gc-sha1 tests: Improve output when the test fails.
13099         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
13100         output.
13102 2019-08-24  Bruno Haible  <bruno@clisp.org>
13104         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
13105         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
13106         LIBGCRYPT_HAS_MD_SM3.
13107         * lib/gc-libgcrypt.c: Include sm3.h.
13108         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
13109         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
13110         implementation if libgcrypt does not support SM3.
13112 2019-08-24  Bruno Haible  <bruno@clisp.org>
13114         crypto/gc-md2: Optimize and clarify code.
13115         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
13116         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
13117         is not needed.
13119 2019-08-24  Bruno Haible  <bruno@clisp.org>
13121         crypto/gc-md2: Add comment.
13122         * lib/gc-libgcrypt.c: Add comment.
13124 2019-08-24  Bruno Haible  <bruno@clisp.org>
13126         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
13127         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
13128         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
13129         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
13130         variable.
13132 2019-08-24  Bruno Haible  <bruno@clisp.org>
13134         crypto/gc: Fix link error with --with-libgcrypt.
13135         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
13136         AC_LIB_HAVE_LINKFLAGS invocation.
13138 2019-08-24  Bruno Haible  <bruno@clisp.org>
13140         crypto/gc: Access the module indicators correctly.
13141         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
13142         * lib/gc-libgcrypt.c: Likewise.
13144 2019-08-24  Bruno Haible  <bruno@clisp.org>
13146         crypto/gc: Fix configuration with --with-libgcrypt.
13147         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
13148         * modules/crypto/gc (Files): Add it.
13149         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
13151 2019-08-24  Bruno Haible  <bruno@clisp.org>
13153         Remove unused file.
13154         * m4/stat-macros.m4: Remove file.
13156 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13158         New strip-trailing-space option for srclist-update
13159         * config/srclist-update (fixfile): Support new option.
13160         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
13161         Use it.
13163 2019-08-20  Eric Blake  <eblake@redhat.com>
13165         accept4: Support SOCK_NONBLOCK, if defined
13166         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
13168         accept4: Fix compilation when native accept4() exists.
13169         Reported by Richard W.M. Jones <rjones@redhat.com> in
13170         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
13171         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
13173 2019-08-18  Bruno Haible  <bruno@clisp.org>
13175         Defeat -flto GCC optimization in math autoconf tests.
13176         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
13177         at <https://savannah.gnu.org/bugs/?56109>.
13178         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
13179         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
13180         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13181         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13182         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13183         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
13184         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13185         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13186         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13187         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13188         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13189         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13191 2019-08-17  Bruno Haible  <bruno@clisp.org>
13193         windows-spin: Implement declared functions.
13194         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13195         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
13196         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
13197         name.
13199 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13201         intprops: port to Oracle Developer Studio 12.6
13202         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
13203         typos that were in a section not compiled by GCC.
13205 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13207         intprops: support uchar, ushort _WRAPV dests
13208         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
13209         when __builtin_add_overflow etc. and _Generic are not used.
13210         (_GL_INT_OP_WRAPV): Use it to support destinations that
13211         are unsigned char or unsigned short, even in compilers
13212         that lack __typeof__ and are not C11-compatible.
13214         intprops: pacify picky GCC
13215         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
13216         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
13217         possibly-incorrect result.
13218         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
13219         about (A) used as a boolean, when A is an expression like 3 * 4.
13221         intprops: support unsigned *_WRAPV results
13222         Add support for unsigned, unsigned long, and unsigned long long
13223         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
13224         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
13225         bug with unsigned inputs reported by Eli Zaretskii in:
13226         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
13227         * config/srclist.txt: Break the glibc connection for intprops.h
13228         temporarily, while more testing is done in Gnulib-using apps.
13229         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13230         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
13231         Support unsigned results no narrower than unsigned int.  Report
13232         overflow correctly if some arguments are unsigned.
13233         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
13234         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
13235         the right thing with narrow args.
13236         (_GL_INT_OP_CALC1): Remove.  All callers removed.
13237         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
13238         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
13239         * tests/test-intprops.c: Check for bugs and test new behavior.
13241 2019-08-14  Bruno Haible  <bruno@clisp.org>
13243         get_progname_of: New module.
13244         * lib/get_progname_of.h: New file.
13245         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
13246         * lib/getprogname.c (getprogname): Tweak coding style.
13247         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
13248         * modules/get_progname_of: New file.
13250 2019-08-14  Bruno Haible  <bruno@clisp.org>
13252         get_ppid_of: New module.
13253         * lib/get_ppid_of.h: New file.
13254         * lib/get_ppid_of.c: New file.
13255         * modules/get_ppid_of: New file.
13257 2019-08-13  Bruno Haible  <bruno@clisp.org>
13259         libtextstyle-optional tests: Support the NO_COLOR environment variable.
13260         * tests/test-libtextstyle.c (main): Do not emit styling when the
13261         environment variable NO_COLOR is set.
13263 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13265         verify: improve diagnostic quality in recent GCC
13266         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
13267         useful line number containing the top-level caller of the macro.
13268         So, bring back the older way of issuing a diagnostic containing
13269         the top-level call’s arg, so that it is easier to diagnose
13270         ‘verify’ failures with recent GCC.
13271         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
13272         Bring back DIAGNOSTIC arg.  All callers changed.
13273         (verify): Just use _GL_VERIFY.
13275 2019-08-11  Bruno Haible  <bruno@clisp.org>
13277         localcharset: Add more aliases for OS/2.
13278         Based on patch by KO Myung-Hun <komh78@gmail.com> in
13279         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
13280         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
13282 2019-08-10  Eric Blake  <eblake@redhat.com>
13284         configmake: Update advice on usage.
13285         * modules/configmake (Include): No longer necessary to include
13286         last, since configmake.h itself worries about collision avoidance.
13288 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
13290         parse-datetime: fix 'T' military timezone handling
13291         * lib/parse-datetime.y (zone):
13292         follow-up to the previous commit: the 'T' case is handled outside the
13293         conversion table (used as either military timezone UTC-7 or ISO8601
13294         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
13295         timezone letters.
13297 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13299         parse-datetime: fix military timezone letters
13300         Problem and trivial fix reported by Neil Hoggarth in:
13301         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
13302         * lib/parse-datetime.y (military_table):
13303         Do it the right way, not the RFC 822 way.
13305 2019-08-08  Eric Blake  <eblake@redhat.com>
13307         configmake: Avoid namespace pollution issue on mingw.
13308         * modules/configmake (Makefile.am): If the project uses
13309         <winsock2.h>, include that header before defining DATADIR.
13311 2019-07-28  Bruno Haible  <bruno@clisp.org>
13313         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
13314         * tests/test-mbrtowc.c (main): Fix expected value of wc.
13316 2019-07-24  Bruno Haible  <bruno@clisp.org>
13318         pthread-h: Fix definitions of types and macros on mingw.
13319         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
13320         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
13321         not in use.
13322         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
13323         'pthread-once' is not in use.
13324         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
13325         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
13326         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
13327         in use.
13328         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
13329         Define also when module 'pthread-rwlock' is not in use.
13330         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
13331         also when module 'pthread-cond' is not in use.
13332         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
13333         'pthread-tss' is not in use.
13334         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
13335         use.
13337 2019-07-24  Simon Josefsson  <simon@josefsson.org>
13339         crypto/gc: Cope with libgcrypt without SM3.
13340         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
13342 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13344         backupfile: fix resource leak on memory failure
13345         Problem found by Coverity (CID 1484214).
13346         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
13348 2019-07-22  Bruno Haible  <bruno@clisp.org>
13350         Avoid missing-declarations warning in various tests.
13351         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
13352         test6, test_optional, test7, test8, test9, test10, test11, test12,
13353         test13, test14, test15, test_fun): Declare static.
13354         * tests/test-cnd.c (test_cnd_wait): Likewise.
13355         * tests/test-cond.c (test_cond): Likewise.
13357 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13359         pthread tests: Avoid missing-declarations warning.
13360         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
13362 2019-07-19  Bruno Haible  <bruno@clisp.org>
13364         parse-datetime: Avoid warnings from bison versions >= 3.3.
13365         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
13366         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
13368 2019-07-19  Bruno Haible  <bruno@clisp.org>
13370         parse-datetime: Require Bison 2.4 or newer.
13371         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
13372         Code taken from gettext's intl.m4.
13373         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
13374         of YACC.
13376 2019-07-19  Bruno Haible  <bruno@clisp.org>
13378         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
13379         * lib/areadlink-with-size.c: Include <string.h>.
13380         * lib/areadlinkat-with-size.c: Likewise.
13381         * lib/xgethostname.c: Likewise.
13382         * lib/xgetdomainname.c: Likewise.
13384 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
13386         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
13387         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
13388         "%pure-parser".  The former is available since Bison 2.3b (2008),
13389         while the latter is marked as obsolete since version 3.4 (May 2019).
13391 2019-07-16  Bruno Haible  <bruno@clisp.org>
13393         update-copyright: Make it work again (regression from 2019-06-15).
13394         Reported by Brian C. Lane <bcl@redhat.com>.
13395         * build-aux/update-copyright: Add back the -0777, -p, -i options.
13397 2019-07-14  Bruno Haible  <bruno@clisp.org>
13399         doc: Update info about <pthread.h>.
13400         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
13401         of 'pthread'.
13403 2019-07-14  Bruno Haible  <bruno@clisp.org>
13405         pthread_sigmask tests: Use new multithread modules.
13406         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
13407         glthread/thread.h.
13408         (main_thread, killer_thread): Change type to pthread_t.
13409         (main): Update accordingly.
13410         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
13411         thread.
13413 2019-07-14  Bruno Haible  <bruno@clisp.org>
13415         pthread-tss: Add tests.
13416         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
13417         tests/test-tss.c.
13418         * modules/pthread-tss-tests: New file.
13420 2019-07-14  Bruno Haible  <bruno@clisp.org>
13422         pthread-cond: Add tests.
13423         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13424         tests/test-cnd.c.
13425         * modules/pthread-cond-tests: New file.
13427 2019-07-14  Bruno Haible  <bruno@clisp.org>
13429         pthread-rwlock: Add tests.
13430         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13431         * modules/pthread-rwlock-tests: New file.
13433 2019-07-14  Bruno Haible  <bruno@clisp.org>
13435         pthread-mutex: Add tests.
13436         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13437         tests/test-mtx.c.
13438         * modules/pthread-mutex-tests: New file.
13440 2019-07-14  Bruno Haible  <bruno@clisp.org>
13442         pthread-once: Add tests.
13443         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13444         tests/test-call_once.c.
13445         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13446         tests/test-mtx.c.
13447         * modules/pthread-once-tests: New file.
13449 2019-07-14  Bruno Haible  <bruno@clisp.org>
13451         pthread-thread: Add tests.
13452         * tests/test-pthread-thread.c: New file, based on
13453         tests/test-thread_create.c and tests/test-thrd_create.c.
13454         * modules/pthread-thread-tests: New file.
13456 2019-07-14  Bruno Haible  <bruno@clisp.org>
13458         pthread: Turn into a convenience module.
13459         * lib/pthread.in.h: Remove declarations for extern inline functions.
13460         * lib/pthread.c: Remove file.
13461         * modules/pthread (Files): Remove it.
13462         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13463         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13464         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13465         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13466         GNULIB_PTHREAD.
13467         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13469 2019-07-14  Bruno Haible  <bruno@clisp.org>
13471         pthread-spin: New module.
13472         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13473         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13474         inline definitions.
13475         * lib/pthread-spin.c: New file.
13476         * m4/pthread-spin.m4: New file.
13477         * modules/pthread-spin: New file.
13478         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13479         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13480         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13481         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13482         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13484 2019-07-14  Bruno Haible  <bruno@clisp.org>
13486         pthread-tss: New module.
13487         * lib/pthread-tss.c: New file.
13488         * m4/pthread-tss.m4: New file.
13489         * modules/pthread-tss: New file.
13490         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13491         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13492         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13493         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13495 2019-07-14  Bruno Haible  <bruno@clisp.org>
13497         pthread-cond: New module.
13498         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13499         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13500         * lib/pthread-cond.c: New file.
13501         * m4/pthread-cond.m4: New file.
13502         * modules/pthread-cond: New file.
13503         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13504         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13505         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13506         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13507         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13508         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13509         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13510         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13512 2019-07-14  Bruno Haible  <bruno@clisp.org>
13514         pthread-rwlock: New module.
13515         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13516         * m4/pthread-rwlock.m4: New file.
13517         * modules/pthread-rwlock: New file.
13518         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13519         and the Android problem.
13520         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13521         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13522         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13523         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13524         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13525         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13526         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13527         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13528         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13529         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13531 2019-07-14  Bruno Haible  <bruno@clisp.org>
13533         pthread-mutex: New module.
13534         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13535         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13536         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13537         pthread_mutex_unlock): Remove inline definitions.
13538         * lib/pthread-mutex.c: New file.
13539         * m4/pthread-mutex.m4: New file.
13540         * modules/pthread-mutex: New file.
13541         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13542         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13543         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13544         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13545         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13546         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13547         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13548         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13549         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13550         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13551         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13552         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13554 2019-07-14  Bruno Haible  <bruno@clisp.org>
13556         pthread-once: New module.
13557         * lib/pthread-once.c: New file.
13558         * m4/pthread-once.m4: New file.
13559         * modules/pthread-once: New file.
13560         * doc/posix-functions/pthread_once.texi: Mention the new module.
13562 2019-07-14  Bruno Haible  <bruno@clisp.org>
13564         pthread-thread: New module.
13565         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13566         inline definitions.
13567         * lib/pthread-thread.c: New file.
13568         * m4/pthread-thread.m4: New file.
13569         * modules/pthread-thread: New file.
13570         * doc/posix-functions/pthread_create.texi: Mention the new module.
13571         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13572         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13573         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13574         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13575         * doc/posix-functions/pthread_self.texi: Likewise.
13576         * doc/posix-functions/pthread_equal.texi: Likewise.
13577         * doc/posix-functions/pthread_detach.texi: Likewise.
13578         * doc/posix-functions/pthread_join.texi: Likewise.
13579         * doc/posix-functions/pthread_exit.texi: Likewise.
13581 2019-07-14  Bruno Haible  <bruno@clisp.org>
13583         pthread-h: Prepare for adding new modules.
13584         * lib/pthread.in.h: Define the types and macros for each of the
13585         facilities separately.
13586         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13587         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13588         HAVE_PTHREAD_PROCESS_SHARED.
13589         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13590         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13591         HAVE_PTHREAD_PROCESS_SHARED.
13592         * modules/pthread-h (Makefile.am): Substitute
13593         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13594         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13596 2019-07-14  Bruno Haible  <bruno@clisp.org>
13598         pthread-h: Add declarations of essential pthread functions.
13599         * lib/pthread.in.h: Include snippets.
13600         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13601         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13602         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13603         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13604         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13605         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13606         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13607         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13608         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13609         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13610         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13611         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13612         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13613         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13614         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13615         pthread_key_create, pthread_setspecific, pthread_getspecific,
13616         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13617         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13618         declarations.
13619         (pthread_mutex_timedlock): Move declaration.
13620         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13621         declared.
13622         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13623         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13624         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13625         HAVE_* and REPLACE_* variables for the new functions.
13626         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13627         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13628         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13629         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13630         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13631         variables for the new functions. Split the sed script, to avoid the
13632         limit of 99 commands of HP-UX sed.
13633         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13635 2019-07-14  Bruno Haible  <bruno@clisp.org>
13637         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13638         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13639         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13640         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13641         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13642         * modules/pthread-h (Depends-on): Add threadlib.
13643         (Link): Change to $(LIBTHREAD).
13644         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13645         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13647 2019-07-14  Bruno Haible  <bruno@clisp.org>
13649         pthread-h: Add C++ tests.
13650         * tests/test-pthread-c++.cc: New file.
13651         * modules/pthread-h-c++-tests: New file.
13653 2019-07-14  Bruno Haible  <bruno@clisp.org>
13655         pthread-h: Add tests.
13656         * tests/test-pthread.c: New file.
13657         * modules/pthread-h-tests: New file.
13659 2019-07-14  Bruno Haible  <bruno@clisp.org>
13661         pthread-h: New module.
13662         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13663         is 1.
13664         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13665         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13666         <pthread.h> pollutes the namespace; instead, prepare for generating a
13667         pthread.h always. Substitute HAVE_PTHREAD_H here.
13668         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13669         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13670         * modules/pthread-h: New file, based on modules/pthread.
13671         * modules/pthread: Rely on 'pthread-h'.
13672         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13673         Update.
13674         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13675         pthread.
13677 2019-07-14  Bruno Haible  <bruno@clisp.org>
13679         sched_yield: New module.
13680         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13681         (sched_yield): New declaration.
13682         * lib/sched_yield.c: New file.
13683         * m4/sched_yield.m4: New file.
13684         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13685         provide a replacement sched.h always. Test whether sched_yield is
13686         declared.
13687         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13688         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13689         (Makefile.am): Provide a replacement sched.h always. Substitute
13690         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13691         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13692         * modules/sched_yield: New file.
13693         * doc/posix-functions/sched_yield.texi: Mention the new module.
13695 2019-07-14  Bruno Haible  <bruno@clisp.org>
13697         windows-spin: New module.
13698         * lib/windows-spin.h: New file.
13699         * lib/windows-spin.c: New file.
13700         * modules/windows-spin: New file.
13702 2019-07-14  Bruno Haible  <bruno@clisp.org>
13704         windows-timedrwlock: New module.
13705         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13706         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13707         windows-cond.c.
13708         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13709         redefinition conflict with windows-timedrwlock.h.
13710         * modules/windows-timedrwlock: New file.
13712 2019-07-14  Bruno Haible  <bruno@clisp.org>
13714         windows-rwlock: New module.
13715         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13716         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13717         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13718         windows-initguard.h.
13719         (gl_rwlock_t): Define using glwthread_rwlock_t.
13720         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13721         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13722         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13723         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13724         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13725         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13726         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13727         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13728         glthread_rwlock_destroy_func): Remove declarations.
13729         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13730         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13731         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13732         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13733         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13734         functions.
13735         * modules/windows-rwlock: New file.
13736         * modules/lock (Depends-on): Add windows-rwlock.
13738 2019-07-14  Bruno Haible  <bruno@clisp.org>
13740         windows-thread: Add support for creating a thread in detached state.
13741         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13742         (glwthread_thread_create): Add attr argument.
13743         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13744         * lib/glthread/thread.h (glthread_create): Update.
13745         * lib/thrd.c (thrd_create): Update.
13747 2019-07-14  Bruno Haible  <bruno@clisp.org>
13749         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13750         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13751         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13752         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13753         * lib/windows-mutex.h: Update.
13754         * lib/windows-recmutex.h: Likewise.
13755         * lib/windows-timedmutex.h: Likewise.
13756         * lib/windows-timedrecmutex.h: Likewise.
13757         * lib/windows-cond.h: Likewise.
13758         * lib/glthread/lock.h: Likewise.
13759         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13760         lib/windows-spinlock.h.
13761         * modules/windows-recmutex (Files): Likewise.
13762         * modules/windows-timedmutex (Files): Likewise.
13763         * modules/windows-timedrecmutex (Files): Likewise.
13764         * modules/windows-cond (Files): Likewise.
13765         * modules/threads-h (Files): Likewise.
13767 2019-07-14  Bruno Haible  <bruno@clisp.org>
13769         doc: Fix info about pthread API in HP-UX.
13770         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13772 2019-07-14  Bruno Haible  <bruno@clisp.org>
13774         threads-h: Fix generation of threads.h.
13775         * modules/threads-h (Makefile.am): Insert the required header file
13776         snippets.
13778 2019-07-09  Bruno Haible  <bruno@clisp.org>
13780         striconveh test: Fix a compilation failure when iconv is not available.
13781         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13782         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13783         HAVE_ICONV.
13785 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13787         argmatch: adjust columns for help2man.
13788         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13789         requires column 20 or more, return 20.
13791 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13793         areadlink-with-size: avoid realloc when size==0
13794         * lib/areadlink-with-size.c (areadlink_with_size):
13795         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13796         Reallocate at the end to the actual size, to avoid memory waste,
13797         as suggested by Bruno Haible.  But when the guessed size is zero -
13798         useful when the size is unknown - do the initial small readlink
13799         into the stack, to avoid that realloc in the usual case.
13801 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13803         areadlink-with-size: guess a buffer size with 0 size
13804         The size is usually taken from st_size, which can be zero,
13805         resulting in inefficient operation.
13806         Instead let zero select an initial memory allocation
13807         of 128 bytes, which most symlinks fit within.
13808         * lib/areadlink-with-size.c (areadlink_with_size):
13809         Start with a 128 byte buffer, for SIZE == 0.
13810         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13812 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13814         Replace manually crafted hex regexes with [:xdigit:]
13815         * build-aux/gitlog-to-changelog (parse_amend_file)
13816         (git_dir_option):
13817         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13818         This patch is backported from Emacs (Bug#36167).
13820 2019-07-06  Bruno Haible  <bruno@clisp.org>
13822         error: Fix documentation.
13823         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13824         module provides.
13825         * doc/glibc-functions/error_message_count.texi: Likewise.
13826         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13827         * doc/glibc-functions/error_print_progname.texi: Likewise.
13829 2019-07-06  Bruno Haible  <bruno@clisp.org>
13831         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13832         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13833         and older is unsupported.
13834         * doc/**/*.texi: Update.
13836 2019-07-06  Bruno Haible  <bruno@clisp.org>
13838         doc: Remove documentation of Linux libc5 as a supported platform.
13839         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13840         to Linux libc5.
13841         * doc/posix-functions/iswalpha.texi: Likewise.
13842         * doc/posix-functions/iswblank.texi: Likewise.
13843         * doc/posix-functions/iswcntrl.texi: Likewise.
13844         * doc/posix-functions/iswdigit.texi: Likewise.
13845         * doc/posix-functions/iswgraph.texi: Likewise.
13846         * doc/posix-functions/iswlower.texi: Likewise.
13847         * doc/posix-functions/iswprint.texi: Likewise.
13848         * doc/posix-functions/iswpunct.texi: Likewise.
13849         * doc/posix-functions/iswspace.texi: Likewise.
13850         * doc/posix-functions/iswupper.texi: Likewise.
13851         * doc/posix-functions/iswxdigit.texi: Likewise.
13852         * doc/posix-functions/snprintf.texi: Likewise.
13853         * doc/posix-functions/vsnprintf.texi: Likewise.
13855 2019-07-06  Bruno Haible  <bruno@clisp.org>
13857         doc: Remove documentation of Tandem/NSK as a supported platform.
13858         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13859         Tandem/NSK.
13860         * doc/**/*.texi: Update.
13862 2019-07-06  Bruno Haible  <bruno@clisp.org>
13864         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13865         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13866         and older is unsupported.
13867         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13868         Mac OS X 10.4 and older.
13869         * doc/posix-functions/asinl.texi: Likewise.
13870         * doc/posix-functions/atanl.texi: Likewise.
13871         * doc/posix-functions/cosl.texi: Likewise.
13872         * doc/posix-functions/expl.texi: Likewise.
13873         * doc/posix-functions/frexpl.texi: Likewise.
13874         * doc/posix-functions/gettimeofday.texi: Likewise.
13875         * doc/posix-functions/logl.texi: Likewise.
13876         * doc/posix-functions/mkstemp.texi: Likewise.
13877         * doc/posix-functions/sinl.texi: Likewise.
13878         * doc/posix-functions/sqrtl.texi: Likewise.
13879         * doc/posix-functions/tanl.texi: Likewise.
13880         * doc/posix-functions/wcswidth.texi: Likewise.
13881         * doc/**/*.texi: Update.
13883 2019-07-06  Bruno Haible  <bruno@clisp.org>
13885         doc: Remove documentation of AIX 4 as a supported platform.
13886         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13887         unsupported.
13888         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13889         workarounds.
13890         * doc/posix-functions/strnlen.texi: Likewise.
13891         * doc/posix-headers/inttypes.texi: Likewise.
13892         * doc/**/*.texi: Update.
13894 2019-07-06  Bruno Haible  <bruno@clisp.org>
13896         doc: Remove documentation of HP-UX 10 as a supported platform.
13897         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13898         unsupported.
13899         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13900         workarounds.
13901         * doc/posix-functions/gmtime_r.texi: Likewise.
13902         * doc/posix-functions/localtime_r.texi: Likewise.
13903         * doc/posix-functions/mkstemp.texi: Likewise.
13904         * doc/**/*.texi: Update.
13906 2019-07-06  Bruno Haible  <bruno@clisp.org>
13908         doc: Remove documentation of Interix 3.5 as a supported platform.
13909         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13910         unsupported.
13911         * doc/posix-functions/select.texi: Don't mention Interix specific
13912         workarounds.
13913         * doc/posix-headers/signal.texi: Likewise.
13914         * doc/**/*.texi: Update.
13916 2019-07-06  Bruno Haible  <bruno@clisp.org>
13918         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13919         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13920         unsupported.
13921         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13922         workarounds.
13923         * doc/posix-functions/nl_langinfo.texi: Likewise.
13924         * doc/posix-functions/remainder.texi: Likewise.
13925         * doc/posix-functions/towlower.texi: Likewise.
13926         * doc/posix-functions/towupper.texi: Likewise.
13927         * doc/posix-functions/vsnprintf.texi: Likewise.
13928         * doc/posix-functions/wcscat.texi: Likewise.
13929         * doc/posix-functions/wcschr.texi: Likewise.
13930         * doc/posix-functions/wcscmp.texi: Likewise.
13931         * doc/posix-functions/wcscpy.texi: Likewise.
13932         * doc/posix-functions/wcscspn.texi: Likewise.
13933         * doc/posix-functions/wcslen.texi: Likewise.
13934         * doc/posix-functions/wcsncat.texi: Likewise.
13935         * doc/posix-functions/wcsncmp.texi: Likewise.
13936         * doc/posix-functions/wcsncpy.texi: Likewise.
13937         * doc/posix-functions/wcspbrk.texi: Likewise.
13938         * doc/posix-functions/wcsrchr.texi: Likewise.
13939         * doc/posix-functions/wcsspn.texi: Likewise.
13940         * doc/posix-headers/langinfo.texi: Likewise.
13941         * doc/posix-headers/signal.texi: Likewise.
13942         * doc/posix-headers/wchar.texi: Likewise.
13943         * doc/posix-headers/wctype.texi: Likewise.
13944         * doc/**/*.texi: Update.
13946 2019-07-05  Bruno Haible  <bruno@clisp.org>
13948         doc: Remove documentation of OSF/1 as supported platform.
13949         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13950         unsupported.
13951         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13952         workarounds.
13953         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13954         * doc/glibc-functions/ptsname_r.texi: Likewise.
13955         * doc/posix-functions/ceil.texi: Likewise.
13956         * doc/posix-functions/ceilf.texi: Likewise.
13957         * doc/posix-functions/ceill.texi: Likewise.
13958         * doc/posix-functions/fchdir.texi: Likewise.
13959         * doc/posix-functions/floor.texi: Likewise.
13960         * doc/posix-functions/floorf.texi: Likewise.
13961         * doc/posix-functions/fmod.texi: Likewise.
13962         * doc/posix-functions/fmodf.texi: Likewise.
13963         * doc/posix-functions/fmodl.texi: Likewise.
13964         * doc/posix-functions/log.texi: Likewise.
13965         * doc/posix-functions/logf.texi: Likewise.
13966         * doc/posix-functions/logl.texi: Likewise.
13967         * doc/posix-functions/log10.texi: Likewise.
13968         * doc/posix-functions/log10f.texi: Likewise.
13969         * doc/posix-functions/log10l.texi: Likewise.
13970         * doc/posix-functions/log2.texi: Likewise.
13971         * doc/posix-functions/log2f.texi: Likewise.
13972         * doc/posix-functions/log2l.texi: Likewise.
13973         * doc/posix-functions/mbrtowc.texi: Likewise.
13974         * doc/posix-functions/recv.texi: Likewise.
13975         * doc/posix-functions/recvfrom.texi: Likewise.
13976         * doc/posix-functions/remainder.texi: Likewise.
13977         * doc/posix-functions/remainderf.texi: Likewise.
13978         * doc/posix-functions/remainderl.texi: Likewise.
13979         * doc/posix-functions/round.texi: Likewise.
13980         * doc/posix-functions/roundf.texi: Likewise.
13981         * doc/posix-functions/roundl.texi: Likewise.
13982         * doc/posix-functions/send.texi: Likewise.
13983         * doc/posix-functions/sendto.texi: Likewise.
13984         * doc/posix-functions/setenv.texi: Likewise.
13985         * doc/posix-functions/snprintf.texi: Likewise.
13986         * doc/posix-functions/tcgetsid.texi: Likewise.
13987         * doc/posix-functions/trunc.texi: Likewise.
13988         * doc/posix-functions/truncf.texi: Likewise.
13989         * doc/posix-functions/truncl.texi: Likewise.
13990         * doc/posix-functions/ttyname_r.texi: Likewise.
13991         * doc/posix-functions/unsetenv.texi: Likewise.
13992         * doc/posix-functions/wcsrtombs.texi: Likewise.
13993         * doc/posix-headers/sys_select.texi: Likewise.
13994         * doc/posix-headers/wchar.texi: Likewise.
13995         * doc/posix-headers/wctype.texi: Likewise.
13996         * doc/**/*.texi: Update.
13998 2019-07-05  Bruno Haible  <bruno@clisp.org>
14000         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
14001         * doc/**/*.texi: Update.
14003 2019-07-05  Bruno Haible  <bruno@clisp.org>
14005         doc: Remove documentation of Solaris 8 and older as supported platforms.
14006         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
14007         unsupported.
14008         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
14009         workarounds.
14010         * doc/posix-functions/memcmp.texi: Likewise.
14011         * doc/posix-functions/rename.texi: Likewise.
14012         * doc/posix-functions/tzset.texi: Likewise.
14013         * doc/posix-headers/wctype.texi: Likewise.
14014         * doc/**/*.texi: Update.
14016 2019-07-05  Bruno Haible  <bruno@clisp.org>
14018         doc: Remove documentation of Interix 3.5 as a supported platform.
14019         * doc/**/*.texi: Update.
14021 2019-07-05  Bruno Haible  <bruno@clisp.org>
14023         doc: Remove documentation of BeOS as a supported platform.
14024         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
14025         unsupported.
14026         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
14027         * doc/posix-functions/getdelim.texi: Likewise.
14028         * doc/**/*.texi: Update.
14030 2019-07-05  Bruno Haible  <bruno@clisp.org>
14032         thread, lock, cond, tls: Remove support for Pth threads.
14033         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14034         --enable-threads=pth any more.
14035         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
14036         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
14037         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
14038         threads and ISO C11 threads.
14039         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
14040         * lib/glthread/lock.h: Likewise.
14041         * lib/glthread/lock.c: Likewise.
14042         * lib/glthread/cond.h: Likewise.
14043         * lib/glthread/cond.c: Likewise.
14044         * lib/glthread/tls.h: Likewise.
14045         * lib/glthread/tls.c: Likewise.
14046         * lib/glthread/yield.h: Likewise.
14047         * lib/regex_internal.h: Likewise.
14048         * tests/test-thread_create.c: Likewise.
14049         * tests/test-lock.c: Likewise.
14050         * tests/test-cond.c: Likewise.
14051         * tests/test-tls.c: Likewise.
14052         * tests/test-rwlock1.c: Don't include glthread/yield.h.
14053         (main): Sleep without calling gl_thread_yield.
14055 2019-07-05  Bruno Haible  <bruno@clisp.org>
14057         thread, lock, cond, tls: Remove support for old Solaris threads.
14058         Solaris >= 2.5.1 has POSIX threads.
14059         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14060         --enable-threads=solaris any more.
14061         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
14062         * lib/glthread/thread.c: Update comment.
14063         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
14064         * lib/glthread/lock.h: Likewise.
14065         * lib/glthread/lock.c: Likewise.
14066         * lib/glthread/cond.h: Likewise.
14067         * lib/glthread/cond.c: Likewise.
14068         * lib/glthread/tls.h: Likewise.
14069         * lib/glthread/tls.c: Likewise.
14070         * lib/glthread/yield.h: Likewise.
14071         * lib/regex_internal.h: Likewise.
14072         * tests/test-thread_create.c: Likewise.
14073         * tests/test-lock.c: Likewise.
14074         * tests/test-cond.c: Likewise.
14075         * tests/test-tls.c: Likewise.
14077 2019-07-05  Bruno Haible  <bruno@clisp.org>
14079         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
14080         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
14081         needed size is equal to the allocated size.
14082         * lib/getcwd.c (__getcwd): Likewise.
14084 2019-07-05  Bruno Haible  <bruno@clisp.org>
14086         xgetdomainname: Don't return an excessive memory allocation.
14087         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
14088         before returning it.
14090 2019-07-05  Bruno Haible  <bruno@clisp.org>
14092         xgethostname: Don't return an excessive memory allocation.
14093         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
14094         returning it.
14096 2019-07-05  Bruno Haible  <bruno@clisp.org>
14098         areadlinkat-with-size: Don't return an excessive memory allocation.
14099         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
14100         before returning it.
14102 2019-07-05  Bruno Haible  <bruno@clisp.org>
14104         areadlink-with-size: Don't return an excessive memory allocation.
14105         Reported by Andreas Dilger <adilger@whamcloud.com>.
14106         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
14107         before returning it.
14109 2019-07-03  Bruno Haible  <bruno@clisp.org>
14111         renameatu: Fix test failure on MSVC.
14112         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
14113         empty string.
14115 2019-07-03  Bruno Haible  <bruno@clisp.org>
14117         mbrtowc: Fix invalid use of mbtowc() on MSVC.
14118         * lib/mbrtowc.c: Include glthread/lock.h.
14119         (mbtowc_lock): New variable.
14120         (mbrtowc): Treat UTF-8 encoding without locking. For the other
14121         encodings, explicitly reset the internal state of mbtowc, and protect
14122         this through a lock.
14123         * modules/mbrtowc (Depends-on): Add lock.
14125 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
14127         argmatch: don't define _ in the header.
14128         Reported by Jim Meyering.
14129         * lib/argmatch.h (N_, _): Don't define.
14130         Use gettext instead.
14131         * lib/argmatch.h (_): Define.
14132         * tests/test-argmatch.c (N_): Define.
14134 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14136         verify: document ‘assume’ better
14137         * lib/verify.h: Reword doc (Bug#36370).
14139 2019-07-02  Bruno Haible  <bruno@clisp.org>
14141         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
14142         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
14143         "CPutf8".
14144         * lib/nl_langinfo.c (ctype_codeset): Likewise.
14146 2019-07-02  Bruno Haible  <bruno@clisp.org>
14148         getcwd: Fix crash when invoked with size = 0 on MSVC.
14149         * lib/getcwd.c: Include msvc-inval.h.
14150         (getcwd_nothrow): New function/macro.
14151         (getcwd_system): New macro.
14152         (__getcwd): Use it instead of getcwd.
14153         * modules/getcwd (Depends-on): Add msvc-inval.
14154         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
14156 2019-07-02  Bruno Haible  <bruno@clisp.org>
14158         nonblocking-pipe tests: Fix test failure on MSVC.
14159         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
14160         native Windows.
14162 2019-07-02  Bruno Haible  <bruno@clisp.org>
14164         usleep: Implement with millisecond resolution on native Windows.
14165         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
14166         * doc/pastposix-functions/usleep.texi: Update accordingly.
14168 2019-07-02  Bruno Haible  <bruno@clisp.org>
14170         lstat tests: Fix test failure on MSVC.
14171         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
14172         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14174 2019-07-02  Bruno Haible  <bruno@clisp.org>
14176         stat tests: Fix test failure on MSVC.
14177         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
14178         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14180 2019-07-02  Bruno Haible  <bruno@clisp.org>
14182         getaddrinfo tests: Fix test failure on MSVC.
14183         * tests/test-getaddrinfo.c: Include sockets.h.
14184         (main): Invoke gl_sockets_startup.
14185         * modules/getaddrinfo-tests (Depends-on): Add sockets.
14187 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
14189         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
14190         * lib/poll.c: Call Windows native select() with Windows native timeval.
14192 2019-06-30  Bruno Haible  <bruno@clisp.org>
14194         argmatch: Fix compilation errors.
14195         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
14196         * tests/test-argmatch.c (main): Update after last-minute function names
14197         change.
14199 2019-06-30  Bruno Haible  <bruno@clisp.org>
14201         Include <stdlib.h> when needed.
14202         * lib/cnd.c: Include <stdlib.h>, needed for abort().
14203         * lib/fcntl.c: Likewise.
14204         * lib/mbscasestr.c: Likewise.
14205         * lib/mbssep.c: Likewise.
14206         * lib/mbsstr.c: Likewise.
14207         * lib/openat.c: Include <stdlib.h>, needed for free().
14208         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
14209         abort().
14211 2019-06-30  Bruno Haible  <bruno@clisp.org>
14213         Include <stdlib.h> when needed.
14214         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
14215         * lib/faccessat.c: Likewise.
14216         * lib/fchmodat.c: Likewise.
14217         * lib/fchownat.c: Likewise.
14218         * lib/fstatat.c: Likewise.
14219         * lib/mkfifoat.c: Likewise.
14220         * lib/mknodat.c: Likewise.
14221         * lib/readlinkat.c: Likewise.
14222         * lib/symlinkat.c: Likewise.
14223         * lib/utimensat.c: Likewise.
14224         * lib/mkdirat.c: Likewise. Include also the specification header.
14226 2019-06-30  Bruno Haible  <bruno@clisp.org>
14228         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
14229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
14230         from gl_PREREQ_SYS_H_SOCKET.
14231         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
14232         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
14233         gl_PREREQ_SYS_H_WS2TCPIP.
14234         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
14235         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
14236         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
14238 2019-06-30  Bruno Haible  <bruno@clisp.org>
14240         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
14241         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
14242         REPLACE_INET_NTOP to 1 always.
14243         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
14244         REPLACE_INET_PTON to 1 always.
14246 2019-06-30  Bruno Haible  <bruno@clisp.org>
14248         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
14249         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
14250         not REPLACE_INET_NTOP.
14252 2019-06-30  Bruno Haible  <bruno@clisp.org>
14254         poll: Add comment.
14255         * lib/poll.c: Add comment about WSAPoll.
14257 2019-06-30  Bruno Haible  <bruno@clisp.org>
14259         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
14260         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
14261         * lib/poll.in.h: Include <winsock2.h>.
14262         (POLL*, pollfd): Override on native Windows.
14263         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14264         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
14265         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14267 2019-06-28  Bruno Haible  <bruno@clisp.org>
14269         accept4: Fix compilation error on OpenIndiana.
14270         Reported by Michal Nowak <mnowak@startmail.com>
14271         via Mark H Weaver <mhw@netris.org>.
14272         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
14273         whether it exists as a function.
14275 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14277         strverscmp: sync from glibc
14278         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
14279         comments, include libc-config.h, define __strverscmp to be
14280         strverscmp, and don’t assume types line uint8_t and int8_t that
14281         that C99 doesn’t guarantee.
14282         [!_LIBC]: Include libc-config.h; define __strverscmp.
14283         Include stdint.h.
14284         (__strverscmp): Assume C99.  Use uint_least8_t
14285         and int_least8_t instead of unsigned char and signed char.
14286         * modules/strverscmp (Depends-on): Add libc-config, stdint.
14288 2019-06-25  Bruno Haible  <bruno@clisp.org>
14290         tss tests: Add tests for destructors and races.
14291         * tests/test-tss.c (worker_thread): Fix typo in debug message.
14292         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
14293         functions.
14294         (main): Invoke them.
14295         * modules/tls-tests (Depends-on): Add mtx.
14297 2019-06-25  Bruno Haible  <bruno@clisp.org>
14299         tls tests: Add tests for destructors and races.
14300         * tests/test-tls.c: Include glthread/lock.h.
14301         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
14302         functions.
14303         (main): Invoke them.
14304         * modules/tls-tests (Depends-on): Add lock.
14306 2019-06-25  Bruno Haible  <bruno@clisp.org>
14308         windows-tls: Implement TLS key destructors for native Windows.
14309         * lib/windows-tls.h (glwthread_tls_process_destructors): New
14310         declaration.
14311         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
14312         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
14313         (dtor_table_init_once, dtor_table_lock: New variables.
14314         (struct dtor): New type.
14315         (dtor_table, dtors_count, dtors_used, dtors_allocated,
14316         dtor_processing_threads): New variables.
14317         (dtor_table_initialize, dtor_table_ensure_initialized,
14318         dtor_table_shrink_used, glwthread_tls_process_destructors): New
14319         functions.
14320         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
14321         handle non-NULL destructors.
14322         * modules/windows-tls (Depends-on): Add windows-once.
14323         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
14324         Use the functions declared in windows-tls.h.
14325         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
14326         GLWTHREAD_DESTRUCTOR_ITERATIONS.
14327         * lib/windows-thread.c: Include windows-tls.h.
14328         (wrapper_func, glwthread_thread_exit): Invoke
14329         glwthread_tls_process_destructors.
14330         * modules/windows-thread (Depends-on): Add windows-tls.
14332 2019-06-25  Bruno Haible  <bruno@clisp.org>
14334         threadlib: Avoid autoconf warning "was expanded before it was required".
14335         * modules/threadlib (configure.ac): Require gl_THREADLIB.
14337 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
14339         argmatch: remove duplicate const qualifier
14340         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
14342 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14344         unistd: stddef.h and sys/types.h namespace cleanup
14345         * lib/unistd.in.h [__GLIBC__]:
14346         Do not include stddef.h or sys/types.h.
14347         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
14348         supposed to declare off_t and ssize_t.  Problem found when looking
14349         at why @GNULIB_PWRITE@ was different from the newly-added
14350         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
14352 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14354         maintainer-makefile: restore portability to non-GNU awks
14355         Reported by Tim Rühsen.
14356         * top/maint.mk (AWK): New variable.  Use it.
14357         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
14359 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14361         Document setvbuf _IOLBF problem
14362         * doc/posix-functions/setvbuf.texi (setvbuf):
14363         Document MS-Windows portability problem with _IOLBF.
14365         Document lseek SEEK_DATA/SEEK_HOLE
14366         * doc/posix-functions/lseek.texi (lseek):
14367         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
14369 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14371         argmatch: put all the docs member last.
14372         Reported by Bruno Haible.
14373         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
14374         member before the docs done.
14375         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
14377 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
14379         argmatch: add support to generate the usage message.
14380         * lib/argmatch.c: Move some #includes and gettext support to...
14381         * lib/argmatch.h: here.
14382         (ARGMATCH_DEFINE_GROUP): New macro.
14383         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
14384         (argmatch_backup_group): New.
14385         (CHECK): New.
14386         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
14387         argmatch_backup_argument and argmatch_backup_usage.
14388         * modules/argmatch: We depend on c99.
14389         * doc/argmatch.texi (Recognizing Option Arguments): New.
14390         * doc/gnulib.texi: Use it.
14392 2019-06-21  Bruno Haible  <bruno@clisp.org>
14394         thrd: Add comment.
14395         * lib/thrd.c (pthread_main_func): Add comment.
14397 2019-06-21  Bruno Haible  <bruno@clisp.org>
14399         threads-h: Define 'thread_local' if and only if it actually works.
14400         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
14401         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
14402         Oracle Solaris Studio C. Compile a simple program, to see whether
14403         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
14404         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
14405         * lib/threads.in.h (thread_local): Undefine if it does not work.
14406         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
14407         (Link): Mention LIBTHREADLOCAL.
14408         * tests/test-threads.c: Don't check that thread_local is defined.
14409         * tests/test-thread_local.c: New file.
14410         * modules/threads-h-tests (Files): Add it and macros.h.
14411         (Depends-on): Add thrd and stdint.
14412         (configure.ac): Test whether 'alarm' is declared.
14413         (Makefile.am): Arrange to build and link test-thread_local.
14414         * doc/posix-headers/threads.texi: Mention the platforms that don't
14415         support 'thread_local'.
14417 2019-06-20  Bruno Haible  <bruno@clisp.org>
14419         threads-h: Simplify link dependencies.
14420         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14421         Don't set LTLIBSTDTHREAD.
14422         * modules/thrd (Link): Simplify accordingly.
14423         * modules/mtx (Link): Likewise.
14424         * modules/cnd (Link): Likewise.
14425         * modules/tss (Link): Likewise.
14426         * modules/threads (Link): Likewise.
14428 2019-06-20  Bruno Haible  <bruno@clisp.org>
14430         threads-h: Fix link error on FreeBSD 11.
14431         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14432         also with -lpthread.
14434 2019-06-20  Bruno Haible  <bruno@clisp.org>
14436         threadlib: Fix typo (regression from today).
14437         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14439 2019-06-20  Bruno Haible  <bruno@clisp.org>
14441         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14442         * lib/windows-thread.c: Include <errno.h>.
14443         * lib/windows-tls.c: Likewise.
14445 2019-06-20  Bruno Haible  <bruno@clisp.org>
14447         tss tests: Small improvement.
14448         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14450 2019-06-20  Bruno Haible  <bruno@clisp.org>
14452         threads: New module.
14453         * modules/threads: New file.
14455 2019-06-20  Bruno Haible  <bruno@clisp.org>
14457         tss: Add tests.
14458         * tests/test-tss.c: New file, based on tests/test-tls.c.
14459         * modules/tss-tests: New file.
14461 2019-06-20  Bruno Haible  <bruno@clisp.org>
14463         cnd: Add tests.
14464         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14465         * modules/cnd-tests: New file.
14467 2019-06-20  Bruno Haible  <bruno@clisp.org>
14469         mtx: Add tests.
14470         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14471         * tests/test-call_once.c: New file, based on tests/test-once.c.
14472         * modules/mtx-tests: New file.
14474 2019-06-20  Bruno Haible  <bruno@clisp.org>
14476         thrd: Add tests.
14477         * tests/test-thrd_create.c: New file, based on
14478         tests/test-thread_create.c.
14479         * tests/test-thrd_current.c: New file, based on
14480         tests/test-thread_self.c.
14481         * modules/thrd-tests: New file.
14483 2019-06-20  Bruno Haible  <bruno@clisp.org>
14485         tss: New module.
14486         * lib/tss.c: New file.
14487         * modules/tss: New file.
14488         * doc/posix-functions/tss_create.texi: Mention the new module.
14489         * doc/posix-functions/tss_set.texi: Likewise.
14490         * doc/posix-functions/tss_get.texi: Likewise.
14491         * doc/posix-functions/tss_delete.texi: Likewise.
14493 2019-06-20  Bruno Haible  <bruno@clisp.org>
14495         cnd: New module.
14496         * lib/cnd.c: New file.
14497         * modules/cnd: New file.
14498         * doc/posix-functions/cnd_init.texi: Mention the new module.
14499         * doc/posix-functions/cnd_wait.texi: Likewise.
14500         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14501         * doc/posix-functions/cnd_signal.texi: Likewise.
14502         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14503         * doc/posix-functions/cnd_destroy.texi: Likewise.
14505 2019-06-20  Bruno Haible  <bruno@clisp.org>
14507         mtx: New module.
14508         * lib/mtx.c: New file.
14509         * modules/mtx: New file.
14510         * doc/posix-functions/call_once.texi: Mention the new module.
14511         * doc/posix-functions/mtx_init.texi: Likewise.
14512         * doc/posix-functions/mtx_lock.texi: Likewise.
14513         * doc/posix-functions/mtx_trylock.texi: Likewise.
14514         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14515         * doc/posix-functions/mtx_unlock.texi: Likewise.
14516         * doc/posix-functions/mtx_destroy.texi: Likewise.
14518 2019-06-20  Bruno Haible  <bruno@clisp.org>
14520         thrd: New module.
14521         * lib/thrd.c: New file.
14522         * m4/thrd.m4: New file.
14523         * modules/thrd: New file.
14524         * doc/posix-functions/thrd_current.texi: Mention the new module.
14525         * doc/posix-functions/thrd_detach.texi: Likewise.
14526         * doc/posix-functions/thrd_equal.texi: Likewise.
14527         * doc/posix-functions/thrd_exit.texi: Likewise.
14528         * doc/posix-functions/thrd_sleep.texi: Likewise.
14529         * doc/posix-functions/thrd_yield.texi: Likewise.
14530         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14531         AIX bug.
14532         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14533         AIX and Solaris bugs.
14535 2019-06-20  Bruno Haible  <bruno@clisp.org>
14537         threads-h: Add tests.
14538         * tests/test-threads.c: New file.
14539         * modules/threads-h-tests: New file.
14540         * tests/test-threads-c++.cc: New file.
14541         * modules/threads-h-c++-tests: New file.
14543 2019-06-20  Bruno Haible  <bruno@clisp.org>
14545         threads-h: New module.
14546         * lib/threads.in.h: New file.
14547         * m4/threads.m4: New file.
14548         * m4/yield.m4 (gl_YIELD): Update comment.
14549         * modules/threads-h: New file.
14550         * modules/yields (configure.ac): Use AC_REQUIRE.
14551         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14552         bugs.
14554 2019-06-20  Bruno Haible  <bruno@clisp.org>
14556         windows-thread: New module.
14557         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14558         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14559         * lib/glthread/thread.h: Include windows-thread.h.
14560         (gl_thread_t): Define using glwthread_thread_t.
14561         (glthread_create): Define using glwthread_thread_create.
14562         (glthread_join): Define using glwthread_thread_join.
14563         (gl_thread_self): Define using glwthread_thread_self.
14564         (gl_thread_exit): Define using glwthread_thread_exit.
14565         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14566         gl_thread_exit_func): Remove declarations.
14567         * lib/glthread/thread.c (self_key): Remove variable.
14568         (do_init_self_key, init_self_key): Remove functions.
14569         (struct gl_thread_struct): Remove type.
14570         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14571         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14572         functions.
14573         * modules/windows-thread: New file.
14574         * modules/thread (Depends-on): Add windows-thread.
14576 2019-06-20  Bruno Haible  <bruno@clisp.org>
14578         windows-tls: New module.
14579         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14580         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14581         * lib/glthread/tls.h: Include windows-tls.h.
14582         (gl_tls_key_t): Define using glwthread_tls_key_t.
14583         * modules/windows-tls: New file.
14584         * modules/tls (Depends-on): Add windows-tls.
14586 2019-06-20  Bruno Haible  <bruno@clisp.org>
14588         windows-cond: New module.
14589         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14590         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14591         * lib/glthread/cond.h: Include windows-cond.h.
14592         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14593         (gl_cond_t): Define using glwthread_cond_t.
14594         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14595         (glthread_cond_init): Define using glwthread_cond_init.
14596         (glthread_cond_wait): Define using glwthread_cond_wait.
14597         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14598         (glthread_cond_signal): Define using glwthread_cond_signal.
14599         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14600         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14601         (glthread_cond_init_func, glthread_cond_wait_func,
14602         glthread_cond_timedwait_func, glthread_cond_signal_func,
14603         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14604         declarations.
14605         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14606         types.
14607         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14608         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14609         glthread_cond_init_func, glthread_cond_wait_func,
14610         glthread_cond_timedwait_func, glthread_cond_signal_func,
14611         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14612         functions.
14613         * modules/windows-cond: New file.
14614         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14616 2019-06-20  Bruno Haible  <bruno@clisp.org>
14618         windows-timedrecmutex: New module.
14619         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14620         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14621         * modules/windows-timedrecmutex: New file.
14623 2019-06-20  Bruno Haible  <bruno@clisp.org>
14625         windows-timedmutex: New module.
14626         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14627         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14628         * modules/windows-timedmutex: New file.
14630 2019-06-20  Bruno Haible  <bruno@clisp.org>
14632         windows-recmutex: New module.
14633         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14634         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14635         * lib/glthread/lock.h: Include windows-recmutex.h.
14636         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14637         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14638         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14639         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14640         (glthread_recursive_lock_unlock): Define using
14641         glwthread_recmutex_unlock.
14642         (glthread_recursive_lock_destroy): Define using
14643         glwthread_recmutex_destroy.
14644         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14645         glthread_recursive_lock_unlock_func,
14646         glthread_recursive_lock_destroy_func): Remove declarations.
14647         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14648         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14649         glthread_recursive_lock_destroy_func): Remove functions.
14650         * modules/windows-recmutex: New file.
14651         * modules/lock (Depends-on): Add windows-recmutex.
14653 2019-06-20  Bruno Haible  <bruno@clisp.org>
14655         windows-mutex: New module.
14656         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14657         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14658         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14659         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14660         (gl_spinlock_t): Remove type.
14661         (gl_lock_t): Define using glwthread_mutex_t.
14662         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14663         (glthread_lock_init): Define using glwthread_mutex_init.
14664         (glthread_lock_lock): Define using glwthread_mutex_lock.
14665         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14666         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14667         (glthread_lock_init_func, glthread_lock_lock_func,
14668         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14669         declarations.
14670         Use glwthread_spinlock_t instead of gl_spinlock_t.
14671         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14672         GLWTHREAD_SPINLOCK_INIT.
14673         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14674         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14675         functions.
14676         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14677         gl_spinlock_t.
14678         * modules/windows-mutex: New file.
14679         * modules/lock (Depends-on): Add windows-mutex.
14681 2019-06-20  Bruno Haible  <bruno@clisp.org>
14683         windows-once: New module.
14684         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14685         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14686         * lib/glthread/lock.h: Include windows-once.h.
14687         (gl_once_t): Define using glwthread_once_t.
14688         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14689         (glthread_once): Define using glwthread_once.
14690         (glthread_once_func): Remove declaration.
14691         * lib/glthread/lock.c (glthread_once_func): Remove function.
14692         * modules/windows-once: New file.
14693         * modules/lock (Depends-on): Add windows-once.
14695 2019-06-20  Bruno Haible  <bruno@clisp.org>
14697         lock, cond: Avoid possible counter wraparound on Windows.
14698         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14699         field of the guard unchanged if it was already positive.
14700         (glthread_rwlock_rdlock_func): Likewise.
14701         (glthread_rwlock_wrlock_func): Likewise.
14702         (glthread_recursive_lock_lock_func): Likewise.
14703         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14704         (glthread_cond_timedwait_func): Likewise.
14706 2019-06-20  Bruno Haible  <bruno@clisp.org>
14708         cond: Make glthread_cond_timedwait more reliable on Windows.
14709         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14710         condition variable before looking at the current time.
14712 2019-06-20  Bruno Haible  <bruno@clisp.org>
14714         pthread_mutex_timedlock: New module.
14715         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14716         new declaration.
14717         * lib/pthread_mutex_timedlock.c: New file.
14718         * m4/pthread_mutex_timedlock.m4: New file.
14719         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14720         whether pthread_mutex_timedlock is declared.
14721         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14722         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14723         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14724         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14725         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14726         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14727         * modules/pthread_mutex_timedlock: New file.
14728         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14729         module.
14731 2019-06-20  Bruno Haible  <bruno@clisp.org>
14733         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14734         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14735         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14736         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14737         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14738         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14739         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14740         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14741         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14742         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14744 2019-06-20  Bruno Haible  <bruno@clisp.org>
14746         tls tests: Small improvements.
14747         * tests/test-tls.c: Include <stdint.h>.
14748         (worker_thread): Avoid gcc warning on 64-bit mingw.
14749         (test_tls): Pass a different id to each thread.
14750         * modules/tls-tests (Depends-on): Add stdint.
14752 2019-06-20  Bruno Haible  <bruno@clisp.org>
14754         cond tests: Simplify.
14755         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14757 2019-06-20  Bruno Haible  <bruno@clisp.org>
14759         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14760         * tests/test-lock.c (test_once): Don't reference fire_signal if
14761         !ENABLE_LOCKING.
14763 2019-06-19  Bruno Haible  <bruno@clisp.org>
14765         nanosleep: Relicense under LGPLv2+.
14766         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14767         * modules/nanosleep (License): Change to LGPLv2+.
14769 2019-06-19  Bruno Haible  <bruno@clisp.org>
14771         Reorder pieces of header in perl scripts.
14772         The desired order is
14773         - Prologue part 1 (2 lines with #!)
14774         - Program short description
14775         - Copyright and license notice
14776         - Written-by notice
14777         - Program short description (optional)
14778         - Program long description (optional)
14779         - Prologue part 2
14780         - Time stamp
14781         - Code
14782         Reported by Paul Eggert.
14783         * build-aux/announce-gen: Reorder header.
14784         * build-aux/gitlog-to-changelog: Likewise.
14785         * build-aux/useless-if-before-free: Likewise.
14786         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14787         description.
14788         * build-aux/update-copyright: Likewise. Add short description. Bump
14789         time-stamp-line-limit to 200.
14791 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14793         verify-tests: work around xlc bug
14794         Problem reported by Bruno Haible in:
14795         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14796         * tests/test-verify.c (item): Move the arithmetic inside the
14797         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14799 2019-06-16  Bruno Haible  <bruno@clisp.org>
14801         Restore Emacs time-stamp hook applicability.
14802         Reported by Darshit Shah <darnir@gnu.org>.
14803         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14804         * build-aux/announce-gen: Likewise.
14805         * build-aux/gitlog-to-changelog: Likewise.
14806         * build-aux/prefix-gnulib-mk: Likewise.
14807         * build-aux/update-copyright: Likewise.
14809 2019-06-15  Bruno Haible  <bruno@clisp.org>
14811         Fix scripts to have valid executable format on Alpine Linux.
14812         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14813         Idea by Paul Eggert.
14814         * build-aux/useless-if-before-free: Use a prologue that starts with
14815         '#!/bin/sh'.
14816         * build-aux/announce-gen: Likewise.
14817         * build-aux/gitlog-to-changelog: Likewise.
14818         * build-aux/prefix-gnulib-mk: Likewise.
14819         * build-aux/update-copyright: Likewise.
14820         * tests/test-update-copyright.sh: Update test program accordingly.
14822 2019-06-10  Bruno Haible  <bruno@clisp.org>
14824         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14825         Reported by Nikita Ermakov <arei@altlinux.org> in
14826         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14827         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14828         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14830 2019-06-10  Bruno Haible  <bruno@clisp.org>
14832         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14833         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14834         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14835         a copy of the path argument.
14836         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14837         it.
14839 2019-06-10  Bruno Haible  <bruno@clisp.org>
14841         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14842         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14843         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14844         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14845         a copy of the path argument.
14846         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14847         it.
14849 2019-06-10  Bruno Haible  <bruno@clisp.org>
14851         posix_spawn_file_actions_addfchdir: Add tests.
14852         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14853         * tests/test-posix_spawn5.c: New file.
14854         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14856 2019-06-10  Bruno Haible  <bruno@clisp.org>
14858         posix_spawn_file_actions_addfchdir: New module.
14859         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14860         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14861         union member 'fchdir_action'.
14862         * lib/spawn_faction_addfchdir.c: New file.
14863         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14864         * m4/posix_spawn_faction_addfchdir.m4: New file.
14865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14866         'posix_spawn_file_actions_addfchdir' is present and whether
14867         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14868         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14869         posix_spawn_file_actions_addfchdir is declared.
14870         (gl_SPAWN_H_DEFAULTS): Initialize
14871         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14872         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14874         * modules/spawn (Makefile.am): Substitute
14875         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14876         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14878         * modules/posix_spawn_file_actions_addfchdir: New file.
14879         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14880         signature.
14881         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14882         * doc/posix-functions/posix_spawnp.texi: Likewise.
14883         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14884         Likewise.
14886 2019-06-10  Bruno Haible  <bruno@clisp.org>
14888         doc: Document existence of posix_spawn_file_actions_addchdir module.
14889         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14890         the posix_spawn_file_actions_addchdir module.
14892 2019-06-10  Bruno Haible  <bruno@clisp.org>
14894         posix_spawn-internal: Fix module description.
14895         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14896         from here...
14897         * modules/posix_spawnp (configure.ac): ... and here...
14898         * modules/posix_spawn-internal (configure.ac): ... to here.
14900 2019-06-10  Bruno Haible  <bruno@clisp.org>
14902         doc: Update and improve documentation of glibc functions.
14903         This is a series of commits that
14904         - updates the documentation to the state of glibc 2.29,
14905         - adds references to Linux man pages and glibc documentation,
14906         - marks Linux specific functions as such.
14907         These are the commits:
14908         doc: Update after removal of crypt functions from glibc 2.28.
14909         doc: Remove mention of function vm86 (does not exist on x86_64).
14910         doc: Remove mention of functions that are gone from glibc.
14911         doc: Mention that glibc no longer provides h_errno.
14912         doc: Mention the availability of specific functions in glibc versions.
14913         doc: Mention eaccess.
14914         doc: Add references to Linux man pages.
14915         doc: Add references to glibc documentation.
14916         doc: Mention inotify_* functions.
14917         doc: Mention ppoll.
14918         doc: Mention sched_getcpu.
14919         doc: Mention sync_file_range.
14920         doc: Mention epoll_pwait.
14921         doc: Mention eventfd, eventfd_read, eventfd_write.
14922         doc: Mention signalfd.
14923         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14924         doc: Mention epoll_create1.
14925         doc: Mention getauxval.
14926         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14927         doc: Mention nextdown, nextup.
14928         doc: Mention more ISO TS 18661-1 <math.h> functions.
14929         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14930         doc: Mention getrandom, getentropy.
14931         doc: Mention strfromf, strfromd, strfroml.
14932         doc: Mention preadv2, pwritev2.
14933         doc: Mention copy_file_range.
14934         doc: Mention memfd_create.
14935         doc: Mention mlock2.
14936         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14937         doc: Mention more ISO TS 18661-1 <math.h> functions.
14938         doc: Mention renameat2.
14939         doc: Mention statx.
14940         doc: Mention the ISO C11 multithreading header and functions.
14941         doc: Mention getcpu.
14942         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14943         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14944         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14945         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14946         doc: Some glibc functions also exist on Solaris 11.
14947         doc: Some glibc functions also exist on Solaris 11.4.
14948         doc: Some glibc functions also exist on FreeBSD.
14949         doc: Some glibc functions also exist on BeOS.
14950         doc: Some glibc functions also exist on Haiku.
14951         doc: Mark functions which exist only on Linux.
14952         doc: Mark functions which exist only on Linux and illumos.
14954 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14956         copy-file: fix typo
14957         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14959         copy-file-range: simplify into a stub
14960         Based on a comment by Florian Weimer in:
14961         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14962         It turns out that Emacs (which will use this module) won’t need an
14963         emulation and I suspect other programs won’t either, because these
14964         programs will need to fall back on read+write anyway.  Perhaps I
14965         am wrong and other programs will be able to use an emulation; if
14966         so, this patch can be reverted.
14967         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14968         Just call it copy_file_range.
14969         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14970         Check via AC_LINK_IFELSE.
14971         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14973 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14975         copy-file: prefer copy_file_range
14976         * lib/copy-file.c: Do not include xalloc.h.
14977         (qcopy_file_preserving): Allocate a buffer only if
14978         copy_file_range does not suffice.  If the allocation fails
14979         don't give up; just use a small stack-based buffer.
14980         Prefer copy_file_range if it works.
14981         * modules/copy-file (Depends-on): Add copy-file-range.
14982         Remove xalloc.
14984         copy-file-range: new module
14985         * MODULES.html.sh: Add copy-file-range.
14986         * lib/copy-file-range.c, m4/copy-file-range.m4:
14987         * modules/copy-file-range: New files.
14988         * lib/unistd.in.h (copy_file_range): Declare.
14989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14990         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14991         * modules/unistd (unistd.h): Substitute them.
14993 2019-05-28  Bruno Haible  <bruno@clisp.org>
14995         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14996         Reported by KO Myung-Hun <komh78@gmail.com> in
14997         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14998         * lib/binary-io.h (__gl_setmode_check): Remove function.
14999         (set_binary_mode): Declare as notinline on DJGPP and EMX.
15000         * lib/binary-io.c (__gl_setmode_check): Remove function.
15001         (set_binary_mode): Define here on DJGPP and EMX. Inline
15002         __gl_setmode_check. In case of a tty, don't return an error code.
15004 2019-05-28  James Youngman  <jay@gnu.org>
15006         dirent-safer: Make opendir_safer usable from C++.
15007         * lib/dirent-safer.h: use extern "C".
15009 2019-05-28  James Youngman  <jay@gnu.org>
15011         canonicalize: Make canonicalize_filename_mode usable from C++.
15012         * lib/canonicalize.h: use extern "C".
15014 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
15016         prefix-gnulib-mk: Fix CPPFLAGS migration.
15017         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
15018         _a part of the library name.
15020 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15022         flexmember: update comments again
15023         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
15025         flexmember: update comment
15026         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
15028 2019-05-20  Bruno Haible  <bruno@clisp.org>
15030         setlocale: Improve fallback on macOS.
15031         * lib/setlocale.c (search): Optimize away a redundant strcmp()
15032         invocation.
15033         (locales_with_principal_territory): New array.
15034         (langcmp, get_main_locale_with_same_language): New functions.
15035         (locales_with_principal_language): New array.
15036         (terrcmp, get_main_locale_with_same_territory): New functions.
15037         (rpl_setlocale): When setlocale_single failed, try again with a locale
15038         that is more likely to exist. Don't warn if the environment variable
15039         SETLOCALE_VERBOSE is not set.
15041 2019-05-19  Bruno Haible  <bruno@clisp.org>
15043         localename: Fix default on macOS.
15044         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
15045         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
15046         (gl_locale_name_environ, gl_locale_name_default): Remove code for
15047         HAVE_CFLOCALECOPYCURRENT.
15048         * lib/localename.h (gl_locale_name_default): Update.
15050 2019-05-19  Karl Berry  <karl@freefriends.org>
15052         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
15053         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
15054         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
15056 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
15058         maintainer-makefile: catch uses of $< in non-implicit rules
15059         * top/maint.mk (sc_prohibit_magic_number_exit): New.
15061 2019-05-18  Bruno Haible  <bruno@clisp.org>
15063         threadlib: Provide an easy way to avoid mingw's winpthreads library.
15064         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
15065         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
15066         gl_use_threads accordingly.
15068 2019-05-18  Bruno Haible  <bruno@clisp.org>
15070         pthread_sigmask: Fix compilation error with --enable-threads=windows.
15071         Reported by Tim Rühsen in
15072         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
15073         and Michele Locati in
15074         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
15075         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
15076         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
15077         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
15078         in use and regardless which threads API is chosen.
15080 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15082         close-stream, closein, closeout: simplify
15083         I noticed this opportunity for simplification while drafting a
15084         new, related module that I haven’t had time to finish yet.
15085         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
15086         * modules/close-stream (Files): Remove m4/close-stream.m4.
15087         (configure.ac): Omit gl_CLOSE_STREAM.
15088         * modules/closein (Files): Remove m4/closein.m4
15089         (configure.ac): Omit gl_CLOSEIN.
15090         * modules/closeout (Files): Remove m4/closeout.m4.
15091         (configure.ac): Omit gl_CLOSEOUT.
15093 2019-05-12  Bruno Haible  <bruno@clisp.org>
15095         libtool-next-version: New program.
15096         * build-aux/libtool-next-version: New file.
15098 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
15099             Bruno Haible  <bruno@clisp.org>
15101         version-etc: Ease translation.
15102         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
15103         URLs and formatting newlines out of translatable string.
15105 2019-05-11  Bruno Haible  <bruno@clisp.org>
15107         gnupload: Explain how to create symlinks.
15108         * build-aux/gnupload (usage): Add an example that creates symlinks.
15110 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15112         fpucw: port to gcc -pedantic
15113         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
15114         Use __extension__ if using ({ ... }).
15116         crypto/af_alg: port to strict C compilers
15117         * lib/af_alg.c: Include af_alg.h regardless, so that the
15118         compilation unit is nonempty.
15120 2019-05-10  Bruno Haible  <bruno@clisp.org>
15122         base64: Avoid false positive warning from Coverity.
15123         Reported by Kamil Dudka <kdudka@redhat.com>.
15124         Idea by Paul Eggert.
15125         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
15126         '& 0x3f' to the array index expressions. This convinces Coverity that
15127         there is no out-of-bounds array reference, regardless of the input.
15129 2019-05-09  Bruno Haible  <bruno@clisp.org>
15131         gettext: Update to gettext 0.20.
15132         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
15133         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
15134         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
15135         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
15136         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
15137         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
15138         (configure.ac): Request infrastructure compatible with gettext 0.20.
15139         * m4/glibc2.m4: Remove file.
15140         * m4/intdiv0.m4: Remove file.
15141         * m4/intl.m4: Remove file.
15142         * m4/intldir.m4: Remove file.
15143         * m4/intmax.m4: Remove file.
15144         * m4/printf-posix.m4: Remove file.
15145         * m4/uintmax_t.m4: Remove file.
15146         * m4/gettext.m4: Update from gettext 0.20.
15147         * m4/po.m4: Likewise.
15149 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15151         verify: remove verify_true
15152         * NEWS: Mention this.
15153         * lib/verify.h (verify_true): Remove.
15154         * tests/test-verify.c (item): Test verify_expr, not verify_true.
15156         Support C2X and C++17 static_assert
15157         C2X and C++17 finally added support for a simple, single-argument
15158         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
15159         doing back in 2005.  Implement static_assert on older platforms.
15160         The only remaining advantage of ‘verify’ is a shorter name.
15161         * doc/posix-headers/assert.texi (assert.h):
15162         * doc/verify.texi (Compile-time Assertions):
15163         Modernize for C2X and C++17.
15164         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
15165         New macros.
15166         (_GL_HAVE__STATIC_ASSERT): Remove.
15167         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
15168         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
15169         string.  All callers changed.
15170         (_GL_VERIFY): Require 3 or more args, of which only the first 2
15171         are used.  All callers changed.
15172         (_Static_assert): Allow either 1 or 2 args, and define if
15173         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
15174         !_GL_HAVE__STATIC_ASSERT.
15175         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
15176         of defining if !_GL_HAVE_STATIC_ASSERT.
15177         (verify_expr, verify): Don’t bother trying to copy the expression
15178         into the diagnostic, since 1-argument static_assert doesn’t.
15179         (verify): Prefer 1-argument _Static_assert if it works.
15180         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
15182 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15184         Fix _GL_HAVE__STATIC_ASSERT typo
15185         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
15186         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
15188 2019-05-05  Bruno Haible  <bruno@clisp.org>
15190         wcwidth: Ensure width 1, not 2, for ambiguous characters.
15191         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
15192         via Akim Demaille <akim.demaille@gmail.com>.
15193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
15194         en_US.UTF-8 locale, since that is more likely to be present than an
15195         fr_FR.UTF-8 locale.
15196         * tests/test-wcwidth.c (main): Check the width of U+2202.
15197         * doc/posix-functions/wcwidth.texi: Mention the issue.
15199 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15201         Port manywarnings to GCC 9
15202         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
15203         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
15204         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
15205         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
15206         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
15207         --help=warnings output.
15208         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
15209         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
15210         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
15212 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15214         Sync lib/mktime-internal.h from glibc
15215         * config/srclist.txt: Add entry for lib/mktime-internal.h.
15216         * lib/mktime-internal.h: Autoupdate.
15218 2019-04-28  Bruno Haible  <bruno@clisp.org>
15220         tls tests: Prevent that the test takes too long.
15221         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
15222         (main): Let the test fail if it takes more than 10 minutes.
15223         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
15225 2019-04-27  Bruno Haible  <bruno@clisp.org>
15227         lock tests: Prevent that the test takes too long.
15228         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
15229         (main): Let the test fail if it takes more than 10 minutes.
15230         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
15232 2019-04-27  Bruno Haible  <bruno@clisp.org>
15234         localename: Fix crash on mingw (regression from 2018-11-23).
15235         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
15236         locale name that is null.
15238 2019-04-27  Bruno Haible  <bruno@clisp.org>
15240         Fix gcc warnings on 64-bit mode mingw.
15241         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
15242         * lib/gl_array_list.c: Likewise.
15243         * lib/gl_array_map.c: Likewise.
15244         * lib/gl_array_set.c: Likewise.
15245         * lib/gl_carray_list.c: Likewise.
15246         * lib/gl_sublist.c: Likewise.
15247         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
15248         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
15249         * lib/gl_hash_map.c (uintptr_t): Likewise.
15250         * lib/gl_hash_set.c (uintptr_t): Likewise.
15251         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
15252         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
15253         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
15254         * lib/iconv.c (uintptr_t): Likewise.
15255         * lib/iconv_close.c (uintptr_t): Likewise.
15256         * tests/test-lock.c: Include <stdint.h>.
15257         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
15258         'long'.
15259         * modules/clean-temp (Depends-on): Add stdint.
15260         * modules/array-list (Depends-on): Likewise.
15261         * modules/array-map (Depends-on): Likewise.
15262         * modules/array-set (Depends-on): Likewise.
15263         * modules/carray-list (Depends-on): Likewise.
15264         * modules/sublist (Depends-on): Likewise.
15265         * modules/lock-tests (Depends-on): Likewise.
15267 2019-04-27  Bruno Haible  <bruno@clisp.org>
15269         error: Tweak indentation.
15270         * lib/error.c: Correct indentation.
15272 2019-04-27  Bruno Haible  <bruno@clisp.org>
15274         term-style-control: Fix gcc warning on mingw.
15275         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
15276         of i.
15278 2019-04-26  Bruno Haible  <bruno@clisp.org>
15280         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
15281         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
15283 2019-04-26  Bruno Haible  <bruno@clisp.org>
15285         relocatable-prog: Fix gcc warning on mingw.
15286         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
15287         on EMX.
15289 2019-04-02  Bruno Haible  <bruno@clisp.org>
15291         gitsub.sh: New file.
15292         * top/gitsub.sh: New file.
15294 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
15296         argmatch: use void* for raw memory pointers
15297         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
15298         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
15299         to "values", keep char* for strings.
15301 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
15303         prefix-gnulib-mk: fix the support for gnulib-po
15304         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
15305         Don't touch HAVE_* variables.
15306         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
15308 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
15310         di-set: allow free with 'ino_map' being NULL.
15311         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
15312         is NULL.  Bug introduced in commit 3703dbbe88dd.
15313         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
15314         as a test.
15316 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
15318         * lib/str-two-way.h: Fix comment typo.
15320 2019-04-13  Bruno Haible  <bruno@clisp.org>
15322         x-to-1: Restore ability to use original calling convention.
15323         * build-aux/x-to-1.in: Add comments. Accept the original form of
15324         HELP2MAN argument as well as the form expected since 2012-12-12.
15326 2019-04-13  Bruno Haible  <bruno@clisp.org>
15328         x-to-1: Avoid failure due to missing perl modules.
15329         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
15330         needs are installed.
15332 2019-04-13  Bruno Haible  <bruno@clisp.org>
15334         openmp-init: New module.
15335         * modules/openmp-init: New file.
15336         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
15337         the changes from 2019-04-09.
15339 2019-04-12  Bruno Haible  <bruno@clisp.org>
15341         signbit: Fix compilation error when gnulib's math.h exists twice.
15342         * lib/math.in.h (GNULIB_defined_signbit): New macro.
15344 2019-04-12  Bruno Haible  <bruno@clisp.org>
15346         openmp: Fix compilation error on platforms without OpenMP.
15347         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
15349 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
15351         mountlist: make parsing /proc/self/mountinfo more robust
15352         Cater for the following issues with mountinfo parsing (the first
15353         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
15354         in <https://bugs.gnu.org/35137>).
15355         1. The fields source, target, mntroot and fstype may contain characters
15356         like '\r'; sscanf(3) fails to read such values with the %s format
15357         specifier because it would stop at such characters.
15358         Example: "mount -t tmpfs tmpfs /foo^Mbar".
15359         The only true separator in that file is the ' ' character.
15360         2. The source field may be an empty string, which happens e.g. with
15361         "mount -t tmpfs '' /target".
15362         3. The fstype field may contain mangled characters as well which need
15363         unescaping.
15364         * lib/mountlist.c (terminate_at_blank): Add utility function.
15365         (read_file_system_list): In the block trying to read the mountinfo file,
15366         avoid using sscanf(3) with %s format; instead, parse the above fields
15367         separated by spaces one by one.
15368         This also handles the case when the source field is an empty string.
15369         Unescape the fstype field.
15371 2019-04-09  Bruno Haible  <bruno@clisp.org>
15373         openmp: Add workaround for 32-bit programs on AIX.
15374         * lib/omp.in.h: New file.
15375         * lib/omp-init.c: New file, based on lib/nproc.c.
15376         * m4/omp_h.m4: New file.
15377         * modules/openmp (Files): Add them.
15378         (Depends-on): Add include_next, c-ctype, setenv.
15379         (configure.ac): Invoke gl_OMP_H.
15380         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
15381         (Include): Mention <omp.h>.
15383 2019-04-09  Bruno Haible  <bruno@clisp.org>
15385         nproc: Fix return value for privileged processes.
15386         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
15387         getpid().
15389 2019-04-07  Bruno Haible  <bruno@clisp.org>
15391         Add copyright notices in several files.
15392         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
15393         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
15394         * lib/libunistring.valgrind: Likewise.
15395         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
15396         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
15397         * lib/memchr.valgrind: Likewise.
15398         * lib/memchr2.valgrind: Likewise.
15399         * lib/rawmemchr.valgrind: Likewise.
15400         * lib/relocatable.valgrind: Likewise.
15401         * lib/strchrnul.valgrind: Likewise.
15403 2019-03-25  Bruno Haible  <bruno@clisp.org>
15405         term-style-control tests: Fix link error.
15406         Reported by Tom G. Christensen in
15407         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
15408         * modules/term-style-control-tests (Makefile.am): Link
15409         test-term-style-control-hello and test-term-style-control-yes against
15410         LIBINTL.
15412 2019-03-24  Bruno Haible  <bruno@clisp.org>
15414         term-style-control: Add tests.
15415         * tests/test-term-style-control-hello.c: New file.
15416         * tests/test-term-style-control-yes.c: New file.
15417         * modules/term-style-control-tests: New file.
15419         term-style-control: New module.
15420         * lib/term-style-control.h: New file, based on libtextstyle's
15421         term-ostream.oo.h and term-ostream.oo.c.
15422         * lib/term-style-control.c: New file, based on libtextstyle's
15423         term-ostream.oo.c.
15424         * modules/term-style-control: New file.
15426 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15428         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15429         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15430         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15432 2019-03-23  Bruno Haible  <bruno@clisp.org>
15434         Support cross-compilation to musl libc.
15435         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15436         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15437         musl libc.
15438         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15439         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15440         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15441         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15442         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15443         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15444         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15445         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15446         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15447         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15448         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15450         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15451         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15452         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15453         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15454         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15455         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15456         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15457         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15458         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15459         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15460         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15461         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15462         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15463         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15464         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15465         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15466         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15467         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15468         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15469         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15470         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15471         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15472         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15473         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15474         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15475         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15476         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15477         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15478         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15479         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15480         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15482         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15483         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15484         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15485         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15486         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15487         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15488         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15489         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15490         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15491         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15492         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15493         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15494         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15495         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15496         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15497         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15498         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15501         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15502         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15503         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15505         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15506         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15507         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15508         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15509         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15510         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15511         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15512         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15513         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15514         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15517 2019-03-23  Bruno Haible  <bruno@clisp.org>
15519         posix_spawn_file_actions_*: Document musl libc bugs.
15520         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15521         the bug.
15522         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15523         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15524         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15525         cross-compiling to a musl system, guess no.
15526         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15527         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15529 2019-03-23  Bruno Haible  <bruno@clisp.org>
15531         futimens: Document musl libc bug.
15532         * doc/posix-functions/futimens.texi: Mention the bug.
15533         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15534         cross-compiling, guess no on glibc and musl systems.
15536 2019-03-23  Bruno Haible  <bruno@clisp.org>
15538         Clarify that cross-compilation guesses are guesses.
15539         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15540         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15541         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15542         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15543         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15544         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15545         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15546         gl_cv_glob_lists_symlinks.
15547         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15548         'guessing ' to ac_cv_func_malloc_0_nonnull.
15549         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15550         'guessing ' to ac_cv_func_realloc_0_nonnull.
15551         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15552         'guessing ' to gl_cv_func_poll.
15553         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15554         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15557 2019-03-23  Bruno Haible  <bruno@clisp.org>
15559         strtold: Fix typo.
15560         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15562 2019-03-23  Bruno Haible  <bruno@clisp.org>
15564         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15565         Reported by Akim Demaille.
15566         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15567         [[noreturn]] would not work, use _Noreturn instead.
15569 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15571         libtextstyle-optional: Fix compiler warnings.
15572         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15573         as unused.
15575 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15577         bitset: fix memory leaks
15578         Reported by Bruno Haible.
15579         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15580         * lib/bitset/vector.c (vbitset_free): New.
15581         (vbitset_vtable): Use it.
15583 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15585         bitset: minor changes
15586         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15587         * lib/bitset/table.c: Formatting changes.
15588         Remove useless braces.
15589         Prefer using else in cascades of if/else-if with returns.
15590         * lib/bitset/vector.c: Reduce scopes.
15592 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15594         bitset: expose bitset_resize
15595         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15596         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15597         (main): Use a variable bitset as reference, since fixed does not support resize.
15599 2019-03-19  Bruno Haible  <bruno@clisp.org>
15601         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15602         Reported by Akim Demaille.
15603         * doc/noreturn.texi: New file.
15604         * doc/gnulib.texi: Include it.
15606 2019-03-19  Bruno Haible  <bruno@clisp.org>
15608         doc: Document how to use 'static inline'.
15609         * doc/static-inline.texi: New file.
15610         * doc/gnulib.texi: Include it.
15612 2019-03-19  Bruno Haible  <bruno@clisp.org>
15614         libtextstyle-optional: Add tests.
15615         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15616         adhoc-tests/hello.c.
15617         * tests/test-libtextstyle-default.css: New file, copied from
15618         libtextstyle's adhoc-tests/hello-default.css.
15619         * modules/libtextstyle-optional-tests: New file.
15621         libtextstyle-optional: New module.
15622         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15623         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15624         * modules/libtextstyle-optional: New file.
15626 2019-03-19  Bruno Haible  <bruno@clisp.org>
15628         c-stack: Make signal handlers more reliable.
15629         * lib/c-stack.c (progname): New variable.
15630         (die): Use it.
15631         (c_stack_action): Initialize it.
15632         (segv_handler): Save and restore errno.
15634 2019-03-19  Bruno Haible  <bruno@clisp.org>
15636         Help making signal handlers more reliable.
15637         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15638         _GL_ASYNC_SAFE into config.h.
15639         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15640         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15641         argument.
15642         * lib/fatal-signal.c (action_t, uninstall_handlers,
15643         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15644         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15645         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15646         _GL_ASYNC_SAFE.
15647         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15648         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15650 2019-03-18  Bruno Haible  <bruno@clisp.org>
15652         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15653         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15654         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15656 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15658         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15659         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15660         GCC 4.8.
15662 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15664         fts: minor simplification
15665         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15667 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15669         bitset, timevar: Depend on c99.
15670         Reported by Bruno Haible.
15671         * modules/bitset, modules/timevar (Depends-on): Add c99.
15673 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15675         bitset: a bit (...) more tests
15676         * tests/test-bitset.c (check_attributes): Check zero and ones.
15678 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15680         bitset: fix overflows.
15681         Reported by Bruno Haible.
15682         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15683         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15684         the bit in the array of bitset_word, so be sure to take its modulo
15685         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15686         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15688 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15690         bitset: style changes.
15691         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15692         Formatting changes.
15693         (tbitset_list): Reduce scopes.
15695 2019-03-16  Bruno Haible  <bruno@clisp.org>
15697         fatal-signal: Pass the signal number to the action.
15698         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15699         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15700         (fatal_signal_handler): Pass the signal number to the action.
15701         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15702         signal number as parameter.
15703         (create_temp_dir): Update.
15704         * lib/wait-process.c (cleanup_slaves_action): New function.
15705         (register_slave_subprocess): Update at_fatal_signal invocation.
15706         * NEWS: Mention the change.
15708 2019-03-16  Bruno Haible  <bruno@clisp.org>
15710         fatal-signal: Add function that lists the fatal signals.
15711         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15712         * lib/fatal-signal.c (get_fatal_signals): New function.
15714 2019-03-14  Bruno Haible  <bruno@clisp.org>
15716         isatty: Make it return true in Cygwin consoles on native Windows.
15717         * lib/isatty.c: Include <string.h>.
15718         (GetProcAddress): New macro.
15719         (GetNamedPipeClientProcessIdFuncType): New type.
15720         (GetNamedPipeClientProcessIdFunc): New variable.
15721         (QueryFullProcessImageNameFuncType): New type.
15722         (QueryFullProcessImageNameFunc): New variable.
15723         (initialized): New variable.
15724         (initialize): New function.
15725         (IsCygwinConsoleHandle): New function.
15726         (isatty): Invoke it.
15727         * doc/posix-functions/isatty.texi: Mention the issue.
15729 2019-03-14  Bruno Haible  <bruno@clisp.org>
15731         all: Update URLs to msdn.microsoft.com.
15732         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15733         was moved to docs.microsoft.com.
15735 2019-03-13  Bruno Haible  <bruno@clisp.org>
15737         gnulib-tool: Clarify the coding style.
15738         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15739         * gnulib-tool: Add comment about coding style.
15741 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15743         strtod: fix clash with strtold
15744         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15745         * lib/strtod.c (compute_minus_zero, minus_zero):
15746         Simplify by remving the macro / external variable,
15747         and having just a function.  User changed.  This avoids
15748         the need for an external variable that might clash.
15750 2019-03-10  Bruno Haible  <bruno@clisp.org>
15752         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15753         Reported by Eli Zaretskii <eliz@gnu.org>.
15754         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15756         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15758 2019-03-10  Bruno Haible  <bruno@clisp.org>
15760         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15761         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15762         is in use.
15763         * tests/test-printf-posix2.c: Likewise.
15765 2019-03-10  Bruno Haible  <bruno@clisp.org>
15767         uninorm tests: Free allocated memory.
15768         * tests/uninorm/test-u32-normalize-big.h
15769         (struct normalization_test_file): Remove 'const' from allocated member.
15770         (free_normalization_test_file): New declaration.
15771         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15772         memory.
15773         (free_normalization_test_file): New function.
15774         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15775         'struct normalization_test_file' contents.
15776         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15777         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15778         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15780 2019-03-10  Bruno Haible  <bruno@clisp.org>
15782         di-set: Fix memory leak.
15783         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15784         not free().
15786 2019-03-10  Bruno Haible  <bruno@clisp.org>
15788         tests: Free allocated memory.
15789         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15790         * tests/test-astrxfrm.c (main): Free allocated memory.
15791         * tests/test-bitset.c (compare, check_attributes): Free allocated
15792         bitsets.
15793         * tests/test-filenamecat.c (main): Free allocated memory.
15794         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15795         * tests/test-freadptr.c (main): Likewise.
15796         * tests/test-freadptr2.c (main): Free allocated memory.
15797         * tests/test-freadseek.c (main): Likewise.
15798         * tests/test-gc-arcfour.c (main): Close allocated context.
15799         * tests/test-gc-arctwo.c (main): Likewise.
15800         * tests/test-gc-des.c (main): Close all allocated contexts.
15801         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15802         * tests/test-pipe-filter-ii1.c (main): Likewise.
15803         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15804         allocated file actions.
15805         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15806         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15807         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15808         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15809         * tests/test-strfmon_l.c (main): Free allocated locales.
15810         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15811         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15812         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15813         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15814         * tests/unistr/test-chr.h (main): Free input32.
15815         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15817 2019-03-10  Bruno Haible  <bruno@clisp.org>
15819         tests: Prepare for using valgrind.
15820         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15821         * tests/*/*.sh: Likewise.
15822         * tests/test-freadptr.c (main): Update accordingly.
15823         * tests/test-freadseek.c (main): Likewise.
15825 2019-03-09  Bruno Haible  <bruno@clisp.org>
15827         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15828         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15829         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15830         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15831         before exiting.
15833 2019-03-09  Jim Meyering  <meyering@fb.com>
15835         test-userspec.c: don't print NULL
15836         * tests/test-userspec.c (main): A test release of gcc,
15837         9.0.1 20190310, warned that this test would attempt to
15838         print a NULL pointer via a %s printf format.  Fix that
15839         and remove the unnecessary preceding "!diag" conjunct.
15840         Also add a comment.
15842 2019-03-03  Bruno Haible  <bruno@clisp.org>
15844         getloadavg: Write NULL for the null pointer.
15845         Reported by Michal Privoznik <mprivozn@redhat.com>.
15846         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15848 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15850         alloca, tsearch-tests: Write NULL for the null pointer.
15851         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15852         * tests/test-tsearch.c (mangle_tree): Likewise.
15854 2019-03-09  Bruno Haible  <bruno@clisp.org>
15856         strfmon_l: Fix -fsanitize=address finding.
15857         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15858         <string.h>.
15859         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15860         (directive_t, directives_t): New types.
15861         (fmon_parse): New function.
15862         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15863         format string. Consume 'long double' arguments in places where the
15864         format string indicates so.
15865         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15867 2019-03-09  Bruno Haible  <bruno@clisp.org>
15869         crypto/des: Fix undefined behaviour.
15870         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15871         shift operations on 'int'.
15873 2019-03-09  Bruno Haible  <bruno@clisp.org>
15875         Fix undefined behaviour.
15876         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15877         'unsigned int', to avoid shift operations on 'int'.
15878         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15879         * tests/test-count-leading-zeros.c (main): Use a random number that has
15880         as many bits as TYPE, not only 2*15 or 2*31 bits.
15881         * tests/test-count-trailing-zeros.c (main): Likewise.
15882         * tests/test-count-one-bits.c (main): Likewise.
15883         * tests/test-memmem.c: Don't include "null-ptr.h".
15884         (main): Use zerosize_ptr() instead of null_ptr().
15885         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15887 2019-03-08  Bruno Haible  <bruno@clisp.org>
15889         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15890         Reported by Jeffrey Walton <noloader@gmail.com>.
15891         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15892         invoke memset with a zero size.
15893         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15894         Likewise.
15895         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15896         Adjust accordingly.
15898 2019-03-08  Bruno Haible  <bruno@clisp.org>
15900         unistr/*, uniconv/*: Fix undefined behaviour.
15901         Reported by Jeffrey Walton <noloader@gmail.com>.
15902         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15903         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15904         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15905         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15907 2019-03-08  Bruno Haible  <bruno@clisp.org>
15909         unistr/u8-cmp: Fix undefined behaviour.
15910         Reported by Jeffrey Walton <noloader@gmail.com>.
15911         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15913 2019-03-08  Bruno Haible  <bruno@clisp.org>
15915         unictype/numeric: Fix undefined behaviour.
15916         Reported by Jeffrey Walton <noloader@gmail.com>.
15917         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15918         on shift overflow, caught by "gcc -fsanitize=undefined".
15919         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15920         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15921         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15923 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15925         git-version-gen: fix --version copyright year
15926         * build-aux/git-version-gen, build-aux/move-if-change (version):
15927         --version output copyright year is now taken from script year,
15928         so that it no longer needs to be updated by hand.
15930 2019-03-04  Bruno Haible  <bruno@clisp.org>
15932         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15933         This approach supports relocatable installation of shared libraries
15934         which depend on other shared libraries from the same package.
15935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15936         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15937         wrapper around the original LIBTOOL.
15938         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15939         token '@loader_path' instead of '$ORIGIN'.
15940         * build-aux/libtool-reloc: New file.
15941         * modules/relocatable-prog (Files): Add it.
15942         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15943         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15944         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15945         Makefile.am, not in configure.ac.
15947 2019-03-04  Bruno Haible  <bruno@clisp.org>
15949         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15950         * build-aux/install-reloc: Revert change.
15951         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15953 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15955         nstrftime: support the ‘+’ flag
15956         * lib/nstrftime.c (add, __strftime_internal):
15957         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15958         (__strftime_internal): New arg ‘width’.  All uses changed.
15959         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15961 2019-02-24  Bruno Haible  <bruno@clisp.org>
15963         relocatable-prog: Improve verbose output.
15964         * build-aux/install-reloc (func_verbose): Escape characters that would
15965         be interpreted by the shell.
15967 2019-02-24  Bruno Haible  <bruno@clisp.org>
15969         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15970         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15971         "sys/stat.h".
15972         * lib/lstat.c: Likewise.
15973         * lib/fstat.c: Likewise.
15974         * lib/fstatat.c: Likewise.
15976 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15978         long-options: add parse_gnu_standard_options_only
15979         Discussed in https://bugs.gnu.org/33468 .
15981         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15982         (parse_gnu_standard_options_only): Add function to process
15983         the GNU default options --help and --version and fail for
15984         any other unknown long or short option. See
15985         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15986         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15987         * modules/long-options (depends-on): Add stdbool, exitfail.
15988         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15989         syntax-check rule, add new function name.
15991 2019-02-23  Bruno Haible  <bruno@clisp.org>
15993         relocatable-prog: Update documentation.
15994         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15995         the recent changes.
15997 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15999         nstrftime: tweak arg order
16000         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
16001         All callers changed.  Suggested by TAMUKI Shoichi in:
16002         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
16004 2019-02-23  Bruno Haible  <bruno@clisp.org>
16006         relocatable-prog: Use wrapper-free installation also on Mac OS X.
16007         Reported by Paul Smith <psmith@gnu.org>.
16008         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
16009         (func_relativize): New function, from gnulib-tool.
16010         Handle mode 'macosx' through invocations of 'otool' and
16011         'install_name_tool'.
16012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
16013         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
16014         'install-reloc' invocation with mode 'macosx'.
16016 2019-02-23  Bruno Haible  <bruno@clisp.org>
16018         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
16019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16020         Hurd with glibc >= 2.27.
16022 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16024         nstrftime: merge glibc strftime changes
16025         This incorporates:
16026         2019-02-11 Fix a few whitespace arrangement inconsistencies
16027         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
16028         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
16029         2019-01-11 strftime: use the "L_" macro with character literals
16030         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
16031         callers changed.  Default width of %Ey is now 2.  This is needed
16032         for proper handling of Japanese dates starting on 2019-05-01.
16034 2019-02-19  Bruno Haible  <bruno@clisp.org>
16036         relocatable-prog: Use $ORIGIN trick on more platforms.
16037         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16038         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
16039         Solaris >= 10, Haiku. But don't use it on Android.
16040         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
16041         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
16043 2019-02-19  Bruno Haible  <bruno@clisp.org>
16045         progreloc: Speed up executable lookup on various platforms.
16046         * lib/progreloc.c: Include <errno.h>.
16047         (safe_read, full_read): New functions.
16048         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
16049         prefer the information from the /proc file system to a PATH search.
16051 2019-02-19  Bruno Haible  <bruno@clisp.org>
16053         progreloc: Simplify code for Android.
16054         * lib/progreloc.c (executable_fd): Don't define on Android.
16055         (maybe_executable, find_executable): Don't use executable_fd on Android.
16057 2019-02-15  Bruno Haible  <bruno@clisp.org>
16059         gnulib-tool: Support --import with just a few tests, not --with-tests.
16060         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
16061         'inctests' when generating files; use 'inctests' only for computing the
16062         transitive closure.
16064 2019-02-14  Bruno Haible  <bruno@clisp.org>
16066         gnulib-tool: Improve handling of multiple --local-dir options.
16067         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
16068         options work.
16069         * gnulib-tool (func_path_prepend): Remove function.
16070         (func_path_foreach): Make IFS handling more robust.
16071         (local_gnulib_path): Collect --local-dir values using func_path_append,
16072         not func_path_prepend.
16073         (func_determine_path_separator): Make IFS handling more robust.
16074         (func_lookup_file_cb): New function.
16075         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
16076         func_lookup_local_file. Apply the patches in the reverse order of their
16077         origin in $local_gnulib_path.
16078         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
16079         * NEWS: Mention that the first --local-dir option is the one with
16080         highest priority.
16082 2019-02-10  Bruno Haible  <bruno@clisp.org>
16084         libtextstyle: New module.
16085         * m4/libtextstyle.m4: New file.
16086         * modules/libtextstyle: New file.
16088 2019-02-05  Bruno Haible  <bruno@clisp.org>
16090         declared.sh: Fix bug with variables of pointer type.
16091         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
16092         before the symbol to be omitted if the preceding character is a '*'.
16094 2019-02-04  Bruno Haible  <bruno@clisp.org>
16096         Add script for running tests under valgrind.
16097         * build-aux/run-test: New file, from GNU libunistring.
16098         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
16099         as well.
16101 2019-02-04  Bruno Haible  <bruno@clisp.org>
16103         declared.sh: Fix --version output.
16104         * build-aux/declared.sh (func_version): Update package name.
16106 2019-02-03  Bruno Haible  <bruno@clisp.org>
16108         Add script for determining the set of symbols to export from a library.
16109         * build-aux/declared.sh: New file, from GNU libunistring.
16110         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
16111         Mention it.
16113 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16115         vla: add commentary about VLA_ELEMS
16116         * lib/vla.h (VLA_ELEMS): Add commentary,
16117         some inspired by Bruno Haible’s proposal in:
16118         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
16120         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
16121         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
16122         assume the C99 signatures for strtod and strtold.  Programs that
16123         require stricter adherence to C99 should also use the strtod and
16124         strtold modules as needed, and we no longer need the
16125         HAVE_C99_STRTOLD macro.
16126         * NEWS: Mention this.
16127         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
16128         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
16129         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
16130         (Files): Remove m4/c-strtod.m4.
16131         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
16132         exists.
16134 2019-02-02  Bruno Haible  <bruno@clisp.org>
16136         fma: Improve code style.
16137         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
16139 2019-02-02  Colin Watson  <cjwatson@debian.org>
16141         *-map tests: Fix compilation error.
16142         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
16143         * tests/test-hash_map.c: Likewise.
16144         * tests/test-linkedhash_map.c: Likewise.
16146 2019-01-31  Bruno Haible  <bruno@clisp.org>
16148         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
16149         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
16150         GNULIB_defined_strtold_function): New macros.
16151         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
16152         (STRTOD): Ignore HAVE_C99_STRTOLD.
16153         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
16154         deemed buggy. But do use it on platforms where uselocale exists and is
16155         usable.
16156         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
16157         deemed buggy. On platforms where uselocale exists and is usable, use
16158         uselocale and strtod/strtold.
16159         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
16160         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
16161         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
16162         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
16163         (Depends-on): Add strtod.
16164         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
16165         (Depends-on): Add strtold.
16167 2019-01-31  Bruno Haible  <bruno@clisp.org>
16169         strtod, strtold: Use the locale's decimal point.
16170         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
16171         (decimal_point_char): New function, copied from lib/vasnprintf.c.
16172         (parse_number): Add a radixchar argument. Use it instead of '.'.
16173         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
16174         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
16175         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
16176         * tests/test-strtod1.c: New file.
16177         * tests/test-strtod1.sh: New file.
16178         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
16179         locale-fr.m4 and its dependencies.
16180         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16181         (Makefile.am): Arrange to compile test-strtod1.c and run
16182         test-strtod1.sh.
16183         * tests/test-strtold1.c: New file.
16184         * tests/test-strtold1.sh: New file.
16185         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
16186         locale-fr.m4 and its dependencies.
16187         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16188         (Makefile.am): Arrange to compile test-strtold1.c and run
16189         test-strtold1.sh.
16191 2019-01-31  Bruno Haible  <bruno@clisp.org>
16193         strtod, strtold tests: Simplify tests.
16194         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
16195         * tests/test-strtold.c (main): Likewise.
16197 2019-01-31  Bruno Haible  <bruno@clisp.org>
16199         strtod, strtold: Avoid unnecessary rounding errors.
16200         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
16201         decimal to DOUBLE conversion.
16203 2019-01-31  Bruno Haible  <bruno@clisp.org>
16205         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
16206         * lib/strtod.c (STRTOD): When there is an extra character after the
16207         exponent marker 'p', reparse the number.
16208         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
16209         * doc/posix-functions/strtold.texi: Likewise.
16211 2019-01-29  Bruno Haible  <bruno@clisp.org>
16213         strtold: Add tests.
16214         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
16215         * modules/strtold-tests: New file.
16217 2019-01-29  Bruno Haible  <bruno@clisp.org>
16219         strtold: New module.
16220         * lib/stdlib.in.h (strtold): New declaration.
16221         * lib/strtold.c: New file.
16222         * lib/strtod.c: Consider USE_LONG_DOUBLE.
16223         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
16224         USE_LDEXP): New macros.
16225         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
16226         USE_LONG_DOUBLE.
16227         (underlying_strtod): Remove function. Replace with some macros.
16228         Re-add the code for a missing underlying function that was removed on
16229         2013-02-19.
16230         * m4/strtold.m4: New file.
16231         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
16232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
16233         REPLACE_STRTOLD.
16234         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
16235         REPLACE_STRTOLD.
16236         * modules/strtold: New file.
16237         * doc/posix-functions/strtold.texi: Document the new module.
16239 2019-01-29  Bruno Haible  <bruno@clisp.org>
16241         strtod: Fix compilation error on IRIX 6.5.
16242         * modules/strtod (Depends-on): Add 'math'.
16244 2019-01-28  Bruno Haible  <bruno@clisp.org>
16246         Fix build error when building a shared libunistring on Android.
16247         * tests/uninorm/test-nfc.c (n): Don't define on Android.
16248         (main): Add 'volatile', to defeat a GCC optimization that would
16249         eliminate the reference.
16250         * tests/uninorm/test-nfd.c (n): Don't define on Android.
16251         (main): Add 'volatile', to defeat a GCC optimization that would
16252         eliminate the reference.
16253         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
16254         (main): Add 'volatile', to defeat a GCC optimization that would
16255         eliminate the reference.
16256         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
16257         (main): Add 'volatile', to defeat a GCC optimization that would
16258         eliminate the reference.
16260 2019-01-27  Bruno Haible  <bruno@clisp.org>
16262         Avoid build errors due to wrong references between modules.
16263         * lib/uninorm/canonical-decomposition.c: Include
16264         "uninorm/decomposition-table.h", not "decomposition-table.h".
16265         * lib/uninorm/decomposition.c: Likewise.
16266         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
16267         not "decompose-internal.h".
16268         * lib/uninorm/u16-normalize.c: Likewise.
16269         * lib/uninorm/u32-normalize.c: Likewise.
16270         * lib/uninorm/uninorm-filter.c: Likewise.
16271         * lib/uninorm/nfkc.c: Likewise.
16272         * lib/uninorm/nfkd.c: Likewise.
16273         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
16274         "caseprop.h".
16275         * lib/unicase/u8-ct-totitle.c: Likewise.
16276         * lib/unicase/u8-prefix-context.c: Likewise.
16277         * lib/unicase/u8-suffix-context.c: Likewise.
16278         * lib/unicase/u16-casemap.c: Likewise.
16279         * lib/unicase/u16-ct-totitle.c: Likewise.
16280         * lib/unicase/u16-prefix-context.c: Likewise.
16281         * lib/unicase/u16-suffix-context.c: Likewise.
16282         * lib/unicase/u32-casemap.c: Likewise.
16283         * lib/unicase/u32-ct-totitle.c: Likewise.
16284         * lib/unicase/u32-prefix-context.c: Likewise.
16285         * lib/unicase/u32-suffix-context.c: Likewise.
16286         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
16287         "unicasemap.h".
16288         * lib/unicase/u8-toupper.c: Likewise.
16289         * lib/unicase/u8-ct-tolower.c: Likewise.
16290         * lib/unicase/u8-ct-toupper.c: Likewise.
16291         * lib/unicase/u16-tolower.c: Likewise.
16292         * lib/unicase/u16-toupper.c: Likewise.
16293         * lib/unicase/u16-ct-tolower.c: Likewise.
16294         * lib/unicase/u16-ct-toupper.c: Likewise.
16295         * lib/unicase/u32-tolower.c: Likewise.
16296         * lib/unicase/u32-toupper.c: Likewise.
16297         * lib/unicase/u32-ct-tolower.c: Likewise.
16298         * lib/unicase/u32-ct-toupper.c: Likewise.
16299         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
16300         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
16301         * lib/unicase/u16-ct-casefold.c: Likewise.
16302         * lib/unicase/u32-ct-casefold.c: Likewise.
16304 2019-01-27  Bruno Haible  <bruno@clisp.org>
16306         gperf: Fix error when this module is required by some test module.
16307         * modules/gperf (Applicability): Set to 'all'.
16309 2019-01-27  Bruno Haible  <bruno@clisp.org>
16311         tmpfile: Add support for Android.
16312         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
16313         works.
16314         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
16315         Android.
16316         * modules/tmpfile (Depends-on): Add 'stdbool'.
16317         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
16318         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
16320 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
16322         bitsetv: allow free on NULL.
16323         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
16325 2019-01-27  Bruno Haible  <bruno@clisp.org>
16327         test-framework-sh: Improve maintainability.
16328         * tests/init.sh: Clarify what belongs together. Reorder definitions.
16330 2019-01-27  Bruno Haible  <bruno@clisp.org>
16332         tests: Don't assume that /tmp exists.
16333         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
16334         * tests/test-copy-acl-1.sh: Likewise.
16335         * tests/test-file-has-acl-1.sh: Likewise.
16336         * tests/test-copy-file-1.sh: Likewise.
16338 2019-01-27  Bruno Haible  <bruno@clisp.org>
16340         tests: Accommodate a shell that is not in /bin/sh.
16341         * tests/init.sh (setup_): Set srcdir and builddir.
16342         (BOURNE_SHELL): New variable.
16343         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
16344         * modules/file-has-acl-tests (Depends-on): Likewise.
16345         * modules/copy-file-tests (Depends-on): Likewise.
16346         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
16347         scripts through $BOURNE_SHELL.
16348         * tests/test-set-mode-acl-2.sh: Likewise.
16349         * tests/test-copy-acl-1.sh: Likewise.
16350         * tests/test-copy-acl-2.sh: Likewise.
16351         * tests/test-file-has-acl-1.sh: Likewise.
16352         * tests/test-file-has-acl-2.sh: Likewise.
16353         * tests/test-copy-file-1.sh: Likewise.
16354         * tests/test-copy-file-2.sh: Likewise.
16355         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
16356         invoker.
16357         * tests/test-copy-acl.sh (builddir): Likewise.
16358         * tests/test-file-has-acl.sh (builddir): Likewise.
16359         * tests/test-copy-file.sh (builddir): Likewise.
16360         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
16361         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
16362         * tests/test-vc-list-files-git.sh: Likewise.
16364 2019-01-27  Bruno Haible  <bruno@clisp.org>
16366         tests: Fix some "unused variable" warnings.
16367         * tests/test-fts.c (fts_dealloc): Remove unused variable.
16368         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
16369         * tests/test-striconveh.c (main): Move some variable into the
16370         '#if HAVE_ICONV'.
16371         * tests/test-striconveha.c (main): Likewise.
16372         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16373         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16374         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16375         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
16376         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16377         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16378         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16379         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16380         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16381         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
16382         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
16383         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
16384         * tests/test-tsearch.c (main): Move some variable into the
16385         '#if HAVE_INITSTATE'.
16387 2019-01-27  Bruno Haible  <bruno@clisp.org>
16389         unigbrk/uc-grapheme-breaks: Fix build failure.
16390         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
16391         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
16393 2019-01-27  Bruno Haible  <bruno@clisp.org>
16395         mountlist: Merge two .m4 files.
16396         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
16397         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
16398         * m4/ls-mntd-fs.m4: Remove file.
16399         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
16401 2019-01-27  Bruno Haible  <bruno@clisp.org>
16403         tests: Enable Linux specific tests on Android.
16404         * tests/test-flock.c (main): Treat Android like Linux.
16405         * tests/test-openat-safer.c (main): Likewise.
16407 2019-01-27  Bruno Haible  <bruno@clisp.org>
16409         relocatable-prog: Use Linux code on Android.
16410         * lib/progreloc.c: Treat Android like Linux.
16412 2019-01-26  Bruno Haible  <bruno@clisp.org>
16414         getloadavg: Add support for Android.
16415         * lib/getloadavg.c: Treat Android like Linux.
16417 2019-01-26  Bruno Haible  <bruno@clisp.org>
16419         vma-iter: Add support for Android.
16420         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16421         * lib/vma-iter.c: Treat Android like Linux.
16422         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16424 2019-01-26  Bruno Haible  <bruno@clisp.org>
16426         fts: Optimize on Android.
16427         * lib/fts.c: Treat Android like Linux.
16429 2019-01-26  Bruno Haible  <bruno@clisp.org>
16431         fts: Add support for Android.
16432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16433         defined by this module and the ones in libc.
16434         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16436 2019-01-26  Bruno Haible  <bruno@clisp.org>
16438         mountlist: Use Linux code on Android.
16439         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16440         (unescape_tab, read_file_system_list): Enable Linux code on Android
16441         as well.
16442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16443         and endmntent.
16444         * modules/mountlist (Depends-on): Add 'getline'.
16446 2019-01-26  Bruno Haible  <bruno@clisp.org>
16448         localename tests: Fix test failure on Android.
16449         * modules/localename-tests (Depends-on): Add 'setlocale'.
16451 2019-01-26  Bruno Haible  <bruno@clisp.org>
16453         mountlist: Port better to Android.
16454         * lib/mountlist.c (MOUNTED): Redefine on Android.
16455         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16456         Android.
16458 2019-01-26  Bruno Haible  <bruno@clisp.org>
16460         striconveh: Fix use of uninitialized iconv_t.
16461         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16462         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16463         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16465 2019-01-26  Bruno Haible  <bruno@clisp.org>
16467         nonblocking-socket-tests: Fix test failure on Android 4.3.
16468         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16469         also on Android.
16471 2019-01-26  Bruno Haible  <bruno@clisp.org>
16473         sh-filename: Add support for Android 4.3.
16474         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16476 2019-01-26  Bruno Haible  <bruno@clisp.org>
16478         ptsname_r: Work around bug on Android 4.3.
16479         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16480         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16481         correct.
16482         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16483         is defined, just fix the return value.
16484         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16485         The behaviour of musl libc is nothing to be "fixed", since it is
16486         compliant with the next POSIX standard.
16488 2019-01-26  Bruno Haible  <bruno@clisp.org>
16490         ttyname_r: Work around bug on Android 4.3.
16491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16492         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16493         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16494         * doc/posix-functions/ttyname.texi: Likewise.
16496 2019-01-25  Bruno Haible  <bruno@clisp.org>
16498         getprogname: Port to Android 4.3.
16499         * lib/getprogname.c (getprogname): On Android, take only the last
16500         component of __progname.
16502 2019-01-25  Bruno Haible  <bruno@clisp.org>
16504         wcrtomb: Work around bug on Android 4.3.
16505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16506         the C locale.
16507         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16508         which does not have the 'wctomb' function.
16509         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16510         * tests/test-wcrtomb.c (main): Accept argument '5'.
16511         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16513 2019-01-25  Bruno Haible  <bruno@clisp.org>
16515         setlocale: Work around bug on Android 4.3.
16516         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16517         the "C" locale.
16518         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16519         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16521 2019-01-24  Bruno Haible  <bruno@clisp.org>
16523         memchr: Work around bug on Android <= 5.0.
16524         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16525         * doc/posix-functions/memchr.texi: Mention the Android bug.
16527 2019-01-24  Bruno Haible  <bruno@clisp.org>
16529         random: Fix compilation error on Android 4.3.
16530         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16531         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16532         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16533         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16534         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16536         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16537         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16538         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16539         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16540         REPLACE_INITSTATE, REPLACE_SETSTATE.
16541         * doc/posix-functions/random.texi: Correct the description of the
16542         situation on Android.
16543         * doc/posix-functions/srandom.texi: Likewise.
16544         * doc/posix-functions/rand.texi: Likewise.
16545         * doc/posix-functions/srand.texi: Likewise.
16547 2019-01-24  Bruno Haible  <bruno@clisp.org>
16549         mbtowc: Fix compilation error on Android 4.3.
16550         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16551         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16552         HAVE_MBTOWC.
16553         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16554         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16555         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16556         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16557         * doc/posix-functions/mbtowc.texi: Mention the change.
16559 2019-01-24  Bruno Haible  <bruno@clisp.org>
16561         fdatasync: Fix compilation error on Android 4.3.
16562         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16563         test whether fdatasync() exists.
16565 2019-01-24  Bruno Haible  <bruno@clisp.org>
16567         unlinkat: Fix compilation error on Android 4.3.
16568         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16569         also on Android.
16570         * doc/posix-functions/unlinkat.texi: Mention the issue.
16572 2019-01-24  Bruno Haible  <bruno@clisp.org>
16574         renameat: Fix compilation error on Android 4.3.
16575         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16576         * doc/posix-functions/renameat.texi: Mention the issue.
16578 2019-01-24  Bruno Haible  <bruno@clisp.org>
16580         fchownat: Fix compilation error on Android 4.3.
16581         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16582         use.
16583         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16584         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16585         * doc/posix-functions/fchownat.texi: Mention the issue.
16587 2019-01-23  Bruno Haible  <bruno@clisp.org>
16589         gnulib-tool: Support running testdirs on Android.
16590         * build-aux/test-driver.diff: New file.
16591         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16592         build-aux/test-driver after running automake.
16594 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16596         relocatable-prog: avoid warnings from Automake
16597         * modules/relocatable-prog: Don't declare PHONY dependencies in
16598         Automake conditionals.
16600 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16602         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16603         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16605 2019-01-23  Bruno Haible  <bruno@clisp.org>
16607         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16608         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16609         preceding -Wl,--as-needed option. Don't check whether the linker
16610         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16612 2019-01-23  Bruno Haible  <bruno@clisp.org>
16614         thread: Force linking with -lpthread, even when --as-needed is in use.
16615         Reported by Richard W.M. Jones <rjones@redhat.com> in
16616         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16617         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16619 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16620             Bruno Haible  <bruno@clisp.org>
16622         relocatable: avoid compiler warnings (-Wshadow)
16623         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16624         to avoid name collisions with global variables.
16626 2019-01-22  Bruno Haible  <bruno@clisp.org>
16628         vasnprintf: Don't use %n on Android.
16629         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16630         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16631         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16633 2019-01-22  Bruno Haible  <bruno@clisp.org>
16635         *printf: Support cross-compilation to Android.
16636         * m4/printf.m4: Add cross-compilation guesses for Android.
16638 2019-01-21  Bruno Haible  <bruno@clisp.org>
16640         diacrit: Mark deprecated.
16641         * modules/diacrit (Status, Notice): Mark as deprecated.
16642         * NEWS: Mention it.
16644 2019-01-20  Bruno Haible  <bruno@clisp.org>
16646         rintl: Override broken implementation on NetBSD.
16647         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16648         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16649         REPLACE_RINTL.
16650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16651         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16652         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16653         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16655 2019-01-20  Bruno Haible  <bruno@clisp.org>
16657         log10l: Work around inaccurate implementation on NetBSD.
16658         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16659         * lib/log10l.c: Comment out too simplistic override.
16660         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16662 2019-01-20  Bruno Haible  <bruno@clisp.org>
16664         logl: Work around inaccurate implementation on NetBSD.
16665         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16666         * lib/logl.c: Comment out unused code.
16667         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16669 2019-01-20  Bruno Haible  <bruno@clisp.org>
16671         expm1l: Work around inaccurate implementation on NetBSD.
16672         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16673         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16674         REPLACE_EXPM1L.
16675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16676         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16677         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16678         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16680 2019-01-20  Bruno Haible  <bruno@clisp.org>
16682         expl: Work around inaccurate implementation on NetBSD.
16683         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16684         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16685         REPLACE_EXPL.
16686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16687         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16688         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16689         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16691 2019-01-20  Bruno Haible  <bruno@clisp.org>
16693         exp2l: Work around inaccurate implementation on NetBSD.
16694         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16695         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16697 2019-01-20  Bruno Haible  <bruno@clisp.org>
16699         floor, floorl: Avoid autoconf warnings.
16700         * modules/floor (configure.ac): Use AC_REQUIRE.
16701         * modules/floorl (configure.ac): Likewise.
16703 2019-01-20  Bruno Haible  <bruno@clisp.org>
16705         Defeat current GCC optimizations in math autoconf tests.
16706         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16707         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16708         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16709         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16710         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16711         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16712         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16713         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16714         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16715         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16716         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16717         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16718         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16719         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16720         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16721         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16722         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16723         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16724         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16725         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16726         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16727         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16728         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16729         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16730         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16731         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16732         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16733         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16734         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16735         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16736         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16737         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16738         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16739         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16740         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16741         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16742         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16743         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16745 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16747         gettext: support disabling use of VLAs
16748         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16750 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16752         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16753         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16755 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16757         fcntl: Fix syntax error (regression from 2018-10-05).
16758         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16760 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16762         relocatable: improve documentation.
16763         * doc/relocatable-maint.texi (Supporting Relocation): For
16764         substitutions performed by config.status, we need more variables
16765         (for instance datarootdir defaults to '${prefix}/share' so we need
16766         prefix).
16768 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16770         backup: update dependencies
16771         * modules/backup-rename (Depends-on): It now depends on opendirat
16772         instead of opendir.  It also uses stdint, and xalloc-oversized.
16773         But no longer dirfd.
16774         * modules/backupfile (Depends-on): Add xalloc-oversized.
16776 2019-01-13  Bruno Haible  <bruno@clisp.org>
16778         getcwd: Fix test failure when building on a Linux 9p file system.
16779         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16780         EINVAL from mkdir like ENAMETOOLONG.
16781         * tests/test-getcwd.c (test_long_name): Likewise.
16783 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16785         Fix typos found by codespell.
16786         * lib/*.[hc]: Fix typos in comments.
16787         * pygnulib/*.py: Fix typos in error messages and comments.
16789 2019-01-12  Bruno Haible  <bruno@clisp.org>
16791         doc: Fix documentation about container data types.
16792         Reported by Werner Lemberg <wl@gnu.org>.
16793         * doc/containers.texi (Container data types): Fix typo.
16795 2019-01-10  Bruno Haible  <bruno@clisp.org>
16797         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16798         Reported by Reuben Thomas <rrt@sc3d.org>.
16799         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16801 2019-01-06  Bruno Haible  <bruno@clisp.org>
16803         maintainer-makefile: Make the configure.ac section optional.
16804         * top/maint.mk (GREP, SED): Define if not defined.
16806 2019-01-06  Bruno Haible  <bruno@clisp.org>
16808         localename: Assume setlocale function.
16809         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16810         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16812 2019-01-06  Bruno Haible  <bruno@clisp.org>
16814         doc: Add documentation about container data types.
16815         * doc/containers.texi: New file.
16816         * doc/gnulib.texi (Particular Modules): Include it.
16818 2019-01-06  Bruno Haible  <bruno@clisp.org>
16820         doc: Update documentation about 'progname' module.
16821         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16822         title. Rewrite.
16823         * doc/gnulib.texi (Particular Modules): Update.
16825 2019-01-06  Bruno Haible  <bruno@clisp.org>
16827         doc: Document the xstdopen and *-safer modules.
16828         * doc/xstdopen.texi: New file.
16829         * doc/gnulib.texi (Particular Modules): Include it.
16831 2019-01-06  Bruno Haible  <bruno@clisp.org>
16833         xstdopen: Add tests.
16834         * tests/test-xstdopen.c: New file.
16835         * tests/test-xstdopen.sh: New file.
16836         * modules/xstdopen-tests: New file.
16838         xstdopen: New module.
16839         * lib/xstdopen.h: New file.
16840         * lib/xstdopen.c: New file.
16841         * modules/xstdopen: New file.
16843 2019-01-06  Bruno Haible  <bruno@clisp.org>
16845         stdopen: Fix compilation error with IRIX cc.
16846         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16848 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16850         xfreopen need not include stdio--.h
16851         * lib/xfreopen.c: Do not include stdio--.h.
16853         xfreopen need not depend on freopen-safer
16854         * modules/xfreopen (Depends-on):
16855         Depend on freopen, not freopen-safer.
16857         stdopen: modernize and simplify
16858         * lib/stdopen.c: Update copyright date
16859         Do not include sys/types.h; no longer needed these days.
16860         (stdopen): Use C99-style decl in loop.  Return int errno
16861         value, rather than just a bool.  Do not worry about fd mismatches,
16862         since the caller cares only if 0, 1, 2 are occupied.
16863         * lib/stdopen.h: No need to include <stdbool.h>.
16864         * m4/stdopen.m4: Remove.
16865         * modules/stdopen: New file.
16867         stdopen: copy from last use in coreutils
16868         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16869         New files, taken from their last commit in coreutils
16870         2007-07-23T12:35:58Z!jim@meyering.net
16871         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16873 2019-01-05  Bruno Haible  <bruno@clisp.org>
16875         argp: Don't pass an invalid argument to dgettext().
16876         Reported by He X <xw897002528@gmail.com>.
16877         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16878         dgettext().
16880 2019-01-05  Bruno Haible  <bruno@clisp.org>
16882         argp: Don't pass an invalid argument to dgettext().
16883         Reported by He X <xw897002528@gmail.com>.
16884         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16885         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16886         dgettext().
16888 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16890         stdioext: port to newer 32-bit Android
16891         Problem reported by Tom Yan in:
16892         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16893         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16894         (fp_) [__ANDROID__]: Use it.
16896 2019-01-04  Bruno Haible  <bruno@clisp.org>
16898         lock: Fix link error with --enable-threads=pth.
16899         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16900         Mark as weak.
16902 2019-01-04  Bruno Haible  <bruno@clisp.org>
16904         Fix link errors in unit tests.
16905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16906         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16907         * modules/array-map-tests (Makefile.am): Link test-array_map against
16908         libintl.
16909         * modules/array-set-tests (Makefile.am): Link test-array_set against
16910         libintl.
16911         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16912         libintl.
16913         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16914         libintl.
16915         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16916         against libintl.
16917         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16918         against libintl.
16920 2019-01-04  Bruno Haible  <bruno@clisp.org>
16922         Fix incorrect 'Link' sections.
16923         * modules/regex (Link): Mention the link requirement of module 'lock'.
16924         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16926 2019-01-04  Bruno Haible  <bruno@clisp.org>
16928         Fix some 'Link' sections.
16929         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16930         dependency.
16931         * modules/getaddrinfo (Link): Likewise.
16933 2019-01-04  Bruno Haible  <bruno@clisp.org>
16935         Remove redundant 'Link' sections.
16936         * modules/canon-host (Link): Remove section.
16937         * modules/timevar (Link): Likewise.
16939 2019-01-04  Bruno Haible  <bruno@clisp.org>
16941         Remove incorrect 'Link' sections.
16942         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16943         the dependencies instead.
16944         * modules/crypto/md5 (Link): Likewise.
16945         * modules/crypto/sha1 (Link): Likewise.
16946         * modules/crypto/sha256 (Link): Likewise.
16947         * modules/crypto/sha512 (Link): Likewise.
16948         * modules/faccessat (Link): Likewise.
16949         * modules/fdutimensat (Link): Likewise.
16950         * modules/iconv_open-utf (Link): Likewise.
16951         * modules/propername (Link): Likewise.
16952         * modules/qacl (Link): Likewise.
16953         * modules/unicodeio (Link): Likewise.
16954         * modules/utimecmp (Link): Likewise.
16955         * modules/utimensat (Link): Likewise.
16956         * modules/xstriconv (Link): Likewise.
16957         * modules/xstriconveh (Link): Likewise.
16959 2019-01-04  Bruno Haible  <bruno@clisp.org>
16961         gnulib-tool: New option --extract-recursive-link-directive.
16962         * gnulib-tool (func_usage): Document the new options
16963         --extract-recursive-dependencies, --extract-recursive-link-directive.
16964         (func_verify_module): Document output variables.
16965         (func_get_dependencies_recursively): New function.
16966         (func_get_link_directive_recursively): New function.
16967         Use them to implement the new options
16968         --extract-recursive-dependencies, --extract-recursive-link-directive.
16969         * doc/gnulib-tool.texi (Link-time requirements): New section.
16971 2019-01-04  Bruno Haible  <bruno@clisp.org>
16973         Clarify meaning of 'Link' section in module description.
16974         * doc/gnulib.texi (Module description): Clarify the meaning of the
16975         'Link' section versus the one of the dependencies.
16976         * NEWS: Mention the change.
16978 2019-01-04  Bruno Haible  <bruno@clisp.org>
16980         pselect: Fix module description.
16981         * modules/pselect (Link): Put one link option per line.
16983 2019-01-04  Bruno Haible  <bruno@clisp.org>
16985         cosl: Fix module description.
16986         * modules/cosl (Link): Fix typo.
16987         * modules/mathl (configure.ac): Likewise.
16989 2019-01-04  Bruno Haible  <bruno@clisp.org>
16991         c-xvasprintf: Fix module dependencies.
16992         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16994 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16996         bootstrap: die when some submodules are not initialized
16997         * build-aux/bootstrap: Make sure all submodules are initialized.
16999 2019-01-04  Bruno Haible  <bruno@clisp.org>
17001         bitsetv: Fix module dependencies.
17002         * lib/bitsetv.c: Include xalloc.h.
17003         * modules/bitsetv (Depends-on): Add 'xalloc'.
17005 2019-01-04  Bruno Haible  <bruno@clisp.org>
17007         xmemdup0: Remove redundant code.
17008         * lib/xmemdup0.h (xalloc_die): Remove declaration.
17010 2019-01-04  Bruno Haible  <bruno@clisp.org>
17012         backupfile: Fix module dependencies.
17013         * modules/backupfile (Depends-on): Add 'xalloc'.
17015 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17017         bitset, crypto/gc: fix conflicts with Solaris 11
17018         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
17019         avoid clash with Solaris 11 <sys/bitset.h>.
17020         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
17021         with Solaris 11 <xorg/gc.h>.
17023 2019-01-04  Bruno Haible  <bruno@clisp.org>
17025         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
17026         Reported by Andy Fiddaman <andy@omniosce.org>.
17027         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
17029 2019-01-03  Eric Blake  <eblake@redhat.com>
17031         maintainer-makefile: fix typo in previous patch
17032         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
17033         of Roman's work.
17035 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
17037         maintainer-makefile: prefer $(GREP) over grep
17038         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
17039         defined.
17040         * top/maint.mk: Use it everywhere.
17042         maintainer-makefile: split long argument lines
17043         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
17044         it would be too long for exec limits on BSD.
17046 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17048         mkfifo: bring back HAVE_MKFIFO macro
17049         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
17050         Problem reported by Andrew Janke in:
17051         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
17053 2018-12-21  Bruno Haible  <bruno@clisp.org>
17055         Assume Autoconf >= 2.63.
17056         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
17057         versions < 2.60.
17059 2018-12-21  Bruno Haible  <bruno@clisp.org>
17061         memcmp: Mention the clang bug.
17062         * tests/test-memcmp.c: Add comment about a known test failure.
17063         * doc/posix-functions/memcmp.texi: Mention the clang bug.
17065 2018-12-20  Jim Meyering  <meyering@fb.com>
17067         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
17068         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
17069           echo '123-x'|LC_ALL=C grep -E '.\bx'
17070         The goal is to revert the first, but reverting it requires to restore
17071         the function deleted in the second. I ran this to restore the deleted
17072         function:
17073           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
17074             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
17075             | patch -R -p1
17076         * lib/dfa.c (charclass_context): Restore deleted function.
17077         Reverting the primary commit removes this change:
17078         dfa: Simplify a building state
17079         * lib/dfa.c (build_state): Simplify a building state.
17081 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17083         version-etc: allow zero authors
17084         * lib/version-etc.c (version_etc_arn): If no authors are given,
17085         omit authorship info instead of dumping core.
17087 2018-12-19  Bruno Haible  <bruno@clisp.org>
17089         lchown tests: Be more permissive regarding errno values.
17090         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
17091         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
17092         alternative to ENOSYS.
17093         * modules/lchown-tests (Depends-on): Add 'errno'.
17094         * modules/fchownat-tests (Depends-on): Likewise.
17096 2018-12-18  Bruno Haible  <bruno@clisp.org>
17098         duplocale: Avoid test failure on AIX 7.
17099         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
17100         (configure.ac): Invoke gt_FUNC_USELOCALE.
17101         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
17102         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
17103         works.
17105 2018-12-18  Bruno Haible  <bruno@clisp.org>
17107         localename: Fix test failure on AIX 7.
17108         Reported by Assaf Gordon in
17109         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
17110         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
17111         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
17112         instead of ac_cv_func_uselocale.
17113         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
17114         HAVE_USELOCALE.
17115         * lib/localename-table.h: Likewise.
17116         * lib/localename-table.c: Likewise.
17117         * tests/test-localename.c: Likewise.
17118         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
17120 2018-12-18  Bruno Haible  <bruno@clisp.org>
17122         localename: Update comments regarding Cygwin.
17123         * lib/localename.c: Update comment.
17124         * doc/posix-functions/uselocale.texi: Update platforms list.
17125         * doc/posix-functions/newlocale.texi: Likewise.
17126         * doc/posix-functions/duplocale.texi: Likewise.
17127         * doc/posix-functions/freelocale.texi: Likewise.
17129 2018-12-16  Bruno Haible  <bruno@clisp.org>
17131         c-stack: Fix for Linux/sparc.
17132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
17133         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
17135 2018-12-16  Bruno Haible  <bruno@clisp.org>
17137         localename: Avoid test failure on some glibc systems.
17138         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
17139         Unset environment variables that might disturb the first setlocale call,
17140         and verify that this setlocale call succeeds.
17142 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
17144         random: Fix build error on native Windows (regression from 2018-06-21).
17145         * lib/random.c (__srandom, __initstate, __setstate, __random,
17146         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
17147         to the symbols without '__' prefix.
17149 2018-12-16  Bruno Haible  <bruno@clisp.org>
17151         obstack, libc-config: Support HP-UX cc in C99 mode.
17152         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
17153         compiler, even when in C99 mode.
17154         * lib/cdefs.h (__flexarr): Likewise.
17155         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
17157 2018-12-16  Bruno Haible  <bruno@clisp.org>
17159         localename: Fix test failure on OpenBSD >= 6.2.
17160         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
17161         locale system. Define HAVE_FAKE_LOCALES in this case.
17162         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
17163         HAVE_USELOCALE.
17164         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
17165         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
17166         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
17167         platforms list.
17168         * doc/posix-functions/newlocale.texi: Likewise.
17169         * doc/posix-functions/duplocale.texi: Update platforms list.
17170         * doc/posix-functions/freelocale.texi: Likewise.
17172 2018-12-16  Bruno Haible  <bruno@clisp.org>
17174         duplocale tests: Re-enable the test on platforms without <monetary.h>.
17175         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
17176         of the test, on platforms without <monetary.h>.
17178 2018-12-16  Bruno Haible  <bruno@clisp.org>
17180         localename: Update comments.
17181         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
17183 2018-12-15  Jim Meyering  <meyering@fb.com>
17185         regex: fix indentation
17186         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
17188 2018-12-15  Bruno Haible  <bruno@clisp.org>
17190         openat-safer tests: Avoid test failure on NetBSD 8.
17191         * tests/test-openat-safer.c (main): Execute a Linux specific test only
17192         on Linux.
17194 2018-12-15  Jim Meyering  <meyering@fb.com>
17196         regex: work around a bug in glibc-2.27 and prior
17197         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
17198         assertion for /0|()0|\1|0/.
17199         * tests/test-regex.c (main): Add the same test here.
17201 2018-12-15  Bruno Haible  <bruno@clisp.org>
17203         localename: Fix use of uninitialized shell variable.
17204         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
17205         gt_cv_locale_solaris114 always before use. Remove assignment without
17206         effect.
17208 2018-12-15  Bruno Haible  <bruno@clisp.org>
17210         dfa tests: Avoid test failure on Alpine Linux.
17211         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
17212         command found on Alpine Linux.
17214 2018-12-15  Jim Meyering  <meyering@fb.com>
17216         dfa: avoid new warnings from gcc
17217         These would prevent building with -Werror and a Dec snapshot of gcc.
17218         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
17219         Rename each inner instance to "p".
17220         (charclass_context): Remove unused static function.
17222 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17224         mkdir-p: improve diagnostic for FUSE mounts
17225         Problem reported by Niklas Hambüchen in:
17226         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
17227         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
17228         errno to mkdir errno if the stat errno is likely more interesting.
17230 2018-12-14  Bruno Haible  <bruno@clisp.org>
17232         hash-map: Add tests.
17233         * tests/test-hash_map.c: New file.
17234         * modules/hash-map-tests: New file.
17236         linkedhash-map: Add tests.
17237         * tests/test-linkedhash_map.c: New file.
17238         * modules/linkedhash-map-tests: New file.
17240         array-map: Add tests.
17241         * tests/test-array_map.c: New file.
17242         * modules/array-map-tests: New file.
17244         xmap: New module.
17245         * lib/gl_xmap.h: New file.
17246         * lib/gl_xmap.c: New file.
17247         * modules/xmap: New file.
17249         hash-map: New module.
17250         * lib/gl_hash_map.h: New file.
17251         * lib/gl_hash_map.c: New file.
17252         * modules/hash-map: New file.
17254         linkedhash-map: New module.
17255         * lib/gl_linkedhash_map.h: New file.
17256         * lib/gl_linkedhash_map.c: New file.
17257         * lib/gl_anyhash1.h: Update comments.
17258         * lib/gl_anyhash2.h: Likewise.
17259         * modules/linkedhash-map: New file.
17261         array-map: New module.
17262         * lib/gl_array_map.h: New file.
17263         * lib/gl_array_map.c: New file.
17264         * modules/array-map: New file.
17266         map: New module.
17267         * lib/gl_map.h: New file.
17268         * lib/gl_map.c: New file.
17269         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
17270         conflict with gl_map.h.
17271         * modules/map: New file.
17273 2018-12-13  Bruno Haible  <bruno@clisp.org>
17275         select tests: Avoid test failure on Cygwin.
17276         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
17278 2018-12-13  Bruno Haible  <bruno@clisp.org>
17280         localtime-buffer: Avoid endless recursion in localtime and gmtime.
17281         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
17283 2018-12-13  Bruno Haible  <bruno@clisp.org>
17285         localeconv tests: Avoid test failure on Cygwin.
17286         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
17287         'mon_grouping' tests.
17289 2018-12-11  Bruno Haible  <bruno@clisp.org>
17291         omap: Don't dispose the old value when the function returns it.
17292         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
17293         here.
17294         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17295         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17296         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
17297         here.
17299         array-omap, avltree-omap, rbtree-omap: Tweak style.
17300         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
17301         false.
17302         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
17304         rbtree-omap: Add tests.
17305         * tests/test-rbtree_omap.c: New file.
17306         * modules/rbtree-omap-tests: New file.
17308         avltree-omap: Add tests.
17309         * tests/test-avltree_omap.c: New file.
17310         * modules/avltree-omap-tests: New file.
17312         array-omap: Add tests.
17313         * tests/test-array_omap.c: New file.
17314         * modules/array-omap-tests: New file.
17316         xomap: New module.
17317         * lib/gl_xomap.h: New file.
17318         * lib/gl_xomap.c: New file.
17319         * modules/xomap: New file.
17321         rbtree-omap: New module.
17322         * lib/gl_rbtree_omap.h: New file.
17323         * lib/gl_rbtree_omap.c: New file.
17324         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
17325         Parameterize.
17326         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
17327         * modules/rbtree-omap: New file.
17328         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
17329         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
17331         avltree-omap: New module.
17332         * lib/gl_avltree_omap.h: New file.
17333         * lib/gl_avltree_omap.c: New file.
17334         * lib/gl_avltree_ordered.h: Code moved to here from
17335         lib/gl_avltree_oset.c. Parameterize.
17336         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
17337         * lib/gl_anytree_omap.h: New file.
17338         * modules/avltree-omap: New file.
17339         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
17340         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
17342         array-omap: New module.
17343         * lib/gl_array_omap.h: New file.
17344         * lib/gl_array_omap.c: New file.
17345         * modules/array-omap: New file.
17347         omap: New module.
17348         * lib/gl_omap.h: New file.
17349         * lib/gl_omap.c: New file.
17350         * modules/omap: New file.
17352 2018-12-11  Bruno Haible  <bruno@clisp.org>
17354         hash-set, linkedhash-set: Reduce code duplication.
17355         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
17356         lib/gl_anyhash_set1.h.
17357         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
17358         lib/gl_anyhash_set2.h. Parameterize.
17359         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
17360         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
17361         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
17362         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
17363         * lib/gl_rbtreehash_list.c: Likewise.
17364         * lib/gl_linkedhash_list.c: Likewise.
17365         (hash_resize_after_add): Remove function.
17366         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
17367         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
17368         * gl_hash_set.c: Likewise.
17369         * modules/avltreehash-list (Files, Makefile.am): Update file list.
17370         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
17371         * modules/linkedhash-list (Files, Makefile.am): Likewise.
17372         * modules/linkedhash-set (Files, Makefile.am): Likewise.
17373         * modules/hash-set (Files, Makefile.am): Likewise.
17375 2018-12-11  Bruno Haible  <bruno@clisp.org>
17377         array-set: Optimize.
17378         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
17379         outside the loop, not inside the loop.
17381 2018-12-11  Bruno Haible  <bruno@clisp.org>
17383         times: Fix tests.
17384         * tests/test-times.c (doublecmp): Implement a total order.
17386 2018-12-11  Bruno Haible  <bruno@clisp.org>
17388         array-set, linkedhash-set, hash-set: Fix tests.
17389         * tests/test-array_set.c (cmp_objects_in_array): New function.
17390         (check_equals): Use it.
17391         * tests/test-hash_set.c: Likewise.
17392         * tests/test-linkedhash_set.c: Likewise.
17394 2018-12-08  Bruno Haible  <bruno@clisp.org>
17396         Fix comments.
17397         * lib/gl_list.h (gl_list_free): Clarify what it does.
17398         * lib/gl_oset.h (gl_oset_free): Likewise.
17399         * lib/gl_set.h (gl_set_free): Likewise.
17400         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
17401         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
17402         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
17403         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
17405 2018-12-03  Bruno Haible  <bruno@clisp.org>
17407         hash-set: Add tests.
17408         * tests/test-hash_set.c: New file.
17409         * modules/hash-set-tests: New file.
17411         linkedhash-set: Add tests.
17412         * tests/test-linkedhash_set.c: New file.
17413         * modules/linkedhash-set-tests: New file.
17415         array-set: Add tests.
17416         * tests/test-array_set.c: New file.
17417         * modules/array-set-tests: New file.
17419         xset: New module.
17420         * lib/gl_xset.h: New file.
17421         * lib/gl_xset.c: New file.
17422         * modules/xset: New file.
17424         hash-set: New module.
17425         * lib/gl_hash_set.h: New file.
17426         * lib/gl_hash_set.c: New file.
17427         * modules/hash-set: New file.
17429         linkedhash-set: New module.
17430         * lib/gl_linkedhash_set.h: New file.
17431         * lib/gl_linkedhash_set.c: New file.
17432         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17433         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17434         * lib/gl_anyhash_primes.h: New file, extracted from
17435         lib/gl_anyhash_list2.h.
17436         * lib/gl_anyhash_list2.h: Include it.
17437         (primes, next_prime): Remove definitions.
17438         * modules/linkedhash-set: New file.
17439         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17440         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17441         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17442         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17443         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17444         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17446         array-set: New module.
17447         * lib/gl_array_set.h: New file.
17448         * lib/gl_array_set.c: New file.
17449         * modules/array-set: New file.
17451         set: New module.
17452         * lib/gl_set.h: New file.
17453         * lib/gl_set.c: New file.
17454         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17455         gl_set.h.
17456         * modules/set: New file.
17458 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17460         bison: don't force the Yacc mode
17461         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17462         errors when Bison features are used in the grammar file.  Some of
17463         these features (such as %expect) were flagged non-yacc recently.  Most
17464         of the time, -y is actually used to please Automake's ylwrap which
17465         expects the output to be y.tab.c.
17466         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17468 2018-12-01  Bruno Haible  <bruno@clisp.org>
17470         gnupload: Document short options.
17471         * build-aux/gnupload (usage): Document the short options.
17473 2018-11-28  Ben Elliston  <bje@gnu.org>
17475         gnupload: Support option -h as alias of --help.
17476         * build-aux/gnupload: Support -h.
17478 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17480         memrchr: port better to clang
17481         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17482         longword *, to pacify clang -Wcast-align (Bug#33544).
17484 2018-11-29  Eric Blake  <eblake@redhat.com>
17486         docs: mention printf %m considerations
17487         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17488         is not portable, and is easy enough to work around.
17489         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17490         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17491         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17492         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17493         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17494         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17495         * doc/posix-functions/printf.texi (printf): Likewise.
17496         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17497         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17498         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17499         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17500         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17501         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17502         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17503         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17504         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17505         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17506         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17507         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17509 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17511         bitset: rename ebitset/expandable.* as tbitset/table.*
17512         See
17513         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17514         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17515         * lib/bitset/table.h, lib/bitset/table.c: these.
17516         Rename all the ebitset* symbols as tbitset*.
17517         Adjust dependencies.
17519 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17521         bitset: check the operations
17522         * tests/test-bitset.c (bitset_random): New.
17523         Use it.
17524         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17526 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17528         bitset: properly use false/true instead of 0/1 for Booleans
17529         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17530         0/1, as Booleans.
17532 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17534         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17535         For consistency with the name of the file.
17536         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17537         * lib/bitset/stats.c, lib/bitset/vector.c
17538         (BITSET_VARRAY): Rename as...
17539         (BITSET_VECTOR): this.
17541 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17543         strerror_r-posix: memmove, not memcpy
17544         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17545         since the source and destination might overlap in the call
17546         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17547         Simplify.
17549 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17551         bitsetv: new module
17552         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17554 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17556         bitset: add tests and doc
17557         First stabs at providing a documentation and test for the bitset
17558         module.
17559         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17561 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17563         bitset: new module
17564         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17565         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17566         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17567         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17568         * lib/bitset/vector.h, modules/bitset:
17569         New.
17571 2018-11-23  Bruno Haible  <bruno@clisp.org>
17573         localename: Fix gettext test failures on mingw.
17574         * lib/localename.c (gl_locale_name_posix): Convert the result of
17575         gl_locale_name_environ to XPG syntax.
17577 2018-11-23  Karl Berry  <karl@freefriends.org>
17579         * config/srclistvars.txt,
17580         * config/srclist.txt: remove all gettext references;
17581         the gettext maintainers will sync as needed.
17583 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17585         mktime: add libc-config dependency
17586         I missed this when we synced from glibc.
17587         * modules/mktime (Depends-on): Add libc-config.
17589 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17591         longlong: fix comment typo
17592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17594 2018-11-11  Bruno Haible  <bruno@clisp.org>
17596         havelib: Remove the need to include asm-underscore.m4.
17597         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17598         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17599         gl_HOST_CPU_C_ABI.
17600         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17601         (Depends-on): Remove host-cpu-c-abi.
17603 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17605         parse-datetime: simplify test for mktime failure
17606         * lib/parse-datetime.y (mktime_ok): Simplify.
17607         Remove args TZ and T; no longer needed.  Callers changed.
17609         posixtm: simplify test for mktime failure
17610         * lib/posixtm.c (posixtime): Simplify.
17612         nstrftime: simplify test for mktime failure
17613         * lib/nstrftime.c (__strftime_internal): Simplify.
17615 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17617         gnulib-common.m4: port _Noreturn to C++
17618         Problem reported by Akim Demaille in:
17619         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17620         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17621         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17622         version.
17623         * lib/_Noreturn.h: Match gnulib-common.
17625 2018-10-30  Bruno Haible  <bruno@clisp.org>
17627         gnu-make: Fix for NetBSD 8 'make'.
17628         Reported by Reuben Thomas in
17629         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17630         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17631         output, ignoring exit codes.
17633 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17635         maintainer-makefile: fix syntax-check rule for "same.h"
17636         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17637         for 'same_nameat', too.
17639 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17641         havelib: fix nested ‘configure’ chatter
17642         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17643         AC_CACHE_CHECK calls, which resulted in confusing output like
17644         “checking for the common suffixes of directories in the library
17645         search path... checking for 64-bit host... no lib,lib”.
17647         backupfile: tweak for better code
17648         * lib/backupfile.c: Sort include directives, and remove
17649         unnecessary <limits.h> include.
17650         (FALLTHROUGH): New macro, copied from other modules.
17651         (backupfile_internal): Use it to avoid code duplication.
17652         This lets GCC 8.2.1 generate better code by inlining the
17653         call to check_extension.
17655 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17657         backupfile: new dir_fd args
17658         New module opendirat with code taken from fts.
17659         Use this module to let backupfile use a directory file descriptor.
17660         * NEWS: Document the incompatible change.
17661         * lib/backup-find.c (find_backup_file_name):
17662         * lib/backup-rename.c (backup_file_rename):
17663         New arg DIR_FD.
17664         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17665         (SIZE_MAX): Remove.
17666         Include opendirat.h rather than dirent--.h.
17667         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17668         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17669         (backupfile_internal): New arg DIR_FD.  All callers changed.
17670         * lib/fts.c: Include opendirat.h.
17671         (opendirat): Move to opendirat.c.
17672         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17673         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17674         Add opendirat.
17675         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17676         Add opendirat.
17678 2018-10-23  Bruno Haible  <bruno@clisp.org>
17680         localename: Simplify support for per-thread locales on Solaris 11.4.
17681         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17682         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17683         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17684         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17685         specific code.
17686         * lib/localename-table.h: Update comments.
17687         * lib/localename-table.c: Update comments.
17688         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17689         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17690         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17691         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17692         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17693         HAVE_NAMELESS_LOCALES here.
17694         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17695         m4/intlsolaris.m4.
17696         * modules/gettext (Files): Likewise.
17698 2018-10-22  Bruno Haible  <bruno@clisp.org>
17700         std-gnu11: Support Autoconf versions < 2.64.
17701         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17702         when _AC_DO_LIMIT does not exist.
17704 2018-10-22  Bruno Haible  <bruno@clisp.org>
17706         Assume Autoconf >= 2.63.
17707         * DEPENDENCIES: Mention the requirement.
17709         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17710         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17711         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17712         * m4/onceonly.m4: Remove file.
17714         * m4/openmp.m4: Remove file.
17715         * modules/openmp (Files): Remove m4/openmp.m4.
17717         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17718         htmldir, dvidir, pdfdir, psdir, localedir.
17719         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17721         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17722         Autoconf < 2.60.
17723         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17724         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17726         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17727         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17728         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17730         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17731         exists.
17732         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17735         Autoconf < 2.61.
17737         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17738         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17739         Autoconf >= 2.52.
17741         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17742         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17743         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17745 2018-10-22  Bruno Haible  <bruno@clisp.org>
17747         Assume Automake >= 1.11.
17748         * m4/configmake.m4: Update comments.
17749         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17750         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17751         of 'eval'.
17752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17753         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17754         requires Automake >= 1.11.
17756 2018-10-22  Bruno Haible  <bruno@clisp.org>
17758         localename: Fix typo in comment.
17759         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17761 2018-10-22  Bruno Haible  <bruno@clisp.org>
17763         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17764         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17766 2018-10-21  Bruno Haible  <bruno@clisp.org>
17768         locale: Ease integration with GNU libintl.
17769         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17770         GNULIB_defined_freelocale): New macros.
17772 2018-10-21  Bruno Haible  <bruno@clisp.org>
17774         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17775         * lib/localename-table.h: New file, extracted from lib/localename.c.
17776         * lib/localename-table.c: Likewise.
17777         * lib/localename.c: Include localename-table.h.
17778         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17779         locale_hash_function instead of pointer_hash.
17780         * modules/localename (Files): Add lib/localename-table.h,
17781         lib/localename-table.c.
17782         (lib_SOURCES): Add localename-table.c.
17783         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17784         for Solaris 11.4 locale system only on Solaris. Test for it
17785         independently whether getlocalename_l exists.
17786         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17787         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17788         HAVE_NAMELESS_LOCALES.
17789         * modules/gettext (Files): Add m4/intlsolaris.m4.
17791 2018-10-21  Bruno Haible  <bruno@clisp.org>
17793         Small update from gettext.
17794         * m4/intl.m4: Update from gettext:
17795         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17796         mode on AIX.
17797         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17798         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17800 2018-10-16  Bruno Haible  <bruno@clisp.org>
17802         mountlist: Remove support for Cray with UNICOS 9.
17803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17804         MOUNTED_LISTMNTENT.
17805         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17807 2018-10-16  Bruno Haible  <bruno@clisp.org>
17809         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17811         STAT_STATFS2_FS_DATA.
17812         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17814         MOUNTED_GETMNT.
17815         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17816         * lib/getloadavg.c (decstation): Remove definition and case.
17817         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17818         * lib/getgroups.c: Likewise.
17819         * doc/posix-functions/getgroups.texi: Likewise.
17820         * lib/time.in.h: Update comments.
17822 2018-10-16  Bruno Haible  <bruno@clisp.org>
17824         getloadavg: Remove support for ConvexOS.
17825         * lib/getloadavg.c: Remove convex case.
17827 2018-10-16  Bruno Haible  <bruno@clisp.org>
17829         getloadavg: Remove support for Sony NEWS.
17830         * lib/getloadavg.c: Remove sony_news case.
17832 2018-10-16  Bruno Haible  <bruno@clisp.org>
17834         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17835         * lib/fsusage.c: Remove _SEQUENT_ case.
17836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17837         * lib/mountlist.c: Don't test for MNTTABNAME.
17838         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17839         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17840         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17841         * lib/stat-size.h: Don't mention the Sequent bug.
17842         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17844 2018-10-16  Bruno Haible  <bruno@clisp.org>
17846         fsusage: Remove support for AIX 3.
17847         * lib/fsusage.c: Remove code for AIX 3.
17848         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17850 2018-10-16  Bruno Haible  <bruno@clisp.org>
17852         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17853         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17854         * lib/fsusage.c: Remove code for AIX PS/2.
17855         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17856         * lib/getloadavg.c: Likewise.
17858 2018-10-16  Bruno Haible  <bruno@clisp.org>
17860         getloadavg: Remove support for HP-UX on m68k.
17861         * lib/getloadavg.c: Remove hp9000s300 case.
17863 2018-10-16  Bruno Haible  <bruno@clisp.org>
17865         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17866         * lib/fsusage.c: Remove DOLPHIN case.
17867         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17868         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17870 2018-10-16  Bruno Haible  <bruno@clisp.org>
17872         getloadavg: Remove support for Alliant FX/2800.
17873         * lib/getloadavg.c: Remove alliant case.
17875 2018-10-16  Bruno Haible  <bruno@clisp.org>
17877         getloadavg: Remove support for tek4300.
17878         * lib/getloadavg.c: Remove tek4300 case.
17880 2018-10-16  Bruno Haible  <bruno@clisp.org>
17882         getloadavg: Remove support for Ardent.
17883         * lib/getloadavg.c: Remove ardent case.
17885 2018-10-16  Bruno Haible  <bruno@clisp.org>
17887         mountlist: Remove support for SVR2.
17888         Reported by Andrew Borodin <aborodin@vmail.ru> in
17889         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17890         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17891         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17892         MOUNTED_FREAD.
17894 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17896         libc-config: merge from glibc
17897         * lib/cdefs.h (__glibc_has_attribute): New macro.
17899         regex: depend on libc-config
17900         * modules/regex (Depends-on): Add libc-config.
17901         This is needed after the recent autoupdate from glibc.
17903 2018-10-14  Bruno Haible  <bruno@clisp.org>
17905         localename: Add support for per-thread locales on Solaris 11.4.
17906         * lib/locale.in.h (newlocale, freelocale): New declarations.
17907         (duplocale): Declare also when the 'localename' module requests it.
17908         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17909         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17910         (struniq): Update.
17911         (struct locale_categories_names, struct locale_hash_node): New types.
17912         (LOCALE_HASH_TABLE_SIZE): New constant.
17913         (locale_hash_table, locale_lock): New variables.
17914         (pointer_hash, get_locale_t_name): New functions.
17915         (newlocale, duplocale, freelocale): New overridden functions.
17916         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17917         * m4/intlsolaris.m4: New file.
17918         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17919         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17920         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17921         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17922         declared.
17923         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17924         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17925         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17926         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17927         * modules/localename (Files): Add intlsolaris.m4.
17928         (Depends-on): Add 'locale'.
17929         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17930         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17931         the signatures.
17933 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17935         timevar: use gethrxtime to get wall clock time
17936         clock_gettime is not portable.  gethrxtime takes the best available
17937         option to get the wall clock time, including clock_gettime (monotonic
17938         clock), and gettime (non monotonic).
17939         Also, using xtime_t instead of float preserves the precision.
17940         Suggested by Bruno Haible.
17941         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17942         * modules/timevar (Depends-on): We need gethrxtime.
17943         We no longer use times().
17944         (Link): Update.
17945         * lib/timevar.h (timevar_time_def): Use xtime_t.
17946         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17947         (timevar_print): Instead of checking whether the timings themselves
17948         are large enough for the timevar to be printed, check the percentages.
17950 2018-10-14  Bruno Haible  <bruno@clisp.org>
17952         wcsnrtombs: Work around Solaris 11.4 bug.
17953         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17954         macro.
17955         (gl_FUNC_WCSNRTOMBS): Invoke it.
17956         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17958 2018-10-14  Bruno Haible  <bruno@clisp.org>
17960         mbsnrtowcs: Work around Solaris 11.4 bug.
17961         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17962         macro.
17963         (gl_FUNC_MBSNRTOWCS): Invoke it.
17964         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17966 2018-10-14  Bruno Haible  <bruno@clisp.org>
17968         doc: Update for Solaris 11.4.
17969         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17970         mention Solaris 11.4.
17971         * m4/printf.m4: Update comments about Solaris.
17972         * m4/log.m4: Likewise.
17973         * m4/log10.m4: Likewise.
17974         * m4/logb.m4: Likewise.
17975         * m4/logbf.m4: Likewise.
17976         * m4/logbl.m4: Likewise.
17977         * m4/rename.m4: Likewise.
17978         * m4/wcrtomb.m4: Likewise.
17979         * m4/hostent.m4: Likewise.
17980         * m4/servent.m4: Likewise.
17982 2018-10-14  Bruno Haible  <bruno@clisp.org>
17984         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17985         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17986         pointer.
17987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17988         pointer.
17989         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17990         pointer.
17991         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17992         pointer.
17993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17994         pointer.
17996 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17998         bootstrap: fix wget command for po files.
17999         * build-aux/bootstrap (po_download_command_format): Fix comment,
18000         and adjust callers.
18002 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18004         timevar: improve the output format
18005         Suggested by Bruno Haible.
18006         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
18007         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
18008         wall, since its resolution is much higher.
18010 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18012         timevar: expect that getrusage is available.
18013         Don't keep both times and getrusage as backend: both are guaranteed by
18014         gnulib, a single one suffices.  Using getrusage is open to possibly
18015         tracking other types of resources in the future.
18016         * modules/timevar (Depends-on): Add getrusage.
18017         (configure.ac): Remove gl_TIMEVAR.
18018         (Files): Remove m4/timevar.m4.
18019         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
18020         * lib/timevar.h (timevar_enabled): Clarify documentation.
18021         * lib/timevar.c: Remove all the code about times.
18022         Remove all the CPP guards about getrusage: expect it to be present
18023         (courtesy of gnulib).
18025 2018-10-12  Bruno Haible  <bruno@clisp.org>
18027         mountlist: Improve support for Solaris in 64-bit mode.
18028         Reported by David Wood <David.Wood@deshaw.com> in
18029         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
18030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
18031         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
18032         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
18034 2018-10-12  Bruno Haible  <bruno@clisp.org>
18036         mountlist: Add support for Minix.
18037         Reported by Assaf Gordon in
18038         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
18039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
18040         AC_CHECK_FUNCS to check for 'getmntinfo'.
18041         * lib/mountlist.c: Update comments.
18043 2018-10-12  Bruno Haible  <bruno@clisp.org>
18045         Make better use of Autoconf.
18046         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
18047         * m4/manywarnings.m4: Likewise.
18048         * m4/manywarnings-c++.m4: Likewise.
18049         * m4/socklen.m4: Likewise.
18050         * m4/sockpfaf.m4: Likewise.
18051         * m4/stdarg.m4: Likewise.
18052         * m4/visibility.m4: Likewise.
18053         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
18054         indentation.
18055         * m4/ls-mntd-fs.m4: Likewise.
18057 2018-10-11  Bruno Haible  <bruno@clisp.org>
18059         mountlist: Modernize platform lists.
18060         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
18061         platforms, deemphasizing the obsolete ones.
18062         * lib/mountlist.c: Likewise.
18064 2018-10-11  Bruno Haible  <bruno@clisp.org>
18066         getprogname: Add support for 32-bit programs on HP-UX.
18067         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
18068         try the similar functions 32-bit programs on 64-bit HP-UX.
18070 2018-10-11  Bruno Haible  <bruno@clisp.org>
18072         getprogname: Work around program name truncation when possible.
18073         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
18074         possibly use pst_cmd instead.
18076 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18078         fts: cleanup after FTS_NOATIME removal
18079         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
18080         (FTS_STOP): Shrink to minimal values.  We don’t need to
18081         worry about binary compatibility in Gnulib, and the old way
18082         of doing things had a hole in the user options that caused
18083         FTS_OPTIONMASK to not work as desired.
18085 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
18087         fts: remove FTS_NOATIME
18088         This reverts commit da4d6974013c822af1498941e32db774b2031765.
18089         We cannot guarantee that O_NOATIME works: e.g. openat fails
18090         with EPERM if the effective user ID of the caller does not match
18091         the owner of the file and the caller is not privileged.
18092         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
18093         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
18094         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
18095         (FTS_OPTIONMASK): Adjust.
18096         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
18097         (fd_ring_check): Likewise.
18099 2018-10-08  Bruno Haible  <bruno@clisp.org>
18101         csharpcomp*, csharpexec*: Remove support for pnet.
18102         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
18103         HAVE_CSCC.
18104         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
18105         Don't test HAVE_CSCC.
18106         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
18107         (compile_csharp_class): Don't invoke it.
18108         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
18109         HAVE_ILRUN.
18110         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
18111         Don't test HAVE_ILRUN.
18112         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
18113         (execute_csharp_program): Don't invoke it.
18114         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
18115         any more.
18117 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
18119         renameatu: prefer renameat2 to syscall
18120         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
18121         Use renameat2 instead of syscall (Bug#32796).
18122         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
18124 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18126         bootstrap, gnulib-tool: use https instead of insecure rsync
18127         * build-aux/bootstrap (download_po_files, po_download_command_format):
18128         Don't try using rsync; always use wget over https to fetch PO files.
18129         * gnulib-tool (func_import): Likewise.
18130         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18132 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18134         bootstrap, gnulib-tool: correct the translations wget command
18135         * build-aux/bootstrap (po_download_command_format2): Restrict
18136         recursion to a single level.
18137         * gnulib-tool (func_import): Likewise.
18138         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18140 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18142         doc: the gnulib snapshots are not maintained
18143         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
18145 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18147         timevar: add to lib_SOURCES
18148         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
18150 2018-10-07  Bruno Haible  <bruno@clisp.org>
18152         dirent: Update documentation.
18153         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
18155 2018-10-05  Bruno Haible  <bruno@clisp.org>
18157         strpbrk: Make it possible to namespace the defined symbol.
18158         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
18160 2018-10-05  Bruno Haible  <bruno@clisp.org>
18162         strcspn: Make it possible to namespace the defined symbol.
18163         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
18165 2018-10-05  Bruno Haible  <bruno@clisp.org>
18167         raise: Make it possible to namespace the defined symbol.
18168         * lib/raise.c (raise): Undefine only after the replacement function has
18169         been defined.
18170         (raise): Renamed from rpl_raise.
18171         (raise_nothrow): Move to the end of the compilation unit.
18173 2018-10-05  Bruno Haible  <bruno@clisp.org>
18175         memcmp: Make it possible to namespace the defined symbol.
18176         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
18178 2018-10-05  Bruno Haible  <bruno@clisp.org>
18180         explicit_bzero: Make it possible to namespace the defined symbol.
18181         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
18182         glibc.
18184 2018-10-05  Bruno Haible  <bruno@clisp.org>
18186         mkdir-p: Depend on 'mkdir'.
18187         * modules/mkdir-p (Depends-on): Add 'mkdir'.
18189 2018-10-05  Bruno Haible  <bruno@clisp.org>
18191         tempname: Depend on 'mkdir'.
18192         Reported by Maarten Bosmans <mkbosmans@gmail.com>
18193         at <https://savannah.gnu.org/bugs/?33379>.
18194         * modules/tempname (Depends-on): Add 'mkdir'.
18196 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
18198         timevar: rely on gnulib modules for time portability.
18199         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
18200         * m4/timevar.m4: Don't check for clock_t and struct tms,
18201         guaranteed by gnulib.
18202         * lib/timevar.h: Use extern "C" protection.
18203         Include <stdio.h> for FILE.
18204         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
18205         they are guaranteed by gnulib.
18206         Remove uses of clock as (now useless) fallback.
18208 2018-10-04  Bruno Haible  <bruno@clisp.org>
18210         sh-filename: New module.
18211         * m4/sh-filename.m4: New file.
18212         * modules/sh-filename: New file.
18213         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
18214         "/bin/sh".
18215         * tests/test-posix_spawn1.c (main): Likewise.
18216         * tests/test-posix_spawn2.c (main): Likewise.
18217         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
18218         is_envjavac_gcj43): Likewise.
18219         * lib/javaexec.c (execute_java_class): Likewise.
18220         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
18221         * modules/posix_spawnp-tests (Depends-on): Likewise.
18222         * modules/javacomp (Depends-on): Likewise.
18223         * modules/javaexec (Depends-on): Likewise.
18225 2018-10-04  Bruno Haible  <bruno@clisp.org>
18227         spawn-pipe tests: Avoid test failure on native Windows.
18228         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
18229         that fd 2 is closed.
18231 2018-10-04  Bruno Haible  <bruno@clisp.org>
18233         fcntl: Make it possible to namespace the defined symbol.
18234         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
18235         been defined.
18236         (fcntl): Renamed from rpl_fcntl.
18237         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
18238         from fcntl.
18239         (klibc_fcntl): Move to the end of the compilation unit.
18241 2018-10-02  Bruno Haible  <bruno@clisp.org>
18243         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
18244         * tests/test-vasnprintf.c (test_function): Change the test added on
18245         2018-09-23 to check only the 18 most significant digits.
18247         vasnprintf tests: Avoid test failure on Cygwin.
18248         * tests/test-vasnprintf.c (test_function): Change the test added on
18249         2018-09-23 to check only the 42 most significant digits.
18251 2018-10-01  Bruno Haible  <bruno@clisp.org>
18253         mkostemp, mkostemps: Update documentation.
18254         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
18255         * doc/glibc-functions/mkostemps.texi: Likewise.
18257 2018-10-01  Tom Tromey  <tom@tromey.com>
18259         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
18260         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
18261         on OS X.
18263 2018-09-30  Pádraig Brady  <P@draigBrady.com>
18265         hmac-*: refactor to remove repetitive code
18266         * lib/hmac.c: A new parameterized single implementation.
18267         * lib/hmac-md5.c: Define parameters and include implementation.
18268         * lib/hmac-sha1.c: Likewise.
18269         * lib/hmac-sha256.c: Likewise.
18270         * lib/hmac-sha512.c: Likewise.
18271         * modules/crypto/hmac-md5: Reference the new implementation file.
18272         * modules/crypto/hmac-sha1: Likewise.
18273         * modules/crypto/hmac-sha256: Likewise.
18274         * modules/crypto/hmac-sha512: Likewise.
18275         * tests/test-hmac-md5.c: Refactor common code to a single function.
18276         * tests/test-hmac-sha1.c: Likewise.
18277         * tests/test-hmac-sha256.c: Likewise.
18278         * tests/test-hmac-sha512.c: Likewise.
18280 2018-09-30  Zhang Qing  <zhangqingl@126.com>
18282         hmac-sha512: fix hash for keys > blocksize (128 bytes)
18283         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
18284         key length to that output by sha512, not the blocksize.
18285         Otherwise uninitialized data from the stack
18286         is used when computing the hash.
18287         * tests/test-hmac-sha512.c: Add a shortened key test case.
18288         Reported at https://github.com/coreutils/gnulib/pull/5
18290 2018-09-30  Bruno Haible  <bruno@clisp.org>
18292         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
18293         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
18294         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
18295         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
18296         'unsigned int' before comparison with an unsigned value.
18298 2018-09-30  Bruno Haible  <bruno@clisp.org>
18300         grantpt: Remove unnecessary dependency.
18301         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
18303 2018-09-30  Bruno Haible  <bruno@clisp.org>
18305         timevar: Small tweaks.
18306         * lib/timevar.h: Fix comments. Add parameter names to function
18307         declarations.
18308         * lib/timevar.c: Include timevar.h immediately after config.h.
18309         * lib/timevar.def: Fix comments.
18310         * modules/timevar (Maintainer): List Akim Demaille.
18312 2018-09-30  Bruno Haible  <bruno@clisp.org>
18314         timevar: Include documentation in gnulib manual.
18315         * doc/timevar.texi: Change node and section name to 'Profiling of
18316         program phases'.
18317         In the code snippets, tweak the #includes and use GNU coding style.
18318         * doc/gnulib.texi: Include timevar.texi.
18320 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
18322         timevar: import from Bison.
18323         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
18324         New files.
18325         * lib/timevar.def: New file.
18326         * doc/timevar.texi: New file.
18328 2018-09-26  Bruno Haible  <bruno@clisp.org>
18330         javacomp-script, javacomp: Add preliminary support for Java 12..17.
18331         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
18332         * lib/javacomp.c (default_target_version): Likewise.
18334 2018-09-26  Bruno Haible  <bruno@clisp.org>
18336         javacomp-script, javacomp: Add support for Java 11.
18337         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
18338         target-version 11.
18339         * lib/javaversion.h: Update comments.
18340         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18341         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18342         TARGET_VERSION_BOUND, target_version_index,
18343         corresponding_classfile_version): Accept source_version 11 and
18344         target_version 11.
18345         * lib/javacomp.h: Update comments accordingly.
18347 2018-09-23  Bruno Haible  <bruno@clisp.org>
18349         vasnprintf: Fix heap memory overrun bug.
18350         Reported by Ben Pfaff <blp@cs.stanford.edu> in
18351         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
18352         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
18353         memory.
18354         * tests/test-vasnprintf.c (test_function): Add another test.
18356 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18358         maint: mktime.c now shared with glibc
18359         * config/srclist.txt: intprops.h, timegm.c and mktime.c
18360         are now the same in Gnulib and glibc.
18362         mktime: fix _LIBC typo
18363         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
18365 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18367         dfa: optimization for state merge
18368         * lib/dfa.c (merge2): New function.
18369         (merge_nfa_state): Use it.
18371 2018-09-18  Jim Meyering  <meyering@fb.com>
18373         dfa: trivial comment fix: s/is/if/
18374         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
18376 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18378         dfa: use more-informative function name
18379         * lib/dfa.c (maybe_disable_superset_dfa):
18380         Rename from dfautf8noss.  Use change.
18382         dfa: tweak allocation performance
18383         * lib/dfa.c (merge_nfa_state, dfaoptimize):
18384         Prefer ptrdiff_t for indexes some more.
18385         Use char for flags, as it’s wide enough.
18386         Allocate queue and flags together, with one malloc call.
18387         No need to use xnmalloc since the multiplication and
18388         addition cannot overflow (it’s already been checked by
18389         earlier allocation).  Prefer memset to open-coding.
18391         dfa: prune states as we go
18392         * lib/dfa.c (prune): Remove.
18393         dfa: reorder enum for efficiency
18394         (merge_nfa_state): Prune as we go instead of at the end.
18395         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
18397         * lib/dfa.c (END): Now -1 again.  Reorder other elements
18398         of the enumeration to make it easier for GCC to generate
18399         efficient code by using fewer comparisons to check for
18400         ranges of values.
18401         (atom): Take advantage of the reordering.
18403 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18405         dfa: optimize alternation in NFA
18406         Even when similar states exist in alternation, the DFA treats them
18407         as separate items, which may complicate the transition in NFA and
18408         cause slowdown.  This change assembles the states into one.  For
18409         example, ab|ac is changed into a(b|c).  This change speeds-up
18410         matching for many branched patterns.  For example, grep speeds up
18411         more than 30× in:
18413           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
18414           time -p env LC_ALL=C grep -vf in in
18416         * lib/dfa.c (prune): New function.
18417         (merge_nfa_state): New function.  It merges similar NFA states.
18418         (dfaoptimize): New function.  It seeks merged and removed nodes.
18419         (dfaanalyze): Call new function.
18420         (dfautf8noss): Change name from dfaoptimize because of addition of new
18421         function.
18422         (dfacomp): Update caller.
18424         dfa: simplify initial state
18425         Simplifying the initial state enables easier optimization of the NFA.
18426         * lib/dfa.c (enum token): Add new element BEG.
18427         (prtok): Adjust due to adding element BEG.
18428         (dfaparse): Put BEG at a head of tokens.
18429         (state_index): Adjust due to adding element BEG.
18430         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18431         build initial state.
18432         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18434 2018-09-18  Bruno Haible  <bruno@clisp.org>
18436         file-has-acl: Fix test failure on Cygwin 2.9.
18437         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18438         * lib/acl-internal.h: Likewise.
18439         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18440         * lib/acl-internal.c: Update comments regarding Cygwin.
18441         * lib/acl_entries.c: Likewise.
18442         * lib/file-has-acl.c: Likewise.
18443         (file_has_acl): For Cygwin, use a different way to determine whether
18444         the "default" ACL of a directory is nontrivial.
18445         * lib/get-permissions.c: Update comments regarding Cygwin.
18446         * lib/set-permissions.c: Likewise.
18448 2018-09-18  Bruno Haible  <bruno@clisp.org>
18450         stat-time tests: Fix test failure on Cygwin.
18451         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18453 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18455         doc: OS X 10.11 lacked ns time functions
18456         According to <https://github.com/zeromq/libzmq/issues/2175>,
18457         nanosecond-resolution timestamp functions were introduced
18458         in macOS 10.12, so document the last version (OS X 10.11)
18459         where they were absent.
18461         gettime: nanotime never existed
18462         Problem reported by Bruno Haible in:
18463         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18464         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18465         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18467 2018-09-18  Bruno Haible  <bruno@clisp.org>
18469         doc: Update statement about target platforms.
18470         Reported by Simon Sobisch.
18471         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18472         restrictions on MSVC versions.
18474 2018-09-18  Bruno Haible  <bruno@clisp.org>
18476         posix_spawn tests: Fix link error on 64-bit Cygwin.
18477         * tests/test-posix_spawn1.c (environ): Remove declaration.
18478         * tests/test-posix_spawn2.c (environ): Likewise.
18479         * tests/test-posix_spawn3.c (environ): Likewise.
18480         * tests/test-posix_spawn4.c (environ): Likewise.
18481         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18482         * modules/posix_spawnp-tests (Depends-on): Likewise.
18484 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18486         timespec: new function current_timespec
18487         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18488         and don’t worry about it failing on a CLOCK_REALTIME arg.
18489         POSIX requires it to succeed and I don’t know of any
18490         counterexamples where the fallbacks would work.
18491         (current_timespec): New function, taken from Emacs.  It is more
18492         convenient than gettime, and can help register allocation.
18493         * lib/timespec.h: Include arg-nonnull.h.
18494         (current_timespec): New declaration.
18495         (gettime, settime): Declare args to be nonnull.
18496         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18498 2018-09-16  Bruno Haible  <bruno@clisp.org>
18500         setlocale: Improve locale handling on macOS 10.12 or newer.
18501         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18502         gl_locale_name_canonicalize.
18503         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18504         and LC_MESSAGES.
18505         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18507 2018-09-16  Bruno Haible  <bruno@clisp.org>
18509         Update list of locale names with scripts on macOS.
18510         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18511         match Mac OS X 10.13 and recent glibc.
18513 2018-09-16  Bruno Haible  <bruno@clisp.org>
18515         gettext: Use newer macOS APIs when possible.
18516         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18517         CFLocaleCopyPreferredLanguages.
18519 2018-09-16  Bruno Haible  <bruno@clisp.org>
18521         localename: Revisit macOS specific code.
18522         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18523         Fix comments about Mac OS X versions.
18525 2018-09-15  Bruno Haible  <bruno@clisp.org>
18527         setlocale: Improve support for locales not supported by libc.
18528         Reported by Dapeng Gao <peter@dpgao.cc> at
18529         <https://savannah.gnu.org/bugs/?54479>.
18530         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18531         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18532         to be set is not supported by libc: Emit warnings instead of failing.
18534 2018-09-15  Bruno Haible  <bruno@clisp.org>
18536         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18537         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18538         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18539         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18541         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18542         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18543         * doc/glibc-functions/strcasestr.texi: Likewise.
18545 2018-09-14  Bruno Haible  <bruno@clisp.org>
18547         doc: Fix bottom of top-level page.
18548         Reported by Akim Demaille <akim.demaille@gmail.com> in
18549         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18550         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18551         mode.
18552         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18553         accordingly.
18555 2018-09-12  Bruno Haible  <bruno@clisp.org>
18557         Add test case from a recent glibc bug.
18558         * tests/test-strstr.c (main): Add test of long needle.
18559         * tests/test-strcasestr.c (main): Likewise.
18560         * tests/test-c-strstr.c (main): Likewise.
18561         * tests/test-c-strcasestr.c (main): Likewise.
18562         * tests/test-memmem.c (main): Likewise.
18564 2018-09-12  Bruno Haible  <bruno@clisp.org>
18566         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18567         * tests/test-c-strstr.c (main): Add the same tests here as well.
18569 2018-09-12  Bruno Haible  <bruno@clisp.org>
18571         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18572         * tests/test-memmem.c (main): Free haystack.
18573         * tests/test-strcasestr.c (main): Likewise.
18574         * tests/test-c-strcasestr.c (main): Likewise.
18576 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18578         xstrtol: fix missing-TYPE_SIGNED typo
18579         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18581 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18583         timespec: fix resolution confusion
18584         In normal usage, clock resolution is given in seconds, but the
18585         code was mistakenly using inverse seconds and calling it
18586         “resolution”.  Fix this, partly by renaming two identifiers.
18587         The old names will be kept for a bit, to ease transition.
18588         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18589         New constants, replacing TIMESPEC_RESOLUTION and
18590         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18591         All uses changed.
18593 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18595         mktime: simplify in prep for glibc merge
18596         * lib/mktime.c, lib/timegm.c [_LIBC]:
18597         Include mktime-internal.h (a small file just for glibc)
18598         instead of using a typedef.
18600 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18602         intprops: minor clarification of code
18603         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18604         Use _GL_INT_CONVERT rather than reinventing it.
18606 2018-09-07  Bruno Haible  <bruno@clisp.org>
18608         Fix a comment.
18609         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18611 2018-09-07  Bruno Haible  <bruno@clisp.org>
18613         posix_spawn_file_actions_addchdir: Add tests.
18614         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18615         * tests/test-posix_spawn4.c: New file.
18616         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18618 2018-09-07  Bruno Haible  <bruno@clisp.org>
18620         posix_spawn_file_actions_addchdir: New module.
18621         Suggested by Eric Blake in
18622         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18623         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18624         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18625         union member 'chdir_action'.
18626         * lib/spawn_faction_addchdir.c: New file.
18627         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18628         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18629         HAVE_WORKING_POSIX_SPAWN.
18630         * lib/spawn_faction_adddup2.c: Likewise.
18631         * lib/spawn_faction_addopen.c: Likewise.
18632         * m4/posix_spawn_faction_addchdir.m4: New file.
18633         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18634         'posix_spawn_file_actions_addchdir' is present and whether
18635         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18636         instead of HAVE_WORKING_POSIX_SPAWN.
18637         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18638         posix_spawn_file_actions_addchdir is declared.
18639         (gl_SPAWN_H_DEFAULTS): Initialize
18640         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18641         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18642         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18643         * modules/spawn (Makefile.am): Substitute
18644         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18645         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18646         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18647         * modules/posix_spawn_file_actions_addchdir: New file.
18648         * modules/posix_spawn_file_actions_addclose (Depends-on,
18649         configure.ac): Test also REPLACE_POSIX_SPAWN.
18650         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18651         configure.ac): Likewise.
18652         * modules/posix_spawn_file_actions_addopen (Depends-on,
18653         configure.ac): Likewise.
18654         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18655         signature.
18656         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18657         * doc/posix-functions/posix_spawnp.texi: Likewise.
18659 2018-09-06  Bruno Haible  <bruno@clisp.org>
18661         stddef: Override max_align_t on NetBSD 8.0/x86.
18662         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18663         the value of __alignof__ (max_align_t).
18664         * doc/posix-headers/stddef.texi: Mention the issue.
18666 2018-09-06  Bruno Haible  <bruno@clisp.org>
18668         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18669         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18670         system fcntl.
18671         * doc/posix-functions/fcntl.texi: Document the issue.
18673 2018-09-06  Bruno Haible  <bruno@clisp.org>
18675         count-trailing-zeros tests: Rely on limits-h module.
18676         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18677         definition.
18678         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18680 2018-09-06  Bruno Haible  <bruno@clisp.org>
18682         count-leading-zeros tests: Rely on limits-h module.
18683         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18684         definition.
18685         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18687 2018-09-06  Bruno Haible  <bruno@clisp.org>
18689         count-one-bits tests: Rely on limits-h module.
18690         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18691         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18693 2018-09-06  Bruno Haible  <bruno@clisp.org>
18695         xstrtoll: Rely on limits-h module.
18696         * lib/xstrtol.c: Don't include intprops.h.
18697         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18698         * modules/xstrtol (Depends-on): Remove 'intprops'.
18699         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18701 2018-09-06  Bruno Haible  <bruno@clisp.org>
18703         strtoll, strtoull: Rely on limits-h module.
18704         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18705         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18706         * modules/strtoll (Depends-on): Add limits-h.
18707         * modules/strtoull (Depends-on): Likewise.
18709 2018-09-06  Bruno Haible  <bruno@clisp.org>
18711         intprops tests: Fix compilation error with pre-C99 compiler.
18712         * tests/test-intprops.c (verify_stmt): New macro.
18713         (VERIFY, main): Use it.
18715 2018-09-06  Bruno Haible  <bruno@clisp.org>
18717         limits-h: Provide numerical limits macros.
18718         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18719         IRIX and for GCC.
18720         (WORD_BIT, LONG_BIT): Define.
18721         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18722         <limits.h> does not define LLONG_MAX or WORD_BIT.
18723         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18724         TYPE_MAXIMUM): New macros, from intprops.h.
18725         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18726         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18727         provides.
18729 2018-09-05  Bruno Haible  <bruno@clisp.org>
18731         fcntl: Don't access nonexistent optional argument.
18732         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18733         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18734         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18735         don't consume an argument. For actions that take an 'int' argument,
18736         consume an 'int' argument.
18738 2018-09-05  Eric Blake  <eblake@redhat.com>
18740         doc: mention environ pitfall
18741         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18742         environ is a glibc extension.
18744 2018-09-03  Bruno Haible  <bruno@clisp.org>
18746         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18747         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18748         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18749         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18750         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18751         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18753 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18755         mktime: fix unlikely race+overflow bug
18756         Problem reported by Alexandre Oliva in:
18757         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18758         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18759         to avoid an unlikely race if the compiler delays a load and
18760         if this cascades into a signed integer overflow.
18762 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18764         mktime, timegm: simplify glibc time64_t
18765         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18766         Now long int, not time_t, since long int is the longstanding type
18767         for this in glibc and there is no need to change it even if time_t
18768         becomes 64 bits - even int would do, though this would be a change
18769         to the glibc generated code.  When this change is merged into
18770         glibc, it should simplify the time_t vs time64_t situation.
18772         mktime, timegm: simplify merge to glibc
18773         Move code around to make a merge to glibc easier to audit.
18774         This should not change behavior.
18775         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18776         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18777         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18778         simplify later conditionals; default the others to zero.  In uses
18779         of these conditionals, explicitly spell out how _LIBC affects
18780         things, so it’s easier to review from a glibc viewpoint.
18781         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18782         compartmentalize tzset issues.  Move system-dependent tzsettish
18783         code here from mktime.
18784         (mktime): Move tzsettish code to my_tzset, and move
18785         localtime_offset to within mktime so that it doesn’t
18786         need a separate ifdef.
18788 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18790         intprops: avoid evaluation of some expressions
18791         This makes EXPR_SIGNED (e) easier to use, as it no longer
18792         evaluates the expression E.  Formerly, E was required to be free
18793         of side effects.
18794         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18795         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18796         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18798 2018-08-23  Bruno Haible  <bruno@clisp.org>
18800         getcwd: Add cross-compilation guesses.
18801         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18802         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18803         Based on a patch by Paul Eggert.
18804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18805         guesses for all GNU systems.
18807 2018-08-19  Bruno Haible  <bruno@clisp.org>
18809         glob-h: Formalize side effects from other modules.
18810         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18811         * m4/glob.m4 (gl_GLOB): Invoke it.
18813         fnmatch-h: Formalize side effects from other modules.
18814         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18815         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18817         limits-h: Formalize side effects from other modules.
18818         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18819         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18821 2018-08-19  Bruno Haible  <bruno@clisp.org>
18823         getpass: Move declaration to <unistd.h>.
18824         * lib/unistd.in.h (getpass): New declaration.
18825         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18826         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18827         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18828         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18829         On glibc systems, don't set REPLACE_GETPASS to 1.
18830         * modules/getpass (Depends-on): Add 'unistd'.
18831         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18832         (Include): Specify <unistd.h> instead of "getpass.h".
18833         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18834         (configure.ac): Sync with the configure.ac section of modules/getpass.
18835         (Include): Specify <unistd.h> instead of "getpass.h".
18836         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18837         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18838         REPLACE_GETPASS.
18839         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18840         REPLACE_GETPASS.
18841         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18842         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18843         and musl.
18844         * NEWS: Mention the change.
18846 2018-08-19  Bruno Haible  <bruno@clisp.org>
18848         glob: Fix over-optimization due to attribute __nonnull__.
18849         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18851 2018-08-19  Bruno Haible  <bruno@clisp.org>
18853         glob: Fix another compilation error when glob.h is not replaced.
18854         Reported by Reuben Thomas <rrt@sc3d.org> in
18855         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18856         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18857         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18859 2018-08-18  Bruno Haible  <bruno@clisp.org>
18861         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18862         Reported by Reuben Thomas <rrt@sc3d.org> in
18863         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18864         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18865         in config.h.
18867 2018-08-18  Bruno Haible  <bruno@clisp.org>
18869         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18870         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18871         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18872         Solution proposed by Eli Zaretskii.
18873         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18874         * lib/gettimeofday.c (GetProcAddress): Likewise.
18875         * lib/link.c (GetProcAddress): Likewise.
18876         * lib/physmem.c (GetProcAddress): Likewise.
18877         * lib/poll.c (GetProcAddress): Likewise.
18878         * lib/select.c (GetProcAddress): Likewise.
18879         * lib/stat-w32.c (GetProcAddress): Likewise.
18881 2018-08-18  Bruno Haible  <bruno@clisp.org>
18883         glob: Fix another compilation error when glob.h is not replaced.
18884         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18885         * lib/globfree.c: Include <libc-config.h>.
18887 2018-08-18  Bruno Haible  <bruno@clisp.org>
18889         glob: Fix compilation error when glob.h is not replaced.
18890         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18891         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18892         * lib/glob_pattern_p.c: Include <libc-config.h>.
18893         * modules/glob (Depends-on): Add libc-config.
18895 2018-08-18  Bruno Haible  <bruno@clisp.org>
18897         scratch_buffer: Add tests.
18898         * tests/test-scratch-buffer.c: New file.
18899         * modules/scratch_buffer-tests: New file.
18901 2018-08-18  Bruno Haible  <bruno@clisp.org>
18903         scratch_buffer: Fix include file.
18904         Reported by Reuben Thomas <rrt@sc3d.org> in
18905         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18906         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18907         double-inclusion guard.
18909 2018-08-18  Bruno Haible  <bruno@clisp.org>
18911         glob-h: Revert Paul Eggert's revert.
18912         * m4/glob_h.m4: Revert to previous state.
18913         * modules/glob-h: Likewise.
18915 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18917         glob-h: always build glob.h
18918         This works around a problem reported by Reuben Thomas in:
18919         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18920         This workaround always builds glob.h, even on platforms that
18921         do not need it; perhaps this could be improved someday.
18922         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18923         is always created now.
18924         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18926 2018-08-13  Bruno Haible  <bruno@clisp.org>
18928         monetary: Simplify m4 code.
18929         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18930         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18932 2018-08-13  Bruno Haible  <bruno@clisp.org>
18934         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18935         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18936         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18937         and by Paul J. Lucas <paul@lucasmail.org> in
18938         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18939         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18941 2018-08-11  Bruno Haible  <bruno@clisp.org>
18943         setlocale: Trivial simplification.
18944         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18946 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18948         verify: port 'assume' to traditional tools
18949         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18950         and other tools that use /*NOTREACHED*/ comments.
18952 2018-08-10  Bruno Haible  <bruno@clisp.org>
18954         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18955         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18956         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18957         'fnmatch-gnu' is in use.
18959 2018-08-07  Bruno Haible  <bruno@clisp.org>
18961         glob-h: Add tests.
18962         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18963         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18964         tests/test-glob-h.c.
18965         * modules/glob-h-tests: New file.
18966         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18967         conditions.
18968         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18969         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18971 2018-08-07  Bruno Haible  <bruno@clisp.org>
18973         glob-h: New module.
18974         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18975         replacements.
18976         * lib/glob.c: Include <config.h>.
18977         * m4/glob_h.m4: New file.
18978         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18979         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18980         REPLACE_GLOB_PATTERN_P as appropriate.
18981         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18982         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18983         * modules/glob-h: New file.
18984         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18985         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18986         lstat, sys_stat. Change conditions.
18987         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18988         REPLACE_GLOB_PATTERN_P. Set module indicator.
18989         (Makefile.am): Remove code that is moved to glob-h.
18990         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18991         * modules/posixcheck (Depends-on): Add glob-h.
18993 2018-08-06  Bruno Haible  <bruno@clisp.org>
18995         Force generation of substitute .h file when C++ support is enabled.
18996         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18997         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18998         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18999         FNMATCH_H to non-empty.
19000         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
19001         ICONV_H to non-empty.
19002         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
19003         MONETARY_H to non-empty.
19004         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
19005         non-empty.
19007 2018-08-06  Bruno Haible  <bruno@clisp.org>
19009         fnmatch-h: Fix test compilation error on mingw (regression from today).
19010         * lib/fnmatch.in.h: Fix conditions.
19012 2018-08-06  Bruno Haible  <bruno@clisp.org>
19014         sys_resource: Relicense under LGPLv2+.
19015         John Malmberg's approval is in
19016         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
19017         * modules/sys_resource (License): Change to LGPLv2+.
19019 2018-08-06  Bruno Haible  <bruno@clisp.org>
19021         fnmatch-h: Add tests.
19022         * tests/test-fnmatch-h.c: New file.
19023         * modules/fnmatch-h-tests: New file.
19024         * tests/test-fnmatch-h-c++.cc: New file.
19025         * modules/fnmatch-h-c++-tests: New file.
19027 2018-08-06  Bruno Haible  <bruno@clisp.org>
19029         fnmatch-h: New module.
19030         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
19031         replacements.
19032         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
19033         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
19034         'posixcheck' warning.
19035         * m4/fnmatch_h.m4: New file.
19036         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
19037         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
19038         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
19039         as appropriate.
19040         * modules/fnmatch-h: New file.
19041         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
19042         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
19043         conditions.
19044         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
19045         indicator.
19046         (Makefile.am): Remove code that is moved to fnmatch-h.
19047         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
19048         REPLACE_FNMATCH.
19049         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
19050         * modules/posixcheck (Depends-on): Add fnmatch-h.
19052 2018-08-06  Bruno Haible  <bruno@clisp.org>
19054         Enable more C++ tests.
19055         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
19056         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
19057         * modules/strings-tests (Depends-on): Add strings-c++-tests.
19058         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
19059         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
19061 2018-08-06  Bruno Haible  <bruno@clisp.org>
19063         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
19064         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
19065         getopt.h.
19066         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
19068 2018-08-05  Bruno Haible  <bruno@clisp.org>
19070         utime-h: Generate header file when module 'posixcheck' is in use.
19071         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
19072         UTIME_H to non-empty.
19074 2018-08-05  Bruno Haible  <bruno@clisp.org>
19076         monetary: Generate header file when module 'posixcheck' is in use.
19077         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
19078         use, set MONETARY_H to non-empty.
19080 2018-08-05  Bruno Haible  <bruno@clisp.org>
19082         iconv-h: Generate header file when module 'posixcheck' is in use.
19083         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
19084         set ICONV_H to non-empty.
19086 2018-08-05  Bruno Haible  <bruno@clisp.org>
19088         Optimize the "checking whether ... is declared without a macro" checks.
19089         Suggested by Paul Eggert in
19090         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
19091         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
19092         Gnulib module 'posixcheck' is not in use.
19094 2018-08-05  Bruno Haible  <bruno@clisp.org>
19096         iconv-h: Enable 'posixcheck' warnings.
19097         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
19098         iconv_open.
19099         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
19101 2018-08-05  Bruno Haible  <bruno@clisp.org>
19103         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
19104         * m4/extern-inline.m4: Add more comments.
19105         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
19106         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
19107         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
19109 2018-08-04  Bruno Haible  <bruno@clisp.org>
19111         New module 'posixcheck'.
19112         * modules/posixcheck: New file.
19113         * m4/posixcheck.m4: New file.
19114         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
19115         (Which modules?): Reference it.
19117 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
19119         dfa: fix memory leak
19120         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
19122 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19124         ieee754-h: new module
19125         It looks like Emacs can use this for some NaN processing.
19126         Emacs uses it only on double NaNs so it should be safe.
19127         * MODULES.html.sh (func_all_modules): Add ieee754-h.
19128         * config/srclist.txt: Mention ieee754.h in a comment.
19129         * doc/glibc-headers/ieee754.texi (ieee754.h):
19130         Gnulib now has a substitute that should work
19131         except for long double and for non-IEEE platforms.
19132         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
19133         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
19135 2018-07-27  Bruno Haible  <bruno@clisp.org>
19137         iswcntrl: Mention minor problem on macOS.
19138         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
19140 2018-07-26  Colin Watson  <cjwatson@debian.org>
19142         bootstrap, gnulib-tool: fix translations rsync
19143         Previously, we created files such as $pobase/Makefile.in.in and then the
19144         subsequent rsync would immediately delete them.
19145         * build-aux/bootstrap (po_download_command_format): Avoid deleting
19146         non-.po files in target directory when rsyncing translations.
19147         * gnulib-tool (func_import): Likewise.
19148         * pygnulib/GLImport.py (GLImport.execute): Likewise.
19150 2018-07-25  Jim Meyering  <meyering@fb.com>
19152         bootstrap: reinstate definition fo gnulib_mk.
19153         That variable is used at least by cppi.
19154         * build-aux/bootstrap (gnulib_mk): Restore definition.
19155         This reverts the deletion from v0.1-1844-gc66dba9ba.
19157 2018-07-23  Bruno Haible  <bruno@clisp.org>
19159         doc: For module names, use texinfo markup @code{} or @samp{}.
19160         * doc/alloca.texi: Mark gnulib module names with @code.
19161         * doc/alloca-opt.texi: Likewise.
19162         * doc/quote.texi: Likewise.
19163         * doc/posix-functions/freopen.texi: Likewise.
19164         * doc/posix-functions/open.texi: Likewise.
19165         * doc/posix-functions/readlink.texi: Likewise.
19166         * doc/posix-functions/readlinkat.texi: Likewise.
19167         * doc/posix-functions/stdout.texi: Likewise.
19168         * doc/posix-functions/stderr.texi: Likewise.
19169         * doc/posix-functions/unlink.texi: Likewise.
19170         * doc/posix-functions/unlinkat.texi: Likewise.
19171         * doc/posix-functions/utime.texi: Likewise.
19172         * doc/posix-functions/utimensat.texi: Likewise.
19173         * doc/posix-functions/utimes.texi: Likewise.
19174         * doc/posix-headers/stdint.texi: Likewise.
19175         * doc/glibc-functions/futimesat.texi: Likewise.
19176         * doc/glibc-functions/lutimes.texi: Likewise.
19177         * doc/glibc-functions/memmem.texi: Likewise.
19179 2018-07-23  Werner LEMBERG  <wl@gnu.org>
19181         doc: Avoid some overfull lines in the TeX output.
19182         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
19183         @example.
19184         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
19185         newline before the long URL.
19186         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
19187         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
19188         Add line breaks in code snippets.
19190 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19192         hard-locale: simplify by removing hard-locale.m4
19193         * m4/hard-locale.m4: Remove.
19194         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
19195         (configure.ac): Do not call gl_HARD_LOCALE.
19197         gnulib-tool: limit line length for git send-email
19198         * gnulib-tool (func_import): Break actioncmd log line
19199         into multiple lines.
19201 2018-07-16  Bruno Haible  <bruno@clisp.org>
19203         ffs: Ensure declaration on mingw.
19204         Reported by Daniel P. Berrangé <berrange@redhat.com>
19205         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
19206         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
19207         also declared.
19209 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19211         regex-tests: add dependency
19212         * modules/regex-tests (Depends-on): Add gettext-h.
19213         This is needed given the recent changes to regex,
19214         which no longer depends on gettext-h.
19216 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19218         regex: now in sync with glibc
19219         * config/srclist.txt: Gnulib and glibc regex code
19220         are synchronized again.
19222 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19224         renameatu: rename from renameat2
19225         It's looking like Glibc will add a renameat2 function
19226         that is incompatible with Gnulib renameat2; see:
19227         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
19228         To help avoid future confusion, rename renameat2 to something else.
19229         Use the name 'renameatu', as the Gnulib function is close to the
19230         Glibc function.  Perhaps someday there will also be a renameat2
19231         Gnulib module, which mimicks the future glibc renameat2, but that
19232         can wait as nobody seems to need such a module now.
19233         * NEWS: Mention this.
19234         * lib/renameatu.c: Rename from lib/renameat2.c.
19235         * lib/renameatu.h: Rename from lib/renameat2.h.
19236         * modules/renameatu: Rename from modules/renameat2.
19237         * modules/renameatu-tests: Rename from modules/renameat2-tests.
19238         All uses of "renameat2" in identifiers or file name
19239         changed to "renameatu", except for two instances in
19240         lib/renameatu.c that deal with the Linux kernel's
19241         renameat2 syscall.
19243 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19245         gnulib-tool: minor tweaks for --gnu-make
19246         * gnulib-tool: Do not allow --gnu-make in test modes,
19247         since they all require automake.
19248         (func_emit_lib_Makefile_am): Don’t emit automake comment
19249         if --gnu-make.
19251         regex: work around conditional-dependencies glitch
19252         * modules/regex (Depends-on): Add langinfo.
19253         Without this change, I had problems building an experimental
19254         version of GNU Emacs.  The symptom of the bug was a message
19255         ‘./configure: line 12726: test: =: unary operator expected’.
19256         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
19257         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
19258         was unset.  Although gl_FUNC_NL_LANGINFO has
19259         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
19260         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
19261         --conditional-dependencies sometimes arranges for the
19262         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
19263         code.  Since the regex code includes <langinfo.h> it should be
19264         depending on the langinfo module anyway, and this happens to work
19265         around the bug, so install that as a workaround for now.  To
19266         reproduce the original problem, run the following shell script on
19267         the version of Gnulib just before this patch was installed.
19268                 rm -fr foo
19269                 mkdir foo
19270                 cat >foo/configure.ac <<'EOF'
19271                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
19272                 gl_EARLY
19273                 gl_INIT
19274                 AC_OUTPUT
19275                 EOF
19276                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
19277                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
19278                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
19279                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
19280                 cd foo
19281                 aclocal -I m4
19282                 autoconf
19283                 ./configure --with-included-regex
19285 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19287         wchar: fix bug when checking for ‘inline’
19288         I discovered this when looking into using the regex module
19289         with Emacs.
19290         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
19291         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
19292         conftest1.c and conftest2.c but these files were not created.
19293         As far as I can see, this check never worked and nobody reported
19294         it until now, which is a bit worrisome.
19296 2018-06-30  Jim Meyering  <meyering@fb.com>
19298         bootstrap: s/--option val/--option=val/
19299         * build-aux/bootstrap (gnulib_tool_options): Change the
19300         spelling of "--option val" pairs to "--option=val", for
19301         aesthetics, and also so that this file no longer triggers
19302         a common help2man syntax-check warning when copied into
19303         projects like grep, gzip, etc.
19305 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19307         manywarnings: omit -Wswitch-default
19308         This should make things more consistent, as we already ignore
19309         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
19310         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
19311         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
19312         Add -Wswitch-default.
19313         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
19314         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19315         Remove -Wswitch-default.
19317         regex: revert most trimming
19318         Problems reported by Bruno Haible in:
19319         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
19320         * modules/regex (Depends-on): Add lock, memcmp, memmove,
19321         and wctype back in.  lock because regex users shouldn’t
19322         need to know that regex needs locking, and the rest because
19323         gnulib-tool should ordinarily ignore them anyway.
19325 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19327         regex: trim module dependencies
19328         * modules/regex (Depends-on): Remove gettext-h and lock,
19329         since the regex code should work OK without these modules,
19330         and Emacs uses it that way.  Also remove memcmp, memmove,
19331         and wctype, as these modules are obsolete and should not be
19332         needed any more.
19334 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19336         regex: glibc does not use intprops.h
19337         Maybe we can talk glibc into using intprops.h someday, but
19338         now doesn’t seem to be a good time.
19339         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
19340         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
19341         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
19343 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
19345         regex: port to recently proposed glibc regex merge
19346         This patch is inspired by Adhemerval Zanella's recent proposal
19347         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
19348         to merge glibc and Gnulib regex.  It aims to simplify the merge on
19349         the glibc side, without keeping Gnulib portable.
19350         * lib/regex.h: Fix a problem with glibc installed-header checking,
19351         as follows:
19352         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
19353         (_Restrict_arr_): Prefer __restrict_arr if defined,
19354         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
19355         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
19356         (build_wcs_upper_buffer, build_upper_buffer)
19357         (re_string_translate_buffer, re_string_context_at):
19358         Move decls here from lib/regex_internal.h, for glibc internal tests.
19359         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
19360         glibc BZ #18496.
19361         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
19362         -Wunused-value.
19363         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
19364         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19365         (bitset_mask): Now static inline, and without any __attribute__
19366         ((unused)) decoration, for glibc internal tests.
19368 2018-06-25  Bruno Haible  <bruno@clisp.org>
19370         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
19371         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
19372         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
19373         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
19374         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
19375         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
19376         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
19377         / -lthread / -lpth does not get optimized away by a preceding
19378         --as-needed option.
19380 2018-06-25  Bruno Haible  <bruno@clisp.org>
19382         Continue to use spaces for indentation, not tabs.
19383         * MODULES.html.sh: Untabify.
19384         * doc/regex.texi: Likewise.
19385         * lib/acl-internal.c: Likewise.
19386         * lib/dfa.c: Likewise.
19387         * lib/exclude.c: Likewise.
19388         * lib/exclude.h: Likewise.
19389         * lib/get-permissions.c: Likewise.
19390         * lib/gettimeofday.c: Likewise.
19391         * lib/parse-datetime.y: Likewise.
19392         * lib/pselect.c: Likewise.
19393         * lib/set-permissions.c: Likewise.
19394         * lib/time.in.h: Likewise.
19395         * m4/canonicalize.m4: Likewise.
19396         * m4/gc.m4: Likewise.
19397         * m4/gnulib-common.m4: Likewise.
19398         * m4/pthread_sigmask.m4: Likewise.
19399         * m4/vararrays.m4: Likewise.
19400         * tests/test-digest.h: Likewise.
19401         * tests/test-fcntl-h.c: Likewise.
19402         * tests/test-timespec.c: Likewise.
19403         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
19405 2018-06-25  Bruno Haible  <bruno@clisp.org>
19407         manywarnings: Don't enable -Wjump-misses-init warnings by default.
19408         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
19409         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
19410         -Wjump-misses-init.
19412 2018-06-25  Jim Meyering  <meyering@fb.com>
19414         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
19415         * lib/acl-internal.h (free_permission_context): Remove that
19416         attribute directive.  Otherwise, it would provoke this from GCC 9:
19417         lib/acl-internal.h:300:3: error: 'const' attribute on function \
19418           returning 'void' [-Werror=attributes]
19420 2018-06-24  Jim Meyering  <meyering@fb.com>
19422         parse-datetime: accommodate gcc-4.8.5
19423         Bruno Haible reported the build failure in
19424         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19425         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19426         on declaration of new local.
19428 2018-06-24  Bruno Haible  <bruno@clisp.org>
19430         af_alg: Fail in continuable manner on Linux/powerpc64le.
19431         Reported by Assaf Gordon <assafgordon@gmail.com>
19432         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19433         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19434         byte send() as the first round.
19436 2018-06-24  Bruno Haible  <bruno@clisp.org>
19438         af_alg: Fix state of stream after sendfile() succeeds.
19439         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19440         the stream is correctly positioned afterwards.
19441         * modules/crypto/af_alg (Depends-on): Add fflush.
19442         * tests/test-digest.h (test_digest_on_files): Verify that after the
19443         operation the stream is positioned at end of file.
19445 2018-06-24  Jim Meyering  <meyering@fb.com>
19447         canon-host: take GCC9's advice rather than ignoring warning
19448         Pádraig Brady suggested not to ignore this GCC9 advice.
19449         * lib/canon-host.c: Undo preceding change.
19450         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19452         parse-datetime.y: avoid spurious GCC 9 warning
19453         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19454         a function local prior to the first "goto fail".  The prior use would
19455         evoke this:
19456         parse-datetime.y: In function 'parse_datetime2':
19457         parse-datetime.y:1791:19: error: jump skips variable initialization \
19458           [-Werror=jump-misses-init]
19459         parse-datetime.y:2385:2: note: label 'fail' defined here
19460         parse-datetime.y:188:43: note: '({anonymous})' declared here
19461         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19463         canon-host.c: avoid spurious GCC 9 warning
19464         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19466         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19467         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19468         * m4/manywarnings.m4: Remove them.
19469         Otherwise, building coreutils, I would see this:
19470         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19471         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19472         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19473           which is also used by default
19474         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19476 2018-06-24  Bruno Haible  <bruno@clisp.org>
19478         af_alg tests: Add another test.
19479         * tests/test-digest.h (test_digest_on_files): Also check a large file
19480         with a skipped header.
19481         * tests/test-md5.c: Include macros.h.
19482         * tests/test-sha1.c: Likewise.
19483         * tests/test-sha256.c: Likewise.
19484         * tests/test-sha512.c: Likewise.
19485         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19486         * modules/crypto/sha1-tests (Files): Likewise.
19487         * modules/crypto/sha256-tests (Files): Likewise.
19488         * modules/crypto/sha512-tests (Files): Likewise.
19490 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19492         maint: clarify comments about sticky EOF
19493         * lib/af_alg.c: Be more direct that we can't
19494         assume stickiness of EOF for portability reasons.
19495         * lib/md5.c: Clarify that this isn't just a glibc issue.
19496         * lib/sha1.c: Likewise.
19497         * lib/sha256.c: Likewise.
19498         * lib/sha512.c: Likewise.
19500 2018-06-24  Bruno Haible  <bruno@clisp.org>
19502         af_alg: Comment and style improvements.
19503         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19504         (afalg_buffer, afalg_stream): Improve comments.
19506 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19508         af_alg: disable kernel hash functions by default
19509         All the kernel routines were seen to be significantly slower
19510         with these relatively recent components on an i3-2310M system:
19511           kernel-4.10.6-200.fc25.x86_64
19512           openssl-1.0.2m-1.fc25.x86_64
19513         sha1 was nearly twice as slow in the kernel for example.
19514         Further considerations why this should not be the default, at:
19515         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19517         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19518         * m4/gl-openssl.m4: Tweak accordingly.
19520 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19522         af_alg: avoid hangs when reading from streams
19523         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19524         and thus avoid doing a fread() when feof() is set.
19525         * lib/md5.c: Ensure feof() is called before fread().
19526         * lib/sha1.c: Likewise.
19527         * lib/sha256.c: Likewise.
19528         * lib/sha512.c: Likewise.
19530 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19532         af_alg: fix error handling when hash not returned
19533         * lib/af_alg.c (afalg_stream): Handle the case where we've
19534         successfully written data to the kernel in the read/write loop,
19535         but the kernel doesn't respond with the hash.
19537 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19539         libc-config: merge from glibc
19540         * lib/cdefs.h (__inline, __restrict):
19541         Copy from current glibc.  This fixes glibc bug 17721,
19542         which Gnulib had already fixed in a different way.
19543         (__nonnull): Lessen the distance from glibc by using the
19544         glibc definition inside an ‘#ifndef __nonnull’.
19545         (__attribute_nonstring__): New macro, copied from
19546         current glibc.
19547         * lib/libc-config.h (__attribute_nonstring__): New undef.
19548         (__restrict): Remove; workaround no longer needed.
19549         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19550         support more compilers than the glibc __inline can.
19552 2018-06-24  Bruno Haible  <bruno@clisp.org>
19554         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19555         * lib/mbrtowc.c (enc_t): New enum type.
19556         (locale_enc, locale_enc_cached): New functions.
19557         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19558         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19559         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19560         instead.
19561         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19562         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19563         * modules/wcwidth (configure.ac): Invoke it.
19565 2018-06-24  Bruno Haible  <bruno@clisp.org>
19567         wchar-single: Fix test failure in wcwidth tests.
19568         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19569         skip the tests in the C locale.
19571 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19573         crypto: mention --without-linux-crypto in --with-openssl --help
19574         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19575         routines take precedence in --with-openssl help output.
19577 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19579         wchar-single: a new module to enable optimizations in wchar replacements
19580         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19581         GNULIB_WCHAR_SINGLE is enabled.
19582         * lib/wcwidth.c (wcwidth): Likewise.
19584 2018-06-23  Bruno Haible  <bruno@clisp.org>
19586         libc-config: Fix conflict with FreeBSD include files.
19587         * lib/cdefs.h (__nonnull): Remove definition.
19588         * lib/libc-config.h (__nonnull): Remove undefinition.
19590 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19592         random_r: do not crash if state is unaligned
19593         Problem reported by Bruce Korb in:
19594         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19595         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19596         with 'cc -O2 -xmemalign=8s'.
19597         * lib/random_r.c: Include string.h, for memcpy.
19598         (get_int32, set_int32): New functions.
19599         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19600         Use them to avoid assumption that state pointer is aligned.
19601         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19602         * tests/test-random_r.c (test_failed): New function.
19603         (main): Use it, to test for alignment bugs.
19605         random_r: omit unnecessary include
19606         * lib/random_r.c: Do not include limits.h.
19608         random, random_r: merge from glibc
19609         * lib/random.c, lib/random_r.c:
19610         Include libc-config.h if !_LIBC, not config.h unilaterally.
19611         * lib/random.c:
19612         Do not include stdint.h or time.h; not needed.
19613         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19614         (unsafe_state): Rename from generator.  All uses changed.
19615         Use C99-style initializers.
19616         (__random, __srandom, __initstate, __setstate): Rename from
19617         non-underscored version, but define it to non-underscored version
19618         on Gnulib.  Add a lock.
19619         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19620         Likewise.
19621         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19622         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19623         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19624         (__random_r): Use uint32 to fix glibc bug 17343.
19625         * modules/random, modules/random_r (Depends-on): Add libc-config.
19626         Depend on stdint only if $HAVE_RANDOM = 0.
19628 2018-06-19  Jim Meyering  <meyering@fb.com>
19630         README-release: also run any check-very-expensive tests
19631         * top/README-release: Adjust instructions so they run the
19632         check-very-expensive tests when there is such a target.
19634 2018-06-18  Bruno Haible  <bruno@clisp.org>
19636         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19637         * m4/pthread_rwlock_rdlock.m4: Add comment.
19638         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19639         are reader-preferring in glibc.
19640         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19641         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19643 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19645         crypto: use byteswap
19646         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19647         * lib/sm3.c: Include <byteswap.h>.
19648         (SWAP): Use its macros rather than reinventing the wheel.
19649         * modules/crypto/md4, modules/crypto/md5-buffer:
19650         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19651         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19652         (Depends-on): Add byteswap.
19654 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19656         gendocs.sh: fix support for legacy --texi2html
19657         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19658         to the default makeinfo invocation.
19659         Reported by Bruce Korb
19661 2018-06-17  Bruno Haible  <bruno@clisp.org>
19663         gettext po infrastructure: Update from current gettext git.
19664         Reported by Akim Demaille <akim@lrde.epita.fr>.
19665         * build-aux/po/Makefile.in.in: Update from current gettext git.
19666         * build-aux/po/remove-potcdate.sin: Likewise.
19667         * config/srclist.txt: Temporarily disable sync for these files.
19669 2018-06-17  Bruno Haible  <bruno@clisp.org>
19671         getloadavg: Return 0 on Windows without Cygwin.
19672         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19674 2018-06-17  Paul Smith  <psmith@gnu.org>
19676         getloadavg: Allow building on Windows without Cygwin
19677         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19678         * m4/getloadavg.m4: Check for unistd.h.
19680 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19682         Port crypto/af_alg to GCC 4.8.4
19683         Problem reported by Peter Simons in:
19684         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19685         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19687 2018-05-27  Colin Watson  <cjwatson@debian.org>
19689         bootstrap: document source fetching in --help
19690         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19692 2018-04-09  Colin Watson  <cjwatson@debian.org>
19694         bootstrap: allow non-submodule control of gnulib
19695         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19696         bootstrap.conf when fetching gnulib using "git clone" or via
19697         GNULIB_SRCDIR.
19699 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19701         crypto: omit stream ops Emacs doesn’t need
19702         * lib/md5.c (md5_stream):
19703         * lib/sha1.c (sha1_stream):
19704         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19705         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19706         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19707         defined.  Emacs needs this, as it does not use the stream
19708         operations and doesn’t need all the af_alg stuff we’ve recently
19709         added.  Perhaps a similar change is needed to the other crypto
19710         modules, but this patch changes only those needed for Emacs.
19711         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19712         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19713         New modules, used by Emacs.
19714         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19715         * modules/crypto/sha512: Rewrite to depend on the new modules.
19717 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19719         fts: avoid a memory leak edge case
19720         * lib/fts.c (fts_open): Set an appropriate fts_level
19721         so that an immediate fts_close() will free the allocation.
19722         * tests/test-fts.c (fts_dealloc): Add a test case which
19723         will trigger under valgrind or address sanitizer.
19724         Fixes https://bugs.gnu.org/31439
19726 2018-05-20  Bruno Haible  <bruno@clisp.org>
19728         wcwidth tests: Fix link error.
19729         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19730         $(LIBUNISTRING).
19732 2018-05-20  Bruno Haible  <bruno@clisp.org>
19734         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19735         * modules/regex (Files): Add m4/glibc21.m4.
19737 2018-05-20  Bruno Haible  <bruno@clisp.org>
19739         localcharset: Optimize.
19740         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19741         platforms where these don't matter. This reduces the table size,
19742         which in turn reduces the lookup time.
19744 2018-05-19  Bruno Haible  <bruno@clisp.org>
19746         localcharset: Map the locale encodings found in newer OSes.
19747         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19748         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19749         IRIX 6.5, Minix 3.3.
19750         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19752 2018-05-19  Bruno Haible  <bruno@clisp.org>
19754         localcharset: Move mapping tables into the code. Use a binary search.
19755         * lib/localcharset.h: Document the GNU canonical names for character
19756         encodings here.
19757         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19758         relocatable.h, configmake.h.
19759         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19760         macros.
19761         (charset_aliases): Remove variable.
19762         (get_charset_aliases): Remove function.
19763         (struct table_entry): New type.
19764         (alias_table, locale_table): New constants.
19765         (locale_charset): Use the alias_table or locale_table to get the
19766         canonicalized encoding name.
19767         * lib/config.charset: Remove file.
19768         * lib/ref-add.sin: Remove file.
19769         * lib/ref-del.sin: Remove file.
19770         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19771         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19772         * modules/localcharset (Notice): Remove.
19773         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19774         glibc21.m4.
19775         (Depends-on): Remove configmake.
19776         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19777         (Makefile.am): Simplify.
19778         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19780 2018-05-19  Bruno Haible  <bruno@clisp.org>
19782         localcharset: Add a manual test.
19783         * tests/test-localcharset.c: New file.
19784         * modules/localcharset-tests: New file.
19786 2018-05-19  Bruno Haible  <bruno@clisp.org>
19788         localcharset: Remove support for obsolete platforms.
19789         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19790         Mac OS X 10.2. Comment out dubious entry for Solaris.
19792 2018-05-19  Jim Meyering  <meyering@fb.com>
19794         gnupload: adjust comment
19795         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19796         more likely we'll remove the just-added code in a year or two.
19798 2018-05-19  Bruno Haible  <bruno@clisp.org>
19800         gnupload: Fix "gpg-agent is not available in this session" error.
19801         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19803 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19805         crypto/af_alg: fix --help
19806         * m4/af_alg.m4: Avoid spurious newline in --help output.
19808 2018-05-13  Bruno Haible  <bruno@clisp.org>
19810         nl_langinfo: Fix compilation error on Android.
19811         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19812         INT_CURR_SYMBOL, etc. only if these items are defined.
19814 2018-05-13  Bruno Haible  <bruno@clisp.org>
19816         truncate: Fix compilation error on Android.
19817         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19818         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19819         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19820         HAVE_TRUNCATE.
19821         * modules/truncate: Likewise.
19822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19823         not HAVE_TRUNCATE.
19824         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19825         HAVE_TRUNCATE.
19826         * doc/posix-functions/truncate.texi: Mention the issue.
19828 2018-05-13  Bruno Haible  <bruno@clisp.org>
19830         pthread: Fix compilation error on Android.
19831         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19832         recursive inclusion of this file.
19834 2018-05-13  Bruno Haible  <bruno@clisp.org>
19836         posix_spawn: Fix compilation error on Android.
19837         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19838         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19839         (posix_spawn_file_actions_t): Consider also the case
19840         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19842 2018-05-13  Bruno Haible  <bruno@clisp.org>
19844         tsearch: Move from K&R C to ANSI C.
19845         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19847 2018-05-13  Bruno Haible  <bruno@clisp.org>
19849         tsearch: Fix compilation error on Android.
19850         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19851         is 0.
19852         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19853         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19854         GNULIB_defined_tsearch is true.
19855         (twalk): Define only if GNULIB_defined_twalk is true.
19856         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19857         is 0.
19858         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19859         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19860         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19862 2018-05-13  Bruno Haible  <bruno@clisp.org>
19864         imaxdiv: Fix compilation error on Android.
19865         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19866         is not defined.
19867         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19868         HAVE_DECL_IMAXDIV, is 0.
19869         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19870         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19872 2018-05-13  Bruno Haible  <bruno@clisp.org>
19874         Support selective inclusion mechanism of recent mingw.org header files.
19875         Reported by Eli Zaretskii <eliz@gnu.org>.
19876         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19877         __need_ssize_t, or __need_time_t is defined, just include the system's
19878         <sys/types.h>.
19879         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19880         include the system's <locale.h>.
19882 2018-05-13  Bruno Haible  <bruno@clisp.org>
19884         Avoid compilation error due to 'mmap' on Android.
19885         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19886         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19887         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19888         Undefine on Android.
19890 2018-05-13  Bruno Haible  <bruno@clisp.org>
19892         Add cross-compilation guesses for Linux systems without glibc.
19893         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19895         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19896         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19897         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19898         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19899         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19900         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19901         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19902         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19903         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19904         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19905         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19906         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19907         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19908         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19909         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19910         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19912 2018-05-13  Bruno Haible  <bruno@clisp.org>
19914         getpagesize: Fix compilation error on Android.
19915         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19916         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19917         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19918         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19919         HAVE_GETPAGESIZE accordingly.
19920         * modules/getcwd (Files): Add m4/getpagesize.m4.
19922 2018-05-13  Bruno Haible  <bruno@clisp.org>
19924         tcgetsid: Fix compilation error on Android.
19925         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19926         AC_CHECK_FUNC.
19928 2018-05-13  Bruno Haible  <bruno@clisp.org>
19930         getpass: Fix configure test for Android.
19931         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19932         AC_CHECK_FUNC.
19934 2018-05-13  Bruno Haible  <bruno@clisp.org>
19936         ffs: Fix compilation error on Android.
19937         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19939 2018-05-13  Bruno Haible  <bruno@clisp.org>
19941         mkfifo: Fix compilation error on Android.
19942         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19943         AC_CHECK_FUNC.
19945 2018-05-13  Bruno Haible  <bruno@clisp.org>
19947         c-strtod: Fix configure test for Android.
19948         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19949         AC_CHECK_FUNC.
19951 2018-05-13  Bruno Haible  <bruno@clisp.org>
19953         random: Fix compilation error on Android.
19954         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19955         AC_CHECK_FUNC.
19957 2018-05-13  Bruno Haible  <bruno@clisp.org>
19959         grantpt: Fix compilation error on Android.
19960         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19961         AC_CHECK_FUNC.
19963 2018-05-13  Bruno Haible  <bruno@clisp.org>
19965         stdioext: Fix compilation errors with newer Android headers.
19966         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19967         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19968         fallbacks for Android.
19969         * lib/fpending.c: Update comments.
19970         * lib/fpurge.c: Likewise.
19971         * lib/freadable.h: Likewise.
19972         * lib/freadable.c: Likewise.
19973         * lib/freadahead.c: Likewise.
19974         * lib/freading.h: Likewise.
19975         * lib/freadptr.c: Likewise.
19976         * lib/fseterr.c: Likewise.
19977         * lib/fwritable.h: Likewise.
19978         * lib/fwritable.c: Likewise.
19979         * lib/fwriting.h: Likewise.
19980         * lib/fwriting.c: Likewise.
19982 2018-05-13  Bruno Haible  <bruno@clisp.org>
19984         doc: Add info about Android versions 2.0 to 8.1.
19985         * doc/**/*.texi: Add info about functions in all released versions of
19986         Bionic.
19988 2018-05-12  Bruno Haible  <bruno@clisp.org>
19990         fseeko: On mingw, don't use the hidden function _fseeki64.
19991         Reported by Eli Zaretskii <eliz@gnu.org>.
19992         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19993         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19995 2018-05-12  Bruno Haible  <bruno@clisp.org>
19997         glob: Choose 'dirent_type' in a way that works better on mingw.
19998         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19999         * lib/glob.c (dirent_type): Define as uint_fast32_t.
20001 2018-05-12  Bruno Haible  <bruno@clisp.org>
20003         execute, spawn-pipe: Avoid warning about redefining 'close'.
20004         Reported by Eli Zaretskii <eliz@gnu.org>.
20005         * lib/execute.c: Undefine 'close' before redefining it.
20006         * lib/spawn-pipe.c: Likewise.
20008 2018-05-12  Bruno Haible  <bruno@clisp.org>
20010         nanosleep: Avoid test failure on mingw when it has nanosleep.
20011         Reported by Eli Zaretskii <eliz@gnu.org>.
20012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
20013         If it does not exist, use a simpler test program that does not call
20014         alarm().
20016 2018-05-10  Bruno Haible  <bruno@clisp.org>
20018         lock, cond, thread, tls: Use a different symbol as libpthread witness.
20019         Reported by Devin Hussey <husseydevin@gmail.com>.
20020         Based on a patch by Paul Eggert.
20021         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
20022         as witness of libpthread.
20023         * lib/glthread/cond.h (pthread_in_use): Likewise.
20024         * lib/glthread/thread.h (pthread_in_use): Likewise.
20025         * lib/glthread/tls.h (pthread_in_use): Likewise.
20027 2018-05-10  Bruno Haible  <bruno@clisp.org>
20029         cond tests: Fix compilation error on Solaris.
20030         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
20031         macro.
20033 2018-05-10  Bruno Haible  <bruno@clisp.org>
20035         doc: Add partial info about Android 4.3.
20036         * doc/*-functions/*.texi: Add info about functions that were added
20037         to Bionic between Android 4.3 and Android 9.0.
20039 2018-05-10  Bruno Haible  <bruno@clisp.org>
20041         doc: Add info about Android 9.0.
20042         * doc/**/*.texi: Add info about functions and headers in Bionic from
20043         Android 9.0.
20045 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
20047         af_alg: fix my typo in afalg_buffer
20048         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
20049         (afalg_stream): Simplify and avoid the need for a runtime test
20050         at the end.
20052         af_alg: recover better from crypto failures
20053         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
20054         input stream is seekable, by repositioning the stream back to
20055         where it was, possibly by just calling sendfile with an offset
20056         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
20057         cases, which lets our callers try again with user-mode code.
20058         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
20059         instead of on fflush and lseek.
20061         af_alg: distiguish I/O errors better
20062         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
20063         not -EIO, if it’s OK for the caller to try again with user-mode code.
20064         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
20065         some other error number) if fflush fails, as the caller should not
20066         try again that case.
20068         af_alg: avoid gotos
20069         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
20070         gotos, as they were a source of unreliability and made the code a
20071         bit harder to follow.
20073         af_alg: don’t leak file descriptors into children
20074         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
20075         This code should be compiled only on recent GNU/Linux platforms
20076         so we shouldn’t have to also depend on the accept4 module.
20078         af_alg: coalesce socket creation
20079         * lib/af_alg.c (alg_socket): New function.
20080         (afalg_buffer, afalg_stream): Use it.  This avoids some
20081         code duplication and gotos.
20083         af_alg: fix file descriptor leak
20084         * lib/af_alg.c (afalg_stream): Close leak.
20086         af_alg: Pacify --enable-gcc-warnings on GCC 8
20087         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
20088         and checking to pacify gcc -Wjump-misses-init on GCC 8.
20090 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20092         af_alg: Pacify --enable-gcc-warnings
20093         Problem reported by Assaf Gordon in:
20094         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
20095         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
20096         gcc -Wjump-misses-init.
20097         * lib/sha512.c (shaxxx_stream): Now static.
20099 2018-05-06  Bruno Haible  <bruno@clisp.org>
20101         af_alg: Add ability to use Linux kernel crypto API on data in memory.
20102         * lib/af_alg.h (afalg_buffer): New declaration.
20103         * lib/af_alg.c (afalg_buffer): New function.
20105 2018-05-06  Bruno Haible  <bruno@clisp.org>
20107         af_alg: Avoid warnings.
20108         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
20109         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
20111 2018-05-06  Bruno Haible  <bruno@clisp.org>
20113         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
20114         * tests/bench-digest.h: New file.
20115         * tests/bench-md5.c: New file.
20116         * tests/bench-sha1.c: New file.
20117         * tests/bench-sha224.c: New file.
20118         * tests/bench-sha256.c: New file.
20119         * tests/bench-sha384.c: New file.
20120         * tests/bench-sha512.c: New file.
20121         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
20122         tests/bench-digest.h.
20123         (Depends-on): Add getrusage, gettimeofday.
20124         (Makefile.am): Add variables to build bench-md5.
20125         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
20126         tests/bench-digest.h.
20127         (Depends-on): Add getrusage, gettimeofday.
20128         (Makefile.am): Add variables to build bench-sha1.
20129         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
20130         tests/bench-sha256.c, tests/bench-digest.h.
20131         (Depends-on): Add getrusage, gettimeofday.
20132         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
20133         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
20134         tests/bench-sha512.c, tests/bench-digest.h.
20135         (Depends-on): Add getrusage, gettimeofday.
20136         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
20138 2018-05-06  Bruno Haible  <bruno@clisp.org>
20140         af_alg: Fix a resource leak.
20141         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
20142         New local variable 'result'.
20144 2018-05-06  Bruno Haible  <bruno@clisp.org>
20146         af_alg: Fix bug with streams that are not at position 0.
20147         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
20148         assume that the stream is positioned at position 0.
20149         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
20150         of the stream.
20151         * lib/md5.h (md5_stream): Likewise.
20152         * lib/sha1.h (sha1_stream): Likewise.
20153         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
20154         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
20155         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
20157         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
20158         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
20159         stream that is not positioned at the beginning.
20161 2018-05-06  Bruno Haible  <bruno@clisp.org>
20163         af_alg: Add configure option to enable/disable use of Linux crypto API.
20164         Suggested by Assaf Gordon <assafgordon@gmail.com>.
20165         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
20166         USE_LINUX_CRYPTO_API.
20167         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
20168         * lib/af_alg.c: Likewise.
20170 2018-05-06  Bruno Haible  <bruno@clisp.org>
20172         Followup to 'af_alg: New module.'.
20173         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
20174         * modules/crypto/sha1 (Depends-on): Likewise.
20175         * modules/crypto/sha256 (Depends-on): Likewise.
20176         * modules/crypto/sha512 (Depends-on): Likewise.
20178 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20180         crypto/{md5,sha1,sha256,sha512}: simplify
20181         * lib/md5.c (md5_stream):
20182         * lib/sha1.c (sha1_stream):
20183         * lib/sha256.c (shaxxx_stream):
20184         Simplify, partly by assuming C99.
20185         * lib/sha256.c (shaxxx_stream):
20186         New function, which implements both sha256 and sha224.
20187         Simplify, partly by assuming C99.
20188         (sha256_stream, sha224_stream):
20189         Use it to avoid code duplication, removing a FIXME.
20190         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
20191         Likewise.
20193         af_alg: Improve comments.
20194         * lib/af_alg.h: Use imperatives and tighten up wording.
20196 2018-05-05  Bruno Haible  <bruno@clisp.org>
20198         af_alg: Improve comments.
20199         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
20201 2018-05-05  Bruno Haible  <bruno@clisp.org>
20203         af_alg: New module.
20204         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
20205         * lib/af_alg.c: Include "af_alg.h" before the other header files.
20206         * lib/md5.c: Include "af_alg.h" unconditionally.
20207         (md5_stream): Invoke afalg_stream unconditionally.
20208         * lib/sha1.c: Include "af_alg.h" unconditionally.
20209         (sha1_stream): Invoke afalg_stream unconditionally.
20210         * lib/sha256.c: Include "af_alg.h" unconditionally.
20211         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
20212         * lib/sha512.c: Include "af_alg.h" unconditionally.
20213         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
20214         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
20215         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
20216         * modules/crypto/af_alg: New file.
20217         * modules/crypto/md5 (Files): Remove files that are now in the
20218         'crypto/af_alg' module.
20219         (Depends-on): Add crypto/af_alg.
20220         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20221         (Makefile.am): Don't mention af_alg.c here.
20222         * modules/crypto/sha1 (Files): Remove files that are now in the
20223         'crypto/af_alg' module.
20224         (Depends-on): Add crypto/af_alg.
20225         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20226         (Makefile.am): Don't mention af_alg.c here.
20227         * modules/crypto/sha256 (Files): Remove files that are now in the
20228         'crypto/af_alg' module.
20229         (Depends-on): Add crypto/af_alg.
20230         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20231         (Makefile.am): Don't mention af_alg.c here.
20232         * modules/crypto/sha512 (Files): Remove files that are now in the
20233         'crypto/af_alg' module.
20234         (Depends-on): Add crypto/af_alg.
20235         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20236         (Makefile.am): Don't mention af_alg.c here.
20238 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20240         crypto tests: pacify GCC
20241         * tests/test-digest.h (test_digest_on_files):
20242         Don’t assume digest size fits in int (!).
20244         af_alg: minor style improvements
20245         * lib/af_alg.c (afalg_stream): Prefer C99 style
20246         decl-after-statement, since we’re already assuming C99.  Clarify
20247         by strengthening the bind test and omit unnecessary assignment.
20249 2018-05-05  Bruno Haible  <bruno@clisp.org>
20251         af_alg: Fix bug on empty files.
20252         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
20253         stream is empty.
20255 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20257         sys-limits.h: new file for crypto and safe I/O
20258         * lib/af_alg.c: Include sys-limits.h.
20259         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
20260         (afalg_stream): Also reject negative sizes for sendfile; they
20261         should not happen and the code is a bit cleaner and faster this way.
20262         * lib/safe-read.c: Include sys-limits.h.
20263         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
20264         * lib/sys-limits.h: New file, with values and commentary derived
20265         from the old safe-read.c and from GNU Emacs sysdep.c.
20266         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
20267         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
20268         Add lib/sys-limits.h to Files section.
20270 2018-05-05  Bruno Haible  <bruno@clisp.org>
20272         af_alg: Improve function signature.
20273         * lib/af_alg.h (afalg_stream): Swap second and third argument.
20274         * lib/af_alg.c (afalg_stream): Likewise.
20275         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
20277 2018-05-05  Bruno Haible  <bruno@clisp.org>
20279         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
20280         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
20281         * modules/crypto/sha1 (Depends-on): Likewise.
20282         * modules/crypto/sha256 (Depends-on): Likewise.
20283         * modules/crypto/sha512 (Depends-on): Likewise.
20285 2018-05-05  Bruno Haible  <bruno@clisp.org>
20287         crypto/{md5,sha1,sha256,sha512}: Fix module description.
20288         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
20289         * modules/crypto/sha1 (Depends-on): Likewise.
20290         * modules/crypto/sha256 (Depends-on): Likewise.
20291         * modules/crypto/sha512 (Depends-on): Likewise.
20293 2018-05-05  Bruno Haible  <bruno@clisp.org>
20295         af_alg: Add documentation.
20296         * lib/af_alg.h: Add comments.
20298 2018-05-05  Bruno Haible  <bruno@clisp.org>
20300         sha512: Add tests.
20301         * tests/test-sha512.c: New file.
20302         * modules/crypto/sha512-tests: New file.
20304 2018-05-05  Bruno Haible  <bruno@clisp.org>
20306         sha256: Add tests.
20307         * tests/test-sha256.c: New file.
20308         * modules/crypto/sha256-tests: New file.
20310 2018-05-05  Bruno Haible  <bruno@clisp.org>
20312         sha1 tests: Add test for sha1_stream.
20313         * tests/test-sha1.c: Include test-digest.h.
20314         (main): Invoke test_digest_on_files on 'sha1_stream'.
20315         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
20317 2018-05-05  Bruno Haible  <bruno@clisp.org>
20319         md5 tests: Add test for md5_stream.
20320         * tests/test-digest.h: New file.
20321         * tests/test-md5.c: Include test-digest.h.
20322         (main): Invoke test_digest_on_files on 'md5_stream'.
20323         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
20325 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20327         md5sum: Use AF_ALG when available.
20328         * lib/md5.c: Include af_alg.h.
20329         (md5_stream): Use afalg_stream when available.
20330         * modules/crypto/md5 (Files): Add the af_alg files.
20331         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20332         (Makefile.am): Add af_alg.c.
20334 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20336         sha512sum: Use AF_ALG when available.
20337         * lib/sha512.c: Include af_alg.h.
20338         (sha512_stream, sha384_stream): Use afalg_stream when available.
20339         * modules/crypto/sha512 (Files): Add the af_alg files.
20340         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20341         (Makefile.am): Add af_alg.c.
20343 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20345         sha256sum: Use AF_ALG when available.
20346         * lib/sha256.c: Include af_alg.h.
20347         (sha256_stream, sha224_stream): Use afalg_stream when available.
20348         * modules/crypto/sha256 (Files): Add the af_alg files.
20349         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20350         (Makefile.am): Add af_alg.c.
20352 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20354         sha1sum: Use AF_ALG when available.
20355         * lib/af_alg.h: New file.
20356         * lib/af_alg.c: New file.
20357         * lib/sha1.c: Include af_alg.h.
20358         (sha1_stream): Use afalg_stream when available.
20359         * m4/linux-if-alg.m4: New file.
20360         * modules/crypto/sha1 (Files): Add the new files.
20361         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20362         (Makefile.am): Add af_alg.c.
20364 2018-05-05  Bruno Haible  <bruno@clisp.org>
20366         all: Replace more http URLs by https URLs.
20367         * lib/localename.c: Use https: URL.
20368         * lib/timespec.h: Likewise.
20370 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20372         maint: port more modules to GCC 8
20373         * lib/dirname.h (base_name):
20374         * lib/exclude.h (new_exclude):
20375         * lib/xstrndup.h (xstrndup):
20376         Add malloc attribute.
20377         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
20378         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
20379         This pacifies GCC 8.
20380         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20381         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
20383 2018-05-03  Bruno Haible  <bruno@clisp.org>
20385         Simplify code. Drop support for Borland C++ on Windows.
20386         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
20387         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
20388         'defined _WIN32'.
20389         * lib/canonicalize-lgpl.c: Likewise.
20390         * lib/classpath.c: Likewise.
20391         * lib/clean-temp.c: Likewise.
20392         * lib/csharpexec.c: Likewise.
20393         * lib/ctime.c: Likewise.
20394         * lib/dosname.h: Likewise.
20395         * lib/dup2.c: Likewise.
20396         * lib/errno.in.h: Likewise.
20397         * lib/error.c: Likewise.
20398         * lib/euidaccess.c: Likewise.
20399         * lib/execute.c: Likewise.
20400         * lib/fcntl.in.h: Likewise.
20401         * lib/fcntl.c: Likewise.
20402         * lib/filename.h: Likewise.
20403         * lib/findprog.c: Likewise.
20404         * lib/flock.c: Likewise.
20405         * lib/fopen.c: Likewise.
20406         * lib/freopen.c: Likewise.
20407         * lib/fstat.c: Likewise.
20408         * lib/fsync.c: Likewise.
20409         * lib/gc-gnulib.c: Likewise.
20410         * lib/get-rusage-data.c: Likewise.
20411         * lib/getaddrinfo.c: Likewise.
20412         * lib/getdelim.c: Likewise.
20413         * lib/getdtablesize.c: Likewise.
20414         * lib/gethostname.c: Likewise.
20415         * lib/getlogin.c: Likewise.
20416         * lib/getlogin_r.c: Likewise.
20417         * lib/getopt.c: Likewise.
20418         * lib/getpagesize.c: Likewise.
20419         * lib/getpass.c: Likewise.
20420         * lib/getrusage.c: Likewise.
20421         * lib/gettimeofday.c: Likewise.
20422         * lib/glob.c: Likewise.
20423         * lib/inttypes.in.h: Likewise.
20424         * lib/isapipe.c: Likewise.
20425         * lib/javaexec.c: Likewise.
20426         * lib/link.c: Likewise.
20427         * lib/localcharset.c: Likewise.
20428         * lib/localename.h: Likewise.
20429         * lib/localename.c: Likewise.
20430         * lib/localtime.c: Likewise.
20431         * lib/lseek.c: Likewise.
20432         * lib/mbsinit.c: Likewise.
20433         * lib/mkdir.c: Likewise.
20434         * lib/msvc-nothrow.h: Likewise.
20435         * lib/nanosleep.c: Likewise.
20436         * lib/nl_langinfo.c: Likewise.
20437         * lib/nonblocking.c: Likewise.
20438         * lib/nproc.c: Likewise.
20439         * lib/open.c: Likewise.
20440         * lib/openpty.c: Likewise.
20441         * lib/pathmax.h: Likewise.
20442         * lib/pipe-filter-aux.c: Likewise.
20443         * lib/pipe-filter-gi.c: Likewise.
20444         * lib/pipe-filter-ii.c: Likewise.
20445         * lib/pipe.c: Likewise.
20446         * lib/pipe2.c: Likewise.
20447         * lib/poll.c: Likewise.
20448         * lib/popen.c: Likewise.
20449         * lib/posix_openpt.c: Likewise.
20450         * lib/printf-parse.c: Likewise.
20451         * lib/progreloc.c: Likewise.
20452         * lib/putenv.c: Likewise.
20453         * lib/read.c: Likewise.
20454         * lib/relocatable.c: Likewise.
20455         * lib/rename.c: Likewise.
20456         * lib/same-inode.h: Likewise.
20457         * lib/secure_getenv.c: Likewise.
20458         * lib/select.c: Likewise.
20459         * lib/sethostname.c: Likewise.
20460         * lib/setlocale.c: Likewise.
20461         * lib/sigaction.c: Likewise.
20462         * lib/sigprocmask.c: Likewise.
20463         * lib/sleep.c: Likewise.
20464         * lib/spawn-pipe.h: Likewise.
20465         * lib/spawn-pipe.c: Likewise.
20466         * lib/spawni.c: Likewise.
20467         * lib/stat-time.h: Likewise.
20468         * lib/stat-w32.c: Likewise.
20469         * lib/stat.c: Likewise.
20470         * lib/stdio.in.h: Likewise.
20471         * lib/stdio-impl.h: Likewise.
20472         * lib/stdio-read.c: Likewise.
20473         * lib/stdio-write.c: Likewise.
20474         * lib/stdlib.in.h: Likewise.
20475         * lib/strerror_r.c: Likewise.
20476         * lib/strftime-fixes.c: Likewise.
20477         * lib/sys_stat.in.h: Likewise.
20478         * lib/sys_types.in.h: Likewise.
20479         * lib/sys_wait.in.h : Likewise.
20480         * lib/system-quote.h: Likewise.
20481         * lib/system-quote.c: Likewise.
20482         * lib/tmpdir.c: Likewise.
20483         * lib/tzset.c: Likewise.
20484         * lib/uname.c: Likewise.
20485         * lib/unistd.in.h: Likewise.
20486         * lib/utime.in.h: Likewise.
20487         * lib/utime.c: Likewise.
20488         * lib/utimecmp.c: Likewise.
20489         * lib/utimens.c: Likewise.
20490         * lib/vasnprintf.c: Likewise.
20491         * lib/vma-iter.h: Likewise.
20492         * lib/vma-iter.c: Likewise.
20493         * lib/wait-process.c: Likewise.
20494         * lib/wcsftime.c: Likewise.
20495         * lib/wctype.in.h: Likewise.
20496         * lib/write.c: Likewise.
20497         * tests/nap.h: Likewise.
20498         * tests/test-cloexec.c: Likewise.
20499         * tests/test-dup-safer.c: Likewise.
20500         * tests/test-dup2.c: Likewise.
20501         * tests/test-dup3.c: Likewise.
20502         * tests/test-fcntl.c: Likewise.
20503         * tests/test-get-rusage-data.c: Likewise.
20504         * tests/test-getaddrinfo.c: Likewise.
20505         * tests/test-getlogin.h: Likewise.
20506         * tests/test-isatty.c: Likewise.
20507         * tests/test-localename.c: Likewise.
20508         * tests/test-mbrtowc-w32.c: Likewise.
20509         * tests/test-nonblocking.c: Likewise.
20510         * tests/test-nonblocking-pipe-main.c: Likewise.
20511         * tests/test-nonblocking-socket-main.c: Likewise.
20512         * tests/test-nonblocking-socket.h: Likewise.
20513         * tests/test-pipe.c: Likewise.
20514         * tests/test-pipe2.c: Likewise.
20515         * tests/test-poll.c: Likewise.
20516         * tests/test-pthread_sigmask1.c: Likewise.
20517         * tests/test-select.h: Likewise.
20518         * tests/test-sethostname2.c: Likewise.
20519         * tests/test-sigprocmask.c: Likewise.
20520         * tests/test-spawn-pipe-child.c: Likewise.
20521         * tests/test-stat-time.c: Likewise.
20522         * tests/test-system-quote-main.c: Likewise.
20523         * tests/test-utimens-common.h: Likewise.
20524         * tests/test-wcrtomb-w32.c: Likewise.
20525         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20526         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20527         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20528         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20529         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20530         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20531         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20534         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20535         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20536         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20537         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20538         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20539         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20540         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20542 2018-05-02  Bruno Haible  <bruno@clisp.org>
20544         localename: Fix test failures on mingw.
20545         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20546         native Windows.
20547         (gl_locale_name_posix): Move code specific to native Windows here.
20548         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20549         Accept result without charset suffix, as it appears on mingw.
20551 2018-04-28  Paul Smith  <psmith@gnu.org>
20553         bootstrap: Avoid gnulib operations if not needed
20554         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20555         Set $gnulib_extra_files early so it can be overridden in .conf.
20556         Remove redundant --import flag from $gnulib_tool_options.
20557         Set $use_gnulib to false if no gnulib modules or files are needed.
20558         If $use_gnulib is false, don't do anything related to gnulib.
20559         A lot of this is just whitespace (indentation) changes.
20561 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20563         manywarnings: port to GCC 8.0
20564         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20565         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20566         fact that the GCC help message now mentions operands for
20567         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20568         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20569         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20570         and -Wunused-const-variable.
20571         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20572         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20573         -Wmissing-attributes, -Wmultistatement-macros,
20574         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20575         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20577 2018-04-24  Bruno Haible  <bruno@clisp.org>
20579         sys_socket: Make SO_REUSEPORT available across platforms.
20580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20581         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20582         * doc/posix-headers/sys_socket.texi: Mention the issue.
20583         * tests/test-poll.c (SO_REUSEPORT): Remove.
20584         * tests/test-select.h: Include <sys/socket.h>.
20585         (SO_REUSEPORT): Remove.
20586         * modules/select-tests (Depends-on): Add 'sys_socket'.
20588 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20590         localcharset: short-circuit the search for an alias on a Mac
20591         * lib/localcharset.c (get_charset_aliases): Add a tautological
20592         UTF-8 entry to speed up the search for this case.
20593         Most machines default to a UTF-8 locale nowadays, so begin the
20594         list of aliases with a dummy UTF-8 entry so it will be found
20595         immediately and a time-consuming search through the rest of
20596         the list is avoided.
20598 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20600         fts: add comment
20601         * lib/fts.c (fts_build): Explain why ==, not >.
20602         See remark by Bernhard Voelker in:
20603         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20605         fts: fix bug in find across filesystems
20606         This fixes a bug I introduced last summer.
20607         Problem reported by Kamil Dudka in:
20608         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20609         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20610         (leaf_optimization):
20611         New arg for file descriptor.  All callers changed.
20612         (fts_build): Check for whether inodes should be sorted
20613         before closing the directory.
20615 2018-04-07  Bruno Haible  <bruno@clisp.org>
20617         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20618         Reported by Genki Sky <sky@genki.is>.
20619         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20620         version 0.9.10 or newer.
20621         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20622         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20623         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20624         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20625         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20627 2018-04-07  Bruno Haible  <bruno@clisp.org>
20629         execute: Update comment.
20630         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20632 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20634         fts: treat CIFS like NFS
20635         Problem reported by Kamil Dudka in:
20636         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20637         * lib/fts.c (S_MAGIC_CIFS): New macro.
20638         (dirent_inode_sort_may_be_useful, leaf_optimization):
20639         Treat CIFS like NFS.
20641 2018-03-28  Bruno Haible  <bruno@clisp.org>
20643         c-stack: Fix possible build failure on some platforms.
20644         * lib/c-stack.c (die): Define whenever this function is referenced.
20646 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20648         time_rz: fix workaround for Mac OS X 10.6 infloop
20649         Problems reported by Charles A. Roelli (Bug#27736#117).
20650         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20651         Also, discard output, which clutters the 'configure' log.
20653 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20655         havelib: port to Solaris 10 /bin/sh
20656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20657         instead of '! test EXPR'.
20659 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20661         time_rz: work around Mac OS X 10.6 infloop
20662         * doc/posix-functions/localtime.texi:
20663         * doc/posix-functions/localtime_r.texi: Mention the bug.
20664         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20665         better to fix localtime and localtime_r instead, but that would be
20666         more work and is not needed to fix the Emacs problem.
20667         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20669 2018-03-24  Jim Meyering  <meyering@fb.com>
20671         test-version-etc.sh: don't use diff directly: use init.sh's compare
20672         We'd rather not sacrifice readable "diff -u" output even for
20673         "diff -c" output (not supported by busybox) or for even less
20674         readable ed-style "diff" output.  So use init.sh's compare function
20675         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20676         Remove "./" from invocation of test-version-etc, so we use path.
20677         And s/diff/compare/.
20678         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20679         to get init.sh.
20680         Prompted by Eric Blake's comments in
20681         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20683 2018-03-24  Bruno Haible  <bruno@clisp.org>
20685         javacomp-script, javacomp: Add support for Java 10.
20686         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20687         target-version 10.
20688         * lib/javaversion.h: Update comments.
20689         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20690         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20691         TARGET_VERSION_BOUND, target_version_index,
20692         corresponding_classfile_version): Accept source_version 10 and
20693         target_version 10.
20694         * lib/javacomp.h: Update comments accordingly.
20696 2018-03-24  Bruno Haible  <bruno@clisp.org>
20698         javacomp-script, javacomp: Update comments.
20699         * m4/javacomp.m4: Update comments regarding gcj.
20700         * lib/javacomp.h: Likewise.
20702 2018-03-24  Bruno Haible  <bruno@clisp.org>
20704         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20705         * lib/javaversion.h: Update comments.
20706         * lib/javacomp.h: Likewise.
20707         * lib/javacomp.c (default_target_version, source_version_index,
20708         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20709         "1.9".
20710         (TARGET_VERSION_BOUND): Bump to 9.
20711         (target_version_index, corresponding_classfile_version): Recognize "9"
20712         instead of "1.9".
20713         (get_source_version_for_javac): New function.
20714         (is_envjavac_nongcj_usable, is_javac_usable): Add
20715         source_version_for_javac argument.
20716         (compile_java_class): Determine and pass source_version_for_javac.
20717         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20718         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20719         appropriate.
20721 2018-03-23  Jim Meyering  <meyering@fb.com>
20723         test-version-etc.sh: port to diff without -c
20724         * tests/test-version-etc.sh: Don't use diff's -c option.
20725         This caused spurious test failure on Alpine Linux, which
20726         uses busybox's diff. Reported by Assaf Gordon in
20727         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20729 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20731         c-stack: port to recent GCC build
20732         Problem reported by The Fireplace (Bug#30913).
20733         * lib/c-stack.c (die): Define only if used.
20735 2018-03-20  Bruno Haible  <bruno@clisp.org>
20737         euidaccess: Port to native Windows.
20738         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20739         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20741 2018-03-19  Bruno Haible  <bruno@clisp.org>
20743         javacomp: Add support for Java 7, 8, 9.
20744         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20745         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20746         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20747         and target_version 1,7, 1.8, 1.9.
20748         * lib/javacomp.h: Update comments accordingly.
20750 2018-03-19  Bruno Haible  <bruno@clisp.org>
20752         javacomp-script: Add support for Java 9.
20753         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20754         target-version 1.9.
20756 2018-03-16  Bruno Haible  <bruno@clisp.org>
20758         glob: Don't compile replacements on recent glibc systems.
20759         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20760         REPLACE_GLOB is 0, include the system's <glob.h> and use
20761         _GL_CXXALIAS_SYS.
20762         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20763         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20764         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20765         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20766         Remove snippet/warn-on-use.
20767         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20768         (Makefile.am): Create glob.h always. Update list of substitutions in
20769         glob.h. Don't depend on $(WARN_ON_USE_H).
20771 2018-03-16  Bruno Haible  <bruno@clisp.org>
20773         glob: Fix link error on native Windows.
20774         * modules/glob (Depends-on): Add 'lstat'.
20776 2018-03-15  Bruno Haible  <bruno@clisp.org>
20778         glob: Fix compilation error in C++ mode.
20779         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20781 2018-03-15  Bruno Haible  <bruno@clisp.org>
20783         host-cpu-c-abi: Support for RISC-V CPU.
20784         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20785         riscv32 and riscv64 ABIs.
20786         References:
20787         https://github.com/riscv/riscv-toolchain-conventions
20788         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20789         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20791 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20793         fflush: be more paranoid about libio.h change
20794         Suggested by Eli Zaretskii in:
20795         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20796         * lib/fbufmode.c (fbufmode):
20797         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20798         (disable_seek_optimization, rpl_fflush):
20799         * lib/fpending.c (__fpending):
20800         * lib/fpurge.c (fpurge):
20801         * lib/freadable.c (freadable):
20802         * lib/freadahead.c (freadahead):
20803         * lib/freading.c (freading):
20804         * lib/freadptr.c (freadptr):
20805         * lib/freadseek.c (freadptrinc):
20806         * lib/fseeko.c (fseeko):
20807         * lib/fseterr.c (fseterr):
20808         * lib/fwritable.c (fwritable):
20809         * lib/fwriting.c (fwriting):
20810         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20812 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20814         maint: write-file-hooks -> before-save-hook
20815         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20816         it's time to use the recommended replacement.
20817         Problem reported by Glenn Morris in:
20818         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20819         * build-aux/announce-gen, build-aux/bootstrap:
20820         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20821         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20822         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20823         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20824         * build-aux/update-copyright, build-aux/useless-if-before-free:
20825         * build-aux/vc-list-files:
20826         Update hook usage for files where Gnulib is the canonical source.
20828 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20830         binary-io: pacify gcc -Wunused-parameter
20831         Problem reported by Reuben Thomas in:
20832         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20833         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20834         Use _GL_UNUSED where appropriate.
20836         fflush: adjust to glibc 2.28 libio.h removal
20837         Problem reported by Daniel P. Berrangé in:
20838         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20839         * lib/fbufmode.c (fbufmode):
20840         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20841         (disable_seek_optimization, rpl_fflush):
20842         * lib/fpending.c (__fpending):
20843         * lib/fpurge.c (fpurge):
20844         * lib/freadable.c (freadable):
20845         * lib/freadahead.c (freadahead):
20846         * lib/freading.c (freading):
20847         * lib/freadptr.c (freadptr):
20848         * lib/freadseek.c (freadptrinc):
20849         * lib/fseeko.c (fseeko):
20850         * lib/fseterr.c (fseterr):
20851         * lib/fwritable.c (fwritable):
20852         * lib/fwriting.c (fwriting):
20853         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20854         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20855         Define if not already defined.
20857 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20859         environ: fix link error on 32-bit Cygwin
20860         Problem reported for GNU Emacs by Ken Brown in:
20861         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20862         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20864 2018-02-24  Bruno Haible  <bruno@clisp.org>
20866         mbrtowc tests: Fix regression on glibc.
20867         Reported by Bernhard Voelker.
20868         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20870 2018-02-24  Bruno Haible  <bruno@clisp.org>
20872         striconveha, uniconv/*: Avoid test failures on musl libc.
20873         * tests/iconvsupport.c: New file.
20874         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20875         does not support the ISO-2022-JP-2 encoding.
20876         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20877         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20878         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20879         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20880         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20881         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20882         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20883         (Makefile.am): Link test-striconveha with iconvsupport.o.
20884         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20885         tests/iconvsupport.c.
20886         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20887         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20888         tests/iconvsupport.c.
20889         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20890         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20891         tests/iconvsupport.c.
20892         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20893         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20894         tests/iconvsupport.c.
20895         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20896         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20897         tests/iconvsupport.c.
20898         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20899         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20900         tests/iconvsupport.c.
20901         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20903 2018-02-24  Bruno Haible  <bruno@clisp.org>
20905         localename: Add support for musl libc.
20906         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20907         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20908         on Linux platforms which define NL_LOCALE_NAME.
20910 2018-02-24  Bruno Haible  <bruno@clisp.org>
20912         mbrtowc tests: Don't make assumptions about the charset the C locale.
20913         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20914         particular mapping in the C locale.
20916 2018-02-24  Bruno Haible  <bruno@clisp.org>
20918         ptsname_r: Don't expect that this function sets errno.
20919         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20920         from ptsname_r().
20921         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20923 2018-02-23  Bruno Haible  <bruno@clisp.org>
20925         xmalloca: pacify gcc -Wbad-function-cast
20926         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20928 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20930         nl_langinfo: pacify gcc -Wunused-function
20931         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20932         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20933         this case.  Without this change, I got a diagnostic when building
20934         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20936         same: pacify gcc -Wunused-variable
20937         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20938         Omit unused variable.
20940         malloca: pacify gcc -Wbad-function-cast
20941         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20942         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20943         To pacify GCC, I had to cast alloca’s result to some type other
20944         than void * before casting that to uintptr_t.
20946 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20948         utimecmp: new function utimecmpat
20949         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20950         Do not include utimens.h.
20951         (utimecmpat): New function, generalizing utimecmp.
20952         (utimecmp): Now a thin layer around utimecmpat.
20953         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20954         utimensat instead of on lstat and utimens.
20956         same: new function same_nameat
20957         * lib/same.c: Include fcntl.h.
20958         * lib/same.c (same_nameat): New function, generalizing same_name.
20959         (same_name): Now a thin layer around same_nameat.
20960         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20961         * modules/same (Depends-on): Depend on fstatat, openat.
20963 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20965         warnings: Add support for Objective C.
20966         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20967         macro.
20969 2018-02-17  Bruno Haible  <bruno@clisp.org>
20971         lock: Fix test-once1 crash on FreeBSD11.
20972         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20973         'pthread_create', not 'pthread_cancel'.
20975 2018-02-17  Bruno Haible  <bruno@clisp.org>
20977         lock: Add test of gl_once.
20978         * tests/test-once.c: New file.
20979         * modules/lock-tests (Files): Add it.
20980         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20982 2018-02-17  Bruno Haible  <bruno@clisp.org>
20984         thread: Fix compilation error on IRIX.
20985         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20986         needed; include it outside the C++ extern "C" {} block.
20987         * doc/posix-headers/pthread.texi: Mention the problem with
20988         pthread_atfork on IRIX.
20990 2018-02-04  Bruno Haible  <bruno@clisp.org>
20992         nl_langinfo: Override the system's nl_langinfo() when needed.
20993         Reported by Jim Meyering.
20994         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20995         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20997 2018-02-04  Bruno Haible  <bruno@clisp.org>
20999         signal-h, monetary, strings: Fix build failure in some cases.
21000         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21001         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
21002         as delimiter in sed command, not '|'.
21003         * modules/monetary (Makefile.am): Likewise.
21004         * modules/strings (Makefile.am): Likewise.
21006 2018-02-03  Jim Meyering  <meyering@fb.com>
21008         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
21009         * top/maint.mk (sc_file_system): Don't complain about
21010         "/proc/filesystems".
21012 2018-02-03  Bruno Haible  <bruno@clisp.org>
21014         stdlib: Fix compilation error on OpenIndiana.
21015         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
21016         <sys/time.h>.
21017         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21018         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
21020 2018-02-03  Bruno Haible  <bruno@clisp.org>
21022         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
21023         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
21024         and use $EGREP instead of 'grep -E'.
21025         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
21026         'grep -E'.
21028 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
21030         malloca: Add a compile-time verification.
21031         * lib/malloca.c (small_t): Verify that it is wide enough.
21032         * modules/malloca (Depends-on): Add verify.
21034 2018-02-02  Bruno Haible  <bruno@clisp.org>
21036         malloca: Add an argument check.
21037         Suggested by Paul Eggert.
21038         * lib/malloca.c (freea): Check against an invalid argument.
21040 2018-02-02  Bruno Haible  <bruno@clisp.org>
21042         localename: Add support for OpenIndiana.
21043         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
21044         Solaris 11 variants with uselocale() but without getlocalename_l().
21046 2018-02-02  Bruno Haible  <bruno@clisp.org>
21048         malloca, xmalloca: Make multithread-safe.
21049         Reported by Florian Weimer <fweimer@redhat.com>.
21050         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
21051         * lib/malloca.h (malloca): In the stack allocation case, return a
21052         pointer that is a multiple of 2 * sa_alignment_max.
21053         (sa_increment): Remove enum item.
21054         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
21055         a pointer that is a multiple of 2 * sa_alignment_max.
21056         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
21057         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
21058         HASH_TABLE_SIZE, mmalloca_results): Remove.
21059         (small_t): New type.
21060         (mmalloca, free): Rewritten.
21061         * lib/malloca.valgrind: Remove file.
21062         * modules/malloca (Files): Remove it.
21063         (Depends-on): Remove verify.
21065 2018-01-31  Bruno Haible  <bruno@clisp.org>
21067         environ: Fix link error on 64-bit Cygwin.
21068         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
21069         __declspec(dllimport) attribute.
21070         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
21072 2018-01-30  Bruno Haible  <bruno@clisp.org>
21074         get-rusage-data: Add support for Minix 3.
21075         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
21077 2018-01-30  Bruno Haible  <bruno@clisp.org>
21079         vma-iter: Add support for Minix 3.
21080         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
21081         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
21083 2018-01-27  Bruno Haible  <bruno@clisp.org>
21085         Fix malfunction of socket functions on HP-UX in 64-bit mode.
21086         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
21087         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
21088         _HPUX_ALT_XOPEN_SOCKET_API.
21089         * modules/accept (Depends-on): Add 'extensions'.
21090         * modules/getpeername (Depends-on): Likewise.
21091         * modules/getsockname (Depends-on): Likewise.
21092         * modules/getsockopt (Depends-on): Likewise.
21093         * modules/recvfrom (Depends-on): Likewise.
21094         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
21095         * doc/posix-functions/getpeername.texi: Likewise.
21096         * doc/posix-functions/getsockname.texi: Likewise.
21097         * doc/posix-functions/getsockopt.texi: Likewise.
21098         * doc/posix-functions/recvfrom.texi: Likewise.
21100 2018-01-27  Bruno Haible  <bruno@clisp.org>
21102         getsockname tests: More tests.
21103         * tests/test-getsockname.c (open_server_socket): New function, mostly
21104         copied from test-poll.c.
21105         (main): Check that getsockname fills in addr.
21106         * modules/getsockname-tests (Depends-on): Add the necessary
21107         dependencies.
21108         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
21110 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21112         manywarnings: fix maintainer comment
21113         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
21114         it does not mistakenly think that ‘-1)’ is an option.
21116 2018-01-26  Bruno Haible  <bruno@clisp.org>
21118         langinfo: Fix last commit.
21119         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21120         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
21122 2018-01-24  Bruno Haible  <bruno@clisp.org>
21124         langinfo, nl_langinfo: Add support for alternative month names.
21125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
21126         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
21127         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
21128         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
21129         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
21130         * doc/posix-functions/nl_langinfo.texi: Likewise.
21132 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21134         Merge strftime.c changes from glibc
21135         This incorporates:
21136         2017-11-14 [BZ #10871] Implement alternative month names
21137         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
21138         2017-06-20 Use locale_t, not __locale_t, throughout glibc
21139         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
21140         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
21141         Use locale_t, not __locale_t.
21142         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
21143         (__strftime_internal): Add support for alternate months.
21145 2018-01-23  Bruno Haible  <bruno@clisp.org>
21147         doc: Mention another prerequisite for using Gnulib.
21148         Reported at <https://stackoverflow.com/questions/48378214/>.
21149         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
21150         AC_CONFIG_HEADERS.
21152 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
21154         build: GuixSD doesn't have /bin/bash
21155         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
21157 2018-01-21  Bruno Haible  <bruno@clisp.org>
21159         Avoid test failures on Microsoft Windows Subsystem for Linux.
21160         * tests/test-fcntl.c (main): Allow a different errno.
21161         * tests/test-rename.h (test_rename): Likewise.
21162         * tests/test-renameat.c (main): Likewise.
21163         * tests/test-renameat2.c (main): Likewise.
21165 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21167         filenamecat: make base a suffix of result
21168         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
21169         (mfile_name_concat): Always make BASE a suffix of the result, as
21170         cp expects this.  To implement this, separate with '.' instead of
21171         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
21172         * tests/test-filenamecat.c (main): Adjust tests to match
21173         current behavior.  Check that BASE_IN_RESULT points to
21174         a copy of BASE and is a suffix of the resultk, and that DIR
21175         is a prefix of the result that is no longer than the prefix
21176         indicated by BASE_IN_RESULT.
21178 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
21180         update-copyright: Handle use of ©
21181         * build-aux/update-copyright ($circle_c_re): Update regex to
21182         handle use of © in headers.
21184 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
21186         Fix -Wundef warning in user-included header lib/cdefs.h.
21187         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
21189 2018-01-04  Bruno Haible  <bruno@clisp.org>
21191         pthread_sigmask: Avoid compilation error on mingw.
21192         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21193         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
21194         macro.
21196 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21198         test-framework-sh: ‘ps -ef’, not ‘ps ef’
21199         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
21200         Suggested by Bob Proulx (Bug#29968).
21201         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
21203 2018-01-02  Eric Blake  <eblake@redhat.com>
21205         stat-time: silence -Wunused-parameter regression
21206         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21207         Prefer attribute over cast-to-void.
21208         (stat_time_normalize): Mark st as potentially unused.
21210 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21212         test-framework-sh: avoid netstat
21213         Problem reported by Kristýna Streitová (Bug#29947).
21214         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
21215         deprecated on SuSE and it's not that important anyway.
21217 2018-01-01  Jim Meyering  <meyering@fb.com>
21219         update-copyright: add code to handle more special cases
21220         After running "make update-copyright" this year, five files
21221         required additional manual changes.  Automate those adjustments
21222         for next year.
21223         * Makefile (_year_and_prev): Define.
21224         (update-copyright): Add perl commands to induce this year's post-
21225         update-copyright adjustments.
21227 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21229         version-etc: new year
21230         * build-aux/gendocs.sh (version):
21231         * doc/gendocs_template:
21232         * doc/gendocs_template_min:
21233         * doc/gnulib.texi:
21234         * lib/version-etc.c (COPYRIGHT_YEAR):
21235         Update copyright dates by hand in templates and the like.
21237         maint: fix 'make update-copyright'
21238         * Makefile (update-copyright): Adjust to 2016-11-23 change
21239         to config/srclist-update, which changed the format of srclist.txt.
21241 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21243         chdir-safer: remove this module
21244         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
21245         * NEWS: Document removal.
21246         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
21247         * modules/chdir-safer: Remove these files.
21249 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
21251         Add cross-compilation results for GNU/Hurd.
21252         * m4/calloc.m4: Add GNU/Hurd guess.
21253         * m4/cbrtl.m4: Likewise.
21254         * m4/ceil.m4: Likewise.
21255         * m4/ceilf.m4: Likewise.
21256         * m4/ceill.m4: Likewise.
21257         * m4/chown.m4: Likewise.
21258         * m4/duplocale.m4: Likewise.
21259         * m4/exp2l.m4: Likewise.
21260         * m4/expm1.m4: Likewise.
21261         * m4/fchdir.m4: Likewise.
21262         * m4/floor.m4: Likewise.
21263         * m4/floorf.m4: Likewise.
21264         * m4/fmod.m4: Likewise.
21265         * m4/fmodf.m4: Likewise.
21266         * m4/fmodl.m4: Likewise.
21267         * m4/getcwd.m4: Likewise.
21268         * m4/getgroups.m4: Likewise.
21269         * m4/gettimeofday.m4: Likewise.
21270         * m4/hypot.m4: Likewise.
21271         * m4/hypotf.m4: Likewise.
21272         * m4/hypotl.m4: Likewise.
21273         * m4/link-follow.m4: Likewise.
21274         * m4/link.m4: Likewise.
21275         * m4/linkat.m4: Likewise.
21276         * m4/log.m4: Likewise.
21277         * m4/log10.m4: Likewise.
21278         * m4/log10f.m4: Likewise.
21279         * m4/log1p.m4: Likewise.
21280         * m4/log1pf.m4: Likewise.
21281         * m4/log1pl.m4: Likewise.
21282         * m4/log2.m4: Likewise.
21283         * m4/log2f.m4: Likewise.
21284         * m4/logf.m4: Likewise.
21285         * m4/lstat.m4: Likewise.
21286         * m4/malloc.m4: Likewise.
21287         * m4/mbrlen.m4: Likewise.
21288         * m4/mbrtowc.m4: Likewise.
21289         * m4/mkdir.m4: Likewise.
21290         * m4/mkfifo.m4: Likewise.
21291         * m4/mknod.m4: Likewise.
21292         * m4/mkstemp.m4: Likewise.
21293         * m4/modf.m4: Likewise.
21294         * m4/modff.m4: Likewise.
21295         * m4/modfl.m4: Likewise.
21296         * m4/printf.m4: Likewise.
21297         * m4/pselect.m4: Likewise.
21298         * m4/ptsname.m4: Likewise.
21299         * m4/putenv.m4: Likewise.
21300         * m4/readlink.m4: Likewise.
21301         * m4/realloc.m4: Likewise.
21302         * m4/remainder.m4: Likewise.
21303         * m4/remainderf.m4: Likewise.
21304         * m4/remainderl.m4: Likewise.
21305         * m4/rmdir.m4: Likewise.
21306         * m4/round.m4: Likewise.
21307         * m4/roundf.m4: Likewise.
21308         * m4/roundl.m4: Likewise.
21309         * m4/select.m4: Likewise.
21310         * m4/setenv.m4: Likewise.
21311         * m4/signbit.m4: Likewise.
21312         * m4/sleep.m4: Likewise.
21313         * m4/stat.m4: Likewise.
21314         * m4/strerror.m4: Likewise.
21315         * m4/strtok_r.m4: Likewise.
21316         * m4/symlink.m4: Likewise.
21317         * m4/symlinkat.m4: Likewise.
21318         * m4/trunc.m4: Likewise.
21319         * m4/truncf.m4: Likewise.
21320         * m4/truncl.m4: Likewise.
21321         * m4/tzset.m4: Likewise.
21322         * m4/ungetc.m4: Likewise.
21323         * m4/usleep.m4: Likewise.
21324         * m4/wcwidth.m4: Likewise.
21326 2017-12-28  Bruno Haible  <bruno@clisp.org>
21328         gnulib-tool: Make --conditional-dependencies work better.
21329         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
21330         * gnulib-tool (Options): Don't reject the combination of
21331         --conditional-dependencies with --with-tests.
21332         (func_emit_autoconf_snippets): Add argument referenceable_modules.
21333         Don't reference $modules.
21334         (func_import, func_create_testdir): Pass it.
21336 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21338         regex: use re_malloc etc. consistently
21339         Problem and original patch reported by Arnold Robbins in:
21340         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
21341         * lib/regcomp.c (re_comp):
21342         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
21343         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
21345 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
21346             Paul Eggert  <eggert@cs.ucla.edu>
21348         glob: Silence warning about void pointer arithmetic.
21349         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21350         arithmetic.
21352 2017-12-15  Bruno Haible  <bruno@clisp.org>
21354         spawn-pipe: Silence a clang warning.
21355         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21356         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
21357         in this file.
21359 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21361         explicit_bzero: port to macOS + Clang 9.0.0
21362         Problem reported by Marcus Johnson (Bug#29658).
21363         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
21364         Don’t use asm.
21366 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21368         doc: Improve explanation of supporting relocatable libraries.
21369         * doc/relocatable-maint.texi (Supporting Relocation): Explain
21370         properly how to build the relocatable module for
21371         libraries. (Method and example code from Bruno Haible.)
21373 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21375         doc: Use better texinfo tags in a few cases.
21376         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
21377         instead of @samp in a few places.
21379 2017-12-11  Bruno Haible  <bruno@clisp.org>
21381         unistr/base: Update comment.
21382         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
21384 2017-12-10  Pádraig Brady  <P@draigBrady.com>
21386         test-faccessat.c: unlink temp file to avoid subsequent test failure
21387         * tests/test-faccessat.c: Remove the file to avoid failure
21388         to open the file on subsequent runs due to being created
21389         with no permissions.
21391 2017-12-10  Bruno Haible  <bruno@clisp.org>
21393         doc: New sect. "Modifying the build rules of a Gnulib import directory".
21394         * doc/gnulib-tool.texi (Modified build rules): New node.
21396 2017-12-10  Bruno Haible  <bruno@clisp.org>
21398         doc: Tweak wording.
21399         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
21400         "binaries".
21402 2017-12-05  Sam Steingold  <sds@gnu.org>
21403             Bruno Haible  <bruno@clisp.org>
21405         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
21406         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
21407         AC_EGREP_CPP pattern.
21409 2017-12-03  Bruno Haible  <bruno@clisp.org>
21411         all: Replace more http URLs by https URLs.
21412         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
21413         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
21414         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
21415         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
21417 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21419         Port better to CentOS 5
21420         Problems reported by Tom G. Christensen in:
21421         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21422         * doc/glibc-functions/strverscmp.texi (strverscmp):
21423         Document strverscmp bug with glibc 2.9 and earlier.
21424         * doc/posix-functions/tzset.texi (tzset):
21425         Document that TZ with angle brackets is POSIX-2001 and later.
21426         * tests/test-nstrftime.c: Include unistd.h.
21427         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21428         (TZ): Use it to skip tests with angle brackets in TZ,
21429         for older systems.
21431         stat: add missing module dependencies
21432         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21433         Add stat-time.
21435 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21437         stat: fix compilation failure on macOS Sierra
21438         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21439         https://savannah.gnu.org/bugs/?52546
21440         * lib/stat.c: Add missing include of stat-time.h.
21442 2017-11-28  Jim Meyering  <meyering@fb.com>
21444         test-faccessat.c: correct BASE definition to avoid parallel test failure
21445         * tests/test-faccessat.c (BASE): Define using this file's name, not
21446         that of test-lstat.c.  Using the latter caused this test to fail
21447         sometimes when run concurrently with test-lstat.
21449 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21451         unicase: fix VPATH build
21452         * modules/unicase/special-casing (Makefile.am): Ensure that the
21453         base directory is created when generating
21454         unicase/special-casing.h.
21456 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21458         libunistring: update to Unicode 9.0.0
21459         * lib/gen-uni-tables.c (fill_properties): Recognize
21460         Sentence_Terminal and Prepended_Concatenation_Mark.
21461         (is_property_default_ignorable_code_point): Exclude U+08E2.
21462         (fill_arabicshaping): Allow missing whitespace when parsing;
21463         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21464         (output_blocks): Increase the element size of the level1 table to
21465         accommodate more blocks.
21466         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21467         Update each class according to the standard.
21468         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21469         E_Base_GAZ characters.
21470         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21471         Glue_After_Zwj, and E_Base_GAZ characters.
21472         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21473         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21474         enum value.
21475         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21476         value.
21477         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21478         LBP_ZWJ, LBP_EB, and LBP_EM.
21479         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21480         enum value.
21481         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21482         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21483         declaration.
21484         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21485         (uniwbrk_table): Implement WB14.
21486         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21487         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21488         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21489         uc-is-grapheme-break.
21490         * modules/unigbrk/uc-grapheme-breaks: New module.
21491         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21492         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21493         enum value.
21494         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21495         * lib/unigbrk/u-grapheme-breaks.h: New file.
21496         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21497         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21498         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21499         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21500         29.
21501         * tests/unigbrk/test-uc-gbrk-prop.c
21502         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21503         GBP_GAZ, and GBP_EBG.
21504         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21505         * tests/unigbrk/test-uc-is-grapheme-break.c
21506         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21507         GBP_GAZ, and GBP_EBG.
21508         (main): Skip unsupported rules involving 3 or more characters,
21509         namely GB10, GB12, and GB13.
21510         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21511         * all generated files under lib/uni* and tests/uni*: Regenerate.
21512         * all the affected modules: Bump version.
21514 2017-11-26  Bruno Haible  <bruno@clisp.org>
21516         strfmon_l: Fix compilation error with glibc 2.5.
21517         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21518         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21519         * lib/monetary.in.h: Include also <locale.h>.
21521 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21523         posixtm: remove PDS_LEADING_YEAR
21524         This changes the API slightly, in a hopefully-innocuous way.
21525         Without this change the code had undefined behavior when a
21526         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21527         Problem reported by Pádraig Brady in:
21528         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21529         * NEWS: Mention this.
21530         * lib/posixtm.c (posix_time_parse): Treat the absence of
21531         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21532         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21533         present, but define it as zero, for compatibility with existing
21534         source code).  All other PDS_* values moved up.
21535         * tests/test-posixtm.c (LY): New macro.
21536         (T): Use it.  Do not expect a particular numeric encoding
21537         for PDS_CENTURY etc.
21539 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21541         stat: work around Solaris bug with tv_nsec < 0
21542         * doc/posix-functions/fstat.texi (fstat):
21543         * doc/posix-functions/fstatat.texi (fstatat):
21544         * doc/posix-functions/lstat.texi (lstat):
21545         * doc/posix-functions/stat.texi (stat):
21546         Mention Solaris 11 bug.
21547         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21548         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21549         * lib/lstat.c (rpl_lstat):
21550         * lib/stat.c (rpl_stat):
21551         Normalize resulting timestamps.
21552         * lib/fstatat.c (normal_fstatat): New function.
21553         (rpl_fstatat): Use it.
21554         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21555         (stat_time_normalize): New function.
21556         * m4/fstat.m4 (gl_FUNC_FSTAT):
21557         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21558         * m4/lstat.m4 (gl_FUNC_LSTAT):
21559         * m4/stat.m4 (gl_FUNC_STAT):
21560         Replace on Solaris.
21561         * modules/fstat (Depends-on):
21562         * modules/fstatat (Depends-on):
21563         Add stat-time.
21564         * modules/stat-time (Depends-on): Add errno, intprops.
21566 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21568         regex: merge from glibc
21569         * lib/regcomp.c (init_word_char): Add comments.
21571 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21573         regex: merge from glibc
21574         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21575         * lib/regex_internal.h (internal_function): Remove.
21576         All uses removed.
21578 2017-11-20  Bruno Haible  <bruno@clisp.org>
21580         crypto/gc-sm3: Fix buffer overrun.
21581         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21582         Reported by Coverity.
21584 2017-11-12  Jim Meyering  <meyering@fb.com>
21586         maint: shorten https://lists.gnu.org/archive/html/... links
21587         Each /archive/html/ part can be replace with /r/.
21588         Run this to induce the change:
21589         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21590         * ChangeLog: Perform that substitution.
21591         * Makefile: Likewise.
21592         * STATUS-libposix: Likewise.
21593         * build-aux/bootstrap: Likewise.
21594         * doc/maintain.texi: Likewise.
21595         * gnulib-tool: Likewise.
21596         * lib/allocator.h: Likewise.
21597         * lib/argp-ba.c: Likewise.
21598         * lib/argp-pv.c: Likewise.
21599         * lib/canon-host.c: Likewise.
21600         * lib/canonicalize-lgpl.c: Likewise.
21601         * lib/float.in.h: Likewise.
21602         * lib/fstat.c: Likewise.
21603         * lib/getdelim.c: Likewise.
21604         * lib/getprogname.c: Likewise.
21605         * lib/glthread/thread.h: Likewise.
21606         * lib/intprops.h: Likewise.
21607         * lib/mbsrtowcs-state.c: Likewise.
21608         * lib/safe-read.c: Likewise.
21609         * lib/signal.in.h: Likewise.
21610         * lib/stat.c: Likewise.
21611         * lib/stdbool.in.h: Likewise.
21612         * lib/stdio-impl.h: Likewise.
21613         * lib/stdio.in.h: Likewise.
21614         * lib/sysexits.in.h: Likewise.
21615         * lib/timespec.h: Likewise.
21616         * lib/wcsrtombs-state.c: Likewise.
21617         * m4/alloca.m4: Likewise.
21618         * m4/extern-inline.m4: Likewise.
21619         * m4/fstatat.m4: Likewise.
21620         * m4/gnulib-common.m4: Likewise.
21621         * m4/lib-ignore.m4: Likewise.
21622         * m4/printf.m4: Likewise.
21623         * m4/regex.m4: Likewise.
21624         * m4/stat-size.m4: Likewise.
21625         * m4/std-gnu11.m4: Likewise.
21626         * m4/stdbool.m4: Likewise.
21627         * m4/sys_types_h.m4: Likewise.
21628         * m4/threadlib.m4: Likewise.
21629         * m4/vararrays.m4: Likewise.
21630         * pygnulib/GLImport.py: Likewise.
21631         * tests/test-exp.h: Likewise.
21632         * tests/test-exp2.h: Likewise.
21633         * tests/test-expm1.h: Likewise.
21634         * tests/test-fflush2.c: Likewise.
21635         * tests/test-getopt_long.h: Likewise.
21636         * tests/test-intprops.c: Likewise.
21637         * tests/test-log.h: Likewise.
21638         * tests/test-log10.h: Likewise.
21639         * tests/test-log1p.h: Likewise.
21640         * tests/test-log2.h: Likewise.
21641         * tests/test-printf-posix.h: Likewise.
21642         * tests/test-regex.c: Likewise.
21643         * tests/test-snprintf-posix.h: Likewise.
21644         * tests/test-sprintf-posix.h: Likewise.
21645         * tests/test-stdalign.c: Likewise.
21646         * tests/test-stdbool.c: Likewise.
21647         * tests/test-vasnprintf-posix.c: Likewise.
21648         * tests/test-vasprintf-posix.c: Likewise.
21649         * top/maint.mk: Likewise.
21651 2017-11-12  Bruno Haible  <bruno@clisp.org>
21653         faccessat: Make the last change more robust.
21654         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21655         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21657 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21659         faccessat: port to macOS (Bug#29231)
21660         macOS faccessat has the same bug that lstat does: if the file
21661         name ends in '/' it ignores the trailing slash.
21662         Problem reported for Emacs by Vincent Zhang.
21663         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21664         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21665         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21666         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21667         Include "unistd.h" after defining it.
21668         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21669         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21670         Handle in the usual way.
21671         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21672         lstat dereferences symlinks, since faccessat is likely to
21673         have the same problem.
21674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21675         * modules/faccessat (Depends-on): Add fstatat.
21676         Depend if REPLACE_FACCESSAT is 1, too.
21677         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21678         * modules/faccessat-tests (Depends-on): Add symlink.
21679         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21680         * tests/test-faccessat.c (main): Test for the bug.
21682 2017-11-11  Bruno Haible  <bruno@clisp.org>
21684         getprogname: Fix compilation error on IRIX.
21685         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21686         'namesize'.
21688 2017-11-11  Bruno Haible  <bruno@clisp.org>
21690         year2038: Tweak last patch.
21691         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21693 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21695         year2038: be more insistent about 64-bit time_t
21696         Applications requiring access to arbitrary files should not be
21697         built with 32-bit time_t on hosts that have 64-bit timestamps,
21698         as this can lead to real trouble at runtime.
21699         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21700         Check on all systems, not just MinGW.  Use a heuristic involving
21701         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21702         output a failure or just a warning, to make it more likely that
21703         builders will select 64-bit time_t.
21705 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21707         havelib: fix typo in previous change
21708         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21710         Don’t use AC_EGREP_CPP if affected by CFLAGS
21711         * m4/float_h.m4 (gl_FLOAT_H):
21712         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21713         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21714         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21715         * m4/year2038.m4 (gl_YEAR2038):
21716         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21717         likely to be affected by the choice of CFLAGS, since CFLAGS are
21718         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21719         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21721         fstatat: pacify GCC on unusual platform
21722         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21723         Omit, as it’s unused in this case.
21725 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21727         timespec: prefer ‘assume’ to ‘assure’
21728         This avoids some runtime tests.  The rest of the module makes
21729         similar assumptions and there is little point to testing here.
21730         * lib/timespec.h: Include verify.h instead of assure.h.
21731         (timespec_cmp): Use ‘assume’, not ‘assure’.
21732         Also, remove an unnecessary cast to ‘int’, as lots of other
21733         code in this module now causes -Wconversion to complain, and
21734         this is a problem with -Wconversion not with the code.
21736         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21738         Port recent gnulib-tool change to Dash
21739         * gnulib-tool (func_create_testdir): Don't assume that the shell
21740         retokenizes after expanding "$@" inside the call to
21741         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21743 2017-10-27  Jim Meyering  <meyering@fb.com>
21745         timespec.h: use "assure" to avoid a spurious warning
21746         * lib/timespec.h: Include "assure.h" and use it to help
21747         gcc7's -Wstrict-overflow avoid a false positive warning
21748         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21749         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21750         * modules/timespec (Depends-on): Add assure.
21752 2017-10-29  Bruno Haible  <bruno@clisp.org>
21754         Avoid several test failures with traditional locales on Haiku.
21755         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21756         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21757         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21759         LOCALE_ZH_CN=none.
21761 2017-10-29  Bruno Haible  <bruno@clisp.org>
21763         strerror_r-posix: Fix behaviour and test failure on Haiku.
21764         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21765         are positive. Work around return value 0 instead of ERANGE on Haiku.
21766         For unknown error numbers, use a format string consistent with perror().
21767         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21768         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21769         are positive.
21771 2017-10-29  Bruno Haible  <bruno@clisp.org>
21773         get-rusage-data: Avoid crash on Haiku.
21774         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21776 2017-10-29  Bruno Haible  <bruno@clisp.org>
21778         get-rusage-as: Avoid crash on Haiku.
21779         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21781 2017-10-29  Bruno Haible  <bruno@clisp.org>
21783         ilogbl: Ensure replacement on Haiku.
21784         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21785         REPLACE_ILOGBL if ilogbl does not work.
21786         (gl_FUNC_ILOGBL_WORKS): New macro.
21787         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21789         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21790         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21791         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21793 2017-10-29  Bruno Haible  <bruno@clisp.org>
21795         expl: Ensure replacement on Haiku.
21796         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21797         zero.
21798         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21800 2017-10-29  Bruno Haible  <bruno@clisp.org>
21802         math: Fix test failure on Haiku.
21803         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21804         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21805         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21806         * doc/posix-headers/math.texi: Mention the Haiku problem.
21808 2017-10-29  Bruno Haible  <bruno@clisp.org>
21810         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21811         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21812         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21814 2017-10-29  Bruno Haible  <bruno@clisp.org>
21816         crypto/*: Verify that the header file is self-contained.
21817         * tests/test-gc-*.c: Include the module's header file immediately after
21818         <config.h>.
21819         * tests/test-hmac-*.c: Likewise.
21820         * tests/test-arcfour.c: Likewise.
21821         * tests/test-arctwo.c: Likewise.
21822         * tests/test-des.c: Likewise.
21823         * tests/test-md2.c: Likewise.
21824         * tests/test-md4.c: Likewise.
21825         * tests/test-md5.c: Likewise.
21826         * tests/test-rijndael.c: Likewise.
21827         * tests/test-sha1.c: Likewise.
21828         * tests/test-sm3.c: Likewise.
21830 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21831             Bruno Haible  <bruno@clisp.org>
21833         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21834         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21836 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21838         New module: crypto/gc-sm3
21839         * lib/gc.h: Declare SM3-related stuffs.
21840         * lib/gc-gnulib.c: Support sm3 in internal functions.
21841         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21842         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21843         * modules/crypto/gc-sm3: Define gc-sm3 module.
21844         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21845         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21846         * MODULES.html.sh: List gc-sm3 module.
21848 2017-10-29  Bruno Haible  <bruno@clisp.org>
21850         random, random_r: Mention different prototypes on Haiku.
21851         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21852         * doc/glibc-functions/random_r.texi: Likewise.
21853         * doc/glibc-functions/initstate_r.texi: Likewise.
21854         * doc/glibc-functions/setstate_r.texi: Likewise.
21856 2017-10-28  Bruno Haible  <bruno@clisp.org>
21858         posix_spawn: Avoid spurious message in configure output.
21859         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21860         'cmp' command.
21862 2017-10-28  Bruno Haible  <bruno@clisp.org>
21864         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21865         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21866         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21868 2017-10-28  Bruno Haible  <bruno@clisp.org>
21870         ioctl: Override non-POSIX declaration on Haiku.
21871         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21872         * lib/sys_ioctl.in.h: Add comment about Haiku.
21873         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21874         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21876 2017-10-28  Bruno Haible  <bruno@clisp.org>
21878         crypto/sm3: Add overview documentation to the .h file.
21879         * lib/sm3.h: Add comments.
21881 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21883         New module: crypto/sm3
21884         This new module can be used to compute SM3 message digest of files or
21885         memory blocks according to the specification GM/T 004-2012
21886         Cryptographic Hash Algorithm SM3, published by State Cryptography
21887         Administration, China.
21888         The official SM3 cryptographic hash algorithm specification is
21889         available at
21890         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21891         * lib/sm3.h: Declare the APIs of sm3 module.
21892         * lib/sm3.c: Implement SM3 hash algorithm.
21893         * m4/sm3.m4: m4 file for sm3 module.
21894         * modules/crypto/sm3: Define sm3 module.
21895         * tests/test-sm3.c: Implement SM3 test case.
21896         * modules/crypto/sm3-tests: Define sm3 test module.
21897         * MODULES.html.sh: List sm3 module.
21899 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21901         gc-libgcrypt: fix undefined enum type in switch statement
21902         Resolve the following build failure:
21903         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21904         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21905         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21906              case 0:
21907              ^~~~
21908         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21909         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21911 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21913         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21914         Resolve the following build failure:
21915         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21916         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21917         in signedness [-Werror=pointer-sign]
21918             digest = gcry_md_read (ctx->gch, 0);
21919                    ^
21920         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21922 2017-10-26  Bruno Haible  <bruno@clisp.org>
21924         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21925         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21926         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21928 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21930         glob: fix another heap buffer overflow
21931         Problem reported by Tim Rühsen in:
21932         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21933         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21935 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21937         quotearg: pacify compiler re unsigned
21938         * lib/quotearg.c (quotearg_n_options):
21939         Rewrite to avoid diagnostic from overly-picky compiler.
21940         Problem reported by Sami Kerola in:
21941         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21943         glob: fix heap buffer overflow
21944         * lib/glob.c (glob): Fix off-by-one error introduced into
21945         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21946         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21947         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21948         Fix suggested by Bruno Haible.
21950 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21952         glob: pacify fuzzer for mempcpy
21953         Problem reported by Tim Rühsen in:
21954         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21955         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21957 2017-10-12  Bruno Haible  <bruno@clisp.org>
21959         doc: Fix syntax error (regression from 2017-10-03).
21960         * doc/posix-functions/strncpy.texi: Fix syntax error.
21962 2017-10-12  Bruno Haible  <bruno@clisp.org>
21964         doc: Update for Solaris 11.3.
21965         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21966         mention Solaris 11.3.
21967         * m4/log2.m4: Fix comments.
21968         * m4/log2f.m4: Likewise.
21969         * m4/printf.m4: Update comments.
21970         * m4/rename.m4: Likewise.
21971         * m4/strncat.m4: Likewise.
21973         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21975 2017-10-10  Bruno Haible  <bruno@clisp.org>
21977         doc: Improve doc about ioctl.
21978         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21979         prototype.
21981 2017-10-09  Bruno Haible  <bruno@clisp.org>
21983         wcwidth: Don't use obsolete syntax of 'test'.
21984         Reported by Eric Blake.
21985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21986         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21988 2017-10-09  Bruno Haible  <bruno@clisp.org>
21990         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21991         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21992         and Daniel P. Berrange <berrange@redhat.com>.
21993         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21994         on glibc systems. The getopt-pfx-core.h file declares exactly what
21995         unistd.h needs, nothing more.
21997 2017-10-08  Bruno Haible  <bruno@clisp.org>
21999         vma-iter: Improve support for FreeBSD.
22000         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
22001         vma_iterate.
22002         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
22004 2017-10-08  Bruno Haible  <bruno@clisp.org>
22006         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
22007         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
22009 2017-10-07  KO Myung-Hun  <komh@chollian.net>
22011         test-framework-sh: Fix 'invalid path dir' error.
22012         On OS/2, a path separator is ';' not ':'. And ':' is used as a
22013         separator between a drive letter and directory parts.
22014         As a result, an absolute path such as x:/path/to/dir on OS/2 is
22015         treated as an invalid path dir.
22016         * tests/init.sh (PATH_SEPARATOR): Set at startup.
22017         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
22018         instead of hard coded ':'.
22020 2017-10-07  Bruno Haible  <bruno@clisp.org>
22022         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
22023         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
22024         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
22025         (rof_open): On Linux, do multiple read() calls and make sure
22026         MIN_LEFTOVER bytes are left when read() returns.
22028 2017-10-07  Bruno Haible  <bruno@clisp.org>
22030         vma-iter: Improve support for GNU/Hurd.
22031         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
22032         API, not the /proc file system.
22034 2017-10-07  Bruno Haible  <bruno@clisp.org>
22036         test-framework-sh: Don't require bash on Windows and OS/2.
22037         Reported by KO Myung-Hun.
22038         * tests/test-init.sh: Use 'shopt' only when running in bash.
22040 2017-10-06  KO Myung-Hun  <komh@chollian.net>
22042         wcwidth: check a macro version of wcwidth () as well
22043         * lib/wchar.in.h: Revert commit from 2016-01-14.
22044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
22046 2017-10-06  Bruno Haible  <bruno@clisp.org>
22048         getopt-posix: Clarify copyright header.
22049         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
22050         * lib/getopt-pfx-core.h: Likewise.
22051         * lib/getopt-pfx-ext.h: Likewise.
22052         * lib/getopt-cdefs.in.h: Likewise.
22054 2017-10-03  Bruno Haible  <bruno@clisp.org>
22056         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
22057         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
22058         gl_HOST_CPU_C_ABI.
22060 2017-10-03  Bruno Haible  <bruno@clisp.org>
22062         doc: warn about misuse of strncpy and wcsncpy.
22063         * doc/posix-functions/strcpy.texi: Describe requirements on prior
22064         memory allocation.
22065         * doc/posix-functions/wcscpy.texi: Likewise.
22066         * doc/posix-functions/strncpy.texi: Describe what this function is not
22067         useful for.
22068         * doc/posix-functions/wcsncpy.texi: Likewise.
22070 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22072         fsuage: fix typo in previous change
22073         * lib/fsusage.c: Remove stray include of full-read.h.
22074         Problem reported by Sam Steingold for macOS (Bug#28669).
22076 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22078         fsusage: remove SVR2 support
22079         SVR2 was obsolete by 1986 and is no longer supported by anybody,
22080         and its code was getting in the way of use of this module by
22081         Emacs, which has its own ‘read’ function anyway.
22082         * lib/fsusage.c: Do not include sys/filsys.h.
22083         (get_fs_usage): Remove SVR2-specific code.
22084         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
22085         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
22086         * modules/fsusage (Depends-on): Do not depend on full-read.
22088         Simplify autoupdate of licenses
22089         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
22090         place.
22092 2017-10-01  Bruno Haible  <bruno@clisp.org>
22094         vma-iter: Add support for GNU/Hurd.
22095         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
22096         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22098 2017-09-30  Bruno Haible  <bruno@clisp.org>
22100         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
22101         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
22102         fail when module 'largefile' is in use.
22103         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
22104         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
22105         Don't test HAVE_SYS_PROCFS_H.
22107 2017-09-30  Bruno Haible  <bruno@clisp.org>
22109         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
22110         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
22111         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
22112         * modules/havelib (Depends-on): Add host-cpu-c-abi.
22114 2017-09-30  Bruno Haible  <bruno@clisp.org>
22116         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
22117         * lib/uniname/uniname.c (unicode_name_character): Add braces around
22118         scope of local variables.
22120 2017-09-28  Bruno Haible  <bruno@clisp.org>
22122         string: code style
22123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
22124         substitutable variables.
22125         * modules/string (Makefile.am): Likewise.
22127 2017-09-26  Bruno Haible  <bruno@clisp.org>
22129         uniname/uniname-tests: Tighten code.
22130         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
22131         local variables into one.
22133 2017-09-26  Bruno Haible  <bruno@clisp.org>
22135         vma-iter: Improvements for Linux and BSD platforms.
22136         - Add support for DragonFly BSD.
22137         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
22138         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
22139         Read the entire file into memory in a single system call.
22140         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
22141         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
22143 2017-09-26  Bruno Haible  <bruno@clisp.org>
22145         vma-iter: Provide the protection flags on FreeBSD.
22146         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
22147         skip three fields between the addresses and the protection flags.
22149 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22151         glob: remove bogus extern decl
22152         * lib/glob.c (__glob_pattern_type): Remove now-spurious
22153         extern declaration.  Problem reported by Adhemerval Zanella in:
22154         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
22156 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22158         uniname/uniname-tests: integer overflow fix
22159         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
22160         Check for integer overflow.
22162         duplocale-tests: fix unlikely crash
22163         * tests/test-duplocale.c (get_locale_dependent_values):
22164         Don’t crash with absurdly long month names.
22166         maint: fix overflow checking in nap.h
22167         * modules/chown-tests:
22168         * modules/fchownat-tests, modules/fdutimensat-tests:
22169         * modules/futimens-tests, modules/lchown-tests:
22170         * modules/stat-time-tests, modules/utime-tests:
22171         * modules/utimens-tests, modules/utimensat-tests:
22172         Depend on intprops.
22173         * tests/nap.h: Include intprops.h.
22174         (diff_timespec): Handle overflow properly.
22176         sys_types: update URL
22177         * m4/sys_types_h.m4: Use https: URL.
22179         parse-datetime: fix dependency
22180         * modules/parse-datetime (Depends-on): Depend
22181         on nstrftime, not strftime.
22183         parse-datetime, posixtm: avoid uninit access
22184         * lib/parse-datetime.y (parse_datetime2):
22185         * lib/posixtm.c (posixtime):
22186         Do not access uninitialized storage, even though the resulting
22187         value is never used.
22189 2017-09-25  Bruno Haible  <bruno@clisp.org>
22191         vma-iter: Improvements for BSD platforms.
22192         - Add support for GNU/kFreeBSD.
22193         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
22194         - Speed up on OpenBSD.
22195         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
22196         (vma_iterate_bsd): New function.
22197         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
22198         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
22199         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22200         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
22202 2017-09-23  Bruno Haible  <bruno@clisp.org>
22204         strfmon_l: New module.
22205         * modules/strfmon_l: New file.
22206         * lib/strfmon_l.c: New file.
22207         * m4/strfmon_l.m4: New file.
22208         * doc/posix-functions/strfmon_l.texi: Mention the new module.
22209         * modules/strfmon_l-tests: New file.
22210         * tests/test-strfmon_l.c: New file.
22212         monetary: New module.
22213         * modules/monetary: New file.
22214         * lib/monetary.in.h: New file.
22215         * m4/monetary_h.m4: New file.
22216         * doc/posix-headers/monetary.texi: Mention the new module.
22217         * modules/monetary-tests: New file.
22218         * tests/test-monetary.c: New file.
22219         * modules/monetary-c++-tests: New file.
22220         * tests/test-monetary-c++.cc: New file.
22221         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
22223 2017-09-23  Bruno Haible  <bruno@clisp.org>
22225         duplocale tests: Fix test crash on Linux/x86.
22226         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
22227         locale from the current thread before freeing it.
22229 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
22231         mktime: port to OpenVMS
22232         Problem reported by John E. Malmberg in:
22233         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
22234         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
22236 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22238         manywarnings: port to GCC on 64-bit MS-Windows
22239         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
22240         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
22241         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
22243 2017-09-13  Bruno Haible  <bruno@clisp.org>
22245         all: Replace many more http URLs by https URLs. Update stale URLs.
22246         * users.txt: Remove mention of 'newts'.
22247         * lib/localename.c: Update comment about LANG_SOTHO.
22249 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22251         all: Replace many http URLs by https URLs.
22253 2017-09-12  Bruno Haible  <bruno@clisp.org>
22255         doc: Prefer https URLs where possible.
22256         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
22257         * doc/ld-output-def.texi: Remove unavailable URL.
22259 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22261         maintainer-makefile: FTP -> HTTPS
22262         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
22263         of FTP, which is planned to be decommissioned on 2017-11-01.
22265 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22267         libc-config: Fix __GNUC_PREREQ macro.
22268         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
22269         __GNUC_MINOR.
22271 2017-09-09  Bruno Haible  <bruno@clisp.org>
22273         gnulib-tool: Simplify commit from 2015-08-20.
22274         * gnulib-tool (func_add_or_update): Remove local variable
22275         is_binary_file.
22277 2017-09-08  Bruno Haible  <bruno@clisp.org>
22279         stddef: Avoid conflict with system-defined max_align_t.
22280         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
22281         Reported by Werner Lemberg <wl@gnu.org> in
22282         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
22283         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
22284         (max_align_t): Define as a macro.
22285         (GNULIB_defined_max_align_t): New macro. Guards against multiple
22286         definitions of rpl_max_align_t in different copies of gnulib-generated
22287         <stddef.h>.
22289 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22291         libc-config: port to MSVC
22292         Problems reported by Gisle Vanem in:
22293         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
22294         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
22295         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
22296         * m4/__inline.m4: New file.
22297         * modules/libc-config (Files): Add it.
22298         (Depends-on): Use it.
22300         glob: Use enum for __glob_pattern_type result
22301         From a patch proposed by Adhemerval Zanella in:
22302         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
22303         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
22304         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
22305         * lib/glob_internal.h (__glob_pattern_type):
22306         * lib/glob.c (glob):
22307         * lib/glob_pattern_p.c (__glob_pattern_p):
22308         Use them.
22310         glob: fix for use in glibc
22311         Problem reported by Adhemerval Zanella in:
22312         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
22313         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
22314         Do not redefine if _LIBC.
22316 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22318         glob: fix bugs with long login names
22319         Problem reported by Adhemerval Zanella in:
22320         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
22321         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
22322         (glob): Use the same scratch buffer for both getlogin_r and
22323         getpwnam_r.  Don’t require preallocation of the login name.  This
22324         simplifies storage allocation, and corrects the handling of
22325         long login names.
22327 2017-09-02  Bruno Haible  <bruno@clisp.org>
22329         dirent: Update doc.
22330         * doc/posix-headers/dirent.texi: More concrete list of platforms.
22332 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22334         glob: fix getpwnam_r errno typo
22335         * lib/glob.c (glob): Fix longstanding misuse of errno after
22336         getpwnam_r, which returns an error number rather than setting
22337         errno.
22339         glob: fix typo in recent change
22340         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
22341         Fix recently-introduced typo.
22343 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22345         glob: don't save and restore errno unnecessarily
22346         * lib/glob.c (glob): Don't save and restore errno
22347         merely because we have getpwnam_r.
22349         glob: don't assume getpwnam_r
22350         * lib/glob.c (glob): Port recent patches to platforms
22351         lacking getpwnam_r.
22353         scratch_buffer: don’t use private glibc API
22354         Suggested by Florian Weimer in:
22355         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
22356         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
22357         * lib/scratch_buffer_grow.c: Rename to
22358         lib/malloc/scratch_buffer_grow.c.
22359         * lib/scratch_buffer_grow_preserve.c: Rename to
22360         lib/malloc/scratch_buffer_grow_preserve.c.
22361         * lib/scratch_buffer_set_array_size.c: Rename to
22362         lib/malloc/scratch_buffer_set_array_size.c.
22363         * lib/scratch_buffer.h: New file.
22364         * modules/scratch_buffer (Files, Makefile.am):
22365         Adjust to source-file renaming.
22367 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22369         glob: use scratch_buffer instead of extend_alloca
22370         Much of the lib/glob.c part of this patch comes from a glibc patch
22371         proposed by Adhemerval Zanella in:
22372         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
22373         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
22374         included via glob.h, does this for us now.
22375         (__set_errno): Remove, as libc-config does this for us now.
22376         Include <scratch_buffer.h>.
22377         (GETPW_R_SIZE_MAX): Remove.
22378         (glob): Use struct scratch_buffer instead of extend_alloca.
22379         * lib/glob.in.h: Include libc-config.h rather than
22380         including <sys/cdefs.h> conditionally.
22381         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
22382         (__glibc_unlikely, __restrict, weak_alias):
22383         Remove, as libc-config does this for us now.
22384         * m4/glob.m4 (gl_PREREQ_GLOB):
22385         Remove sys/cdefs.h tests; no longer needed.
22386         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
22387         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
22389         scratch_buffer: new module
22390         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
22391         * lib/scratch_buffer_grow_preserve.c:
22392         * lib/scratch_buffer_set_array_size.c:
22393         New files, copied from glibc with very minor changes that can be
22394         copied back.
22395         * modules/scratch_buffer: New file.
22397         libc-config: new module
22398         * MODULES.html.sh: Add libc-config.
22399         * lib/cdefs.h: New file, copied from the GNU C Library with very
22400         minor changes that can be copied back.
22401         * lib/libc-config.h, modules/libc-config: New files.
22403 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22405         glob: match dangling symlinks
22406         This fixes a bug I inadvertently introduced to Gnulib when I
22407         merged glibc glob back into gnulib on 2007-10-16.  This fix is
22408         inspired by a patch proposed for glibc by Adhemerval Zanella in:
22409         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
22410         * doc/posix-functions/glob.texi: Update list of affected platforms.
22411         * lib/glob.c (__lstat64): New macro.
22412         (is_dir): New function.
22413         (glob, glob_in_dir): Match symlinks even if they are dangling.
22414         (link_stat, link_exists_p): Remove.  All uses removed.
22415         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
22416         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
22417         * modules/glob-tests (Depends-on): Add symlink.
22418         * tests/test-glob.c: Include errno.h, unistd.h.
22419         (BASE): New macro.
22420         (main): Test dangling symlinks, if symlinks are supported.
22422         glob, backupfile: inode 0 is a valid inode number
22423         * doc/posix-functions/readdir.texi (readdir):
22424         * doc/posix-headers/dirent.texi (dirent.h):
22425         Document more readdir portability issues.
22426         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22427         (numbered_backup): Don’t treat inode 0 any differently from
22428         other inode values.
22429         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22430         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22431         All uses removed.
22432         * modules/glob (Depends-on): Remove d-ino.
22434         glob: simplify symlink detection
22435         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22436         uint8_t, as C99 does not require uint8_t.
22437         (struct readdir_result): Use it.  Do not define skip_entry unless
22438         it is needed; this saves a byte on platforms lacking d_ino.
22439         (readdir_result_type, readdir_result_skip_entry):
22440         New functions, replacing ...
22441         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22442         ... these functions, which were removed.  This makes the callers
22443         easier to read.  All callers changed.
22444         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22446 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22448         fts-tests: tag as a longrunning-test so not included by default
22449         * modules/fts-tests: This test takes about 20s on current systems,
22450         and uses about 285M of space on ext4.
22452 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22454         renameat2: fix compilation on alpine linux
22455         * m4/renameat.m4: Check for <linux/fs.h> presence.
22456         * lib/renameat2.h: Only include <linux/fs.h> if present.
22457         Reported by Assaf Gordon on Alpine Linux.
22459 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22461         glob: try to port recent changes to MS-Windows
22462         Problem reported by Bruno Haible in:
22463         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22464         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22465         * lib/glob.in.h (__glob_pattern_p): ... to here.
22467 2017-08-24  Eric Blake  <eblake@redhat.com>
22469         warnings: fix compilation with old autoconf
22470         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22471         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22472         AC_DEFUN.
22473         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22474         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22476 2017-08-24  Bruno Haible  <bruno@clisp.org>
22478         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22479         * modules/glob (Depends-on): Add c99.
22481 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22483         glob: fix typo that broke platforms lacking d_ino
22484         This typo also hurt performance on GNU/Linux and similar hosts.
22485         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22486         in previous change.
22488 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22490         glob: merge from glibc with Zanella glob changes
22491         Merge glob from glibc, with changes for glob proposed
22492         by Adhemerval Zanella in the thread starting here:
22493         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22494         plus some fixes for this merge.
22495         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22496         New files, ported from glibc.
22497         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22498         with __restrict.
22499         (__size_t): Remove.  All uses replaced by size_t.
22500         (size_t): Define by defining __need_size_t and including <stddef.h>.
22501         This should work even in non-glibc platforms, where any name
22502         pollution is OK.
22503         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22504         (struct stat64): Don’t worry about __GLOB_GNULIB.
22505         (glob, globfree, glob_pattern_p): Remove macros for
22506         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22507         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22508         but set errno.
22509         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22510         removed since the glibc behavior works on null pointers.
22511         Do not include stdio.h; old SunOS is irrelevant now.
22512         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22513         Include glob_internal.h.
22514         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22515         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22516         worked only coincidentally.
22517         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22518         Remove macros; now done in glob.in.h.
22519         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22520         (glob): Properly initialize glob structure with
22521         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22522         Remove old code using SHELL since Bash no longer
22523         uses this.
22524         (glob, prefix_array): Separate MS code better.
22525         (glob, glob_in_dir): Use C99 decls before statements when glibc
22526         does.
22527         (glob_in_dir): Remove old Amiga and VMS code.
22528         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22529         separate files.
22530         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22531         (__glibc_unlikely):
22532         Move here from glob.c.
22533         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22534         (weak_alias): New macro.
22535         (__size_t): Remove.  All uses replaced by size_t.
22536         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22537         * modules/glob (Files): Add +lib/glob_internal.h,
22538         lib/glob_pattern_p.c, lib/globfree.c.
22539         (Depends-on): Remove snippet/arg-nonnull.
22541 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22543         glob: port to clang's Undefined Sanitizer
22544         Problem reported by Tim Rühsen in:
22545         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22546         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22547         (glob_in_dir): Do not rely on undefined behavior in accessing
22548         struct members beyond their bounds.  Use a flexible array member
22549         instead.
22551 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22553         vc-list-files: port to Solaris 10
22554         * build-aux/vc-list-files: Don't assume test -e works.
22556 2017-08-21  Karl Berry  <karl@freefriends.org>
22558         * doc/posix-functions/srandom.texi (srandom): typo }.
22560 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22562         git-version-gen: port to Solaris 10
22563         Problem reported by Dagobert Michelsen in:
22564         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22565         * build-aux/git-version-gen (v_from_git):
22566         Use expr instead of shell substitution.
22568 2017-08-19  Bruno Haible  <bruno@clisp.org>
22570         host-cpu-c-abi: Improve detection of MIPS ABI.
22571         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22572         _MIPS_SIM.
22574 2017-08-17  Bruno Haible  <bruno@clisp.org>
22576         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22577         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22579 2017-08-17  Bruno Haible  <bruno@clisp.org>
22581         float: Fix LDBL_MIN value on FreeBSD/x86.
22582         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22584 2017-08-17  Bruno Haible  <bruno@clisp.org>
22586         random: Fix test compilation failure on Cygwin 1.5.25.
22587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22588         HAVE_DECL_SETSTATE.
22589         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22590         declared.
22591         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22592         HAVE_DECL_SETSTATE.
22593         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22594         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22595         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22596         * doc/posix-functions/random.texi: Likewise.
22597         * doc/posix-functions/setstate.texi: Likewise.
22598         * doc/posix-functions/srandom.texi: Likewise.
22600 2017-08-16  Bruno Haible  <bruno@clisp.org>
22602         stdnoreturn: Fix test compilation failure on Cygwin.
22603         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22604         <stdnoreturn.h> replacement.
22605         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22606         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22608 2017-08-16  Bruno Haible  <bruno@clisp.org>
22610         thread: Fix conflict with pthread_sigmask module.
22611         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22612         it's defined as a macro.
22613         * modules/thread (Depends-on): Add pthread_sigmask.
22615 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22617         rename: port better to NetBSD
22618         * doc/posix-functions/rename.texi (rename): NetBSD 7
22619         does not have the link-count bug.
22620         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22621         broken merely because rename ("a", "b") removes "a" when the two
22622         names are hard links to the same file.
22624 2017-08-16  Bruno Haible  <bruno@clisp.org>
22626         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22627         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22628         the target file names with '$(srcdir)/'.
22629         * modules/unicase/locale-language (Makefile.am): Likewise.
22630         * modules/unicase/special-casing (Makefile.am): Likewise.
22631         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22632         * modules/unictype/category-byname (Makefile.am): Likewise.
22633         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22634         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22635         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22636         * modules/unictype/property-byname (Makefile.am): Likewise.
22637         * modules/unictype/scripts (Makefile.am): Likewise.
22638         * modules/uninorm/composition (Makefile.am): Likewise.
22640 2017-08-16  Bruno Haible  <bruno@clisp.org>
22642         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22643         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22644         value for OpenBSD.
22646 2017-08-16  Bruno Haible  <bruno@clisp.org>
22648         rename, renameat: Update doc regarding NetBSD.
22649         * doc/posix-functions/rename.texi: Clarify that when using
22650         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22651         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22652         version.
22654 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22656         renameat2: port better to macOS
22657         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22659         futimens: don’t assume struct timespec layout
22660         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22661         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22662         * tests/test-fdutimensat.c (main):
22663         * tests/test-futimens.h (test_futimens):
22664         * tests/test-lutimens.h (test_lutimens):
22665         * tests/test-utimens.h (test_utimens):
22666         * tests/test-utimensat.c (main):
22667         Don’t assume that struct timespec is a two-member structure in
22668         tv_sec, tv_nsec order.  Although this is true on all platforms we
22669         know about, POSIX does not guarantee it.
22671         rename: document+test NetBSD rename
22672         Test failure reported by Bruno Haible in:
22673         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22674         This is an area where NetBSD is better-behaved than POSIX,
22675         so allow the NetBSD behavior in tests.
22676         * doc/posix-functions/rename.texi:
22677         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22678         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22680 2017-08-15  Bruno Haible  <bruno@clisp.org>
22682         renameat: Ensure declaration in <stdio.h> on NetBSD.
22683         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22684         * doc/posix-functions/renameat.texi: Mention this problem.
22686 2017-08-15  Bruno Haible  <bruno@clisp.org>
22688         duplocale: Work around NetBSD 7.0 bug.
22689         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22690         * lib/duplocale.c: Add comment about NetBSD problem.
22691         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22693 2017-08-15  Bruno Haible  <bruno@clisp.org>
22695         duplocale tests: Verify use with *_l functions.
22696         * modules/duplocale-tests (configure.ac): Test for uselocale and
22697         some *_l functions.
22698         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22699         from main.
22700         (get_locale_dependent_values_from, test_with_locale_parameter): New
22701         functions.
22702         (main): Test both test_with_uselocale and test_with_locale_parameter.
22704 2017-08-15  Bruno Haible  <bruno@clisp.org>
22706         extensions: Enable NetBSD specific extensions.
22707         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22709 2017-08-14  Bruno Haible  <bruno@clisp.org>
22711         open, openat: Update doc about O_CLOEXEC.
22712         * doc/posix-functions/open.texi: More concrete list of platforms.
22713         * doc/posix-functions/openat.texi: Likewise.
22715 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22717         open: support O_CLOEXEC
22718         * NEWS, doc/posix-functions/open.texi:
22719         * doc/posix-functions/openat.texi: Document this.
22720         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22721         (GNULIB_defined_O_CLOEXEC): New symbol.
22722         * lib/open.c: Include cloexec.h.
22723         (open): Support O_CLOEXEC.
22724         * lib/openat.c: Include cloexec.h.
22725         (rpl_openat): Support O_CLOEXEC.
22726         * lib/popen-safer.c: Do not include cloexec.h.
22727         (open_noinherit): Remove.
22728         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22729         * lib/save-cwd.c: Do not include cloexec.h.
22730         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22731         * m4/open-cloexec.m4: New file.
22732         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22733         Replace 'open' if O_CLOEXEC is not present.
22734         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22735         Replace 'openat' if O_CLOEXEC is not present.
22736         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22737         * modules/open (Files): Add m4/open-cloexec.m4.
22738         (Depends-on): Depend on cloexec if replacing 'open'.
22739         * modules/openat (Files): Add m4/open-cloexec.m4.
22740         (Depends-on): Depend on cloexec if replacing openat.
22741         * modules/popen-safer (Depends-on): Remove cloexec.
22742         * modules/save-cwd (Depends-on): Remove cloexec, and add
22743         fd-safer-flag and 'open'.
22745 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22747         reallocarray: minor fixes
22748         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22749         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22750         * modules/reallocarray (License): Change from GPL to LGPL.
22751         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22752         Indent properly and don't use tabs.
22754 2017-08-13  Darshit Shah  <darnir@gnu.org>
22756         reallocarray: New module
22757         reallocarray is a new function in glibc 2.26 to safely allocate an array
22758         of memory locations with integer overflow protection.
22759         * MODULES.html.sh: Add reallocarray.
22760         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22761         * lib/reallocarray.c: New file to implement module reallocarray.
22762         * lib/stdlib.in.h: Add function declarations for reallocarray.
22763         * m4/reallocarray.m4: New file.
22764         * m4/stdlib_h.m4: Declare reallocarray.
22765         * modules/reallocarray: New file.
22766         * modules/reallocarray-test: New file.
22767         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22768         * tests/test-reallocarray.c: New test.
22770 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22772         dirent-safer: fix cloexec race
22773         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22774         (opendir_safer): Use F_DUPFD_CLOEXEC.
22775         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22776         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22777         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22778         instead of dup_safer.
22780         fts: fix cloexec races
22781         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22782         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22783         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22784         (fd_ring_check): Set cloexec flag on new file descriptors.
22785         (fts_build, fd_ring_check): While we’re at it, make sure the
22786         resulting file descriptor is not 0, 1, or 2, since that is easy.
22788 2017-08-11  Bruno Haible  <bruno@clisp.org>
22790         fts tests: Fix link error.
22791         Reported by Tom G. Christensen in
22792         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22793         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22795 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22797         fts: port recent changes to CentOS 6
22798         Problem reported by Tom G. Christensen in:
22799         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22800         * lib/fts.c (fsword): New type.
22801         (struct dev_type, filesystem_type): Use it.
22802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22803         Also, check for f_type only if fstatfs and sys/vfs.h work.
22805 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22807         tempname: do not depend on secure_getenv
22808         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22809         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22810         * modules/tempname (Depends-on): Remove secure_getenv.
22812 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22814         extensions: add _OPENBSD_SOURCE
22815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22817 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22818             Bruno Haible  <bruno@clisp.org>
22820         manywarnings: Add support for C++.
22821         * build-aux/g++-warning.spec: New file.
22822         * m4/manywarnings-c++.m4: New file.
22823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22824         redirects to manywarnings-c++.m4.
22825         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22827 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22829         git-version-gen: another fix for tags with "-"
22830         * build-aux/git-version-gen: Improve fix for tags containing "-".
22831         Suggested by Markus Armbruster in:
22832         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22834 2017-08-06  Bruno Haible  <bruno@clisp.org>
22836         warnings, manywarnings: Add support for multiple languages, not just C.
22837         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22838         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22839         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22840         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22841         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22842         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22843         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22844         of the current language. If C++ is the current language, modify
22845         WARN_CXXFLAGS instead of WARN_CFLAGS.
22846         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22847         gl_MANYWARN_ALL_GCC.
22848         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22850 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22852         git-version-gen: Fix for tags containing '-'
22854         Really old versions of git-describe (before v1.5.0, Feb 2007)
22855         don't have the number of commits in their long format output,
22856         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22857         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22858         recognizes both patterns, and normalizes the old format to the new one.
22860         Unfortunately, this normalization code gets confused when the tag
22861         contains '-'.  Reproducer:
22863             $ git-tag -m test v0.2-rc1
22864             $ build-aux/git-version-gen .tarball-version; echo
22865             build-aux/git-version-gen: WARNING: git rev-list failed
22866             UNKNOWN
22868         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22869         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22870         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22872         * git-version-gen: We could perhaps drop support for versions from
22873         more than a decade ago.  But tightening the pattern match is easy
22874         enough, so do that.  Still breaks when you use version tags ending in
22875         something matching -g????, but you arguably get what you deserve then.
22877 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22879         valgrind-tests: use ls, and cache
22880         * m4/valgrind-tests.m4: Test ls, not bash.
22881         Problem reported by Reuben Thomas.
22882         Also, cache the result so that it can be overridden.
22884 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22886         manywarnings: port to 64-bit GCC builds of Emacs
22887         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22888         object size rather than hardwiring 2147483647.  This is needed to
22889         build GNU Emacs, which has one conditional (and used
22890         only-in-theory) call to malloc with a literal greater than
22891         2147483647.
22893 2017-08-04  Bruno Haible  <bruno@clisp.org>
22895         Relax the license of some modules with no runtime code.
22896         * modules/std-gnu11 (License): Set to 'unlimited'.
22897         * modules/c99 (License): Likewise.
22898         Reported by Reuben Thomas <rrt@sc3d.org>.
22899         * modules/d-ino (License): Set to 'LGPL'.
22900         * modules/host-os (License): Likewise.
22901         * modules/longlong (License): Likewise.
22903 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22905         renameat2: port to RHEL 7 + NFS
22906         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22907         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22908         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22910 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22912         renameat2: port to non-renameat platforms
22913         Problem reported for MSVC-2015 by Gisle Vanem in:
22914         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22915         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22916         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22918 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22920         manywarnings: port to 32-bit GCC bug
22921         Problem reported by Pino Toscano in:
22922         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22923         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22924         not 2**63 - 1, to work around the following GCC bug:
22925         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22927 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22929         backupfile: new function to validate backup suffix
22930         * lib/backupfile.c (set_simple_backup_suffix): New function.
22931         (backupfile_internal): Use it.
22933         canonicalize: fix EOVERFLOW commentary
22934         Problem reported by Bruno Haible in:
22935         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22936         * lib/canonicalize.c (canonicalize_filename_mode):
22937         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22939         Don't interpret EOVERFLOW to mean nonexistence
22940         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22941         may be EOVERFLOW; this is likely more useful than reporting the
22942         stat errno.
22943         * lib/glob.c (link_stat): Rename from link_exists2_p and
22944         return -1/0 instead of 0/1.  Caller changed.
22945         * lib/glob.c (link_exists_p):
22946         * lib/renameat2.c (rename_noreplace, renameat2):
22947         * lib/tempname.c (try_nocreate):
22948         If errno == EOVERFLOW then the directory entry exists, so do not
22949         act as if it does not exist.
22951         backup-rename: new module
22952         It is like backupfile, except it avoids some race conditions,
22953         and it does not output to stderr or exit.
22954         * MODULES.html.sh: Add backup-rename.
22955         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22956         * modules/backup-rename: New files.
22957         * lib/backupfile.c: Turn this into an internals file, which
22958         contains code common to backupfile and backup_rename.  Include
22959         backupfile-internal.h instead of backupfile.h.  Do not include
22960         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22961         renameat2.h and fcntl.h.
22962         (BACKUP_NOMEM): New constant.
22963         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22964         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22965         (backupfile_internal): Rename from find_backup_file_name.
22966         Support new arg RENAME.
22967         (backup_args, backup_types, get_version, xget_version):
22968         Move to lib/backup-find.c.
22969         * lib/backupfile.h (backup_file_rename): New decl.
22970         * modules/backupfile (Files): Add lib/backup-internal.h,
22971         lib/backup-find.c.
22972         (Depends-on): Add dirfd, fcntl, renameat2.
22973         (lib_SOURCES): Add backup-find.c.
22975         renameat2: port better to older Solaris
22976         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22977         Add goto to use a label, to silence picky compilers.
22979         fts-tests: port to gcc -Wwrite-strings
22980         * tests/test-fts.c (base, base_d): New static vars.
22981         (argv, remove_tree, main): Use them.
22983 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22985         relocatable-lib{,-lgpl}: improve documentation
22986         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22987         Various other updates.
22989 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22990             Bruno Haible  <bruno@clisp.org>
22992         relocatable-lib{,-lgpl}: add Valgrind suppressions
22993         * lib/relocatable.valgrind: New file.
22994         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22995         * modules/relocatable-lib-lgpl: Likewise.
22997 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22999         relocatable: Make the license on the sources the GPL.
23000         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
23001         LGPL, which was a special case so that the relocatable source files
23002         could be used without gnulib-tool, to GPL. They can still be used under
23003         the LGPL, using the --lgpl option to gnulib-tool.
23005 2017-07-30  Bruno Haible  <bruno@clisp.org>
23007         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
23008         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
23009         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
23010         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
23011         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
23013 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
23015         faccessat: document AT_SYMLINK_NOFOLLOW issue
23016         * doc/posix-functions/faccessat.texi: Modernize platform list.
23017         Document AT_SYMLINK_NOFOLLOW limitation.
23019         renameat2: port to Solaris 10
23020         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
23021         with AT_SYMLINK_NOFOLLOW (which is not portable).
23022         (renameat): Undef before using, to avoid endless recursion when
23023         the replacement renameat calls renameat2 which calls the
23024         replacement renameat.
23025         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
23026         * modules/renameat2 (Depends-on): Remove faccessat.
23027         * modules/renameat-tests (test_renameat_LDADD):
23028         * modules/renameat2-tests (test_renameat2_LDADD):
23029         Remove $(LIB_EACCESS).
23031         renameat2: new module
23032         Although the Linux syscall renameat2 is not in glibc (yet?), it is
23033         useful to have access to its RENAME_NOREPLACE flag.
23034         * MODULES.html.sh (func_all_modules): Add renameat2.
23035         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
23036         * modules/renameat2-tests, tests/test-renameat2.c: New files.
23037         * lib/renameat.c (renameat): Move most of the implementation
23038         to renameat2, and just call renameat2.
23039         * modules/renameat (Files): Remove lib/at-func2.c.
23040         (Depends-on): Depend only on renameat2.
23041         (Include): Remove <fcntl.h>.
23042         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
23043         since renameat (via renameat2) might use faccessat.
23045 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
23047         vc-list-files: Adjust the script to support git worktrees
23048         * build-aux/vc-list-files: Require existence, not directory.
23050 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23052         doc: bring MODULES.html.sh up to date
23053         Somehow a few months ago we stopped updating MODULES.html.sh.
23054         I don’t recall explicitly deciding this, so I updated it now.
23055         Alternatively I suppose we could remove it.
23056         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
23057         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
23058         truncate, utime, utime-h, windows-stat-inodes,
23059         windows-stat-override, windows-stat-timespec, year2038.  Sort.
23061 2017-07-26  Jim Meyering  <meyering@fb.com>
23063         fprintftime: fix build-break caused by recent renaming
23064         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
23065         "strftime.c".
23066         * modules/fprintftime: Depend directly on nstrftime.
23068 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23070         regex: work with GCC7's -Werror=implicit-fallthrough=
23071         * lib/regex_internal.h (FALLTHROUGH): New macro.
23072         * lib/regcomp.c (peek_token_bracket, parse_expression):
23073         * lib/regexec.c (check_node_accept): Use it.
23075 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23077         fts: simplify fts_build
23078         * lib/fts.c (fts_build): Simplify, and be lazier about
23079         calling leaf_optimization.
23081         fts: three levels of leaf optimization
23082         * lib/fts.c (enum leaf_optimization): New type with three values.
23083         (S_MAGIC_AFS): New macro.  Sort them.
23084         (leaf_optimization): Rename from leaf_optimization_applies, and
23085         return enum leaf_optimization instead of bool.  All uses changed.
23086         Add cases for unknown type and for AFS.
23087         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
23089         fts: cache dirent_inode_sort_may_be_useful too
23090         * lib/fts.c (struct dev_type): New struct.
23091         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
23092         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
23093         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
23094         Now takes FTSENT const *, not int.  All uses changed.  Use
23095         filesystem_type to cache.
23096         (link_count_optimize_ok): Remove.  Caller changed to use
23097         leaf_optimization_applies, which now uses shared cache.
23099         fts: introduce MIN_DIR_NLINK
23100         * lib/fts.c (MIN_DIR_NLINK): New constant.
23101         Use it instead of 2, whenever we are talking about link counts.
23103         fts: nlink_t signedness fixups
23104         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
23105         so that root need not be a special case later.
23106         (fts_read): Remove now-redundant test for fts_level.
23107         Do not assume that nlink_t is signed.
23108         (fts_build): Remove useless decrement of nlinks.
23109         (fts_stat): Avoid unlikely signed integer overflow later, if
23110         nlink_t is signed.
23112         fts-tests: new module
23113         * modules/fts-tests, tests/test-fts.c: New files.
23115 2017-07-23  Bruno Haible  <bruno@clisp.org>
23117         Rename module 'strftime' to 'nstrftime'.
23118         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
23119         * lib/nstrftime.c: Renamed from lib/strftime.c.
23120         * modules/nstrftime: Renamed from modules/strftime.
23121         (Files, Makefile.am): Update.
23122         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
23123         Fix comment.
23124         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
23125         (Files, Makefile.am): Update.
23126         * modules/strftime: New file, an obsolete indirection.
23127         * doc/posix-functions/strftime.texi: Update reference.
23128         * config/srclist.txt: Update info.
23129         * NEWS: Mention the change.
23131 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
23133         malloca: Silence a warning from clang's memory sanitizer.
23134         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
23135         (freea): Use it.
23137 2017-07-18  Bruno Haible  <bruno@clisp.org>
23139         host-cpu-c-abi: Fix detection of MIPS ABI.
23140         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
23141         ABI, not the CPU instruction set.
23143 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23145         explicit_bzero: new module
23146         The explicit_bzero function has been added to glibc.
23147         This module is intended to supports its use in GNU programs.
23148         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
23149         * m4/explicit_bzero.m4, modules/explicit_bzero:
23150         New files.
23151         * doc/gnulib.texi (Glibc string.h): Link to new doc.
23152         * lib/string.in.h (explicit_bzero): Declare.
23153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
23154         * modules/string (string.h): Substitute its vars.
23156 2017-07-16  Bruno Haible  <bruno@clisp.org>
23158         threadlib: Support static linking.
23159         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
23160         set gl_cv_have_weak to 'no'.
23162 2017-07-16  Bruno Haible  <bruno@clisp.org>
23164         unicase/locale-language: Fix link dependencies.
23165         * modules/unicase/locale-language (Link): New section.
23166         * modules/unicase/locale-language-tests (Makefile.am): Link
23167         test-locale-language program with $(LIBTHREAD).
23169 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23171         sys_socket: Add support for OpenVMS.
23172         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
23173         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
23175 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23177         sys_resource: Add support for OpenVMS.
23178         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
23179         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
23181 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23182             Bruno Haible  <bruno@clisp.org>
23184         math: Add support for OpenVMS.
23185         * lib/math.in.h [__VMS]: Include <fp.h>.
23186         * doc/posix-headers/math.texi: Mention OpenVMS issues.
23188 2017-07-15  Bruno Haible  <bruno@clisp.org>
23190         getdtablesize: Add minimal support for OpenVMS.
23191         Reported by John E. Malmberg <wb8tyw@qsl.net>.
23192         * modules/getdtablesize (Description): Fix.
23193         * lib/getdtablesize.c: Fix comment.
23194         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
23195         getdtablesize() function, even though the test fails.
23196         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
23197         limitation on OpenVMS.
23199 2017-07-13  Bruno Haible  <bruno@clisp.org>
23201         Revisit cross-compilation guesses.
23202         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
23204 2017-07-13  Bruno Haible  <bruno@clisp.org>
23206         Improve cross-compilation guesses for native Windows.
23207         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
23208         Windows.
23209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
23210         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
23211         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23212         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
23213         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
23214         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
23215         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23216         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23217         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23218         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23219         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23220         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
23221         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
23222         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
23223         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
23224         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23225         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
23226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23227         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23228         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23229         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
23230         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23231         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
23232         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
23233         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
23234         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
23235         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23236         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23238         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
23239         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
23241         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23242         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
23243         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
23244         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
23245         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
23246         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23247         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23248         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23249         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23250         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23251         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
23252         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
23253         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
23254         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
23255         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
23256         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
23257         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
23258         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
23259         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
23260         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
23261         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
23262         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
23263         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
23264         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
23265         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
23266         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23267         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
23268         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
23269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23270         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
23271         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
23272         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23273         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23275         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
23276         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23277         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
23278         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
23279         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
23280         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
23281         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23282         * m4/regex.m4 (gl_REGEX): Likewise.
23283         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23284         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
23285         gl_FUNC_REMAINDERF_WORKS): Likewise.
23286         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
23287         gl_FUNC_REMAINDERL_WORKS): Likewise.
23288         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23289         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23290         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23291         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23293         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23294         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23295         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23296         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
23297         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23298         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
23299         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
23300         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23301         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23303         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23304         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23306         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23307         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23308         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23309         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23310         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23311         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23312         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23313         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23314         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23315         Likewise.
23316         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23317         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
23318         Windows. Enable also on Autoconf 2.70.
23319         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23320         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23321         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23322         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
23323         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23324         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
23325         for native Windows.
23326         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23327         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
23329 2017-07-13  Bruno Haible  <bruno@clisp.org>
23331         Improve cross-compilation guesses for native Windows.
23332         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
23333         Windows.
23334         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
23335         memchr.m4.
23336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23338 2017-07-13  Bruno Haible  <bruno@clisp.org>
23340         Improve cross-compilation guesses for native Windows.
23341         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
23342         native Windows.
23343         (gl_FUNC_FFLUSH): Update accordingly.
23344         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
23345         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23347 2017-07-11  Bruno Haible  <bruno@clisp.org>
23349         More systematic m4 quoting and indentation.
23350         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
23351         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23352         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23354         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23355         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
23356         gl_WINSIZE_IN_PTEM): Likewise.
23357         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
23358         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23359         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23360         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
23361         Correct indentation.
23362         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23363         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23364         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
23365         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23366         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23367         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23369 2017-07-10  Bruno Haible  <bruno@clisp.org>
23371         round, roundf: Avoid compiler warning in configure test.
23372         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
23373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23375 2017-07-10  Bruno Haible  <bruno@clisp.org>
23377         getlogin tests: Avoid #ifdefs when sharing code between modules.
23378         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
23379         * modules/getlogin-tests (Files): Likewise. Remove
23380         tests/test-getlogin_r.c.
23381         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
23382         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
23383         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
23384         getlogin().
23386 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23388         getlogin: don’t assume one name per uid
23389         Problem reported by Wolfgang F. Muthmann (Bug#27640).
23390         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
23391         (ttyname): Remove test.
23392         * modules/getlogin_r-tests (ttyname): Remove test.
23393         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
23394         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
23395         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
23396         getlogin rather than getlogin_r.  This avoids code duplication.
23397         (main): Use isatty and fstat rather than ttyname and stat.
23398         Use getpwnam instead of getpwuid, to be portable to test platforms
23399         that have multiple login names for the same uid.
23401 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
23402             Bruno Haible  <bruno@clisp.org>
23404         glob: Fix more memory leaks.
23405         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
23406         returning.
23407         Reported by Tim Rühsen.
23409 2017-07-10  Bruno Haible  <bruno@clisp.org>
23411         Make sure $host and $host_os are defined when used.
23412         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
23413         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
23414         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
23415         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23416         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23417         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23418         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23419         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23420         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23421         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23422         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23423         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23425         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23426         m4_ifdef block.
23428 2017-07-09  Bruno Haible  <bruno@clisp.org>
23430         *printf: Fix cross-compilation guess for Solaris.
23431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23432         2010-12-21.
23434 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23435             Bruno Haible  <bruno@clisp.org>
23437         vasnprintf: port to macOS 10.13
23438         Problem reported by comex in:
23439         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23440         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23442 2017-07-06  Bruno Haible  <bruno@clisp.org>
23444         imaxdiv tests: Fix logic.
23445         * tests/test-imaxdiv.c (main): Use == instead of =.
23446         Reported by Coverity.
23448 2017-07-06  Bruno Haible  <bruno@clisp.org>
23450         uninorm/filter: Fix use-after-free bug.
23451         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23452         sortbuf == filter->sortbuf invariant.
23453         Reported by Coverity.
23455 2017-07-06  Bruno Haible  <bruno@clisp.org>
23457         glob: Fix more memory leaks.
23458         * lib/glob.c (glob): Free dirname before returning.
23459         Reported by Coverity and Tim Rühsen.
23461 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23463         parse-datetime: fix uninit var bug
23464         Reported by Bruno Haible in:
23465         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23466         * lib/parse-datetime.y (parse_datetime2): Do not use
23467         uninitialized.
23469 2017-07-05  Bruno Haible  <bruno@clisp.org>
23471         doc: Update for MSVC 14.
23472         * doc/posix-headers/*.texi: Add info about MSVC 14.
23473         * doc/posix-functions/*.texi: Likewise.
23474         * doc/pastposix-functions/*.texi: Likewise.
23475         * doc/glibc-headers/*.texi: Likewise.
23476         * doc/glibc-functions/*.texi: Likewise.
23478 2017-07-05  Bruno Haible  <bruno@clisp.org>
23480         sched: Fix build failure on native Windows (regression from 2017-06-19).
23481         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23483 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23485         stdioext: Port to OpenVMS.
23486         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23487         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23488         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23489         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23490         * lib/fpurge.c (fpurge): Likewise.
23491         * lib/freadable.c (freadable): Likewise.
23492         * lib/freadahead.c (freadahead): Likewise.
23493         * lib/freading.c (freading): Likewise.
23494         * lib/freadptr.c (freadptr): Likewise.
23495         * lib/freadseek.c (freadseek): Likewise.
23496         * lib/fseeko.c (fseeko): Likewise.
23497         * lib/fseterr.c (fseterr): Likewise.
23498         * lib/fwritable.c (fwriteable): Likewise.
23499         * lib/fwriting.c (fwriting): Likewise.
23501 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23503         glob: Declare variables at the very start of their scope.
23504         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23505         its separate scope, so the functions will compile on Haiku.
23507 2017-07-01  Bruno Haible  <bruno@clisp.org>
23509         logbl: Work around a glibc bug on PowerPC64LE.
23510         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23511         numbers.
23512         * doc/posix-functions/logbl.texi: Update.
23514 2017-06-29  Bruno Haible  <bruno@clisp.org>
23516         stat, fstat: Compile stat-w32.c only on platforms that need it.
23517         Suggested by Paul Eggert.
23518         * modules/stat (configure.ac): Request stat-w32.o only on native
23519         Windows.
23520         * modules/fstat (configure.ac): Likewise.
23522 2017-06-25  Bruno Haible  <bruno@clisp.org>
23524         stat: Improve last change.
23525         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23527 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23529         stat: port to xlc 12.01
23530         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23531         12.01 complains "Compilation unit is empty."
23533 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23535         xalloc-oversized: port to icc
23536         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23537         __builtin_mul_overflow if ICC is defined, as this results in
23538         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23539         20170213.
23541 2017-06-19  Bruno Haible  <bruno@clisp.org>
23543         classpath: Avoid including config.h twice, as it produces warnings.
23544         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23545         * lib/classpath.h: Conditionalize the include of config.h.
23547 2017-06-19  Bruno Haible  <bruno@clisp.org>
23548             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23550         sched: Fix compilation failure on OpenVMS.
23551         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23552         test whether <pthread.h> exists and defines struct sched_param.
23553         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23555 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23557         diffseq: port to GCC 7 with --enable-gcc-warnings
23558         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23559         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23560         not complain about big_snake being defined but not used.
23562 2017-06-15  Bruno Haible  <bruno@clisp.org>
23564         gettext-h: Update theoretical condition for use of variable size arrays.
23565         Reported by Paul Eggert.
23566         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23567         to include the theoretical condition for availability of variable size
23568         arrays, if we could trust the value of __STDC_VERSION__.
23570 2017-06-12  Bruno Haible  <bruno@clisp.org>
23572         Relicense some modules under LGPLv2+.
23573         Daiki Ueno's approval is in
23574         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23575         * modules/uniwidth/base (License): Change to LGPLv2+.
23576         * modules/uniwidth/width (License): Likewise.
23578 2017-06-11  Bruno Haible  <bruno@clisp.org>
23580         localename: Fix test failure on DragonFly BSD.
23581         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23582         like FreeBSD.
23584 2017-06-11  Bruno Haible  <bruno@clisp.org>
23586         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23587         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23588         * lib/float.in.h: Likewise.
23589         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23591 2017-06-11  Bruno Haible  <bruno@clisp.org>
23593         gnulib-tool: Clean up after autotools.
23594         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23595         useless directory left over by the Autotools.
23597 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23599         getopt-posix: port to glibc 2.25.90
23600         Problem reported by Daniel P. Berrange in:
23601         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23602         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23603         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23604         #undef if __GETOPT_PREFIX is defined.
23606 2017-06-11  Bruno Haible  <bruno@clisp.org>
23608         strtod-obsolete: Fix license.
23609         * modules/strtod-obsolete (License): Change to LGPL.
23611 2017-06-10  Jim Meyering  <meyering@fb.com>
23613         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23614         * lib/savewd.c (FALLTHROUGH): Define.
23615         (savewd_save, savewd_restore): Use this, rather than a comment,
23616         whenever one switch case falls through into the next.
23618 2017-06-08  Bruno Haible  <bruno@clisp.org>
23620         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23621         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23622         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23623         case.
23625 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23627         doc: remove robots, add prereqs
23628         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23629         builds.  Simon's robot site does not seem to be up, so remove
23630         mentions of it for now.
23632 2017-06-08  Bruno Haible  <bruno@clisp.org>
23634         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23635         * gnulib-tool (func_symlink_target): New function, extracted from
23636         func_symlink.
23637         (func_symlink, func_symlink_if_changed): Use it.
23639 2017-06-08  Bruno Haible  <bruno@clisp.org>
23641         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23642         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23644 2017-06-07  Bruno Haible  <bruno@clisp.org>
23646         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23647         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23648         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23649         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23650         override, pass 2 arguments to getcwd, not 3.
23652 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23654         same-inode: port better to VMS 8.2 and later
23655         Problem reported by John E. Malmberg in:
23656         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23657         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23658         Use the usual POSIX definition.
23659         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23661 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23663         error: fix POSIX violation for va_end
23664         Problem reported by Bruno Haible in:
23665         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23666         * lib/error.c (error_tail): Do not call va_end here.
23667         (error, error_at_line): Call it here instead.
23669 2017-05-28  Bruno Haible  <bruno@clisp.org>
23671         c-strtod: Make it usable in C++ mode.
23672         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23674 2017-05-25  Jim Meyering  <meyering@fb.com>
23676         quotearg: fix compilation failure due to FALLTHROUGH misuse
23677         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23678         macro back to /* fall through */ comment.  The macro can apply only
23679         to a following case statement.  Reported by Assaf Gordon.
23681 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23683         intprops: port to recent icc
23684         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23685         but does not support __builtin_add_overflow etc.
23686         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23687         Define to 0.
23689 2017-05-23  Karl Berry  <karl@freefriends.org>
23691         * config/srclist.txt (iconv.m4): sync broken, comment out
23692         until (hopefully) the next gettext release.
23694 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23696         Remove repeated words in comments.
23698 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23700         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23701         quotearg.c: Reinstate this instance which is significant
23702         when the if branch is not taken.
23704 2017-05-21  Bruno Haible  <bruno@clisp.org>
23706         gnulib-tool: Add options to create hard links.
23707         * gnulib-tool (func_usage): Document options --hardlink,
23708         --local-hardlink, --more-hardlinks.
23709         (func_symlink): Renamed from func_ln.
23710         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23711         (func_hardlink): New function.
23712         (copymode, lcopymode): New variables.
23713         (symbolic, lsymbolic): Remove variables.
23714         (Options): Implement options --hardlink, --local-hardlink,
23715         --more-hardlinks.
23716         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23717         (func_add_file, func_update_file): Update invocation of
23718         func_should_link. Invoke func_hardlink when appropriate.
23719         (func_import): Update comments.
23720         (func_create_testdir): Update invocation of func_should_link. Invoke
23721         func_hardlink when appropriate.
23722         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23723         the hard links on git.
23725 2017-05-20  Bruno Haible  <bruno@clisp.org>
23727         argp: Simplify bit manipulation.
23728         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23729         on a signed integer type.
23731 2017-05-20  Bruno Haible  <bruno@clisp.org>
23733         Avoid wrong configure results with gcc -fsanitize=address.
23734         This completes the work done on 2016-02-06 on this topic.
23735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23736         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23738         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23739         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23740         returning.
23741         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23743         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23744         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23745         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23746         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23747         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23748         free allocated memory before returning.
23749         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23750         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23751         objects before returning.
23752         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23753         returning.
23755 2017-05-20  Bruno Haible  <bruno@clisp.org>
23757         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23758         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23760 2017-05-20  Bruno Haible  <bruno@clisp.org>
23762         argp, tsearch tests: Fix file list.
23763         * modules/argp-tests (Files): Add tests/macros.h.
23764         * modules/tsearch-tests (Files): Likewise.
23766 2017-05-20  Bruno Haible  <bruno@clisp.org>
23768         getopt-posix tests: Remove redundant include.
23769         * tests/test-getopt.h: Don't include "macros.h". It's already included
23770         by tests/test-getopt-main.h.
23772 2017-05-19  Jim Meyering  <meyering@fb.com>
23774         dfa: two small simplifications
23775         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23777 2017-05-18  Jim Meyering  <meyering@fb.com>
23779         fallthrough: update for GCC 7/8
23780         * lib/quotearg.c (FALLTHROUGH): New macro.
23781         Use it whenever one switch case falls through into the next,
23782         replacing "/* Fall through */" comments.  This exposed one
23783         instance of an unwarranted "fall through" comment: unwarranted
23784         because it preceded a "goto" label not a case statement.
23785         * lib/freopen-safer.c (freopen_safer): Likewise.
23786         * lib/fts.c (leaf_optimization_applies): Likewise.
23787         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23788         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23789         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23790         tests/macros.h for the definition.
23791         * tests/test-argp.c (group1_parser): Likewise.
23792         * tests/test-getopt.h (getopt_loop): Likewise.
23794 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23796         argp: fix shift bug
23797         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23798         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23800         argp: fix pointer-subtraction bug
23801         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23802         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23803         See the thread containing Bruno Haible’s report in:
23804         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23806 2017-05-19  Bruno Haible  <bruno@clisp.org>
23808         printf-posix tests: Avoid test failure with "gcc --coverage".
23809         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23810         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23811         than 5000000.
23812         * tests/test-fprintf-posix2.c (main): Likewise.
23814 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23816         closeout: don’t close stderr when sanitizing
23817         * NEWS: Document this.
23818         * lib/closeout.c (__has_feature): New macro, if not already defined.
23819         (SANITIZE_ADDRESS): New constant.
23820         (close_stdout): Don’t close stderr if sanitizing addresses.
23822 2017-05-19  Bruno Haible  <bruno@clisp.org>
23824         get-rusage-data tests: Avoid failure on Linux/glibc.
23825         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23826         on glibc systems.
23828 2017-05-18  Bruno Haible  <bruno@clisp.org>
23830         localename: Include necessary header files on Cygwin.
23831         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23832         where NL_LOCALE_NAME is defined.
23834 2017-05-18  Bruno Haible  <bruno@clisp.org>
23836         gettext: Update macros from gettext git.
23837         * m4/intldir.m4: Require Autoconf >= 2.60.
23838         * m4/progtest.m4: Fix typos in copyright notice.
23840 2017-05-18  Bruno Haible  <bruno@clisp.org>
23842         copy-file tests: Fix link error (regression from 2017-05-01).
23843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23844         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23845         $(LIB_CLOCK_GETTIME).
23847 2017-05-18  Bruno Haible  <bruno@clisp.org>
23849         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23850         (regression from 2017-02-13).
23851         * lib/unicase/special-casing.in.h: Renamed from
23852         lib/unicase/special-casing.h.
23853         * modules/unicase/special-casing (Files): Add
23854         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23855         (Makefile.am): Add rule for generating unicase/special-casing.h.
23856         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23857         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23858         not "special-casing.h".
23859         * lib/unicase/u*.c: Likewise.
23861 2017-05-17  Bruno Haible  <bruno@clisp.org>
23863         README: Don't ask people to read a TeXinfo file.
23864         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23865         * README: Tell people how to read the HTML formatted manual.
23867 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23869         parse-datetime: Fix memleak
23870         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23871         localtime_rz() failure.
23873 2017-05-16  Bruno Haible  <bruno@clisp.org>
23875         javacomp: Fix handle leak.
23876         Found by Coverity.
23877         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23879 2017-05-16  Bruno Haible  <bruno@clisp.org>
23881         relocate: Make it easier to reclaim allocated memory.
23882         * lib/relocatable.h (relocate2): New declaration/macro.
23883         * lib/relocatable.c (relocate2): New function.
23884         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23885         relocate2 function.
23886         * lib/localcharset.c (relocate2): Define fallback.
23887         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23888         allocated memory.
23889         * lib/javaversion.c (relocate2): Define fallback.
23890         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23891         allocated memory.
23893 2017-05-16  Bruno Haible  <bruno@clisp.org>
23895         relocate: Simplify EMX specific code.
23896         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23897         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23899 2017-05-16  Bruno Haible  <bruno@clisp.org>
23901         sigpipe tests: Fix file list.
23902         * modules/sigpipe-tests (Files): Add tests/macros.h.
23904 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23906         manywarnings: update for GCC 7
23907         * build-aux/gcc-warning.spec:
23908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23909         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23910         requires a non-comment fallthrough attribute.  This is a bit
23911         cleaner than the comment versions.
23912         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23913         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23914         Use it whenever one switch case falls through into the next.
23915         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23916         Use FALLTHROUGH macro.
23918 2017-05-15  Bruno Haible  <bruno@clisp.org>
23920         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23921         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23922         @ALLOCA@, not @LTALLOCA@.
23924 2017-05-15  Bruno Haible  <bruno@clisp.org>
23926         sys_select: Avoid "was expanded before it was required" warning.
23927         * modules/sys_select (configure.ac): Require, not invoke,
23928         gl_HEADER_SYS_SELECT.
23930 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23932         gnulib-tool: improve GNU Make debugging
23933         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23934         Report autoconf diagnostics when it fails, in the output makefile.
23936 2017-05-14  Bruno Haible  <bruno@clisp.org>
23938         stat-time tests: Improve comment.
23939         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23941 2017-05-14  Bruno Haible  <bruno@clisp.org>
23943         same-inode: Adapt for windows-stat-inodes.
23944         * lib/same-inode.h: Include <sys/types.h>.
23945         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23946         * modules/same-inode (Depends-on): Add sys_types.
23948 2017-05-14  Bruno Haible  <bruno@clisp.org>
23950         windows-stat-inodes: New module.
23951         * m4/windows-stat-inodes.m4: New file.
23952         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23953         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23954         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23955         (_GL_WINDOWS_STAT_INODES): New macro.
23956         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23957         (GetFileInformationByHandleExFunc): New variable.
23958         (initialize): Initialize it.
23959         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23960         st_ino appropriately.
23961         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23962         a fallback, because it does not provide st_dev and st_ino values.
23963         * modules/fstat (Depends-on): Add 'verify'.
23964         * modules/windows-stat-inodes: New file.
23965         * doc/windows-stat-inodes.texi: New file.
23966         * doc/gnulib.texi: Include it.
23967         * doc/posix-headers/sys_stat.texi: Mention the new module.
23969 2017-05-14  Bruno Haible  <bruno@clisp.org>
23971         stat-time tests: Workaround for native Windows.
23972         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23973         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23974         New variables.
23975         (initialize_filenames): New function.
23976         (main): Invoke it.
23977         (cleanup, prepare_test): Update.
23979 2017-05-14  Bruno Haible  <bruno@clisp.org>
23981         stat-time: Adapt for windows-stat-timespec.
23982         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23983         entire st_ctim field.
23985 2017-05-13  Jim Meyering  <meyering@fb.com>
23987         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23988         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23989         file that uses the assume macro, claiming that verify.h is unused.
23991 2017-05-13  Bruno Haible  <bruno@clisp.org>
23993         Use symbolic values for _WIN32_WINNT.
23994         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23995         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23997 2017-05-13  Bruno Haible  <bruno@clisp.org>
23999         year2038: New module.
24000         * m4/year2038.m4: New file.
24001         * modules/year2038: New file.
24002         * doc/year2038.texi: New file.
24003         * doc/gnulib.texi: Include it.
24005 2017-05-13  Bruno Haible  <bruno@clisp.org>
24007         largefile: Simplify.
24008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
24009         of _GL_WINDOWS_64_BIT_ST_SIZE.
24011 2017-05-13  Bruno Haible  <bruno@clisp.org>
24013         largefile: Improve and document.
24014         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
24015         the mingw headers already define 'stat' appropriately.
24016         * modules/largefile (Description): Clarify.
24017         * doc/largefile.texi: New file.
24018         * doc/gnulib.texi: Include it.
24019         * doc/posix-headers/sys_types.texi: Update.
24021 2017-05-13  Bruno Haible  <bruno@clisp.org>
24023         truncate: New module.
24024         * lib/unistd.in.h (truncate): New declaration.
24025         * lib/truncate.c: New file.
24026         * m4/truncate.m4: New file.
24027         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
24028         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
24029         REPLACE_TRUNCATE.
24030         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
24031         HAVE_TRUNCATE, REPLACE_TRUNCATE.
24032         * modules/truncate: New file.
24033         * tests/test-unistd-c++.cc (truncate): Test signature.
24034         * doc/posix-functions/truncate.texi: Mention the new module.
24036         * tests/test-truncate.c: New file.
24037         * modules/truncate-tests: New file.
24039 2017-05-13  Bruno Haible  <bruno@clisp.org>
24041         windows-stat-timespec: New module.
24042         * modules/windows-stat-timespec: New file.
24043         * m4/windows-stat-timespec.m4: New file.
24044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
24045         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
24046         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
24047         fields st_atim, st_mtim, st_ctim.
24048         (st_atime, st_mtime, st_ctime): Define as macros.
24049         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
24050         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
24051         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
24052         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
24053         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
24054         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
24055         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24056         FILETIME to 'struct timespec', not 'time_t'.
24057         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24058         FILETIME to 'struct timespec', not 'time_t'.
24059         * lib/stat-time.h (STAT_TIMESPEC): Define also if
24060         _GL_WINDOWS_STAT_TIMESPEC.
24061         * doc/windows-stat-timespec.texi: New file.
24062         * doc/gnulib.texi: Include it.
24064 2017-05-13  Bruno Haible  <bruno@clisp.org>
24066         windows-stat-override: New module.
24067         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
24068         definition. Define GNULIB_defined_struct_stat.
24069         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
24070         link error if this symbol is used and the corresponding module is not
24071         in use.
24072         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
24073         GNULIB_OVERRIDES_STRUCT_STAT.
24074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24075         GNULIB_OVERRIDES_STRUCT_STAT.
24076         * modules/sys_stat (Makefile.am): Substitute
24077         GNULIB_OVERRIDES_STRUCT_STAT.
24078         * modules/windows-stat-override: New file.
24080 2017-05-13  Bruno Haible  <bruno@clisp.org>
24082         fstat: Fix module dependency conditions.
24083         * modules/fstat (Depends-on): Fix typo.
24085 2017-05-13  Bruno Haible  <bruno@clisp.org>
24087         stat, fstat: Complete removal of old native Windows code.
24088         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
24089         * lib/fstat.c: Likewise.
24090         * lib/stat-w32.c: Likewise.
24092 2017-05-13  Bruno Haible  <bruno@clisp.org>
24094         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
24095         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
24097 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24099         getopt-posix: port to mingw
24100         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
24101         Problem reported by Daniel P. Berrage in:
24102         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
24104 2017-05-11  Bruno Haible  <bruno@clisp.org>
24106         gettimeofday: Increase precision on mingw.
24107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
24108         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
24109         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
24110         GetSystemTimePreciseAsFileTime based implementation always.
24111         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
24112         mingw.
24114 2017-05-11  Bruno Haible  <bruno@clisp.org>
24116         poll: Fix confusion between SOCKETs and FDs on native Windows.
24117         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
24118         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
24120 2017-05-11  Bruno Haible  <bruno@clisp.org>
24122         doc: Clarify doc about socket functions on native Windows.
24123         This reworks doc that was added on 2008-09-29.
24124         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
24125         clearer wording.
24126         * doc/posix-functions/accept.texi: Use clearer wording.
24127         * doc/posix-functions/bind.texi: Likewise.
24128         * doc/posix-functions/connect.texi: Likewise.
24129         * doc/posix-functions/getpeername.texi: Likewise.
24130         * doc/posix-functions/getsockname.texi: Likewise.
24131         * doc/posix-functions/getsockopt.texi: Likewise.
24132         * doc/posix-functions/ioctl.texi: Likewise.
24133         * doc/posix-functions/listen.texi: Likewise.
24134         * doc/posix-functions/recv.texi: Likewise.
24135         * doc/posix-functions/recvfrom.texi: Likewise.
24136         * doc/posix-functions/send.texi: Likewise.
24137         * doc/posix-functions/sendto.texi: Likewise.
24138         * doc/posix-functions/setsockopt.texi: Likewise.
24139         * doc/posix-functions/shutdown.texi: Likewise.
24140         * doc/posix-functions/socket.texi: Likewise.
24142 2017-05-10  Bruno Haible  <bruno@clisp.org>
24144         poll: Fix link error on native Windows.
24145         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
24147 2017-05-10  Bruno Haible  <bruno@clisp.org>
24149         time: Fix missing initialization of HAVE_TIMEZONE_T.
24150         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
24151         here...
24152         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
24153         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
24154         gl_HEADER_SYS_TIME_H_DEFAULTS.
24155         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
24156         (configure.ac): Remove useless quoting.
24158 2017-05-10  Bruno Haible  <bruno@clisp.org>
24160         Implement a way to opt out from MSVC support, part 2.
24161         * modules/msvc-inval (Include): Document recommended idiom.
24162         * modules/msvc-nothrow (Include): Likewise.
24164         Implement a way to opt out from MSVC support.
24165         This is useful for Emacs.
24166         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
24167         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
24168         * lib/error.c: Likewise.
24169         * lib/fcntl.c: Likewise.
24170         * lib/flock.c: Likewise.
24171         * lib/fstat.c: Likewise.
24172         * lib/fsync.c: Likewise.
24173         * lib/ioctl.c: Likewise.
24174         * lib/isapipe.c: Likewise.
24175         * lib/lseek.c: Likewise.
24176         * lib/nonblocking.c: Likewise.
24177         * lib/poll.c: Likewise.
24178         * lib/select.c: Likewise.
24179         * lib/sockets.h: Likewise.
24180         * lib/sockets.c: Likewise.
24181         * lib/stdio-read.c: Likewise.
24182         * lib/stdio-write.c: Likewise.
24183         * lib/utimens.c: Likewise.
24184         * lib/w32sock.h: Likewise.
24185         * lib/w32spawn.h: Likewise.
24186         * tests/test-cloexec.c: Likewise.
24187         * tests/test-dup-safer.c: Likewise.
24188         * tests/test-dup2.c: Likewise.
24189         * tests/test-dup3.c: Likewise.
24190         * tests/test-fcntl.c: Likewise.
24191         * tests/test-pipe.c: Likewise.
24192         * tests/test-pipe2.c: Likewise.
24193         * lib/ftruncate.c: Likewise.
24194         (chsize_nothrow): Renamed from chsize.
24195         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
24196         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24197         * lib/close.c: Likewise.
24198         * lib/dup.c: Likewise.
24199         * lib/fclose.c: Likewise.
24200         * lib/raise.c: Likewise.
24201         * tests/test-fgetc.c: Likewise.
24202         * tests/test-fputc.c: Likewise.
24203         * tests/test-fread.c: Likewise.
24204         * tests/test-fwrite.c: Likewise.
24205         * lib/getdtablesize.c: Likewise.
24206         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
24207         * lib/isatty.c: Don't include msvc-inval.h if
24208         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24209         Include <io.h> as an alternative to msvc-nothrow.h.
24210         * lib/read.c: Likewise.
24211         * lib/write.c: Likewise.
24212         * lib/dup2.c: Likewise.
24213         (dup2_nothrow): New function.
24214         (ms_windows_dup2): Use it.
24215         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
24216         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
24217         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
24218         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
24219         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
24220         * m4/read.m4 (gl_FUNC_READ): Likewise.
24221         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
24222         * doc/windows-without-msvc.texi: New file.
24223         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
24224         section.
24226 2017-05-10  Bruno Haible  <bruno@clisp.org>
24228         wait-process: Adjust native Windows support.
24229         * lib/wait-process.c: Use the usual condition for recognizing a native
24230         Windows platform.
24232 2017-05-10  Bruno Haible  <bruno@clisp.org>
24234         doc: New chapter "Native Windows Support".
24235         * doc/gnulib.texi (Native Windows Support): New chapter.
24236         * doc/windows-libtool.texi: Small wording changes.
24237         * doc/windows-sockets.texi: Small wording and formatting changes.
24239 2017-05-10  Bruno Haible  <bruno@clisp.org>
24241         doc: Move section "Library version handling".
24242         * doc/gnulib.texi: Move section "Library version handling"
24243         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
24245 2017-05-10  Bruno Haible  <bruno@clisp.org>
24247         doc: Move section "Running self-tests under valgrind".
24248         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
24249         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
24251 2017-05-10  Bruno Haible  <bruno@clisp.org>
24253         doc: New chapter "Build Infrastructure Modules".
24254         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
24256 2017-05-10  Bruno Haible  <bruno@clisp.org>
24258         Prepare for reordering sections in the manual.
24259         * doc/gnulib.texi: Move several sections to separate files. Include
24260         these files.
24261         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
24262         * doc/obsolete.texi: Likewise.
24263         * doc/extra-tests.texi: Likewise.
24264         * doc/transversal.texi: Likewise.
24265         * doc/namespace.texi: Likewise.
24266         * doc/check-version.texi: Likewise.
24267         * doc/windows-sockets.texi: Likewise.
24268         * doc/windows-libtool.texi: Likewise.
24269         * doc/licenses-texi.texi: Likewise.
24270         * doc/build-automation.texi: Likewise.
24271         * doc/c-locale.texi: Likewise.
24273 2017-05-10  Bruno Haible  <bruno@clisp.org>
24275         Fix instructions how to update manual on www.gnu.org.
24276         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
24278 2017-05-09  Bruno Haible  <bruno@clisp.org>
24280         tzset: Expand comment about TZ problem on native Windows.
24281         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
24282         Paul Eggert.
24283         * lib/ctime.c (rpl_ctime): Likewise.
24284         * lib/localtime.c (rpl_localtime): Likewise.
24285         * lib/mktime.c (mktime): Likewise.
24286         * lib/strftime-fixes.c (rpl_strftime): Likewise.
24287         * lib/wcsftime.c (rpl_wcsftime): Likewise.
24289 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24291         intprops: don’t depend on ‘verify’
24292         Problem reported by Ævar Arnfjörð Bjarmason in:
24293         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
24294         * lib/intprops.h: Do not include verify.h, and move compile-time
24295         checks from here ...
24296         * tests/test-intprops.c (main): ... to here, if they’re not here
24297         already.  Check widths of other standard integer types.
24298         * modules/intprops (Depends-on): Remove ‘verify’.
24300 2017-05-07  Bruno Haible  <bruno@clisp.org>
24302         utimens: On native Windows, support 100ns resolution also if fd < 0.
24303         * lib/utime.in.h: Include <time.h>.
24304         (_gl_utimens_windows): New declaration.
24305         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
24306         (utime): Invoke it.
24307         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
24308         instead of utime.
24309         * modules/utime (Depends-on): Add 'time'.
24311 2017-05-07  Bruno Haible  <bruno@clisp.org>
24313         utimens: Improve error code on native Windows.
24314         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
24315         error code EACCES, not EINVAL.
24317 2017-05-07  Bruno Haible  <bruno@clisp.org>
24319         utime: Handle more Windows error codes.
24320         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
24321         Based on explanations by Billy O'Neal.
24323 2017-05-05  Bruno Haible  <bruno@clisp.org>
24325         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
24326         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
24327         union.
24328         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
24329         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
24330         value of cipher->IV.
24332 2017-05-05  Bruno Haible  <bruno@clisp.org>
24334         wctype-h-c++-tests: Update.
24335         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
24337 2017-05-05  Bruno Haible  <bruno@clisp.org>
24339         wchar-c++-tests: Update.
24340         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
24342 2017-05-05  Bruno Haible  <bruno@clisp.org>
24344         utime-h-c++-tests: New module.
24345         * tests/test-utime-h-c++.cc: New file.
24346         (utime): Declare, missing since 2017-04-30.
24347         * modules/utime-h-c++-tests: New file.
24349 2017-05-05  Bruno Haible  <bruno@clisp.org>
24351         unistd-c++-tests: Update.
24352         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
24353         (read): Declare, missing since 2011-04-15.
24354         (sethostname): Declare, missing since 2011-12-03.
24356 2017-05-05  Bruno Haible  <bruno@clisp.org>
24358         time-c++-tests: Update.
24359         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
24360         (localtime, gmtime): Declare, missing since 2017-04-30.
24361         (ctime): Declare, missing since 2017-04-30.
24362         (strftime): Declare, missing since 2017-04-30.
24363         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
24364         2015-07-24.
24366 2017-05-05  Bruno Haible  <bruno@clisp.org>
24368         sys_resource-c++-tests: New module.
24369         * tests/test-sys_resource-c++.cc: New file.
24370         (getrusage): Declare, missing since 2012-04-13.
24371         * modules/sys_resource-c++-tests: New file.
24373 2017-05-05  Bruno Haible  <bruno@clisp.org>
24375         strings-c++-tests: New module.
24376         * tests/test-strings-c++.cc: New file.
24377         (ffs): Declare, missing since 2011-07-12.
24378         * modules/strings-c++-tests: New file.
24380 2017-05-05  Bruno Haible  <bruno@clisp.org>
24382         string-c++-tests: Update.
24383         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
24384         (ffsll): Declare, missing since 2011-07-15.
24386 2017-05-05  Bruno Haible  <bruno@clisp.org>
24388         stdlib-c++-tests: Update.
24389         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
24390         2011-10-18.
24391         (ptsname_r): Declare, missing since 2011-11-07.
24392         (qsort_r): Declare, missing since 2014-08-29.
24393         (random, srandom, initstate, setstate): Declare, missing since
24394         2012-01-14.
24395         (secure_getenv): Declare, missing since 2013-02-05.
24397 2017-05-05  Bruno Haible  <bruno@clisp.org>
24399         stdio-c++-tests: Update.
24400         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
24402 2017-05-05  Bruno Haible  <bruno@clisp.org>
24404         signal-h-c++-tests: Update.
24405         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
24407 2017-05-05  Bruno Haible  <bruno@clisp.org>
24409         math-c++-tests: Update.
24410         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
24411         (fma): Declare, missing since 2011-10-17.
24412         (fmal): Declare, missing since 2011-10-17.
24414 2017-05-05  Bruno Haible  <bruno@clisp.org>
24416         locale-c++-tests: Update.
24417         * tests/test-locale-c++.cc (localeconv): Declare, missing since
24418         2012-03-25.
24420 2017-05-05  Bruno Haible  <bruno@clisp.org>
24422         inttypes-c++-tests: New module.
24423         * tests/test-inttypes-c++.cc: New file.
24424         (strtoimax): Declare, missing since 2012-01-05.
24425         (strtoumax): Declare, missing since 2012-01-05.
24426         * modules/inttypes-c++-tests: New file.
24428 2017-05-05  Bruno Haible  <bruno@clisp.org>
24430         dirent-c++-tests: Update.
24431         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24432         (rewinddir): Declare, missing since 2011-09-13.
24433         (dirfd): Declare, missing since 2010-03-08.
24435 2017-05-04  Bruno Haible  <bruno@clisp.org>
24437         argp: Fix mistake in 2017-04-23 commit.
24438         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24439         assume that strerror_r returns 'int', not 'char *'.
24441 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24443         argp: Fix typo.
24444         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24446 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24448         utimens: port to Emacs + MS-Windows
24449         Skip the new MS-Windows-specific code if Emacs.
24450         * lib/utimens.c [EMACS_CONFIGUATION]:
24451         Avoid new MS-Windows-specific code.
24452         (USE_SETFILETIME): New macro.
24453         (fdutimens): Use it.
24455 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24457         tzset: update doc for TZ problems on MS-Windows
24458         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24459         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24460         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24461         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24462         * doc/posix-functions/wcsftime.texi:
24463         Mention some issues with TZ under MS-Windows.
24465 2017-05-01  Bruno Haible  <bruno@clisp.org>
24467         copy-file: Fix build error on mingw.
24468         * modules/copy-file (Depends-on): Add 'close'.
24470 2017-05-01  Bruno Haible  <bruno@clisp.org>
24472         tzset: Work around TZ problem on native Windows.
24473         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24474         Windows, set REPLACE_TZSET to 1.
24475         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24476         invoke '_tzset' instead of 'tzset'.
24477         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24479         * modules/time_rz (Depends-on): Add tzset.
24480         * lib/time_rz.c (tzset): Remove fallback definition.
24481         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24483 2017-05-01  Bruno Haible  <bruno@clisp.org>
24485         mktime: Fix dependencies.
24486         * modules/mktime (Depends-on): Add 'time'.
24488 2017-05-01  Bruno Haible  <bruno@clisp.org>
24490         New module 'localtime-buffer', split off from module 'gettimeofday'.
24491         * lib/localtime-buffer.h: New file.
24492         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24493         * lib/time.in.h (tzset): New declaration.
24494         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24495         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24496         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24497         moved to lib/localtime-buffer.c or lib/tzset.c.
24498         * m4/localtime-buffer.m4: New file.
24499         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24500         HAVE_TZSET, REPLACE_TZSET.
24501         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24502         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24503         gl_LOCALTIME_BUFFER_NEEDED.
24504         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24505         since 2007-01-18.
24506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24507         tzset.
24508         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24509         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24510         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24512         * modules/localtime-buffer: New file.
24513         * modules/time (Depends-on): Remove 'gettimeofday'.
24514         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24515         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24516         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24517         (Files): Add lib/tzset.c.
24518         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24519         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24520         gl_TIME_MODULE_INDICATOR.
24521         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24523 2017-05-01  Bruno Haible  <bruno@clisp.org>
24525         copy-file: Preserve sub-second time stamps.
24526         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24527         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24528         transport the time stamps from the original file to the destination
24529         file.
24530         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24531         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24532         utime-h.
24534 2017-05-01  Bruno Haible  <bruno@clisp.org>
24536         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24537         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24538         also on MSVC.
24539         Reported by Eli Zaretskii <eliz@gnu.org>.
24541 2017-05-01  Bruno Haible  <bruno@clisp.org>
24543         wchar: Fix compilation error with the original mingw.org mingw.
24544         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24545         <stddef.h> instead.
24546         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24547         gl_WCTYPE_H.
24548         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24549         gl_TYPE_WINT_T_PREREQ instead.
24550         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24551         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24552         Reported by Eli Zaretskii <eliz@gnu.org>.
24554 2017-04-30  Bruno Haible  <bruno@clisp.org>
24556         utimecmp: Add support for native Windows.
24557         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24559 2017-04-30  Bruno Haible  <bruno@clisp.org>
24561         utimens: Add support for native Windows.
24562         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24563         (fdutimens): Provide a native Windows implementation, like utime.c with
24564         added tv_nsec support.
24565         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24566         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24568 2017-04-30  Bruno Haible  <bruno@clisp.org>
24570         wcsftime: New module.
24571         * lib/wchar.in.h (wcsftime): New declaration.
24572         * lib/wcsftime.c: New file.
24573         * m4/wcsftime.m4: New file.
24574         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24575         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24576         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24578         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24579         * modules/wcsftime: New file.
24580         * doc/posix-functions/wcsftime.texi: Mention the new module.
24582 2017-04-30  Bruno Haible  <bruno@clisp.org>
24584         strftime-fixes: New module.
24585         * lib/time.in.h (strftime): New declaration.
24586         * lib/strftime-fixes.c: New file.
24587         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24588         (gl_FUNC_STRFTIME): Remove macro.
24589         * m4/strftime-fixes.m4: New file.
24590         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24591         REPLACE_STRFTIME.
24592         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24593         REPLACE_STRFTIME.
24594         * modules/strftime-fixes: New file.
24595         * doc/posix-functions/strftime.texi: Mention the new module.
24597 2017-04-30  Bruno Haible  <bruno@clisp.org>
24599         mktime: Work around TZ problem on native Windows.
24600         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24601         from the native Windows workaround.
24602         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24603         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24604         'guessing no'.
24605         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24606         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24607         NEED_MKTIME_WINDOWS.
24608         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24609         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24610         NEED_MKTIME_INTERNAL.
24611         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24612         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24613         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24614         not REPLACE_MKTIME.
24615         * doc/posix-functions/mktime.texi: Mention the native Windows
24616         workaround.
24618 2017-04-30  Bruno Haible  <bruno@clisp.org>
24620         localtime: New module.
24621         * lib/time.in.h (localtime): Declare also if requested by module
24622         'localtime'.
24623         * lib/localtime.c: New file.
24624         * m4/localtime.m4: New file.
24625         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24626         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24627         * modules/localtime: New file.
24628         * doc/posix-functions/localtime.texi: Mention the new module.
24630 2017-04-30  Bruno Haible  <bruno@clisp.org>
24632         ctime: New module.
24633         * lib/time.in.h (ctime): New declaration.
24634         * lib/ctime.c: New file.
24635         * m4/ctime.m4: New file.
24636         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24637         REPLACE_CTIME.
24638         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24639         * modules/ctime: New file.
24640         * doc/posix-functions/ctime.texi: Mention the new module.
24642 2017-04-30  Bruno Haible  <bruno@clisp.org>
24644         gettimeofday: Provide higher resolution on native Windows.
24645         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24646         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24647         (initialize): Initialize it.
24648         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24649         'struct timeval'. Don't use _ftime().
24650         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24651         <sys/timeb.h> and _ftime.
24653 2017-04-30  Bruno Haible  <bruno@clisp.org>
24655         Document the problem with the Cygwin environment variable TZ.
24656         * doc/posix-functions/tzset.texi: Add note about TZ.
24657         * doc/posix-functions/ctime.texi: Likewise.
24658         * doc/posix-functions/localtime.texi: Likewise.
24659         * doc/posix-functions/mktime.texi: Likewise.
24660         * doc/posix-functions/strftime.texi: Likewise.
24661         * doc/posix-functions/wcsftime.texi: Likewise.
24662         * doc/pastposix-functions/ftime.texi: Likewise.
24664 2017-04-30  Bruno Haible  <bruno@clisp.org>
24666         utime-tests: New module.
24667         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24668         * tests/test-utimens-common.h: Include <sys/stat.h>.
24669         * modules/utime-tests: New file.
24671 2017-04-29  Bruno Haible  <bruno@clisp.org>
24673         utime: New module.
24674         * lib/utime.in.h: Add comment for snippets.
24675         (utime): New declaration.
24676         * lib/utime.c: New file.
24677         * m4/utime.m4: New file.
24678         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24679         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24680         REPLACE_UTIME.
24681         * modules/utime-h (Depends-on): Add snippets.
24682         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24683         Insert snippets.
24684         * modules/utime: New file.
24685         * doc/posix-functions/utime.texi: Mention the new module.
24687 2017-04-29  Bruno Haible  <bruno@clisp.org>
24689         utime-h: Modernize handling of 'struct utimbuf'.
24690         * lib/utime.in.h: Include next <utime.h> if it exists.
24691         (utimbuf): Define to _utimbuf on native Windows.
24692         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24693         Set UTIME_H on native Windows.
24694         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24695         * modules/utime-h (Depends-on): Add include_next.
24696         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24697         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24699         * lib/utimens.c (utimbuf): Remove fallback definition.
24700         * m4/utimens.m4 (gl_UTIMENS): Don't require
24701         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24702         * m4/utimbuf.m4: Remove file.
24703         * modules/utimens (Files): Remove m4/utimbuf.m4.
24705 2017-04-29  Bruno Haible  <bruno@clisp.org>
24707         Make use of module 'utime-h'.
24708         * modules/copy-file (Depends-on): Add utime-h.
24709         * lib/copy-file.c: Assume that <utime.h> exists.
24710         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24712         * modules/utimens (Depends-on): Add utime-h.
24713         * lib/utimens.c: Assume that <utime.h> exists.
24715 2017-04-29  Bruno Haible  <bruno@clisp.org>
24717         utime-h: New module.
24718         * m4/utime_h.m4: New file.
24719         * lib/utime.in.h: New file.
24720         * modules/utime-h: New file.
24721         * doc/posix-headers/utime.texi: Mention the new module.
24723         * tests/test-utime-h.c: New file.
24724         * modules/utime-h-tests: New file.
24726 2017-04-30  Bruno Haible  <bruno@clisp.org>
24728         Fix a few typos.
24729         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24730         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24731         * doc/posix-functions/fstat.texi: Fix a plural typo.
24732         * doc/posix-functions/stat.texi: Likewise.
24733         * m4/include_next.m4: Update comments.
24735 2017-04-29  Bruno Haible  <bruno@clisp.org>
24737         error: Fix mistake in 2017-04-23 commit.
24738         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24739         assume that strerror_r returns 'int', not 'char *'.
24741 2017-04-29  Bruno Haible  <bruno@clisp.org>
24743         stat: Fix time_t values and other problems on native Windows platforms.
24744         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24745         implementations of stat().
24746         * lib/stat.c: Include filename.h instead of dosname.h. Include
24747         malloca.h, stat-w32.h.
24748         (is_unc_root): New function.
24749         (rpl_stat): New implementation for native Windows. Remove
24750         REPLACE_FUNC_STAT_DIR code.
24751         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24752         Don't define REPLACE_FUNC_STAT_DIR.
24753         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24754         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24755         (Depends-on): Remove dosname. Add filename, malloca.
24756         (configure.ac): Also compile lib/stat-w32.c.
24758 2017-04-29  Bruno Haible  <bruno@clisp.org>
24760         fstat: Fix time_t values on native Windows platforms.
24761         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24762         * lib/stat-w32.h: New file.
24763         * lib/stat-w32.c: New file.
24764         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24765         stat-w32.h instead.
24766         (fstat_nothrow): Remove function.
24767         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24768         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24769         always.
24770         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24771         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24772         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24773         (configure.ac): Also compile lib/stat-w32.c.
24775 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24777         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24778         Problem reported by Assaf Gordon and Gavin Smith in:
24779         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24780         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24781         #define this, too.
24783 2017-04-29  Bruno Haible  <bruno@clisp.org>
24785         strerror_r-posix: Fixes for MSVC 14.
24786         * lib/strerror_r.c: Include <stdarg.h>.
24787         (strerror_r): Provide error messages for errno values 100...140.
24788         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24790 2017-04-28  Bruno Haible  <bruno@clisp.org>
24792         noreturn: New module.
24793         * lib/noreturn.h: New file.
24794         * modules/noreturn: New file.
24795         * tests/test-noreturn.c: New file.
24796         * modules/noreturn-tests: New file.
24797         * tests/test-noreturn-c++.cc: New file.
24798         * modules/noreturn-c++-tests: New file.
24800 2017-04-27  Bruno Haible  <bruno@clisp.org>
24802         wctype-h: Fix compilation error with the original mingw.org mingw.
24803         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24804         HAVE_CRTDEFS_H.
24805         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24806         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24807         <stddef.h> instead.
24808         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24810 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24812         nap.h: Fix compilation on non windows platforms
24813         * tests/nap.h: Move misplaced endif.
24815 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24816         and Paul Eggert  <eggert@cs.ucla.edu>
24818         time_rz: fix heap buffer overflow vulnerability
24819         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24820         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24821         whether there is enough buffer space available, thus avoiding
24822         the problematic promotion of signed to unsigned causing an invalid
24823         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24824         the start of the buffer.
24825         * tests/test-parse-datetime.c (main): Add a test case written by
24826         Paul Eggert, which overwrites enough of the heap so that
24827         standard glibc will fail with "free(): invalid pointer"
24828         without the patch applied.
24830 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24832         xalloc: add missing integer overflow check
24833         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24834         overflow when P is null.
24836 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24838         parse-datetime: make it standalone
24839         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24840         (_GL_ATTRIBUTE_FORMAT): New macro.
24841         These are needed to get './gnulib-tool --test parse-datetime' to work.
24843 2017-04-23  Bruno Haible  <bruno@clisp.org>
24845         nap.h: Port to native Windows.
24846         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24847         use nap_fd instead. On native Windows, close and reopen nap_fd.
24848         (nap_works): Don't compare the ctimes, because on native Windows, these
24849         are the creation times.
24850         (nap): Update.
24852 2017-04-23  Bruno Haible  <bruno@clisp.org>
24854         nap.h: Fix logic.
24855         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24857 2017-04-23  Bruno Haible  <bruno@clisp.org>
24859         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24860         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24861         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24862         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24863         * lib/argp-help.c (__argp_failure): Likewise.
24865 2017-04-23  Bruno Haible  <bruno@clisp.org>
24867         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24868         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24869         * lib/strerror_r.c: Likewise.
24871 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24873         Target a C99 subset, not a C89 subset
24874         For many years Gnulib has targeted C89 and has resisted using C99
24875         features, as some Gnulib-using programs still wanted to target
24876         C89.  As this no longer seems to be the case, relax the porting
24877         requirements to allow some C99 features.  This is merely a change
24878         to the documentation, to give other Gnulib developers a chance to
24879         weigh in on the topic.
24880         * doc/extern-inline.texi (extern inline):
24881         * doc/gnulib-readme.texi (Portability guidelines):
24882         * doc/gnulib-tool.texi (Initial import):
24883         * doc/gnulib.texi (Header files):
24884         Modernize to talk about C99 and C11 instead of C89 and C99.
24885         * doc/gnulib-readme.texi (Portability guidelines):
24886         Now a section, not merely a subsection, so that it
24887         can be split up.  Modernize a bit.
24888         (C language versions, C99 features assumed)
24889         (C99 features avoided):
24890         New sections.
24892 2017-04-23  Bruno Haible  <bruno@clisp.org>
24894         doc: New section "Modules that modify the way other modules work".
24895         * doc/gnulib.texi (Modules that modify the way other modules work): New
24896         section.
24898 2017-04-23  Bruno Haible  <bruno@clisp.org>
24900         stat-time: Update comments.
24901         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24902         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24903         Windows.
24905 2017-04-01  Bruno Haible  <bruno@clisp.org>
24907         glob: Fix more memory leaks.
24908         * lib/glob.c (glob): Free allocated memory before returning.
24909         Reported by Coverity via Tim Rühsen.
24911 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24913         poll: improve fast check for out-of-range NFD
24914         * lib/poll.c: Do not include intprops.h.
24915         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24916         * modules/poll (Depends-on): Remove intprops.
24918         ftoastr: cite a newer paper
24919         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24920         instead of Loitsch 2010.
24922 2017-04-22  Bruno Haible  <bruno@clisp.org>
24924         poll: Enable argument check also in the Windows implementation.
24925         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24926         Reported by Paul Eggert.
24928 2017-04-22  Bruno Haible  <bruno@clisp.org>
24930         getlogin_r: Work around bug in Mac OS X 10.12.
24931         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24932         bug.
24933         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24934         given size minus 1, call getlogin_r a second time, on a larger buffer.
24935         * modules/getlogin_r (Depends-on): Add malloca.
24936         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24938 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24940         parse-datetime: fix %z and prefer signed int
24941         %z problem reported by Pádraig Brady in:
24942         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24943         While fixing it, I decided to prefer signed ints to size_t, as
24944         they are less error-prone (e.g., ubsan catches overflow).
24945         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24946         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24947         counts, since signed integers make for better debugging.
24948         (date): Don’t assume %z works in printf formats.
24949         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24950         sizes of buffers known to be small, e.g., because we’re using snprintf.
24951         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24953 2017-04-22  Bruno Haible  <bruno@clisp.org>
24955         *printf: Work around rounding bug on Mac OS X.
24956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24957         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24958         Mac OS X and FreeBSD.
24959         * doc/glibc-functions/*printf.texi: Likewise.
24961 2017-04-22  Bruno Haible  <bruno@clisp.org>
24963         vasnprintf tests: Avoid warnings.
24964         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24965         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24966         test.
24968 2017-04-22  Bruno Haible  <bruno@clisp.org>
24970         sys_file tests: Avoid warning.
24971         * tests/test-sys_file.c (main): Add a default clause to the switch
24972         statement.
24974 2017-04-22  Bruno Haible  <bruno@clisp.org>
24976         sethostname: Update doc.
24977         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24978         Mac OS X.
24980 2017-04-22  Bruno Haible  <bruno@clisp.org>
24982         quotearg tests: Avoid warnings.
24983         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24984         false.
24986 2017-04-22  Bruno Haible  <bruno@clisp.org>
24988         poll: Enable argument check.
24989         * lib/poll.c: Include intprops.h.
24990         (poll): Check value of nfd correctly.
24991         * modules/poll (Depends-on): Add intprops.
24993 2017-04-22  Bruno Haible  <bruno@clisp.org>
24995         get-rusage-data: Avoid warnings on Mac OS X.
24996         * lib/get-rusage-data.c: On Mac OS X, don't define
24997         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24998         (get_rusage_data) [Mac OS X]: Just return 0.
25000 2017-04-22  Bruno Haible  <bruno@clisp.org>
25002         xbinary-io: Fix build error.
25003         * modules/xbinary-io (Depends-on): Add gettext-h.
25004         * lib/xbinary-io.c: Include gettext.h and define _().
25005         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
25006         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
25008 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25010         parse-datetime: overflow and debug cleanups
25011         This long patch was triggered by this bug report from Ruediger Meier:
25012         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
25013         I fixed the bug he noted, then found some others nearby, and then
25014         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
25015         up some of the code to follow GNU standards while I was at it.
25016         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
25017         use c_isdigit.
25018         (EPOCH_YEAR): Remove; unused.
25019         (TM_YEAR_BASE): Now an enum rather than a macro.
25020         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
25021         time zone offset, since timezones now are in terms of seconds and
25022         not minutes.
25023         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
25024         appropriate.  Verify that intmax_t is wide enough.
25025         (time_overflow, time_zone_str): New functions, used to deal
25026         more reliably with overflow.
25027         (dbg_printf): Add printf attribute, to help catch integer width errors.
25028         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
25029         (%union, to_hour, yylex, parse_datetime2):
25030         Use intmax_t instead of long int and/or long_time_t.
25031         All uses changed.
25032         (DBGBUFSIZE): Move earlier.
25033         (relative_time, set_hhmmss, parser_control):
25034         Just use int for nanoseconds and for time zones; that’s wide enough.
25035         (parser_control): Use bool for members like year_seen that can
25036         be booleans instead of counters.  All uses changed.
25037         Remove debug_default_input_timezone; no longer needed.
25038         All uses removed.
25039         (apply_relative_time): Return a bool overflow flag.
25040         All uses changed to check for overflow.
25041         (apply_relative_time, zone, date, relunit, relunit_snumber)
25042         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
25043         Check for integer overflow portably.
25044         (str_days): Use just int for N, as it’s wide enough.
25045         Prefer 2D char arrays to arrays of char * when it looks like
25046         2D is a win on typical platforms.
25047         Prefer snprintf to strncpy/strncat, for simplicity;
25048         all buffers are smaller than INT_MAX so this is safe.
25049         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
25050         (debug_print_current_time): Don’t assume tv_nsec is of type long,
25051         as this is not true on x32.  Output "." before any nanoseconds.
25052         (debug_print_current_time, parse_datetime2):
25053         Output local zones using a more-consistent format.
25054         (debug_print_current_time, date, parse_datetime2):
25055         (main) [TEST]:
25056         Don’t assume time_t is the same width as long.
25057         (print_rel_part): New function, replacing ...
25058         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
25059         (debug_print_relative_time): Use bool for boolean.
25060         (local_zone): dsts_seen now counts only tDST instances.
25061         (date): Fix printf of size_t to use %z.  Do not assume numeric
25062         tokens have negative values merely because the context suggests
25063         a syntax with "-" separating tokens.
25064         (time_zone_hhmm): Return bool success indicator, which checks for
25065         overflow.  Store result into PC->time_zone instead.  All callers
25066         changed.
25067         (tm_year_str): New function.  Return a bool success indicator and
25068         store the result into a buffer.  All callers changed.  Output the
25069         numerically correct string even if adding 1900 to the year would
25070         overflow.
25071         (to_tm_year): New function, replacing the old to_year.  All
25072         callers changed.
25073         (tm_diff): Sync with glibc.
25074         (lookup_word): Use to_uchar instead of doing it by hand.
25075         (TZBUFSIZE): Now local to the only function that needs it.
25076         (debug_strfdatetime): Simplify now that time zones are int seconds.
25077         (debug_strfdate): Work even if tm_year + 1900 would overflow.
25078         (get_effective_timezone): Remove.  All uses removed.
25079         (parse_datetime2): Use fprintf in pieces instead of snprintfing
25080         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
25081         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
25082         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
25083         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
25084         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
25085         * modules/parse-datetime (Depends-on): Add inttypes.
25087 2017-04-21  Bruno Haible  <bruno@clisp.org>
25089         gettext-h: Avoid -Wundef warning.
25090         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
25091         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
25092         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
25094 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
25096         error: Avoid "function declaration isn't a prototype" warning.
25097         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
25099 2017-04-21  Bruno Haible  <bruno@clisp.org>
25101         vasnprintf: Fix for MSVC 14.
25102         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
25103         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
25104         of !HAVE_SNPRINTF_RETVAL_C99.
25106 2017-04-21  Bruno Haible  <bruno@clisp.org>
25108         mbrtowc tests: Fix test failures on MSVC 14.
25109         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
25110         behaviour for invalid input.
25112 2017-04-21  Bruno Haible  <bruno@clisp.org>
25114         mbsinit: Fix for MSVC 14.
25115         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
25116         implementation that is in sync with mbrtowc.c. On other platforms, use
25117         an adequate ad-hoc implementation.
25119 2017-04-21  Bruno Haible  <bruno@clisp.org>
25121         Fix test-mbrtowc5.sh failure on native Windows.
25122         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
25123         "C".
25125 2017-04-21  Bruno Haible  <bruno@clisp.org>
25127         Avoid accidental use of native Windows APIs on Cygwin.
25128         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
25129         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
25130         * lib/localename.c (WINDOWS_NATIVE): Likewise.
25132 2017-04-20  Bruno Haible  <bruno@clisp.org>
25134         Remove red warnings from the generated MODULES.html.
25135         * modules/fcntl (Description): Disambiguate function references.
25136         * modules/getcwd-lgpl (Description): Likewise.
25137         * modules/hostent (Description): Likewise.
25138         * modules/servent (Description): Likewise.
25139         * modules/tempname (Description): Likewise.
25141 2017-04-20  Bruno Haible  <bruno@clisp.org>
25143         verify tests: Fix spurious failure with parallel make.
25144         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
25145         EXTRA_PROGRAMS.
25146         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
25147         * tests/test-verify-try.c: New file.
25148         * modules/verify-tests (Files): Add it.
25149         (EXTRA_PROGRAMS): Add test-verify-try.
25150         (MOSTLYCLEANFILES): Update accordingly.
25151         Reported by Adam James Stewart <ajstewart@anl.gov>.
25153 2017-04-18  Bruno Haible  <bruno@clisp.org>
25155         vma-iter: Fix compilation error on Solaris 7.
25156         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
25157         like on IRIX, OSF/1.
25158         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25160 2017-04-18  Bruno Haible  <bruno@clisp.org>
25162         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
25163         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
25164         included.
25165         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
25166         <sys/procfs.h>.
25167         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
25168         <sys/procfs.h> cannot be included.
25169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25171 2017-04-18  Bruno Haible  <bruno@clisp.org>
25173         getopt-gnu: Add comments.
25174         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
25175         * modules/getopt-gnu (configure.ac): Likewise.
25177 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
25179         regex: port better to Solaris 10
25180         Solaris 10 <locale.h> includes <libintl.h>, which #defines
25181         gettext, and this causes a double #define.
25182         Problem reported by Gavin Smith in:
25183         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
25184         * lib/regex_internal.h (gettext): #undef before #defining.
25186 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25188         intprops: improve comments
25189         * lib/intprops.h: Improve and shorten commentary.
25190         For the record, if we ever run into a pedantic compiler that
25191         behaves differently from GCC when converting an out-of-range value
25192         to a signed integer, we can work around the problem with something
25193         like the following code, where UCT is the signed counterpart of T
25194         (UCT is sometimes narrower than UT) and all callers are changed
25195         accordingly:
25196         #if __SUNPRO_C <= 0x5120
25197         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25198            ((t) ((ut) (a) op (ut) (b)))
25199         #else
25200         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25201            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
25202             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
25203                + TYPE_MINIMUM (t)) \
25204             : (t) (uct) ((ut) (a) op (ut) (b)))
25205         #endif
25207 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25209         intprops: try to avoid tickling similar bugs
25210         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
25211         needs to be the same width as T; it can be wider.
25212         Change callers so that UT is at least as wide as unsigned int,
25213         as I suspect that this is less likely to run into compiler bugs.
25215         intprops: port to Oracle Studio 12.3 x86
25216         Problem reported by Gavin Smith in:
25217         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
25218         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25219         Convert unsigned to signed via the usual rather than the standard way,
25220         to avoid a compiler bug in Oracle Studio 12.3 x86.
25222 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
25224         getopt: prefer - to _ in new file names
25225         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
25226         * lib/getopt-core.h: Rename from lib/getopt_core.h.
25227         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
25228         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
25229         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
25230         All uses changed.
25232         getopt: port recent getopt changes to macOS
25233         Problem reported by Harald Maier (Bug#26398).
25234         The macOS C compiler uses __nonnull for its own purposes and that
25235         clashes with glibc's __nonnull.
25236         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
25237         * lib/getopt_cdefs.in.h (__nonnull): Remove.
25238         * lib/getopt_core.h (getopt):
25239         * lib/getopt_ext.h (getopt_long, getopt_long_only):
25240         Use _GL_ARG_NONNULL, not __nonnull.
25241         * lib/unistd.in.h: Move snippet hooks to before where the getopt
25242         .h files are included, so that _GL_ARG_NONNULL is defined in time.
25243         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
25244         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
25246 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
25248         getopt-gnu: omit some duplicate code
25249         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
25250         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
25251         gnulib-tool already does this.
25252         * modules/getopt-gnu (configure.ac): Omit code duplicated from
25253         getopt-posix, which we depend on.
25255         getopt-posix: use angle-bracket include
25256         * lib/getopt1.c: Include <config.h>, not "config.h".
25258 2017-04-06  Zack Weinberg  <zackw@panix.com>
25260         getopt: annotate files with relationship to glibc
25262         As the final act in this patchset, adjust the message at the top of
25263         each file to indicate which files are synced with glibc.  (This has
25264         already been done for most of the headers.)
25266         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
25267         Mention in top-of-file boilerplate that these files are shared
25268         between glibc and gnulib.
25271         getopt: split up getopt.in.h and eliminate __need_getopt
25273         Over in glibc, all of the __need macros are being phased out in favor
25274         of small headers that declare only the necessary components, as this
25275         is much simpler and less prone to bugs.  As getopt is shared with
25276         glibc, gnulib needs to do the same for __need_getopt.
25278         __need_getopt is misnamed; what it really means is "we want only the
25279         getopt features specified in POSIX, not the GNU extensions".  glibc
25280         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
25281         these files can be shared verbatim with gnulib.  The portability
25282         wrapper, on the other hand, they have renounced altogether; glibc's
25283         getopt.h will no longer be shared with gnulib at all.  In exchange,
25284         certain glibc-specific quirks (having to do with __posix_getopt) no
25285         longer need appear in gnulib's headers at all.
25287         This patch merges getopt_core.h and getopt_ext.h from glibc, and
25288         splits up the current gnulib-side portability wrapper into three
25289         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
25290         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
25291         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
25292         unistd.in.h just use them.  All new files are clearly marked with
25293         whether they are shared with glibc.
25295         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
25296         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
25297         with glibc, and ...
25298         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
25299         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
25300         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
25301         instead of defining __need_getopt and including the full getopt.h.
25303         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
25304         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
25305         * modules/getopt-posix (Files): Add new headers and sort list.
25306         (Depends-on): No longer need snippet/arg-nonnull.
25307         (Makefile.am): Generate getopt_cdefs.h.
25310         getopt: better handling of ambiguous options
25312         glibc's getopt uses alloca to construct a linked list of possibilities
25313         for an "ambiguous" long option.  In gnulib, malloc should be used
25314         instead.  Providing for both cases complicates things a fair bit.
25316         This patch rewrites ambiguous-option handling to use a boolean vector
25317         instead of a linked list.  There is then only one allocation that
25318         might need freeing; in glibc it can honor __libc_use_alloca as usual,
25319         and in gnulib we define __libc_use_alloca to always be false, so we
25320         don't need ifdefs in the middle of the function.  This should also be
25321         slightly more efficient in the normal case of long options being fully
25322         spelled out -- I think most people aren't even aware they _can_
25323         sometimes abbreviate long options.
25325         One interesting consequence is that the list of possibilities is now
25326         printed in exactly the order they appear in the list of long options,
25327         instead of the first possibility being shuffled to the end.
25329         (The patch looks bigger than it really is because there's a fair bit
25330         of reindentation and code rearrangement.)
25332         * lib/getopt.c: When used standalone, define __libc_use_alloca
25333         as always false and alloca to abort if called.
25334         (process_long_option): Rewrite handling of ambiguous long options
25335         to use a single boolean vector, not a linked list; use
25336         __libc_use_alloca to decide whether to allocate this using alloca.
25339         getopt: refactor long-option handling
25341         There were two copies of the bulk of the code to handle long options.
25342         Now there is only one.
25344         This change temporarily removes the logic to avoid using alloca when
25345         standalone; the next patch in the series will restore it.
25347         * lib/getopt.c (process_long_option): New function split out
25348         from _getopt_internal_r.
25349         (_getopt_internal_r): Replace both copies of the long-option
25350         processing code with calls to process_long_option.
25353         getopt: tidy up _getopt_initialize a bit
25355         _getopt_data.__posixly_correct is completely redundant to
25356         _getopt_data.__ordering, and some work that logically belongs in
25357         _getopt_initialize was being done by _getopt_internal_r, making the
25358         code harder to understand.
25360         As a side effect, getenv will no longer be called if the first
25361         character of the options string is '+' or '-', which is probably a
25362         Good Thing.  (Perhaps we should have a flag character that
25363         specifically asks for the permutation behavior?)
25365         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
25366         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
25367         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
25370         getopt: merge from glibc: repetition reduction
25372         The definitions of the entry point functions 'getopt' and
25373         '__posix_getopt' can be made substantially less repetitive with a
25374         helper macro.
25376         While I was merging the const-correctness changes from gnulib into
25377         glibc I noticed there are still some unnecessary casts in
25378         _getopt_internal_r.
25380         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
25381         a macro.  Consistently cast 'argv' to 'char **' when calling
25382         _getopt_internal.
25383         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
25386         getopt: clean up error reporting
25388         getopt can print a whole bunch of error messages, and when used
25389         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
25390         cancellation point and getopt isn't, and also applying fprintf to a
25391         stream in wide-character mode is not allowed.  So every single error
25392         reporting case has an #ifdef _LIBC block in which it calls internal
25393         libc functions instead.  The counterpart patch series in glibc makes
25394         it possible to simplify all of that down to a set of #defines at the
25395         top of the file; core code is written as if it is safe to just call
25396         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
25397         call any *other* stdio functions.)
25399         * lib/getopt.c: When _LIBC is defined, define fprintf to
25400         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
25401         to _IO_funlockfile.  When neither _LIBC nor
25402         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
25403         funlockfile as no-ops.
25404         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
25405         standalone error-printing code can now be used for libc as well.
25406         Add an flockfile/funlockfile pair around one case where the error
25407         message is printed in several chunks.  Don't use fputc.
25410         getopt: fix fencepost error in ambiguous-W-option handling
25412         getopt_long contains an undocumented (AFAICT) feature in which, if you
25413         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
25414         treated as equivalent to '--foo'.  This is implemented with a partial
25415         second copy of the code for handling long options, and that code
25416         increments optind one too many times when recovering from an ambiguous
25417         abbreviated option, which can cause the main loop to walk past the end
25418         of argv and crash.
25420         I discovered this while writing a test case that tries to exercise all
25421         of getopt's error reporting paths; I wouldn't be surprised to learn
25422         that this feature is never used by real applications.
25424         * lib/getopt.c (_getopt_internal_r): Don't increment
25425         d->optind a second time when reporting ambiguous -W options.
25428         getopt: clean up getopt.c and getopt1.c file headers
25430         In getopt.c, there is no need to include wchar.h at all, and it is
25431         safe nowadays to assume that stdlib.h does declare getenv (several
25432         other gnulib modules make this assumption).
25434         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25435         by using "" inclusions consistently, and there is no actual need to
25436         include stdlib.h (except in the #ifdef TEST block, where it should be
25437         unconditional), nor to provide a backup definition of NULL at all.
25439         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25440         Move inclusion of stdlib.h to #ifdef TEST block and make
25441         unconditional.  Do not define NULL.
25442         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25443         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25444         * modules/getopt-gnu, modules/getopt-posix: Don't call
25445         gl_PREREQ_GETENV.
25448         getopt: harmonize comments with glibc
25450         The comments explaining how the behavior of 'getopt' varies depending
25451         on whether it's the standalone version and whether there are special
25452         characters at the beginning of the options string were inconsistent
25453         between gnulib and glibc, and also out of sync with the code.
25455         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25458         getopt: remove USE_NONOPTION_FLAGS
25460         getopt includes code to parse an environment variable named
25461         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25462         in decimal); but all of it has been #ifdefed out since 2001, with no
25463         official way to turn it back on.
25465         According to commentary in glibc's config.h.in, bash version 2.0
25466         set this environment variable to indicate argv elements that were
25467         the result of glob expansion and therefore should not be treated
25468         as options, but the feature was "disabled later" because "it
25469         caused problems".  According to bash's CHANGES file, "later" was
25470         release 2.01; it gives no more detail about what the problems
25471         were.
25473         Version 2.0 of bash was released on the last day of 1996, and version
25474         2.01 in June of 1997.  Twenty years later, I think it is safe to
25475         assume that this environment variable isn't coming back.
25477         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25478         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25479         __libc_argc and __libc_argv externs, which were only used by
25480         #ifdef USE_NONOPTION_FLAGS blocks.
25483         getopt: tabify, in preparation for merge with glibc
25485         glibc sticks to the GNU default of indenting with a mix of
25486         8-column tabs and spaces; make the gnulib copy match.
25488         getopt.h is not included because it is *not* going to be merged in its
25489         present form.
25491         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25493 2017-04-02  Bruno Haible  <bruno@clisp.org>
25495         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25496         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25497         like it was done in modules/relocatable-lib on 2011-05-21 and in
25498         modules/relocatable-prog on 2011-08-15.
25499         Reported by Reuben Thomas <rrt@sc3d.org>.
25501 2017-03-31  Bruno Haible  <bruno@clisp.org>
25503         glob: Fix invalid free() call.
25504         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25505         static storage to home_dir.
25506         Reported by Coverity via Tim Rühsen.
25508 2017-03-31  Bruno Haible  <bruno@clisp.org>
25510         glob: Fix memory leaks.
25511         * lib/glob.c (glob): Free allocated memory before returning.
25512         Reported by Coverity via Tim Rühsen.
25514 2017-03-31  Bruno Haible  <bruno@clisp.org>
25516         md5, sha1, sha256, sha512: Add comments regarding correctness.
25517         * lib/md5.h (buflen): Add comments regarding range.
25518         * lib/sha1.h (buflen): Likewise.
25519         * lib/sha256.h (buflen): Likewise.
25520         * lib/sha512.h (buflen): Likewise.
25521         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25522         * lib/sha1.c (sha1_process_bytes): Likewise.
25523         * lib/sha256.c (sha256_process_bytes): Likewise.
25524         * lib/sha512.c (sha512_process_bytes): Likewise.
25525         Reported by Coverity via Tim Rühsen.
25527 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25529         getopt: merge from glibc
25530         This does not change anything substantial; it merely simplifies
25531         hypothetical merges back to glibc.
25532         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25533         Change copyright notice to match what is in glibc.
25534         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25535         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25536         __open_memstream rather than open_memstream and __glibc_likely
25537         instead of __builtin_expect.
25538         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25540 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25542         dfa: make [0-9] faster in non-C locales
25543         Problem reported by John P. Linderman (Bug#26193).
25544         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25545         If both ends of the range are ASCII digits, do not worry about
25546         multi-character collating sequences and the like.  Be consistent
25547         about using isalpha as a precondition for setbit_case_fold_c.
25549 2017-03-19  Bruno Haible  <bruno@clisp.org>
25551         lock: Fix compilation error with HP-UX IA64 cc.
25552         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25553         weak on non-glibc platforms.
25555 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25557         stdalign: tweak version# and test for HP-UX IA64
25558         Problems reported by Bruno Haible in:
25559         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25560         * lib/stdalign.in.h (_Alignas):
25561         * m4/stdalign.m4 (gl_STDALIGN_H):
25562         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25563         used octal (as that is how they document it), but it is decimal in
25564         practice now and the ancient implementations no longer matter.
25565         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25567 2017-03-19  Bruno Haible  <bruno@clisp.org>
25569         vma-iter: Add support for Solaris.
25570         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25571         approach.
25572         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25573         * lib/get-rusage-as.c: Update comment about Solaris.
25574         * lib/get-rusage-data.c: Likewise.
25576 2017-03-19  Bruno Haible  <bruno@clisp.org>
25578         vma-iter: Prefer HP-UX specific API on HP-UX.
25579         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25580         * lib/vma-iter.h: Update.
25581         Just in case HP-UX ever implements mquery().
25583 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25585         stdalign: restore previous behavior for HP-UX IA64
25586         See Bruno Haible's email in:
25587         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25588         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25589         * lib/stdalign.in.h (_Alignas):
25590         Assume the '061200' applies to Itanium, not to PA-RISC.
25591         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25593 2017-03-17  Bruno Haible  <bruno@clisp.org>
25595         stat-time, timespec: Support use of the header files in C++ mode.
25596         * lib/stat-time.h: Add "C" linkage declaration.
25597         * lib/timespec.h: Likewise.
25599 2017-03-17  Bruno Haible  <bruno@clisp.org>
25601         stdalign: Make it work with HP-UX cc.
25602         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25603         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25604         for HP-UX cc.
25606 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25608         flexmember: try to detect HP-UX 11.31 cc bug
25609         Problem reported by Bruno Haible in:
25610         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25611         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25612         Attempt to detect bug in HP-UX 11.31 cc.
25614 2017-03-16  Bruno Haible  <bruno@clisp.org>
25616         stdint: Fix test compilation failure with HP-UX 11 cc.
25617         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25618         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25619         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25620         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25622 2017-03-14  Bruno Haible  <bruno@clisp.org>
25624         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25625         * gnulib-tool (func_modules_transitive_closure_separately): If
25626         testsrelated_modules ends up with no "real" modules, aside from
25627         modules with applicability 'all', set it to empty.
25629 2017-03-14  Bruno Haible  <bruno@clisp.org>
25631         vma-iter: Add support for HP-UX.
25632         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25633         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25634         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25635         * lib/get-rusage-as.c: Update comment about HP-UX.
25636         * lib/get-rusage-data.c: Likewise.
25637         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25639 2017-03-14  Bruno Haible  <bruno@clisp.org>
25641         limits-h: Make it work with HP-UX cc.
25642         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25643         defined.
25645 2017-03-14  Bruno Haible  <bruno@clisp.org>
25647         Fix test failures on DragonFlyBSD.
25648         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25649         * tests/test-select.h (test_bad_fd): Likewise.
25650         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25652 2017-03-14  Bruno Haible  <bruno@clisp.org>
25654         freadahead: Silence warning on DragonFlyBSD.
25655         * lib/freadahead.c (__sreadahead): Declare ourselves.
25657 2017-03-14  Bruno Haible  <bruno@clisp.org>
25659         vma-iter: Add comment about AIX.
25660         * lib/vma-iter.c: Add comment about why this module is not implemented
25661         on AIX.
25663 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25665         snippets: move unadjusted snippet sources to lib
25666         Problem reported by Michal Privoznik in:
25667         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25668         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25669         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25670         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25671         * lib/unused-parameter.h: Rename from
25672         build-aux/snippet/unused-parameter.h.
25673         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25674         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25675         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25676         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25677         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25678         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25679         Adjust to file renamings.
25681 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25683         gnulib-tool: don't automatically distribute files from top/
25684         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25685         not distribute top/README-release by default, don't distribute files
25686         from top/ unconditionally.
25687         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25688         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25690 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25692         gnulib-tool: fix typo in comment output
25693         * gnulib-tool (func_import): Fix typo with previous change.
25695         snippets: work around GNU Make 3.82 VPATH
25696         When using 'gnulib-tool --gnu-make' on Emacs, and building
25697         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25698         an out-of-source (VPATH) build failed because the sans-copyright
25699         snippet file was not built before the file that used it.
25700         Presumably this is some sort of VPATH thing.  Work around the
25701         problem by using the original snippet, i.e., don’t bother to
25702         remove its copyright notice.
25703         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25704         Don’t assume Automake in comments.  Omit long-incorrect comment.
25705         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25706         (MOSTLYCLEANFILES):
25707         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25708         (MOSTLYCLEANFILES):
25709         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25710         (MOSTLYCLEANFILES):
25711         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25712         (MOSTLYCLEANFILES):
25713         Remove.
25714         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25715         * modules/snippet/c++defs (CXXDEFS_H):
25716         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25717         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25718         Don’t bother to remove the copyright notice; just use the
25719         original snippet as-is.
25721 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25723         gnulib-tool: minor --gnu-make fixups
25724         * gnulib-tool (func_emit_lib_Makefile_am):
25725         Remove useless code that was a blind alley during implementation.
25726         Problem reported by Thien-Thi Nguyen in:
25727         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25728         (func_import): Note the "--gnu-make" option in the output comment.
25730 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25732         gnulib-tool: new option --gnu-make
25733         This is for applications like GNU Emacs that use GNU Make
25734         features instead of Automake.
25735         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25736         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25737         Do not assume Automake.
25738         * gnulib-tool (func_determine_path_separator)
25739         (func_modules_transitive_closure, func_update_file)
25740         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25741         (func_import): Add support for --gnu-make.
25743 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25745         gnulib-common.m4: avoid aclocal.m4 bloat
25746         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25747         Hide AM_PROG_AR from aclocal, so that aclocal does not
25748         install irrelevant macro definitions into aclocal.m4.
25750 2017-03-10  Bruno Haible  <bruno@clisp.org>
25752         vma-iter: Let callers know about error.
25753         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25754         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25756 2017-03-05  Bruno Haible  <bruno@clisp.org>
25758         Fix value of LD for 64-bit compilers on AIX.
25759         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25760         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25762 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25764         dtotimespec: simplify
25765         * lib/dtotimespec.c (dtotimespec): Simplify.
25767 2017-03-04  Bruno Haible  <bruno@clisp.org>
25769         test-calloc-gnu: Reenable test also for GCC 7.
25770         * tests/test-calloc-gnu.c (eight): New function.
25771         (main): Don't skip test; use eight() instead.
25773 2017-03-04  Jim Meyering  <meyering@fb.com>
25775         test-calloc-gnu: port to GCC7
25776         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25777         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25778         and newer would detect that at compilation time.
25780 2017-03-04  Bruno Haible  <bruno@clisp.org>
25782         tests: Avoid compiler warning about uses of null_ptr.
25783         * tests/null-ptr.h: New file.
25784         * tests/test-canonicalize.c: Include null-ptr.h.
25785         (null_ptr): Remove function.
25786         * tests/test-canonicalize-lgpl.c: Likewise.
25787         * tests/test-memmem.c: Likewise.
25788         * tests/test-ptsname_r.c: Likewise.
25789         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25790         * modules/canonicalize-lgpl-tests: Likewise.
25791         * modules/memmem-tests: Likewise.
25792         * modules/ptsname_r-tests: Likewise.
25793         Reported by Jim Meyering.
25795 2017-03-03  Bruno Haible  <bruno@clisp.org>
25797         doc: Mention Mac OS X deficiencies regarding semaphores.
25798         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25799         * doc/posix-functions/sem_destroy.texi: Likewise.
25800         * doc/posix-functions/sem_getvalue.texi: Likewise.
25802 2017-03-03  Bruno Haible  <bruno@clisp.org>
25804         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25805         Reported by Assaf Gordon <assafgordon@gmail.com> via
25806         Pádraig Brady <P@draigBrady.com>.
25807         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25808         semaphores.
25809         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25810         (atomic_int_semaphore): New macro.
25812 2017-02-28  Bruno Haible  <bruno@clisp.org>
25814         perror tests: Tweak for z/OS.
25815         Reported by Daniel Richard G. <skunk@iskunk.org>.
25816         * tests/test-perror.sh: Don't fail z/OS style perror output.
25818 2017-02-26  Bruno Haible  <bruno@clisp.org>
25820         nproc: Refactor large function.
25821         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25822         from num_processors.
25823         (num_processors): In this function, only deal with OMP.
25825 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25827         nproc: adjust handling of OpenMP environment variables
25828         to match the return value from omp_get_num_threads(), i.e.:
25829          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25830          - Treat 0 as an invalid value and ignore
25831         Also remove the call to omp_get_num_threads() because
25832         it's ineffective without the omp pragmas in place.
25833         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25834         so that it can be ignored.
25835         (num_processors): Honor OMP_THREAD_LIMIT even without
25836         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25837         variable being checked, from the previous recent commit.
25839 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25841         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25842         * lib/nproc.c (parse_omp_threads): A new function refactored
25843         from num_processors() to support parsing both of the
25844         above environment variables.
25845         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25846         to accurately reflect the current OpenMP nesting level.
25847         Also support the OMP_THREAD_LIMIT environment variable
25848         to limit the max value determined from OMP_NUM_THREADS.
25849         * modules/nproc: Depend on minmax header.
25850         Suggested by Oliver Heimlich.
25852 2017-02-25  Bruno Haible  <bruno@clisp.org>
25854         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25855         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25857 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25859         ftoastr: port to -Wdouble-promotion
25860         Work around -Wdouble-promotion false alarm in recent GCCs.
25861         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25862         (ftoastr_snprintf, FTOASTR): Use it.
25864 2017-02-21  Bruno Haible  <bruno@clisp.org>
25866         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25867         Reported by Rene Saavedra <rennes@openmailbox.org> in
25868         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25869         * lib/glthread/lock.h: On glibc systems without
25870         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25871         implementation of rwlocks.
25872         * lib/glthread/lock.c: Likewise.
25874 2017-02-20  Bruno Haible  <bruno@clisp.org>
25876         lock tests: Fix build failure on z/OS.
25877         Reported by Daniel Richard G. <skunk@iskunk.org>.
25878         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25879         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25880         exist.
25882 2017-02-19  Bruno Haible  <bruno@clisp.org>
25884         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25885         This helps when CC=clang.
25886         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25887         of /usr/bin/gcc.
25889         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25890         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25892 2017-02-19  Bruno Haible  <bruno@clisp.org>
25894         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25895         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25896         --with-tests --single-configure is specified.
25898 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25900         users.txt: Update links, use HTTPS where possible
25901         * users.txt: Updated to HTTPS where possible,
25902         fixed some links to new locations.
25904 2017-02-16  Bruno Haible  <bruno@clisp.org>
25906         xbinary-io: Fix inlining.
25907         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25909 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25911         xbinary-io: rename from xsetmode
25912         This patch is taken from suggestions by Bruno Haible in:
25913         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25914         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25915         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25916         not ENOTTY, when it is an inappropriate device.
25917         * lib/binary-io.h (SET_BINARY): Resurrect.
25918         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25919         (xset_binary_mode_error): Rename from xsetmode_error.
25920         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25921         (xset_binary_mode): Rename from xsetmode.
25922         All uses changed.
25923         * modules/xbinary-io: Rename from modules/xsetmode.
25924         Update file names.
25925         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25926         * NEWS: Update to match revised behavior.
25928 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25930         tests: Adjust to recent SET_BINARY change
25931         * tests/test-binary-io.c (main):
25932         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25933         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25934         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25935         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25937         xsetmode: new module
25938         This is to fix a problem noted by Eric Blake.
25939         Code was using xfreopen to change files to binary mode, but this
25940         fails for stdout when in append mode.  Such code should use
25941         xsetmode instead.
25942         * NEWS: Document incompatible changes to binary-io module.
25943         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25944         New function.
25945         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25946         (set_binary_mode): New function, which also checks for tty.
25947         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25949 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25951         headers: fix begin-end typos
25952         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25953         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25955         selinux-h: port to PGI 16.10
25956         * lib/se-selinux.in.h: Don't assume that include_next skips over
25957         duplicate -I DIR options.
25959         argp: port to PGI 16.10
25960         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25962 2017-02-13  Darshit Shah  <darnir@gnu.org>
25964         unicase: Update function protoype to match definition.
25965         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25966         uses 'size_t' as the datatype for the 'len' parameter in the functions
25967         it generates. Update the prototype specified here to match the newly
25968         generated function.
25970 2017-02-12  Bruno Haible  <bruno@clisp.org>
25972         times test: Avoid gcc warnings on Linux/x32.
25973         * tests/test-times.c (main): Really cast printf arguments from clock_t
25974         to 'long int'.
25976 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25978         glob: port better to emscripten
25979         Problem reported by Bruno Haible in:
25980         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25981         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25983 2017-02-11  Bruno Haible  <bruno@clisp.org>
25985         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25986         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25987         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25988         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25989         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25990         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25991         Distinguish hppa64 from hppa.
25993 2017-02-10  Bruno Haible  <bruno@clisp.org>
25995         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25996         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25997         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25998         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
26000 2017-02-09  Bruno Haible  <bruno@clisp.org>
26002         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
26003         * doc/gnulib.texi (Libtool and Windows): Recommend
26004         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
26005         Reported by Reuben Thomas <rrt@sc3d.org>.
26007 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
26009         stddef-tests: port to SIZE_MAX <= INT_MAX
26010         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
26011         Do not assume that INT_MAX < SIZE_MAX.
26013 2017-02-01  Bruno Haible  <bruno@clisp.org>
26015         lock tests: Fix link error.
26016         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
26017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26019 2017-01-31  Bruno Haible  <bruno@clisp.org>
26021         lock: Fix link error (regression from 2017-01-05).
26022         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
26023         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
26024         pthread_rwlockattr_destroy weak.
26025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26027 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26029         Port to PGI 16.10 x86-64
26030         This patch fixes one real bug in gl_anylinked_list2.h, along with
26031         some minor glitches that are not bugs.  It does not silence PGI’s
26032         thousands of bogus warnings when compiling test-intprops.c.
26033         Fortunately, the warnings do not cause a failure.
26034         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
26035         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
26036         My goodness, PGI goes back a long ways - this predates C89!
26037         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
26038         For example, ASYNCSAFE (const void *) should expand to
26039         ‘const void *volatile’, not to ‘volatile const void *’.
26040         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
26041         * lib/verify.h (verify) [!__GNUC__]:
26042         Use shorter albeit meaningless string to bypass silly compiler limits.
26043         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
26044         * tests/nan.h (NaNf, NaNd, NaNl):
26045         Use static functions to avoid misguided compiler diagnostics.
26046         Is there some reason we don’t use static functions on all platforms?
26048 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26050         parse-datetime: handle timezones reentrantly
26051         This API change was prompted by a report by Pádraig Brady in:
26052         https://bug.debian.org/851934#10
26053         To help fix the bug, make parse_datetime2 more reentrant.
26054         * NEWS: Document this incompatible change.
26055         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
26056         Add two arguments, the timezone and the timezone name.
26057         All callers changed.  If TZ="..." is specified, use it for
26058         calculating defaults.
26059         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
26060         this code should be usable in a library.
26061         (mktime_ok, get_effective_timezone):
26062         Accept timezone arg too.  All callers changed.
26063         (get_tz): Remove.
26064         (get_effective_timezone): Check for failures.
26066 2017-01-20  Eric Blake  <eblake@redhat.com>
26068         localename: port to cygwin 2.6
26069         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
26070         Cygwin.
26071         * modules/localename (Depends-on): Add extensions, since
26072         NL_LOCALE_NAME() is not visible without it.
26074 2017-01-17  Pádraig Brady  <P@draigBrady.com>
26076         parse-datetime: fix dependence on AC_PROG_SED
26077         * modules/parse-datetime: Use `sed` directly like all other modules.
26078         Reported by J William Piggott
26080 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26082         intprops: update doc URLs
26083         * doc/intprops.texi (Integer Range Overflow): Update URLs.
26085 2017-01-16  Bruno Haible  <bruno@clisp.org>
26087         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
26088         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
26089         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
26090         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
26091         distinguish s390 and s390x.
26092         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
26093         * NEWS: Mention the change regarding 'armel'.
26095 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26097         localeinfo: case_folded_counterparts and WEOF
26098         * NEWS: Document this.
26099         * lib/localeinfo.c (case_folded_counterparts):
26100         First arg is now wint_t, not wchar_t.  This generalizes the
26101         function to also work on WEOF, where it returns 0.
26103         dfa: port to gcc -fsanitize=undefined
26104         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
26105         as this runs afoul of gcc -fsanitize=undefined.
26107 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
26109         strftime: %z is -00 if unknown
26110         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
26111         the caller's responsibility to set 'negative_number'.  All uses changed.
26112         (__strftime_internal): Put '-' before a zero UTC offset if the time
26113         zone abbreviation starts with "-", which is the recently-introduced
26114         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
26115         * tests/test-strftime.c: Test for this.
26117 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26119         dfa: port to older GCC
26120         Problem reported by Assaf Gordon in:
26121         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
26122         * modules/c99: New module.  This merely attempts to use the latest
26123         C version, which should be enough to solve this particular problem.
26124         The idea is to document which Gnulib modules assume C99 or later.
26125         * modules/dfa (Depends-on): Add it.
26127 2017-01-10  Bruno Haible  <bruno@clisp.org>
26129         Update DEPENDENCIES.
26130         * DEPENDENCIES: List only https URLs. Update recommended version for
26131         autoconf, automake, gperf.
26133 2017-01-10  Jim Meyering  <meyering@fb.com>
26135         maint.mk: enforce spelling of "timestamp" (i.e., no space)
26136         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
26137         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
26139 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26141         dfa: minor simplification with emptyset
26142         * lib/dfa.c (build_state): Simplify by using emptyset.
26144 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26146         dfa: shrink constraints from 4 bits to 3
26147         * lib/dfa.c (newline_constraint, letter_constraint)
26148         (other_constraint, prev_newline_dependent)
26149         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
26150         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
26151         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
26152         Constraints need only 3 bits, not 4.  Using smaller integers
26153         shrinks the code a bit and makes grep a tad faster on x86-64.
26155         dfa: omit unnecessary ptrdiff_t check
26156         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
26157         overflow, since xnmalloc does that now.
26159         dfa: omit unnecessary allocation
26160         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
26161         an all-zero follow set works just fine.
26163         dfa: omit unused local
26164         * lib/dfa.c (build_state): Fix up recent change.
26166         maint: remove stray .texi files
26167         Although these were superseded by other files like
26168         doc/posix-functions/ctime.texi, the old files were not removed.
26169         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
26171 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26173         getprogname: fix port to IRIX
26174         * lib/getprogname.c (getprogname) [__sgi]:
26175         Don't dump core if malloc returns NULL.
26177         dfa: fix reallocation bug when matching newlines
26178         Problem reported for sed by S. Gilles (Bug#25390).
26179         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
26180         (dfastate): Reallocate before moving any newline transition ...
26181         (build_state): ... instead of reallocating here, where it is too late.
26183 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26185         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
26186         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
26188 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26190         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
26191         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
26193 2017-01-07  Bruno Haible  <bruno@clisp.org>
26195         stdioext: Port to Minix 3.2 and newer.
26196         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
26197         * lib/fseeko.c (fseeko): Likewise.
26198         Reported by Nelson Beebe via Paul Eggert.
26200 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26202         getprogname: port to IRIX
26203         * lib/getprogname.c (getprogname): Port to IRIX.
26204         Based on an idea by Bastien Roucariès at:
26205         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
26206         via code from Bruno Haible at:
26207         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26209         localename-tests: port to NetBSD 7
26210         Problem reported by Nelson H. F. Beebe.
26211         * tests/test-localename.c:
26212         Test newlocale and uselocale only if both exist.
26214         glob, intprops, xalloc: work around Clang bug
26215         Work around LLVM bug 16404, which is still not fixed.
26216         https://llvm.org/bugs/show_bug.cgi?id=16404
26217         Problem reported by Nelson H. F. Beebe.
26218         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
26219         Remove.
26220         * lib/glob.c (size_add_wrapv):
26221         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
26222         * lib/xalloc-oversized.h (xalloc_oversized):
26223         Do not use overflow builtins if Clang.
26225         dfa: fix 'return' typo
26226         Problem reported by Nelson H. F. Beebe.
26227         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
26229 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26231         parse-datetime: fix generated paths for coverage files
26232         * modules/parse-datetime: Adjust the paths for parse-datetime.y
26233         within parse-datetime.c, so that gcc generates appropriate .gcno
26234         files, allowing lcov to proceed without error.  Previously it
26235         would error trying to find "lib/lib/parse-datetime.y".
26237 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26239         maint.mk: support parallel execution of coverage
26240         * top/maint.mk (coverage): Run dependencies serially,
26241         thus supporting parallel processing of each one,
26242         particularly build-coverage, which builds and runs tests.
26244 2017-01-05  Bruno Haible  <bruno@clisp.org>
26246         lock tests: Prefer semaphore over mutex.
26247         * tests/test-lock.c (USE_SEMAPHORE): New constant.
26248         (struct atomic_int, init_atomic_int, get_atomic_int_value,
26249         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
26250         Suggested by Torvald Riegel <triegel@redhat.com>.
26252 2017-01-05  Bruno Haible  <bruno@clisp.org>
26254         lock: Provide guarantee to avoid writer starvation for rwlocks.
26255         The rationale is: 1) Read-preferring read-write locks are prone to
26256         writer starvation if the number of reader threads multiplied by the
26257         percentage of time they have the lock held is too high. 2) Write-
26258         preferring read-write locks are the only reliable way to avoid this.
26259         3) There have been reports of 'test-lock' hanging on glibc systems
26260         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
26261         and glibc indeed implements read-preferring rwlocks by default, see
26262         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
26263         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
26264         * m4/pthread_rwlock_rdlock.m4: New file.
26265         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26266         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
26267         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26268         of rwlock initialization on glibc systems without
26269         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26270         of rwlocks altogether on non-glibc systems without
26271         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26272         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
26273         * lib/glthread/lock.c [USE_POSIX_THREADS]
26274         (glthread_rwlock_init_for_glibc): New function.
26275         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
26276         comment.
26277         [USE_PTH_THREADS]: New implementation of rwlocks.
26278         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
26279         readers.
26280         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
26281         (Depends-on): Add 'extensions'.
26282         * tests/test-rwlock1.c: New file.
26283         * lock-tests (Files): Add it.
26284         (Depends-on): Add usleep.
26285         (Makefile.am): Add test-rwlock1 to the tests.
26287 2017-01-05  Bruno Haible  <bruno@clisp.org>
26289         thread: Fix pth port.
26290         * lib/glthread/thread.h (pth_init): Declare weak.
26291         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
26292         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
26293         function.
26295 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
26297         parse-datetime: fix debug message on lone year number
26298         Input dates such as
26299           date -d "Apr 11 22:59:00 2011"
26300         are parsed as date (Apr 11, with default year 2016), then time, then a
26301         number (2011). Based on the combination of previously seen tokens,
26302         'digits_to_date_time' determines 2011 to be a year value.
26303         This fixes the debug messages to correctly show the updated year.
26304         Before:
26305             $ date --debug -d 'Apr 11 22:59:00 2011'
26306             date: parsed date part: (Y-M-D) 2016-04-11
26307             date: parsed time part: 22:59:00
26308             date: parsed number part: today/this/now
26309         After:
26310             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
26311             date: parsed date part: (Y-M-D) 2016-04-11
26312             date: parsed time part: 22:59:00
26313             date: parsed number part: year: 2011
26314         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
26315         'debug_year_seen' member fields.
26316         (digits_to_date_time): Update 'year_seen' as needed.
26317         (debug_print_current_time): Inform about year updates.
26318         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
26320         parse-datetime: fix local timezone debug messages
26321         "Local timezones" are strings that affect only DST relative to the
26322         default timezone. The debug messages in parse-datetime.y printed
26323         wrong information when encountering local timezones.
26324         Examples:
26325         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
26326              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
26327              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
26328         When the default timezone relates to the zone strings, EET/EEST are
26329         parsed as local timezones (tLOCAL_ZONE), and only change the DST
26330         value (0/1, respectively):
26331              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
26332              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
26333         * lib/parse-datetime.y (debug_print_current_time): If local timezone
26334         was seen, inform about DST change, don't print actual timezone.
26335         (debug_strfdatetime): If local timezone was seen, use default timezone
26336         (and adjust as needed) instead of using incorrect timezone.
26337         (parse_datetime2): Use correct time-zone source string, and adjust
26338         default timezone as needed.
26340         parse-datetime: add debug warning about DST changes
26341         Incorrect date arithmetic due to daylight saving time (DST) are a
26342         common (false) bug report in coreutils.
26343         Detect two such cases and print a warning:
26344         1. year/month/day adjustments (performed on 'struct tm'),
26345            where 'mktime' returns a different isdst value.
26346         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
26347            where the result of 'localtime(3)' on the value will return a
26348            different isdst value.
26349         Note: DST changes could be harmless or unnoticeable.
26350         Examples (with 'TZ=America/New_York'):
26351         Unnoticeable: result is 2016-Dec-14
26352            $ date -d '2016-06-15 EDT + 6 months' +%b
26353            Dec
26354         Unnoticeable: result is 2016-Dec-15 11:00:00
26355            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
26356            2016-12-15
26357         This is unexpected:
26358            $ date -d '2016-06-01 EDT + 6 months' +%F
26359            2016-11-30
26360         The new debug warnings will show:
26361            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
26362            ...
26363            date: warning: daylight saving time changed after date adjustment
26364            ...
26365         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
26366         print an appropriate warning message.
26368         parse-datetime: add debug warning about date arithmetic
26369         Date arithmetic are done directly on the fields of 'struct tm',
26370         which can result in invalid dates. Normalization with 'mktime(3)'
26371         will then produce a different date - which might cause unexpected
26372         results.
26373         Examples:
26374           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
26375           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
26376         Note that date normalization is not inherently wrong and not rejected,
26377         as it has legitimate uses:
26378           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
26379         If the user asked to adjust months but 'mday' changed,
26380         or user asked to adjust years but 'month' changed - warn about it.
26381             $ ./src/date --debug -d '2016-10-31 - 1 month'
26382             ...
26383             date: warning: when adding relative months/years, \
26384                            it is recommended to specify the 15th of the month
26385             ...
26386             date: warning: month/year adjustment resulted in shifted dates:
26387             date:      adjusted Y M D: 2016 09 31
26388             date:    normalized Y M D: 2010 10 01
26389             ...
26390         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
26391         a warning message. Improve recommendation of when to use 15 of the
26392         month or noon for date arithmetic.
26394         parse-datetime: fix debug message of relative part after timezone
26395         Relative part (e.g '+8 days') after a timezone string was not
26396         reported (was only reported after a timezone number). Due to the
26397         parser's structure, timezone strings with numbers were handled
26398         separately.
26399         before:
26400              # Timezone number + relative part: OK
26401              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
26402              ...
26403              date: parsed relative part: -8 day(s)
26404              # Timezone string + relative part: missing
26405              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
26406              [ missing message ]
26407         After: messages are printed in both cases.
26408         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
26410         parse-datetime: fix incorrect debug message on lone number
26411         A lone number is an absolute value, not a relative time part.
26412         before:
26413            $ date --debug -d '20130101'
26414            date: parsed number part: today/this/now
26415         After:
26416            $ ./src/date --debug -d '20130101'
26417            date: parsed number part: (Y-M-D) 2013-01-01
26418         * lib/parse-datetime.y ('item'/'number' tokens): Call
26419         'debug_print_current_time' instead of 'debug_print_relative_time'.
26421 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26423         doc: modernize for C11 etc.
26424         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26425         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26426         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26428         dfa: prefer functions to FETCH_WC macro
26429         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26430         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26431         wint_t result into DFA->lex.wctok instead of to a separate arg.
26432         All callers changed.  Move more local decls closer to where
26433         they're used.
26435         dfa: narrow more local var scopes
26436         * lib/dfa.c: Move more local decls to be more local.
26438         dfa: remove duplicate assignment
26439         Problem reported by Bruno Haible in:
26440         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26441         * lib/dfa.c (parse_bracket_exp): Simplify.
26443 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26445         dfa: simplify constraint-dependency checking
26446         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26447         (prev_other_constraint): Remove.
26448         (prev_newline_dependent, prev_letter_dependent):
26449         Simplify, to avoid an unnecessary bitwise AND operation.
26451         dfa: prefer functions and constants to macros
26452         * lib/dfa.c: Prefer constants to macros where either will do.
26453         (streq, isasciidigit, newline_constraint)
26454         (letter_constraint, other_constraint, succeeds_in_context)
26455         (prev_newline_constraint, prev_letter_constraint)
26456         (prev_other_constraint, prev_newline_dependent)
26457         (prev_letter_dependent, accepting, accepts_in_context):
26458         Now static functions instead of function-like macros.
26459         Use lower-case names accordingly.  All uses changed.
26461         dfa: narrow more local var scopes
26462         * lib/dfa.c: Move some more local decls down to nearer where
26463         they're needed.
26465 2016-12-31  Jim Meyering  <meyering@fb.com>
26467         dfa: narrow the scope of many local variables
26468         * lib/dfa.c: Now that we are no longer constrained to c89, move
26469         declarations of many variables (often indices) "down" into the
26470         scope(s) where used or to the point of definition.  This is a
26471         no-semantic-change diff.
26473 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26475         version-etc: new year
26476         * build-aux/gendocs.sh (version):
26477         * doc/gendocs_template:
26478         * doc/gendocs_template_min:
26479         * doc/gnulib.texi:
26480         * lib/version-etc.c (COPYRIGHT_YEAR):
26481         Update copyright dates by hand in templates and the like.
26482         * all files: Run 'make update-copyright'.
26484 2016-12-31  Eric Blake  <eblake@redhat.com>
26486         do-release-commit-and-tag: avoid shell syntax error
26487         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26488         contain spaces when rebasing.
26490         maint.mk: hoist gnulib_dir definition earlier
26491         * top/maint.mk (gnulib_dir): Move near top of file.
26493 2016-12-31  Jim Meyering  <meyering@fb.com>
26495         maint.mk: do not always evaluate intprops-related shell
26496         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26497         using gnulib_dir undefined (gnulib_dir is defined later in the
26498         file, which will be fixed separately), and besides, there is no
26499         need to incur the cost of this shell invocation for every single
26500         use of this .mk file.  Reported by Eric Blake in
26501         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26503 2016-12-30  Jim Meyering  <meyering@fb.com>
26505         maint.mk: improve sc_prohibit_intprops_without_use
26506         * top/maint.mk (_intprops_names): Don't hard-code the list of
26507         symbol names.  Instead, derive it on the fly.
26509 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26511         dfa: shorten sbit, success
26512         * lib/dfa.c (struct regex_syntax.sbit):
26513         (struct dfa.success): Use char, not int, for array elements, since
26514         they are all in the range 0..7.
26516         dfa: simplify multibyte_prop etc.
26517         This follows up on a change made when dfa.c was in grep, namely grep
26518         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26519         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26520         That earlier simplification allows for some more simplification
26521         and trimming down here.
26522         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26523         (struct lexer_state): New mamber brack.
26524         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26525         since they must be in the range 0..3 now.
26526         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26527         the brack member now supersedes them.
26528         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26529         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26530         (dfaparse): Remove unnecessary initializations of already-0 storage.
26531         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26532         (dfassbuild): No need to clear sup->mbcsets.
26534         dfa: minor performance tweak
26535         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26537         dfa: wrap charclass inside a struct
26538         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26539         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26540         about 5% faster, where list.txt is generated by 'aspell dump
26541         master | head -n 100000 >list.txt'.  See Bug#22239.
26542         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26543         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26544         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26545         Adjust to this, e.g., by using charclass * rather than charclass.
26546         All callers changed as needed.
26547         (copyset): Remove.  All uses changed to simple assignment.
26548         (parse_bracket_exp): Use zeroset instead of memset.
26550 2016-12-30  Jim Meyering  <meyering@fb.com>
26552         maint.mk: update list of intprops.h symbol names
26553         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26554         This avoids a false failure of the sc_prohibit_intprops_without_use
26555         rule in grep.
26557 2016-12-29  Eric Blake  <eblake@redhat.com>
26559         getopt: fix parallel test failure
26560         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26561         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26562         * tests/test-getopt-main.h (main): Use different file names
26563         in case test-getopt-gnu and test-getopt-posix run in parallel.
26565 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26567         xalloc: x2nrealloc check for ptrdiff_t overflow
26568         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26569         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26571 2016-12-24  Bruno Haible  <bruno@clisp.org>
26573         lock test: Fix performance problem on multi-core machines.
26574         * tests/test-lock.c (USE_VOLATILE): New macro.
26575         (struct atomic_int): New type.
26576         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26577         functions.
26578         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26579         as 'struct atomic_int'.
26580         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26581         reclock_checker_thread, test_recursive_lock): Use the new functions.
26582         Reported by Eric Blake in
26583         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26584         and by Pádraig Brady in
26585         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26587 2016-12-19  Bruno Haible  <bruno@clisp.org>
26589         vma-iter: Fix endless loop on 64-bit Windows.
26590         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26591         'unsigned long'.
26593 2016-12-19  Bruno Haible  <bruno@clisp.org>
26595         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26596         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26597         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26598         Invoke gt_TYPE_WINT_T instead.
26599         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26600         * modules/stdint (Files): Add m4/wint_t.m4.
26601         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26602         * modules/wctype-h (Makefile.am): Likewise.
26603         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26604         not only on MSVC.
26605         * lib/wctype.in.h (wint_t): Likewise.
26607 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26609         getopt-posix-tests: fix Makefile typo
26610         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26611         Fix typo: the last ‘_’ was missing in the name.
26612         I suspect that the typo explains this build failure:
26613         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26614         although I can’t reproduce the problem on Solaris 10 sparc.
26616 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26618         dfa: improve worst-case 'replace' performance
26619         See my note in Bug#22357#71.
26620         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26621         (merge_constrained): New function, which is like
26622         the old 'merge' function, except with a new argument C2.
26623         Simplify the body by avoiding the need for different sections
26624         of code depending on whether one input is exhausted.
26625         (merge): Use the new function.
26626         (delete): Return the constraint of the deleted position,
26627         not the entire position.  Caller changed.
26628         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26630 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26632         dfa: performance improvement for removal of epsilon closure
26633         See Bug#22357#32.
26634         * lib/dfa.c (delete): Use binary search to find deleted index.
26635         (replace): New function.  It replaces a position with the followed set.
26636         (epsclosure): Replace it with a new algorithm.  Update caller.
26638 2016-12-18  Bruno Haible  <bruno@clisp.org>
26640         Split tests for getopt-posix and getopt-gnu.
26641         * tests/test-getopt-posix.c: New file.
26642         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26643         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26644         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26645         GNULIB_TEST_GETOPT_GNU.
26646         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26647         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26648         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26649         * modules/getopt-gnu-tests: New file.
26650         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26652 2016-12-18  Bruno Haible  <bruno@clisp.org>
26654         posix-modules: Add options for specific platforms.
26655         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26656         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26657         Invoke func_tmpdir. Filter out the excludes.
26659 2016-12-18  Bruno Haible  <bruno@clisp.org>
26661         getopt: Fix link error for users of getopt() in <unistd.h>.
26662         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26663         __need_getopt is defined. Undefine all macros before defining them.
26664         * modules/getopt (Include): Clarify that including <unistd.h> is also
26665         OK.
26666         * tests/test-getopt.c: Add comment.
26668 2016-12-17  Bruno Haible  <bruno@clisp.org>
26670         getaddrinfo tests: Avoid compilation error on MSVC.
26671         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26672         getaddrinfo on native Windows.
26674 2016-12-17  Bruno Haible  <bruno@clisp.org>
26676         getlogin, getlogin_r: Fix link errors on MSVC.
26677         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26678         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26679         (Link): New section.
26680         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26681         (configure.ac): Require gl_LIB_GETLOGIN.
26682         (Link): New section.
26683         * NEWS: Mention the new link requirements.
26684         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26685         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26687 2016-12-17  Bruno Haible  <bruno@clisp.org>
26689         Un-deprecate the 'progname' module.
26690         * NEWS: Describe the appropriate use-cases of 'progname' versus
26691         'getprogname'. Based on discussion summary at
26692         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26694 2016-12-17  Bruno Haible  <bruno@clisp.org>
26696         Reorganize NEWS a bit.
26697         * NEWS: Move some not so important changes away from section
26698         "Important Notes".
26700 2016-12-17  Bruno Haible  <bruno@clisp.org>
26702         tanhf: Avoid redefinition error on MSVC.
26703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26704         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26705         may be defined as an inline function.
26706         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26707         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26709 2016-12-17  Bruno Haible  <bruno@clisp.org>
26711         tanf: Avoid redefinition error on MSVC.
26712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26713         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26714         may be defined as an inline function.
26715         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26716         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26718 2016-12-17  Bruno Haible  <bruno@clisp.org>
26720         sqrtf: Avoid redefinition error on MSVC.
26721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26722         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26723         may be defined as an inline function.
26724         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26725         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26727 2016-12-17  Bruno Haible  <bruno@clisp.org>
26729         sinhf: Avoid redefinition error on MSVC.
26730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26731         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26732         may be defined as an inline function.
26733         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26734         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26736 2016-12-17  Bruno Haible  <bruno@clisp.org>
26738         sinf: Avoid redefinition error on MSVC.
26739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26740         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26741         may be defined as an inline function.
26742         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26743         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26745 2016-12-17  Bruno Haible  <bruno@clisp.org>
26747         logf: Avoid redefinition error on MSVC.
26748         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26749         may be defined as an inline function.
26751 2016-12-17  Bruno Haible  <bruno@clisp.org>
26753         log10l: Avoid redefinition error on MSVC.
26754         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26755         may be defined as an inline function.
26757 2016-12-17  Bruno Haible  <bruno@clisp.org>
26759         log10f: Avoid redefinition error on MSVC.
26760         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26761         may be defined as an inline function.
26763 2016-12-17  Bruno Haible  <bruno@clisp.org>
26765         hypotl: Avoid redefinition error on MSVC.
26766         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26767         may be defined as an inline function.
26769 2016-12-17  Bruno Haible  <bruno@clisp.org>
26771         hypotf: Avoid redefinition error on MSVC.
26772         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26773         may be defined as an inline function.
26775 2016-12-17  Bruno Haible  <bruno@clisp.org>
26777         fmodl: Avoid redefinition error on MSVC.
26778         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26779         may be defined as an inline function.
26781 2016-12-17  Bruno Haible  <bruno@clisp.org>
26783         fmodf: Avoid redefinition error on MSVC.
26784         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26785         may be defined as an inline function.
26787 2016-12-17  Bruno Haible  <bruno@clisp.org>
26789         expf: Avoid redefinition error on MSVC.
26790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26791         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26792         may be defined as an inline function.
26793         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26794         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26796 2016-12-17  Bruno Haible  <bruno@clisp.org>
26798         coshf: Avoid redefinition error on MSVC.
26799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26800         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26801         may be defined as an inline function.
26802         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26803         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26805 2016-12-17  Bruno Haible  <bruno@clisp.org>
26807         cosf: Avoid redefinition error on MSVC.
26808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26809         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26810         may be defined as an inline function.
26811         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26812         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26814 2016-12-17  Bruno Haible  <bruno@clisp.org>
26816         atan2f: Avoid redefinition error on MSVC.
26817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26818         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26819         may be defined as an inline function.
26820         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26821         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26823 2016-12-17  Bruno Haible  <bruno@clisp.org>
26825         atanf: Avoid redefinition error on MSVC.
26826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26827         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26828         may be defined as an inline function.
26829         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26830         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26832 2016-12-17  Bruno Haible  <bruno@clisp.org>
26834         asinf: Avoid redefinition error on MSVC.
26835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26836         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26837         may be defined as an inline function.
26838         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26839         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26841 2016-12-17  Bruno Haible  <bruno@clisp.org>
26843         acosf: Avoid redefinition error on MSVC.
26844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26845         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26846         may be defined as an inline function.
26847         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26848         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26850 2016-12-17  Bruno Haible  <bruno@clisp.org>
26852         Avoid redefinition errors on MSVC.
26853         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26854         the function may be defined as an inline function.
26855         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26856         the function may be defined as an inline function.
26858 2016-12-17  Bruno Haible  <bruno@clisp.org>
26860         Avoid redefinition errors on MSVC.
26861         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26862         * lib/unistd.in.h: Include <stdio.h> when necessary.
26864 2016-12-17  Bruno Haible  <bruno@clisp.org>
26866         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26867         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26868         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26869         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26870         WINT_MAX.
26872 2016-12-17  Bruno Haible  <bruno@clisp.org>
26874         Avoid autoconf warning.
26875         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26876         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26878 2016-12-17  Bruno Haible  <bruno@clisp.org>
26880         fpending: Revert workaround against Emacs bug.
26881         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26882         The Emacs bug is fixed by Eli Zaretskii in
26883         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26885 2016-12-17  Bruno Haible  <bruno@clisp.org>
26887         getlogin_r tests: Port to mingw.
26888         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26889         regression introduced on 2014-05-19.
26891 2016-12-17  Bruno Haible  <bruno@clisp.org>
26893         getlogin: Port to newer mingw.
26894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26895         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26896         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26897         HAVE_GETLOGIN.
26898         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26899         HAVE_GETLOGIN.
26900         * doc/posix-functions/getlogin.texi: Mention the issue.
26901         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26902         regression introduced on 2014-05-14.
26904 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26906         builtin-expect: improve port to IBM XL C
26907         Problem reported for z/OS by Daniel Richard G. in:
26908         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26909         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26910         Test for <builtins.h> directly.
26912         builtin-expect: port to IBM XL C
26913         Problem reported for z/OS by Daniel Richard G. in:
26914         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26915         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26916         Also allow __builtin_expect defined via a standard include file.
26918         regex: fix dependency
26919         Problem reported by Bruno Haible in:
26920         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26921         * modules/regex: Depend on builtin-expect.
26923         builtin-expect: new module
26924         Fix fnmatch to use it.
26925         Problem reported for z/OS by Daniel Richard G.
26926         * lib/fnmatch.c (__builtin_expect):
26927         * lib/glob.c (__builtin_expect):
26928         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26929         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26930         * lib/scandir.c (__builtin_expect):
26931         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26932         Remove macro; config.h now does this.
26933         * lib/gl_anytreehash_list1.h (add_to_bucket):
26934         * lib/regex_internal.h (BE):
26935         Assume __builtin_expect.
26936         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26937         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26938         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26939         * modules/scandir, modules/strstr-simple:
26940         Depend on builtin-expect.
26942 2016-12-15  Bruno Haible  <bruno@clisp.org>
26944         init.sh: Add possibility to not delete temporary files.
26945         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26946         to yes, don't erase the temporary directory.
26948 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26950         regex: fix integer-overflow bug in never-used code
26951         Problem reported by Clément Pit–Claudel in:
26952         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26953         * lib/regex_internal.h: Include intprops.h.
26954         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26955         behavior on integer overflow.
26956         * modules/regex (Depends-on): Add intprops.
26958         fpending: fix port to MinGW on Emacs
26959         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26960         Problem reported by Eli Zaretskii in:
26961         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26962         Is Plan 9 still a valid porting target, anyway?
26964 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26966         safe-alloc: use xalloc-oversized
26967         * lib/safe-alloc.c: Include xalloc-oversized.h.
26968         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26969         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26971         xalloc: do not exceed PTRDIFF_MAX
26972         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26973         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26974         bytes have pointer-subtraction problems.
26976         malloca: do not exceed PTRDIFF_MAX
26977         * lib/malloca.h: Include xalloc-oversized.
26978         (nmalloca): Use xalloc_oversized instead of rolling our own.
26979         * modules/malloca (Depends-on):
26980         * modules/relocatable-prog-wrapper (Depends-on):
26981         Add xalloc-oversized.
26983         quotearg: pacify GCC better
26984         * modules/quotearg (Depends-on): Add minmax, stdint.
26985         * lib/quotearg.c: Include minmax.h, stdint.h.
26986         (nslots): Now int, as there seems little point to going to extra
26987         work merely to support the INT_MAX slot, which nobody ever uses.
26988         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26989         and to catch (mostly-theoretical) ptrdiff_t problems too.
26990         This can be done via one comparison.
26992 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26994         xalloc-oversized: check for PTRDIFF_MAX too
26995         This avoids undefined behavior when subtracting pointers to
26996         objects containing more than PTRDIFF_MAX bytes.
26997         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26998         Also return 1 if the result would exceed PTRDIFF_MAX>
26999         * modules/xalloc-oversized (Depends-on):
27000         Add stdint.
27002         dfa: fix glitches in previous commit
27003         Sorry, I don't know how I managed to commit the wrong version.
27004         * lib/dfa.c (MIN): Move up.
27005         (xpalloc): Now static.
27007         dfa: fix some unlikely integer overflows
27008         I found these while reviewing the recent Coverity-related fix.
27009         This patch changes part of dfa.c to prefer ptrdiff_t instead of
27010         size_t for object counts.  Using ptrdiff_t is the style typically
27011         used in Emacs; although it wastes a sign bit as sizes can never be
27012         negative, it makes -fsanitize=undefined more likely to catch
27013         integer overflows in index calculation, and nowadays the upside is
27014         typically more important than the downside.  Although perhaps the
27015         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
27016         of dfa.c already does, since it uses state_num which is signed),
27017         that is a bigger change and is not needed to fix the bugs I found.
27018         * lib/dfa.c: Include stdint.h and intprops.h.
27019         (TOKEN_MAX): New macro.
27020         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
27021         (charclass_index, parse_bracket_exp, addtok, insert, merge)
27022         (realloc_trans_if_necessary, free_mbdata):
27023         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
27024         This is safe because xpalloc checks that the sizes do not exceed
27025         either SIZE_MAX or PTRDIFF_MAX.
27026         (xpalloc): New function, mostly taken from Emacs.
27027         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
27028         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
27029         (charclass_index): Check for integer overflow in computing
27030         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
27031         added to it later.
27032         (alloc_position_set): Check for integer overflow.  On typical
27033         platforms this check has zero overhead, since the constant
27034         expression is false.
27035         (realloc_trans_if_necessary):
27036         Remove assertion, which I hope Coverity no longer needs.
27038         * modules/dfa (Depends-on): Add intprops, stdint.
27040 2016-12-12  Jim Meyering  <meyering@fb.com>
27042         dfa: add an assertion to avoid coverity false positive
27043         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
27044         warned that "newalloc1 - 2" could overflow.
27046 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
27048         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
27049         * dfa.h (DFA_CASE_FOLD): Remove.
27050         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
27052 2016-12-13  John W. Eaton  <gnu@jweaton.org>
27054         link: fix test to declare use of rename()
27055         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
27056         -Werror=implicit-function-declaration
27058 2016-12-12  Bruno Haible  <bruno@clisp.org>
27060         fpending: Port to native Windows with MSVC.
27061         * lib/fpending.c: Include stdio-impl.h.
27062         (__fpending): Include all known implementations. Err out if it's not
27063         ported.
27064         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
27065         * modules/fpending (Files): Add lib/stdio-impl.h.
27066         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
27068 2016-12-12  Bruno Haible  <bruno@clisp.org>
27070         stdioext: Port to native Windows with MSVC.
27071         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
27072         (struct _gl_real_FILE): New type.
27073         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
27074         Windows.
27075         * lib/fbufmode.c (fbufmode): Add code for native Windows.
27076         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
27077         other SystemV derived implementations.
27078         * lib/fpurge.c (fpurge): Likewise.
27079         * lib/freadable.c (freadable): Likewise.
27080         * lib/freadahead.c (freadahead): Likewise.
27081         * lib/freading.c (freading): Likewise.
27082         * lib/freadptr.c (freadptr): Likewise.
27083         * lib/freadseek.c (freadptrinc): Likewise.
27084         * lib/fseeko.c (fseeko): Likewise.
27085         * lib/fseterr.c (fseterr): Likewise.
27086         * lib/fwritable.c (fwritable): Likewise.
27087         * lib/fwriting.c (fwriting): Likewise.
27088         Reported by Gisle Vanem <gvanem@yahoo.no>.
27090 2016-12-11  Jim Meyering  <meyering@fb.com>
27092         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
27093         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
27094         to work with most shells, but not with the one provided by many
27095         Solaris 10 systems, so running configure with such a /bin/sh evokes
27096         e.g., "./configure: syntax error at line 33602: `(' unexpected".
27097         Reported by Assaf Gordon in
27098         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
27100 2016-12-10  Bruno Haible  <bruno@clisp.org>
27102         threadlib: Optimize out runtime test on Solaris >= 10.
27103         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
27104         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
27105         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
27107 2016-12-10  Bruno Haible  <bruno@clisp.org>
27109         stdint: Update doc about Solaris 9.
27110         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
27112 2016-12-09  Bruno Haible  <bruno@clisp.org>
27114         c-ctype tests: Fix link error on Solaris 9.
27115         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
27116         Reported at <https://savannah.gnu.org/bugs/?46827>.
27118 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27120         dfa: fix performance bug that recomputes trans
27121         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
27122         25 on-demand changes.  The bug caused build_state to reset all
27123         d->trans elements to -2 even when d->trans was already non-null.
27124         Use C99 style decls after statements in this function.
27126         same-inode: port to MinGW
27127         Here st_ino is always 0, so change the definition of SAME_INODE so
27128         that 1 means the two files are the same, 0 with st_ino != 0 means
27129         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
27130         reported by Bruno Haible (Bug#25146).
27131         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
27132         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
27134 2016-12-04  Bruno Haible  <bruno@clisp.org>
27136         javacomp-script: Support Java 7 and 8.
27137         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
27138         target-version 1.7, 1.8.
27140 2016-12-02  Daiki Ueno  <ueno@gnu.org>
27142         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
27143         GPLv2" rewriting.
27145 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
27147         * gnulib-tool (func_import): Adhere to the license guideline when
27148         rewriting the license text to "LGPLv3+ or GPLv2":
27149         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
27151 2016-12-02  Bruno Haible  <bruno@clisp.org>
27153         localcharset: Avoid theoretical buffer overrun.
27154         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
27155         return value from setlocale if it would lead to a buffer overrun.
27157 2016-12-01  Bruno Haible  <bruno@clisp.org>
27159         Relicense some modules under LGPLv2+.
27160         Kevin Cernekee's approval is in
27161         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
27162         * modules/fseterr (License): Change to LGPLv2+.
27163         * modules/mbchar (License): Likewise.
27164         * modules/mbiter (License): Likewise.
27165         * modules/mbsnlen (License): Likewise.
27166         * modules/wcwidth (License): Likewise.
27168 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27170         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
27171         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
27172         OS/2 kLIBC.
27174 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27176         alphasort, scandir: Port to OS/2 kLIBC
27177         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
27178         declaration.
27179         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
27181 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27183         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
27184         * lib/relocatable.c (relocate): Do not touch pathname if it is started
27185         with '/@unixroot'.
27187 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27189         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
27190         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
27191         OS/2 kLIBC unless TCPV40HDRS is defined.
27193 2016-11-29  Jim Meyering  <meyering@fb.com>
27195         dfa: avoid new infinite loop
27196         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
27197         * lib/dfa.c (dfastate): When constructing a new state table, we could
27198         initially declare that we had found a match, and later find that
27199         constraints eliminate that possibility, yet continue to use the
27200         now stale "matched" indicator.  That would lead to an infinite loop.
27201         The solution is to update "matched" when necessary.
27202         Introduced by commit v0.1-983-g403adf1.
27204 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27206         dfa: avoid match middle in multibyte character
27207         * lib/dfa.c (transit_state): If fails in matching single byte characters
27208         on a state including period expression in non-UTF8 multibyte locales,
27209         skip trailing bytes.
27210         (dfa_supported): Revert previous change.
27212 2016-11-27  Jim Meyering  <meyering@fb.com>
27214         dfa: avoid false match in non-UTF8 multibyte locales
27215         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
27216         as "not supported" so that callers will resort to using regex-based
27217         matcher.  This will surely hurt performance, but correctness trumps
27218         performance here, and the affected locales are less and less relevant,
27219         these days.  See grep's bug report https://bugs.gnu.org/24975.
27221 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
27223         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
27224         * lib/ptsname_r.c: Include the appropriate headers.
27225         [__sun]: Delete sys/sysmacros.h include.
27226         [_AIX || __osf__]: Likewise.
27227         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
27229 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27231         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
27232         * lib/md4.c (md4_process_bytes): The existing define is made internal
27233         in recent versions of glibc, so also use this new public define.
27234         * lib/md5.c (md5_process_bytes): Likewise.
27235         * lib/sha1.c (sha1_process_bytes): Likewise.
27236         * lib/sha256.c (sha256_process_bytes): Likewise.
27237         * lib/sha512.c (sha512_process_bytes): Likewise.
27239 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27241         maint: use a more standard return from mbrtowc test
27242         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
27243         from the test program as this often indicates an
27244         unhandled case in the test program.
27245         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
27246         (gl_MBRTOWC_SANITYCHECK): Likewise.
27247         (gl_MBRTOWC_NULL_ARG2): Likewise.
27248         (gl_MBRTOWC_NUL_RETVAL): Likewise.
27250 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27252         freopen: work around glibc bug with closed fd
27253         Work around glibc bug#15589, where freopen mishandles the case
27254         where stdin etc. are already closed.
27255         * doc/posix-functions/freopen.texi (freopen): Document the bug.
27256         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
27257         instead of __need_FILE, as the latter does not work with glibc.
27258         Include <fcntl.h>, for open flags.
27259         (rpl_freopen): Work around glibc bug.
27260         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
27261         * modules/freopen (Depends-on): Add fcntl-h.
27262         * tests/test-freopen.c (main): Test for bug.
27264 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27266         fnmatch: fix typo introduced on 2016-08-17
27267         This fixes the port to non-GCC compilers that lack __builtin_expect.
27268         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
27270         dfa: simplify with new function fillset
27271         * lib/dfa.c (fillset): New function.
27272         Use it for clarity when applicable.
27274         dfa: fix glitches with on-demand states
27275         Also, adjust commentary to better match new code.
27276         Some of these glitches predate the recent change.
27277         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
27278         only non-initial states.
27279         (dfastate): Rename locals to better match new roles.
27280         Move them into nested scopes if this is easy.
27281         Omit unnecessary calls to zeroset.
27282         Simplify test for whether to throw in the positions of state 0.
27283         Omit C99-ism (decl after statement) since Gawk still wants C89.
27284         (build_state): Omit unnecessary test and assignment.
27285         Fix some confusion that counted transition tables inaccurately
27286         and could cause a memory leak.
27287         (dfaexec_main): Redo to make it clearer to the compiler that
27288         -1 and -2 are the only negative state numbers here.
27290 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27292         dfa: addition of new state on demand
27293         * src/dfa.c (dfastate): Add argument UC, the current input character.
27294         Fill only a group including the character in transition table.
27295         (realloc_trans_if_necessary): Add the dummy state which means that a
27296         transition table is assigned but the next state is not assigned.
27297         (build_state): Return the next state.  All callers updated.
27298         (transit_state_singlebyte): If we get the dummy state,
27299         fill the transition table.
27300         (dfaexec_main): Handle the dummy state.
27301         (free_mbdata, dfafree): Consider the dummy state.
27303 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27305         srclist: sync with released gettext
27306         * config/srclist.txt: Set "release" option to the files under
27307         $GETTEXT.
27309 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27311         srclist: add "release" option
27312         * config/srclist.txt: Change the format so that the first column
27313         of each line points to the top-level directory of the source
27314         archive.
27315         * config/srclist-update: Accept "release" option that checks files
27316         from the most recently tagged revision in the source archive.
27318 2016-11-21  Bruno Haible  <bruno@clisp.org>
27320         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
27321         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27322         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
27323         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
27324         Inline and remove member function 'rpl ()' of the wrapper struct.
27326 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27328         dfa: fix logic typo
27329         Problem reported by Stephane Chazelas (Bug#24973).
27330         * lib/dfa.c (using_simple_locale): Fix typo that caused some
27331         non-simple locales like fr_FR to be treated as simple.
27333 2016-11-20  Jim Meyering  <meyering@fb.com>
27335         fix test driver leaks: exclude, malloc, realloc
27336         * tests/test-exclude.c (main): Fix trivial leak.
27337         * tests/test-malloc-gnu.c (main): Likewise.
27338         * tests/test-realloc-gnu.c (main): Likewise.
27339         With these changes, grep's tests are now leak free.
27340         I.e., running them with ASAN elicits no failure:
27341           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
27342             AM_LDFLAGS='-fsanitize=address -static-libasan' check
27344 2016-11-11  Bruno Haible  <bruno@clisp.org>
27346         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
27347         * modules/libunistring: (License): Change from LGPL to
27348         "LGPLv3+ or GPLv2".
27349         * modules/libunistring-optional: Likewise.
27350         * modules/unicase/*: Likewise.
27351         * modules/uniconv/*: Likewise.
27352         * modules/unictype/*: Likewise.
27353         * modules/unigbrk/*: Likewise.
27354         * modules/unilbrk/*: Likewise.
27355         * modules/uniname/*: Likewise.
27356         * modules/uninorm/*: Likewise.
27357         * modules/unistdio/*: Likewise.
27358         * modules/unistr/*: Likewise.
27359         * modules/uniwbrk/*: Likewise.
27360         * modules/uniwidth/*: Likewise.
27362 2016-11-12  Bruno Haible  <bruno@clisp.org>
27364         Relicense some modules under LGPLv2+.
27365         Paul Eggert's approval is in
27366         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
27367         Eric Blake's approval is in
27368         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
27369         Ludovic Courtès's approval is in
27370         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
27371         * modules/isnand-nolibm (License): Change to LGPLv2+.
27372         * modules/isnanf-nolibm (License): Likewise.
27373         * modules/isnanl-nolibm (License): Likewise.
27375 2016-11-19  Bruno Haible  <bruno@clisp.org>
27377         Relicense some modules under LGPLv2+.
27378         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
27379         modules/vasnprintf.
27380         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
27381         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
27382         All other significant changes to the files in lib/ of these modules
27383         are from me.
27384         * modules/memcmp2 (License): Change to LGPLv2+.
27385         * modules/amemxfrm (License): Likewise.
27386         * modules/fpieee (License): Likewise.
27387         * modules/fpucw (License): Likewise.
27388         * modules/frexp-nolibm (License): Likewise.
27389         * modules/frexpl-nolibm (License): Likewise.
27390         * modules/printf-frexp (License): Likewise.
27391         * modules/printf-frexpl (License): Likewise.
27392         * modules/printf-safe (License): Likewise.
27393         * modules/signbit (License): Likewise.
27395 2016-11-17  Bruno Haible  <bruno@clisp.org>
27397         Enable Unicode decoder safety unconditionally.
27398         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
27399         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
27400         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27401         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27402         * lib/unistr/u8-prev.c (u8_prev): Likewise.
27403         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
27404         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
27405         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
27406         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
27407         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
27408         * lib/unistr/u16-prev.c (u16_prev): Likewise.
27409         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
27410         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
27411         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
27412         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
27413         * lib/unistr/u32-prev.c (u32_prev): Likewise.
27414         * lib/unistr/u32-next.c (u32_next): Likewise.
27415         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
27416         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
27417         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27418         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27419         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
27420         CONFIG_UNICODE_SAFETY tests unconditionally.
27421         * tests/unistr/test-u32-mblen.c (main): Likewise.
27422         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27423         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27424         * tests/unistr/test-u32-next.c (main): Likewise.
27425         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27426         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27427         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27428         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27429         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27430         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27431         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27432         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27433         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27434         * lib/unistr/u16-check.c (u16_check): Update comment.
27435         * NEWS: Mention the changes that callers should be aware of.
27437 2016-11-19  Bruno Haible  <bruno@clisp.org>
27439         relocatable-prog-wrapper: Fix breakage on Cygwin.
27440         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27441         (Depends-on): Remove intprops.
27442         * lib/relocwrapper.c: Update dependency tree.
27443         (strerror): Undefine.
27444         * build-aux/install-reloc (func_create_wrapper): Do not compile
27445         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27447 2016-11-19  Bruno Haible  <bruno@clisp.org>
27449         strerror: Make it compile in C++ mode.
27450         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27452 2016-11-15  Pedro Alves  <palves@redhat.com>
27454         sys_time: add gnulib::timeval for C++
27455         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27456         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27457         timeval macro.
27459 2016-11-14  Pedro Alves  <palves@redhat.com>
27461         snippet/c++defs: fix real-floating arg functions in C++ mode
27462         Also, define isfinite, isinf, isnan, signbit in the gnulib
27463         namespace instead of in the global namespace.
27464         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27465         (_GL_END_NAMESPACE): New.
27466         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27467         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27468         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27469         instead of in the global namespace.
27470         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27471         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27472         of in the global namespace.
27474 2016-11-13  Jim Meyering  <meyering@fb.com>
27476         strftime: don't use __THROW
27477         Each use of __THROW would provoke this from gcc-7-to-be:
27479           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27480             on unit local functions [-Wattributes]
27481           static int iso_week_days (int, int) __THROW;
27482           ^~~~~~
27483         * lib/strftime.c (__THROW): Don't define.
27484         Remove each use of __THROW.
27485         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27486         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27488 2016-11-14  Paul Eggert  <eggert@union>
27490         obstack: port to gcc -fcheck-pointer-bounds
27491         Problem found by 'make check' failure on bleeding-edge coreutils
27492         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27493         6.2.0-5ubuntu12), configured via "./configure
27494         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27495         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27496         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27497         New macro, copied from fts_.h.
27498         (struct _obstack_chunk.contents): Use it.
27500 2016-11-14  Eric Blake  <eblake@redhat.com>
27502         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27504         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27506 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27508         strptime: fix compile error in recent change
27509         * lib/strptime.c (__strptime_internal): Fix ported code.
27511 2016-11-11  Bruno Haible  <bruno@clisp.org>
27513         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27514         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27515         (func_import): Extend determination of license_incompatibilities.
27516         (func_create_testdir): Extend table of license compatibility. Handle
27517         also the licenses GPLv3+, GPL, LGPLv3+.
27519 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27521         strftime: tune %q
27522         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27524         Merge strftime.c changes from glibc
27525         This incorporates:
27526         2007-10-16 [BZ #5184] Add tzset_called argument
27527         2008-06-13 [BZ #6612] pass reference to tzset_called around
27528         2009-10-30 Implement Burmese language locale for Myanmar
27529         2010-01-09 Add support for XPG7 testing
27530         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27531         2015-10-20 Convert miscellaneous function definitions to prototype style
27532         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27533         it anyway and this lessens the difference between gnulib and glibc.
27534         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27535         (__THROW): Define if standard headers do not.
27536         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27537         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27538         Declare with __THROW.
27539         (__strftime_internal): Rename from strftime_case_. Add arg for
27540         whether tzset is called.  All uses changed.  Call tzset at most
27541         once.  Allow %OC, for Burmese.
27542         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27543         Don't assume values are in range.
27545 2016-11-12  Eric Blake  <eblake@redhat.com>
27547         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27548         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27549         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27550         different value.
27552 2006-11-12  Pedro Alves  <palves@redhat.com>
27554         Fix gnulib C++ namespace support and std::frexp
27555         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27556         _GL_CXXALIASWARN.
27558 2006-11-12  Pedro Alves  <palves@redhat.com>
27560         GNULIB_NAMESPACE::func need not pull in rpl_func
27561         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27562         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27563         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27564         struct instead of a function pointer.
27566 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27568         manywarnings: fix -Wno-missing-field-initializers detection
27569         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27570         to be independent of -Wunused-variable.  I.E. ensure the latter
27571         warning doesn't occur so that detection of the former is accurate.
27573 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27575         strftime,strptime: support %q to represent the quarter
27576         * lib/strftime.c (strftime_case_): Add %q case.
27577         * lib/strptime.c (__strptime_internal): Likewise.
27578         * tests/test-strftime.c (quarter_test): A new test case.
27580 2016-11-03  Eric Blake  <eblake@redhat.com>
27582         bootstrap: Fix get_version() for AIX 5.3
27583         * build-aux/bootstrap (get_version): Factor out sed script, since
27584         indented comments choke AIX 5.3 sed.
27585         Reported-by: Michael Felt <aixtools@gmail.com>
27587 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27589         intprops: port to older XL C
27590         Problem reported by Alexander Samoilov in:
27591         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27592         http://savannah.nongnu.org/bugs/?49448
27593         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27594         Define to 1 only for XL C 12.1 or later, since this bug
27595         occurs in XL C for AIX 6.0 but not in 12.1.
27597 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27599         backupfile: initialize default suffix within the implementation
27600         * lib/backupfile.c (find_backup_file_name): Initialize the
27601         global variable here, to simplify usage, and to only call
27602         getenv() when needed.
27604 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27606         futimens: remove FIXME for old Linux kernels
27607         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27608         this in 2012" FIXME, like that for utimensat.
27610         utimensat: remove FIXME for old Linux kernels
27611         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27613         this in 2012" FIXME, by assuming the file system bug is absent
27614         unless demonstrated to be present.  We no longer need to worry
27615         about Linux kernel 2.6.32 when building with newer kernels.
27617 2016-10-16  Bruno Haible  <bruno@clisp.org>
27619         qsort_r: Fix macrology for platforms that lack the function.
27620         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27621         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27622         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27623         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27624         not exist.
27625         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27626         the function exists.
27627         * modules/qsort_r: Add comments.
27629 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27631         sys_types: fix Texinfo typos
27632         * doc/glibc-functions/gnu_dev_major.texi:
27633         * doc/glibc-functions/gnu_dev_makedev.texi:
27634         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27636 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27638         getprogname: port to HP-UX
27639         See Bug#24805.
27640         * lib/getprogname.c (getprogname) [__hpux]: Port.
27641         * tests/test-getprogname.c (STREQ) [__hpux]:
27642         Special-case for HP-UX limitations on program name length.
27644 2016-10-20  Bruno Haible  <bruno@clisp.org>
27646         Update doc about target platforms.
27647         * doc/gnulib-intro.texi (Target Platforms): Update list.
27649 2016-10-15  Bruno Haible  <bruno@clisp.org>
27651         opendir, readdir, closedir: Relicense under LGPLv2+.
27652         * modules/opendir (License): Change to LGPLv2+.
27653         * modules/readdir (License): Likewise.
27654         * modules/closedir (License): Likewise.
27656 2016-10-16  Bruno Haible  <bruno@clisp.org>
27658         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27659         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27660         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27661         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27662         HAVE_DECL_STRERROR_R.
27664 2016-10-16  Bruno Haible  <bruno@clisp.org>
27666         Make the 'argp' module work without the 'error' module.
27667         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27669 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27671         diffseq: restore TOO_EXPENSIVE heuristic
27672         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27673         (Bug#24715).  The simplest solution is to restore the
27674         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27675         using a higher threshold to avoid Bug#16848 on smaller files.
27676         * lib/diffseq.h (struct context): Restore member too_expensive.
27677         (struct partition): Restore members lo_minimal, hi_minimal.
27678         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27679         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27680         1993 to make 'diff' run faster (but not as well) on large inputs,
27681         but use a threshold of 4096 instead of the old 256.
27682         * lib/fstrcmp.c (strcmp_bounded):
27683         * lib/git-merge-changelog.c (compute_differences):
27684         Adjust to diffseq.h changes.
27686 2016-10-22  Bruno Haible  <bruno@clisp.org>
27688         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27689         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27690         declaration yet, define ICONV_CONST to empty.
27692 2016-10-15  Bruno Haible  <bruno@clisp.org>
27694         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27695         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27696         module.
27698 2016-10-16  Bruno Haible  <bruno@clisp.org>
27700         system-quote tests: Avoid compiler warning on AIX.
27701         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27702         <stdio.h> does.
27704 2016-10-16  Bruno Haible  <bruno@clisp.org>
27706         Fix some "gcc -Wall" warnings.
27707         * tests/test-ffsl.c (main): Use variable x, not i.
27708         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27709         freopen.
27710         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27711         of sethostname.
27713 2016-10-16  Bruno Haible  <bruno@clisp.org>
27715         gnulib-tool: Make --create-testdir on all modules work again.
27716         * gnulib-tool (func_create_testdir): Don't include the
27717         non-recursive-gnulib-prefix-hack module.
27719 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27721         libunistring: change the maintainer to 'all'
27722         * modules/gen-uni-tables, modules/libunistring:
27723         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27724         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27725         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27726         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27727         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27728         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27729         * modules/uniwidth/*: Change the maintainer to 'all'.
27731 2016-10-16  Bruno Haible  <bruno@clisp.org>
27733         Simplify "configure: checking ..." messages.
27734         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27735         AC_MSG_NOTICE.
27736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27738 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27740         quotearg-tests: pacify gcc -Wall
27741         Problem reported by Bruno Haible in:
27742         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27743         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27744         * tests/test-quotearg.h: ... from here.
27746 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27748         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27749         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27750         Needed on Centos <= 4.
27752 2016-10-20  Jim Meyering  <meyering@fb.com>
27754         printf.m4: fix a bug in detecting printf %j support
27755         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27756         uintmax_t is defined in neither stdint.h nor inttypes.h.
27757         Before, this macro might have mistakenly set
27758         gl_cv_func_printf_sizes_c99=yes on such a system.
27759         Spotted by Zev Weiss.
27761 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27763         sched: substitute HAVE_SYS_CDEFS_H too
27764         Problem reported by Tom G. Christensen in:
27765         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27766         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27767         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27769 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27771         quotearg: never write beyond the returned length
27772         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27773         scan of the string when we initially encounter a single quote when
27774         shell quoting, so that if we then switch to a more concise quoting method
27775         we will not have written beyond that returned length.
27776         This is significant for sh-quote, which has separate routines
27777         to determine the length and do the actual quoting.
27778         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27779         now that we never write more than the returned length.
27781 2016-10-18  Bruno Haible  <bruno@clisp.org>
27783         getprogname tests: Avoid failure in packages that use libtool.
27784         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27785         Based on a patch by Jim Meyering.
27787 2016-10-16  Bruno Haible  <bruno@clisp.org>
27789         getprogname: Fix test failure on Cygwin. Comments.
27790         * lib/getprogname.h: Add comments.
27791         * lib/getprogname.c: Add comments. Fix #elif indentation.
27792         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27793         ".exe" suffix.
27795 2016-10-16  Bruno Haible  <bruno@clisp.org>
27797         Make sure the libunistring detection rejects older versions with a
27798         known bug.
27799         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27800         * modules/unistr/u16-strtok (configure.ac): Likewise.
27801         * modules/unistr/u32-strtok (configure.ac): Likewise.
27803 2016-10-18  Bruno Haible  <bruno@clisp.org>
27805         sh-quote, system-quote: revert regression of unit test.
27806         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27807         * tests/test-system-quote-main.c (check_one): Likewise.
27809 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27811         quotearg: fix stale tests
27812         * tests/test-quotearg.c [locale_results]: Add the missing str7
27813         entries to the expected results.
27814         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27815         don't write beyond the returned length, since that's no longer the
27816         case if we switch to a more concise quoting style.
27817         * tests/test-sh-quote.c (check_one): Likewise.
27818         (main): Adjust for the new more concise quoting style.
27819         Reported by Bruno Haible.
27821 2016-10-16  Jim Meyering  <meyering@fb.com>
27823         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27824         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27825         to "$1".  This macro is always invoked with $1 == lib.
27826         Spotted by Bruno Haible
27828 2016-10-16  Bruno Haible  <bruno@clisp.org>
27830         Fix a test crash.
27831         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27832         fails.
27834 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27836         test-limits-h: suppress -Woverlength-strings
27837         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27839 2016-10-15  Bruno Haible  <bruno@clisp.org>
27841         gettime, timespec, utimens: Relicense under LGPL.
27842         * modules/gettime (License): Change to LGPL.
27843         * modules/timespec (License): Likewise.
27844         * modules/utimens (License): Likewise.
27846 2016-10-14  Bruno Haible  <bruno@clisp.org>
27847             Pádraig Brady  <P@draigBrady.com>
27849         canonicalize-lgpl: Support the case path_max > INT_MAX.
27850         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27851         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27853 2016-10-13  Jim Meyering  <meyering@fb.com>
27855         getprogname: IBM z/OS: avoid NULL-dereference
27856         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27857         upon strdup failure.
27859 2016-10-12  Jim Meyering  <meyering@fb.com>
27861         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27862         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27863         and an abbreviated diagnostic rather than verify with the full one,
27864         because the full-length strings would evoke warnings from gcc with
27865         -Woverlength-strings.
27867 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27869         stdint: port SIZE_MAX to glibc s390
27870         Problem reported by Eric Blake in:
27871         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27872         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27873         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27874         correct type, if possible.
27876 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27878         getprogname: port to IBM z/OS
27879         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27881 2016-10-11  Jim Meyering  <meyering@fb.com>
27883         maint: remove stray space after "." in AC_DEFINE comment.
27884         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27885         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27887 2016-10-05  Jim Meyering  <meyering@fb.com>
27889         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27890         * lib/long-options.c (parse_long_options): Add a break statement
27891         to avoid this new warning/failure:
27892         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27893           --create-testdir --dir=/t/x --with-tests --test long-options
27894         ../../gllib/long-options.c: In function 'parse_long_options':
27895         ../../gllib/long-options.c:66:12: error: this statement may \
27896           fall through [-Werror=implicit-fallthrough]
27897                    (*usage_func) (EXIT_SUCCESS);
27898                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27900 2016-10-05  Jim Meyering  <meyering@fb.com>
27902         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27903         Testing this module would fail when using GCC 7 like this:
27904         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27905           --dir=/tmp/x --with-tests --test utimecmp
27906         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27907         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27908           [-Werror=bool-operation]
27909                          time_t s = src_s & ~ (res == 2 * BILLION);
27910                                             ^
27911         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27912           [-Werror=bool-operation]
27913                src_s &= ~ (res == 2 * BILLION);
27914                         ^
27915         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27916         Instead, make it explicit that we intend to apply it to 0 or 1.
27918 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27920         dfa: save memory for states
27921         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27922         states if dfa has a lot of caches.
27924 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27926         wchar, wctype-h: fix for MinGW 3.22.2
27927         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27928         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27929         when included from <string.h>.
27930         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27931         convention for MinGW 3.22.2, to solve issues with their
27932         wctype.h when included from <ctype.h>.
27934 2016-10-05  Jim Meyering  <meyering@fb.com>
27936         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27937         * lib/long-options.c (parse_long_options): Add a break statement
27938         to avoid this new warning/failure:
27939         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27940           --create-testdir --dir=/t/x --with-tests --test long-options
27941         ../../gllib/long-options.c: In function ‘parse_long_options’:
27942         ../../gllib/long-options.c:66:12: error: this statement may \
27943           fall through [-Werror=implicit-fallthrough]
27944                    (*usage_func) (EXIT_SUCCESS);
27945                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27947         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27948         Testing this module would fail when using GCC 7 like this:
27949         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27950           --dir=/tmp/x --with-tests --test utimecmp
27951         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27952         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27953           [-Werror=bool-operation]
27954                          time_t s = src_s & ~ (res == 2 * BILLION);
27955                                             ^
27956         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27957           [-Werror=bool-operation]
27958                src_s &= ~ (res == 2 * BILLION);
27959                         ^
27960         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27961         Instead, make it explicit that we intend to apply it to 0 or 1.
27963 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27965         quotearg: minimize shell quoting using double quotes
27966         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27967         quote in encountered then use double quotes (c style quoting)
27968         when possible, as it simplifies the quoting.
27969         * tests/test-quotearg-simple.c: Add test cases.
27970         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27971         for the fact we now may write beyond the returned length.
27973 2016-10-02  Jim Meyering  <meyering@fb.com>
27975         vasnprintf.c: avoid spurious warning from GCC 7
27976         The presence of cpp directives renders this "FALLTHROUGH" comment
27977         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27978         from GCC 7 built from git on 2016-10-02.
27979         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27980         directives, so that it takes effect once again.  This is clearly
27981         not a proper change, and I will revert it once this bug is fixed:
27982         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27984 2016-10-01  Jim Meyering  <meyering@fb.com>
27986         getprogname: correct the test for a __progname variable
27987         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27988         and AC_LINK_IFELSE to check for a global __progname.  If found,
27989         define HAVE_VAR___PROGNAME.
27990         * lib/getprogname.c (getprogname): Reflect the new name of the
27991         feature- checked preprocessor symbol:
27992         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27994 2016-09-28  Jim Meyering  <meyering@fb.com>
27996         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27997         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27998         fall-through case with a /* fallthrough */ comment.
28000         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
28001         * lib/dfa.c (dfassbuild): Mark the end of this case with a
28002         /* fallthrough */ comment.
28004         getprogname: avoid __progname vs program_invocation_short_name pitfall
28005         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
28006         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
28007         not with Fedora 24's glibc-2.23.1-10.
28008         * lib/getprogname.c (__progname): Move this declaration down...
28009         (getprogname): ... into the #elif block where used, and make it
28010         explicitly "extern".
28012         getprogname: port to OpenBSD 5.1
28013         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
28014         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
28015         * modules/getprogname (configure.ac): Move most of this code...
28016         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
28017         increment serial number, and add a test for __progname.
28018         https://bugs.gnu.org/24562
28019         Reported by Nelson H. F. Beebe.
28021 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28023         sched: port to GCC 6.2.1 on macOS Sierra
28024         Problem reported by Denis Davydov in:
28025         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
28026         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
28027         Include <sys/cdefs.h> before <sched.h>.
28028         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
28029         so that we needn’t worry about the sched.h include bug here.
28030         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
28031         and include it before <sched.h> if it exists, when
28032         checking for <sched.h>.
28034         tests/init.sh: port Alpine fix to AIX 7.1
28035         * tests/init.sh (compare_): When attempting to use diff -U3,
28036         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
28037         diff -u not outputting a space after leading '+', as the users
28038         of 'compare' should not be that picky about its output format.
28039         In the AIX 7.1 case, return with diff exit status (or with 2 if
28040         trouble), instead of some random nonzero exit status.
28041         * tests/test-init.sh (test_compare): Remove space after leading
28042         '+', so that AIX 7.1 'diff' passes the test.
28044 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28046         nl_langinfo: pacify GCC
28047         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
28048         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
28050         stdint: also set GL_GENERATE_LIMITS_H
28051         Problem reported by Jim Meyering in:
28052         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
28053         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
28055         limits-h, stdint: Don't assume extensions, fix typo
28056         * m4/limits-h.m4 (gl_LIMITS_H):
28057         * m4/stdint.m4 (gl_STDINT_H):
28058         Don't assume AC_USE_SYSTEM_EXTENSIONS.
28059         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
28060         reported by Jim Meyering in:
28061         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
28063 2016-09-21  Jim Meyering  <meyering@fb.com>
28065         getprogname: port to AIX
28066         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
28067         and strdup to obtain a short program name string.  Using code from
28068         Bruno Haible and an idea from Bastien ROUCARIÈS, in
28069         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
28070         Assaf Gordon reported that this new file would fail to compile on
28071         AIX-7.1 32bit.
28073 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28075         extensions: fix typo in comment
28076         * m4/extensions.m4: Sync from Autoconf master.
28078         stdint: support new _WIDTH macros
28079         * doc/posix-headers/stdint.texi: Document this.
28080         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
28081         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
28082         support for INTMAX_WIDTH, etc. as well as for support for just C99.
28083         * modules/stdint (Depends-on): Add limits-h.
28084         (Makefile.am): Substitute HAVE_C99_STDINT_H.
28085         * modules/stdint-tests (Depends-on): Add extensions, so that
28086         INTMAX_MAX etc. are defined.
28087         * tests/test-stdint.c: Verify the new macros.
28089         limits-h: new module
28090         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
28091         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
28092         * doc/posix-headers/limits.texi: Document new module.
28093         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
28094         * modules/limit-h-tests, tests/test-limits-h.c: New files.
28096         stdio: don't redefine __USE_MINGW_ANSI_STDIO
28097         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
28098         if it is already defined.  Apparently GNU Emacs relies on this.  See:
28099         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
28101 2016-09-15  Eric Blake  <eblake@redhat.com>
28103         sys_types: avoid glibc 2.25 warnings about major()
28104         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
28105         older autoconf.
28106         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
28107         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
28108         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
28109         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
28111         mountlist: include sysmacros.h for glibc
28112         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
28113         AC_HEADER_MAJOR.
28114         * lib/mountlist.c (includes): Use correct headers.
28116 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28118         extensions: port to more ISO C TSes
28119         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
28120         master, to add support for more recent ISO C TRs and TSes.
28122 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28124         intprops: new macro TYPE_WIDTH
28125         * lib/intprops.h (TYPE_WIDTH): New macro.
28126         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
28127         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
28128         * lib/parse-datetime.y (parse_datetime2):
28129         Use it.
28131         extensions: port to recent ISO C TRs
28132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28133         Sync from Autoconf master, to add support for recent ISO C TRs.
28134         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
28135         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
28136         the MinGW option is not an extension.
28138 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28140         dfa: port to Solaris 9
28141         Problems reported by Tom G. Christensen in:
28142         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
28143         * modules/dfa (Depends-on): Add isblank.
28144         * modules/dfa-tests (dfa_match_aux_LDADD):
28145         Rename from test_stat_LDADD, to fix typo.
28146         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
28148 2016-09-10  Jim Meyering  <meyering@fb.com>
28150         strverscmp: avoid link failure on OS X
28151         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
28152         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
28154 2016-08-16  Jim Meyering  <meyering@fb.com>
28156         dfa: new module, importing grep's DFA matcher
28157         Since grep's DFA matcher is now being used by two gnulib-enabled
28158         projects, grep and sed, it makes sense to version-control its
28159         sources and unit tests in one place: here.
28160         * modules/dfa: New module.
28161         * modules/dfa-tests: New file.
28162         * lib/dfa.c: New file, from grep.
28163         * lib/dfa.h: Likewise.
28164         * lib/localeinfo.c: Likewise.
28165         * lib/localeinfo.h: Likewise.
28166         * tests/dfa-match-aux.c: Likewise.
28167         * tests/dfa-invalid-char-class.sh: Likewise.
28168         * tests/dfa-match.sh: Likewise, with minor changes.
28169         * MODULES.html.sh (Misc): Add "dfa" to this list.
28171 2016-09-09  Jim Meyering  <meyering@fb.com>
28173         getprogname-tests: don't depend on assert-h
28174         * modules/getprogname-tests (Depends-on): Remove assert-h.
28175         It was not needed, and in fact would cause build failure for
28176         coreutils on some systems.  Reported by Assaf Gordon in https:
28177         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
28179 2016-09-07  Jim Meyering  <meyering@fb.com>
28181         getprogname-tests: work also when EXEEXT is nonempty
28182         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
28183         * tests/test-getprogname.c (main): Use it.
28184         Suggested by Gisle Vanem.
28186 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
28188         getprogname: fix errors in previous change
28189         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
28190         s/program_invocation_name/base/
28191         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
28193 2016-09-08  Pádraig Brady  <P@draigBrady.com>
28195         parse-datetime: restrict debug output to input string
28196         * lib/parse-datetime.y (parse_datetime2): If we parse
28197         all of the input but determine it's invalid, ensure
28198         we don't output the now invalid input pointer.
28199         This issue was seen with `date -d 'now +1'`.
28201 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28203         flexmember: new macro FLEXALIGNOF
28204         * lib/flexmember.h: Include <stddef.h>, for offsetof.
28205         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
28206         this macro.  Update comments.
28208 2016-09-07  Jim Meyering  <meyering@fb.com>
28210         getprogname: port to systems with __argv (mingw, msvc)
28211         * lib/getprogname.c (getprogname): Include "dirname.h" and use
28212         last_component: more general than open coding it with hard-coded "/".
28213         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
28214         * modules/getprogname (Depends-on): Add dirname-lgpl.
28215         (configure.ac): Check for __argv in <stdlib.h>.
28216         * modules/getprogname-tests: New file.
28217         * tests/test-getprogname.c: New file.
28218         Suggested by Gisle Vanem in
28219         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
28221 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28223         flexmember: port better to GCC + valgrind
28224         With a char[] flexible array member in a struct with nontrivial
28225         alignment, GCC-generated code can access past the end of the
28226         array, because GCC assumes there are padding bytes to get the
28227         struct aligned.  So the common idiom of malloc (offsetof (struct
28228         s, m), n) does not properly allocate an n-byte trailing member, as
28229         malloc’s argument should be the next multiple of alignof (struct s).
28230         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28231         Although C11 apparently permits this GCC optimization (i.e., there
28232         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
28233         See the thread containing:
28234         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
28235         * lib/flexmember.h: New file.
28236         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
28237         * lib/localename.c, lib/time_rz.c:
28238         Include flexmember.h.
28239         * lib/fnmatch_loop.c (struct patternlist):
28240         * lib/localename.c (struct hash_node):
28241         Use FLEXIBLE_ARRAY_MEMBER.
28242         * lib/fnmatch_loop.c (EXT):
28243         * lib/fts.c (fts_alloc):
28244         * lib/glob.c (glob_in_dir):
28245         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28246         * lib/localename.c (gl_lock_define_initialized):
28247         * lib/time_rz.c (tzalloc):
28248         Use FLEXSIZEOF instead of offsetof.
28249         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28250         Check that the size of the struct can be taken.
28251         * modules/flexmember (Files): Add lib/flexmember.h.
28252         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
28253         Add flexmember.
28255 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28257         getprogname: port to Solaris 10
28258         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
28259         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
28260         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
28262         stdalign: correct mistake in alignof doc
28263         Problem reported by Joseph Myers in:
28264         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
28265         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
28266         alignof(S) where S is a structure containing a flexible array
28267         member.  The Gnulib substitute does not support this, but C11 does.
28269 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28271         main.mk: remove sc_program_name, since there is no more need to
28272         use set_program_name in tools (getprogname is enough for most
28273         of the cases).
28274         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
28275         * top/maint.mk (sc_program_name): Remove.
28277 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28279         Port tests away from progname, since modules that need the
28280         program name already depend on getprogname.
28281         * modules/acl-tests (Depends-on): Remove progname.
28282         * modules/argmatch (Depends-on): Likewise.
28283         * modules/argmatch-tests (Depends-on): Likewise.
28284         * modules/argp-tests (Depends-on): Likewise.
28285         * modules/argp-version-etc-tests (Depends-on): Likewise.
28286         * modules/array-list-tests (Depends-on): Likewise.
28287         * modules/array-oset-tests (Depends-on): Likewise.
28288         * modules/avltree-list-tests (Depends-on): Likewise.
28289         * modules/avltree-oset-tests (Depends-on): Likewise.
28290         * modules/avltreehash-list-tests (Depends-on): Likewise.
28291         * modules/carray-list-tests (Depends-on): Likewise.
28292         * modules/copy-file-tests (Depends-on): Likewise.
28293         * modules/exclude-tests (Depends-on): Likewise.
28294         * modules/fchownat-tests (Depends-on): Likewise.
28295         * modules/fdopendir-tests (Depends-on): Likewise.
28296         * modules/filenamecat-tests (Depends-on): Likewise.
28297         * modules/fstatat-tests (Depends-on): Likewise.
28298         * modules/fstrcmp-tests (Depends-on): Likewise.
28299         * modules/linked-list-tests (Depends-on): Likewise.
28300         * modules/linkedhash-list-tests (Depends-on): Likewise.
28301         * modules/mkdirat-tests (Depends-on): Likewise.
28302         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
28303         * modules/nonblocking-socket-tests (Depends-on): Likewise.
28304         * modules/obstack-printf-tests (Depends-on): Likewise.
28305         * modules/openat-tests (Depends-on): Likewise.
28306         * modules/parse-datetime-tests (Depends-on): Likewise.
28307         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
28308         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
28309         * modules/quotearg-simple-tests (Depends-on): Likewise.
28310         * modules/quotearg-tests (Depends-on): Likewise.
28311         * modules/rbtree-list-tests (Depends-on): Likewise.
28312         * modules/rbtree-oset-tests (Depends-on): Likewise.
28313         * modules/rbtreehash-list-tests (Depends-on): Likewise.
28314         * modules/spawn-pipe-tests (Depends-on): Likewise.
28315         * modules/system-quote-tests (Depends-on): Likewise.
28316         * modules/uniname/uniname-tests (Depends-on): Likewise.
28317         * modules/uninorm/nfc-tests (Depends-on): Likewise.
28318         * modules/uninorm/nfd-tests (Depends-on): Likewise.
28319         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
28320         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
28321         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
28322         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
28323         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
28324         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
28325         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
28326         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
28327         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
28328         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
28329         * modules/unlinkat-tests (Depends-on): Likewise.
28330         * modules/version-etc-tests (Depends-on): Likewise.
28331         * modules/xalloc-die-tests (Depends-on): Likewise.
28332         * modules/xmemdup0-tests (Depends-on): Likewise.
28333         * modules/xprintf-posix-tests (Depends-on): Likewise.
28334         * modules/xvasprintf-tests (Depends-on): Likewise.
28335         * tests/test-argmatch.c: Do not include progname.h.
28336         (main) Stop calling set_program_name.
28337         * tests/test-argp-version-etc.c: Likewise.
28338         * tests/test-argp.c: Likewise.
28339         * tests/test-argv-iter.c: Likewise.
28340         * tests/test-array_list.c: Likewise.
28341         * tests/test-array_oset.c: Likewise.
28342         * tests/test-avltree_list.c: Likewise.
28343         * tests/test-avltree_oset.c: Likewise.
28344         * tests/test-avltreehash_list.c: Likewise.
28345         * tests/test-carray_list.c: Likewise.
28346         * tests/test-copy-acl.c: Likewise.
28347         * tests/test-copy-file.c: Likewise.
28348         * tests/test-exclude.c: Likewise.
28349         * tests/test-fchownat.c: Likewise.
28350         * tests/test-fdopendir.c: Likewise.
28351         * tests/test-filenamecat.c: Likewise.
28352         * tests/test-fstatat.c: Likewise.
28353         * tests/test-fstrcmp.c: Likewise.
28354         * tests/test-linked_list.c: Likewise.
28355         * tests/test-linkedhash_list.c: Likewise.
28356         * tests/test-mkdirat.c: Likewise.
28357         * tests/test-nonblocking-pipe-main.c: Likewise.
28358         * tests/test-nonblocking-socket-main.c: Likewise.
28359         * tests/test-obstack-printf.c: Likewise.
28360         * tests/test-openat.c: Likewise.
28361         * tests/test-parse-datetime.c: Likewise.
28362         * tests/test-pipe-filter-gi1.c: Likewise.
28363         * tests/test-pipe-filter-gi2-main.c: Likewise.
28364         * tests/test-pipe-filter-ii1.c: Likewise.
28365         * tests/test-pipe-filter-ii2-main.c: Likewise.
28366         * tests/test-quotearg-simple.c: Likewise.
28367         * tests/test-quotearg.c: Likewise.
28368         * tests/test-rbtree_list.c: Likewise.
28369         * tests/test-rbtree_oset.c: Likewise.
28370         * tests/test-rbtreehash_list.c: Likewise.
28371         * tests/test-sameacls.c: Likewise.
28372         * tests/test-set-mode-acl.c: Likewise.
28373         * tests/test-spawn-pipe-main.c: Likewise.
28374         * tests/test-system-quote-main.c: Likewise.
28375         * tests/test-unlinkat.c: Likewise.
28376         * tests/test-version-etc.c: Likewise.
28377         * tests/test-xalloc-die.c: Likewise.
28378         * tests/test-xfprintf-posix.c: Likewise.
28379         * tests/test-xmemdup0.c: Likewise.
28380         * tests/test-xprintf-posix.c: Likewise.
28381         * tests/test-xvasprintf.c: Likewise.
28382         * tests/uniname/test-uninames.c: Likewise.
28383         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28384         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28385         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28386         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28387         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28388         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28389         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28390         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28391         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28392         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28393         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28394         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28395         * tests/test-c-stack.c: (program_name): Do not define.
28396         (main): Do not set program_name.
28397         * tests/test-closein.c: Likewise.
28398         * tests/test-xstrtol.c: Likewise.
28399         * tests/test-yesno.c: Likewise.
28401 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28403         Port modules to use getprogname explicitly, instead of requiring
28404         progname to be used (or program_name to be provided).
28405         * lib/argmatch.c: Do not include progname.h.
28406         [TEST] (program_name): Do not define.
28407         [TEST] (main): Call getprogname instead of using program_name.
28408         * lib/c-stack.c: Do not include progname.h.
28409         (program_name): Do not define.
28410         (die): Call getprogname instead of using program_name.
28411         * lib/chdir-long.c: Do not include progname.h.
28412         [TEST_CHDIR] (main): Do not set program_name.
28413         * lib/error.c [!_LIBC]: Include progname.h.
28414         [!_LIBC] (program_name): Define using getprogname.
28415         * lib/euidaccess.c: Do not include progname.h.
28416         [TEST] (main): Do not set program_name.
28417         * lib/git-merge-changelog.c: Include getprogname.h instead of
28418         progname.h.
28419         (usage): Call getprogname instead of using program_name.
28420         (main): Likewise.  Stop calling set_program_name.
28421         * lib/group-member.c: Do not include progname.h.
28422         [TEST] (main): Do not set program_name.
28423         * modules/argmatch (Depends-on): Add getprogname.
28424         * modules/c-stack (Depends-on): Likewise.
28425         * modules/error (Depends-on): Likewise.
28426         * modules/git-merge-changelog (Depends-on): Likewise.
28427         Also remove progname.
28429 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28431         * NEWS: Document the deprecation of the 'progname' module.
28433 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28435         getprogname: new module
28436         This provides a LGPL module for getting the name of the current
28437         program, using the same API found on *BSD systems.
28438         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28439         * modules/getprogname: New files.
28440         * MODULES.html.sh (Misc): Add getprogname.
28442 2016-09-02  Jim Meyering  <meyering@fb.com>
28444         manywarnings: add -fno-common
28445         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28446         to the list.  Quoting the manual, "Compiling with -fno-common is
28447         useful on targets for which it provides better performance, or if
28448         you wish to verify that the program will work on other systems that
28449         always treat uninitialized variable declarations this way [putting
28450         it in the data section]."  If diffutils had been using this sooner,
28451         it would have prevented this duplicate declaration issue:
28452         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28454 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28456         parse-datetime: Fix typo.
28457         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28459 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28461         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28462         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28463         GCC 5 and 6 that have __builtin_sub_overflow but not
28464         __builtin_sub_overflow_p.  With the recent changes, these
28465         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28466         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28467         since the former needs just one runtime comparison whereas the
28468         latter needs two.
28470         strverscmp: sync with glibc
28471         Although this doesn't exactly synchronize with glibc
28472         byte-for-byte, it makes the code behave the same as glibc.
28473         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28474         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28475         difference shouldn't matter in practical use.  All uses changed
28476         back to isdigit.
28477         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28478         (next_state): Now unsigned char array; redo elements.
28479         (result_type): Now signed char array; redo elements.
28480         (__strverscmp): Fix glibc bug 9913 by using new states.
28481         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28483 2016-08-29  Jim Meyering  <meyering@fb.com>
28485         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28486         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28487         similarly to how it was done to intprops.h.
28489 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28491         intprops.h: port recent changes to GCC 6.2.0
28492         * lib/intprops.h (__has_builtin): Move earlier.
28493         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28494         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28495         the last argument can be null.  All uses changed.
28496         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28497         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28498         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28499         and it's not clear which GCC versions it works for.
28500         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28501         its definiens.
28503         intprops.h: use __typeof__ with GCC 7
28504         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28505         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28506         This avoids computing the expression's value (which might overflow!).
28508 2016-08-29  Jim Meyering  <meyering@fb.com>
28510         intprops.h, xalloc-oversized.h: work with gcc 7
28511         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28512         __builtin_mul_overflow each accept a NULL pointer as the third
28513         argument.  However in gcc 7, that is no longer accepted.
28514         Instead, one must use the "_p"-suffixed names, with which, the
28515         third parameter is no longer a pointer.
28516         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28517         the definition: not true for gcc 7 and subsequent.
28518         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28519         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28520         Provide new definitions for gcc 7 and subsequent.
28521         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28522         that works with gcc-7.
28524         intprops.h: fix missing-backslash problems
28525         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28526         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28528 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28530         intprops: fix paren typo on old platforms
28531         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28532         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28533         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28534         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28535         && !defined LLONG_MAX]:
28536         Remove stray paren.
28538         intprops: port to OpenVMS
28539         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28540         * doc/posix-headers/limits.texi: Document the problem.
28541         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28542         Define if not already defined.
28544 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28546         parse-datetime: improve debug implementation
28547         Follow-up to commit 12ad79069 ("add optional debug printing").
28548         Improve parse-datetime's debug implementation: remove macros,
28549         replace global debug flag variable with a function parameter,
28550         use nstrftime for formatting.
28551         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28552         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28553         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28554         debug flag. Existing interface 'parse_datetime' left unmodified.
28555         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28556         (struct parser_control): add 'parse_datetime_debug' member variable.
28557         (parse_datetime): Call new function 'parse_datetime2' without debug.
28558         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28559         pc.parse_datetime_debug variable as needed.
28560         (to_year): Accept new flags parameter, instead of using global variable.
28561         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28562         use struct 'debug' variable instead of global variable.
28563         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28564         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28565         correspnding functions directly instead of using macros.
28566         * modules/parse-datetime: Add gnulib's strftime module.
28568 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28570         c-strcase-tests: port to EBCDIC
28571         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28572         which assume ASCII encoding semantics to run only in ASCII
28573         mode, as they fail in EBCDIC.
28575         sigpipe-tests: fix typo
28576         * tests/test-sigpipe.sh: C, not B.
28578 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28580         canonicalize-lgpl: fix errno after malloca fails
28581         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28582         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28583         * lib/canonicalize-lgpl.c (__realpath):
28584         Don't assume malloca sets errno on failure.
28586 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28588         strtod: port errno handling to z/OS
28589         * lib/strtod.c (strtod): Save and restore errno more reliably.
28591 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28593         strtod: port to z/OS
28594         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28595         implementation.
28597 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28599         strtod: port to z/OS
28600         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28601         implementation.
28603         regex, string: rename to avoid '__string'
28604         * lib/regex.h, lib/string.in.h: Do not use the identifier
28605         '__string', as it is effectively reserved by string.h on z/OS.
28607         c-strcase-tests, wcwidth-tests: depend on c-ctype
28608         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28609         Add c-ctype.
28611 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28613         thread: port to z/OS
28614         * lib/glthread/thread.c, lib/glthread/thread.h:
28615         Rudimentary gl_thread support for z/OS.
28617         maint: port tests to z/OS errno behavior
28618         * tests/test-nonblocking-reader.h:
28619         * tests/test-nonblocking-writer.h:
28620         Accommodate z/OS errno code preferences. (I believe this should
28621         still be within spec; IBM is good at following the letter if not
28622         the spirit of such things.)
28624         maint: preprocessor changes to support z/OS
28625         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28626         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28627         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28628         * tests/test-nonblocking-pipe.h:
28630         fclose, strstr-simple, wchar: port to z/OS
28631         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28632         Changes to the Autoconf M4 code to support z/OS.  Note that
28633         fclose() is broken in a different way on z/OS than it is on other
28634         systems, thus the special-case in fclose.m4.
28636         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28637         * tests/test-iconv-utf.c, tests/test-iconv.c:
28638         Added appropriately conditional #pragmas so that the test strings
28639         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28640         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28641         addressed in a more portable way by simply rewriting all the ASCII
28642         literal characters as octal escapes, but then you would lose the
28643         partial readability that the strings have now. Also, iconv_open()
28644         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28646         c-strcase-tests, wcwidth-tests: port to EBCDIC
28647         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28648         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28649         * tests/test-wcwidth.c: Likewise.
28651 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28653         stdbool: don't require _Bool for C++
28654         Problem reported by David Seifert in:
28655         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28656         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28657         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28658         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28659         stricter about checking that bool and _Bool are compatible in C.
28661 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28663         getdelim: remove dependency on realloc-posix
28664         * lib/canonicalize-lgpl.c (alloc_failed)
28665         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28666         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28667         Use __set_errno where needed, for consistency.
28668         * lib/getdelim.c (alloc_failed): New function.
28669         (getdelim): Use it.
28671 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28673         parse-datetime: add optional debug printing
28674         Print parsing information, warnings, and errors to stderr.
28675         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28676         * lib/parse-datetime.y:
28677         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28678         (PROGRESS*): Same as DEBUG, for progress reporting.
28679         (dbg_printf): Print message to stderr, with 'date' prefix.
28680         (struct parser_control): Add 'debug_*_seen' variables.
28681         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28682         (debug_print_current_time, debug_print_relateive_time): Prints the
28683         current/relative date/time value of parser_control.
28684         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28685         (to_year): Warn about 2-digit year parsing.
28686         (yylex):   Warn about unrecognized words.
28687         (get_effective_timezone): Returns current timezone in minutes.
28688         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28689         clearly and unambigiously as possible.
28690         (debug_mktime_not_ok): Print detailed information about failed
28691         date/time values.
28692         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28693         PROGRESS messages for status messages.
28694         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28696 2016-08-06  Jim Meyering  <meyering@fb.com>
28698         tests/init.sh: exclude dash with bad "local" semantics
28699         * tests/init.sh (gl_shell_test_script_): Add a function to
28700         eliminate a shell like "dash" (unlike bash, zsh) that has
28701         surprising/risky "local var='...'" semantics.  Inspired by
28702         the problem and discussion in https://bugs.gnu.org/24116#11.
28704 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28706         maint.mk: expand the prohibit_doubled_word regex
28707         This check has a static list of words that are checked for
28708         repetitions.  Expand it before running the perl script to
28709         avoid using expensive captures.  This decreases the cost
28710         for libvirt from 1.66s to 0.66s.
28711         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28712         (sc_prohibit_doubled_word): Use it.
28714 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28716         useless-if-before-free: skip non-matching lines early
28717         * build-aux/useless-if-before-free: First match each line with the
28718         simple/quick /\bif\b/ and reject if there is no match. This often
28719         saves the cost of the much more involved regular expression.
28720         For libvirt, this decreases the cost from 1.44s to 1.02s.
28722 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28724         maint.mk: speed up sc_po_check
28725         sc_po_check would skip files based on their names, or on the
28726         existence of files with derived names. Rewrite it to use perl
28727         instead of shell to make the check faster.
28728         * top/maint.mk (perl_translatable_files_list_): Define.
28729         (sc_po_check): Use it.
28731 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28733         maint.mk: speed up require_config_h_first
28734         Instead of spawning three processes per file,
28735         rewrite the check in perl and run it once for all the files.
28736         * top/maint.mk (perl_config_h_first_): Define.
28737         (sc_require_config_h_first): Use it in place of shell code.
28739 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28741         maint.mk: speed up sc_po_check
28742         sc_po_check would skip files based on their names, or on the
28743         existence of files with derived names. Rewrite it to use perl
28744         instead of shell to make the check faster.
28745         * top/maint.mk (perl_translatable_files_list_): Define.
28746         (sc_po_check): Use it.
28748 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28750         obstack: pacify GCC 6 with -Wnull-dereference
28751         Problem reported by Assaf Gordon in:
28752         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28753         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28754         Declare with __attribute_noreturn__.
28755         * lib/obstack.h (__attribute_noreturn__): New macro.
28757 2016-07-13  Eric Blake  <eblake@redhat.com>
28759         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28760         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28761         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28763 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28765         doc: mention glibc SSIZE_MAX buglet
28766         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28768 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28770         printf-posix: Fix mingw build
28771         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28772         expression for detecting C symbol prefixes but forgot to qoute square
28773         brackets in the command line arguments for grep.  That way when
28774         building with mingw the condition was false although it ought to be
28775         true instead.  In particular scenarios this led to the following
28776         compile error:
28778             Cannot export rpl_printf: symbol not found
28779             Cannot export rpl_scanf: symbol not found
28780             collect2: error: ld returned 1 exit status
28782         Fix this by properly quoting square brackets.
28784 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28786         mktime: call tzset as per POSIX
28787         Problem reported by Ludovic Courtès in:
28788         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28789         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28790         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28792 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28794         fts: handle readdir() errors
28795         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28796         but also upon error when it will also set errno.  Therefore
28797         flag the error case from readdir().  We treat the case where
28798         no items are read the same as if the dir can't be accessed,
28799         i.e. by setting fts_errno to FTS_DNR.
28801 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28803         intprops: port better to GCC 7
28804         GCC 7 __builtin_add_overflow supports a new usage form, where the
28805         last argument is a null pointer, and which merely returns 1 if an
28806         overflow would occur.  This is a constant expression if all
28807         arguments are constants, and should generate faster code when code
28808         needs to be generated.
28809         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28810         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28811         Use builtin operations if available.
28812         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28813         operations are available, as it's almost surely faster.
28815 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28817         intprops-test: port to GCC 6
28818         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28819         since the bug is not fixed in GCC 6.1.
28821 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28823         xalloc-oversized: port to GCC 7; fewer warnings
28824         GCC 7 will have a better way to deal with integer overflow.
28825         Plus, fix a warnings problem reported by Tim Ruehsen in:
28826         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28827         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28828         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28829         For GCC 5, use __xalloc_oversized if both args are constants,
28830         or if pedantic.
28832 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28834         regex: port to Sun C
28835         Reported by Daiki Ueno.
28836         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28837         __restrict, in prototype.  This fixes a problem I introduced in
28838         the 2016-02-19 merge from glibc.
28840 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28842         stdbool: Restore __bool_true_false_are_defined check
28843         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28844         __bool_true_false_are_defined is still defined, even with C++11.
28846 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28848         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28849         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28851 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28853         Use GCC_LINT, not lint
28854         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28855         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28856         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28857         Document problem with lint and _Noreturn.
28858         * lib/diffseq.h (IF_LINT, IF_LINT2):
28859         * lib/fts.c (sccsid):
28860         * lib/getndelim2.c (IF_LINT):
28861         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28862         (gl_linked_iterator_from_to):
28863         * lib/gl_anytree_list2.h (gl_tree_iterator)
28864         (gl_tree_iterator_from_to):
28865         * lib/gl_anytree_oset.h (gl_tree_iterator):
28866         * lib/gl_array_list.c (gl_array_iterator)
28867         (gl_array_iterator_from_to):
28868         * lib/gl_array_oset.c (gl_array_iterator):
28869         * lib/gl_carray_list.c (gl_carray_iterator)
28870         (gl_carray_iterator_from_to):
28871         * lib/idcache.c:
28872         * lib/inet_ntop.c (IF_LINT):
28873         * lib/regcomp.c (build_charclass_op, create_tree):
28874         * lib/regex_internal.c (re_acquire_state)
28875         (re_acquire_state_context):
28876         * lib/trigl.c (rcsid):
28877         * lib/trim.c (IF_LINT):
28878         * lib/vasnprintf.c (IF_LINT):
28879         * lib/verify.h (assume):
28880         Treat GCC_LINT like lint.
28882 2016-05-29  Bruno Haible  <bruno@clisp.org>
28884         secure_getenv: Port to many more platforms.
28885         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28886         functions.
28887         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28888         for non-BSD Unix platforms and for native Windows.
28889         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28890         Prompted by a request from Nikos Mavrogiannopoulos.
28892 2016-05-27  Eric Blake  <eblake@redhat.com>
28894         canonicalize: Fix broken probe for realpath.
28895         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28896         in logic introduced in 54615b95.
28898 2016-05-26  Eric Blake  <eblake@redhat.com>
28900         unsetenv: relax to LGPLv2+
28901         * modules/unsetenv (License): Match setenv license.
28903 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28905         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28906         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28907         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28908         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28909         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28910         (generate_html, generate_info, generate_tex, outdir)
28911         (source_extra, split, srcfile, texarg): Move above 'version'.
28912         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28914 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28916         manywarnings: update for GCC 6.1
28917         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28918         Add GCC 6.1 options that apply to C.
28919         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28920         do not apply to C, are obsolescent, etc.
28922 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28924         glob: size_t overflow checks
28925         * lib/glob.c (__has_builtin): New macro.
28926         (size_add_wrapv, glob_use_alloca): New static functions.
28927         (glob, glob_in_dir): Check for size_t overflow in several places,
28928         and fix some size_t checks that were not quite right.
28930         glob: don't assume INT_MAX < SIZE_MAX
28931         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28932         latter is not portable to (probably theoretical) hosts where
28933         SIZE_MAX <= INT_MAX.
28935 2016-05-09  Bruno Haible  <bruno@clisp.org>
28937         Fix undefined behaviour in gettext.h.
28938         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28939         pointer's value after the storage it points to has been freed.
28940         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28941         Spotted by Coverity.
28943 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28945         git-version-gen: avoid undefined shift
28946         Problem reported by Mosè Giordano in:
28947         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28948         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28949         with --prefix or --fallback but without a later argument.  While
28950         we're at it, omit unnecessary quotes.
28952 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28954         glob: merge glibc changes into lib/glob.c
28955         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28956         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28957         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28958           struct dirent [BZ #19779]
28959         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28960           callback gl_readdir
28961         2015-10-20 Convert miscellaneous function definitions to prototype style
28962         2015-10-20 Convert 113 more function definitions to prototype style
28963           (files with assertions)
28964         2015-06-12 Fix getlogin_r namespace (bug 18527).
28965         2014-02-10 Use glibc_likely instead __builtin_expect.
28966         2013-10-20 When glob pattern contains a trailing slash match only
28967           directories. Fixes bug 10278.
28968         2013-09-04 glob: silence -Wattribute warnings
28969         2013-06-07 Avoid use of "register" as optimization hint.
28970         2012-09-25 Use size_t instead of int for internal variables in glob
28971           (bug 14621)
28972         2011-07-20 Check for overflows in expressions
28973         2011-05-28 Remove unused variable
28974         2011-05-22 Add a few more alloca size checks
28975         2010-03-27 Whitespace fixes
28976         2010-03-27 Fix one more issue with the glob patch
28977         2010-03-24 Fix glob with empty pattern
28978         2008-05-27 Remove useless more "if" tests before "free"
28979         * modules/glob (Depends-on): Add stdint.
28981 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28983         mktime: port to stricter signed overflow checking
28984         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28985         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28986         instead of merely for INT_MAX * 2.  In practice platforms that
28987         do the latter also do the former.
28988         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28989         (shr): New static function, replacing SHR.  All uses changed.
28990         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28991         and TIME_T_MAX.  All uses changed.
28992         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28993         Use long_int, not time_t.
28994         (long_int_avg): New static function, replacing time_t_avg.
28995         All uses changed.  Round toward positive infinity, as that
28996         generates slightly better code.
28997         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28998         by INT_ADD_WRAPV.
28999         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
29000         (convert_time): New static function.
29001         (ranged_convert): Use it
29002         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
29003         Use simpler test for loop exit.
29004         (__mktime_internal): Store negative of guessed offset, to simplify
29005         overflow checking.  Remove no-longer-needed test for small time_t
29006         overflows.
29008         mktime: speed up DEBUG_MKTIME benchmarks
29009         Call tzset just once, at the start, rather than for every test
29010         case.  This lets us measure the CPU cost of mktime as opposed to
29011         that of tzset.  This is relevant when TZ is not set and glibc is
29012         being used.  This speeds up tests by a factor of 40 on my Fedora
29013         23 x86-64 platform.
29014         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
29015         to call tzset and as a sanity check.  Later on, use localtime_r
29016         instead of localtime.
29018         mktime: resurrect DEBUG_MKTIME testing
29019         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
29020         Include <string.h>, for strcmp.
29022         mktime: simplify DEBUG_MKTIME
29023         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
29024         Simplify later usage accordingly.
29026         Port mktime_internal offset to unsigned time_t
29027         This avoids some assumptions about wraparound arithmetic on
29028         signed integer overflow.
29029         * lib/mktime-internal.h (mktime_offset_t): New type.
29030         (mktime_internal): Use it in decl.
29031         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
29033         * lib/mktime.c (__mktime_internal, localtime_offset):
29034         * lib/timegm.c (timegm): Use it.
29035         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
29036         (gl_FUNC_MKTIME): Require it.
29038 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29040         xstrtol: prohibit monstrosities like "1bB"
29041         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
29042         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
29043         "B" only if the first suffix needs a base.
29044         * tests/test-xstrtol.sh: Test this.
29046 2016-04-21  Pádraig Brady  <P@draigBrady.com>
29048         xstrtod: reinstate setting of *result upon ERANGE
29049         * lib/xstrtod.c (XSTRTOD): The user may decide to use
29050         the returned limits upon ERANGE, so allow and document that.
29052 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
29054         xstrtod: modify *result only if no errors
29055         * lib/xstrtod.c (XSTRTOD).
29057 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
29059         btowc: document problems in C locale
29060         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
29061         with mbrtowc.  See: http://bugs.gnu.org/23269#32
29063 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29065         mktime: improve integer overflow checking
29066         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
29067         (WRAPV): Remove; no longer needed.
29068         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
29069         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29070         Remove.  Use intprops.h defns instead.
29071         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
29072         Use bool for Boolean, for clarity.
29073         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
29074         detect integer overflow.
29075         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
29077         intprops: check two's complement assumption
29078         Suggested by Eric Blake in:
29079         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
29080         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
29081         short, int, long, and (if available) long long are two's complement.
29082         * modules/intprops (Depends-on): Add 'verify'.
29084         intprops, mktime, strtol: assume two's complement
29085         These macros were not portable to every conforming C11 ones'
29086         complement platform.  It's not worth the hassle of porting to some
29087         platforms that use ones' complement or signed magnitude, as such
29088         platforms are almost purely theoretical nowadays and porting even
29089         to some of them makes the code harder to review for little
29090         practical benefit.  Problem reported by Florian Weimer in:
29091         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
29092         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29093         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
29094         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
29095         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29096         (TYPE_SIGNED_MAGNITUDE):
29097         Remove.  All uses rewritten to assume two's complement, which is
29098         all we can reasonably test nowadays anyway.
29099         * top/maint.mk (_intprops_names): Remove the removed macros.
29101 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
29103         stdint: port to strict C11 left shift
29104         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
29105         Pacify clang -Wshift-negative-value, which should be an issue only
29106         on clang setups where stdint.h does not conform to C11 or to C++11.
29107         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
29109 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29111         mbrtowc: work around glibc bug#19932
29112         Fix mbrtowc so that it never returns -1 in the C locale,
29113         as this conflicts with a future version of POSIX
29114         http://austingroupbugs.net/view.php?id=663#c2738
29115         and causes problems with GNU grep: http://bugs.gnu.org/23234
29116         See glibc bug 19932:
29117         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
29118         * doc/posix-functions/mbrlen.texi (mbrlen):
29119         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29120         Document the glibc bug.
29121         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
29122         Include hard-locale.h, locale.h.
29123         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
29124         if the bug is possible.
29125         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
29126         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
29127         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
29128         * modules/mbrtowc (Depends-on): Add hard-locale.
29129         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
29130         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
29131         * tests/test-mbrtowc5.sh: New file.
29133 2016-04-03  Pedro Alves  <palves@redhat.com>
29135         stdint: detect good enough pre-C++11 stdint.h in C++ mode
29136         When gnulib is configured in C++ mode for a system with a working C99
29137         implementation of stdint.h that predates C++11, gnulib ends up
29138         substituting stdint.h anyway.  This works on most targets, but on e.g.,
29139         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
29140         MinGW is LLP64.  Instead of trying to detect the right types, detect
29141         good-enough-pre-C++11 stdint.h and in such case define
29142         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
29143         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
29144         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
29145         conforms to C99.  If it does, check whether it hides symbols
29146         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
29147         does, define those macros in config.h.
29149 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29151         argp: merge changes from glibc
29152         Among other things, this should fix problems found by a Coverity
29153         scan and reported by Andrei Borzenkov:
29154         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
29155         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
29156         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
29157         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
29158         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
29159         * lib/argp.h:
29160         Merge changes from glibc.
29161         * tests/test-argp-2.sh: Adjust to match new behavior.
29163 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
29165         stddef: support configuring with g++
29166         Problem reported by Ángel González in:
29167         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
29168         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
29169         Do not define if _GCC_MAX_ALIGN_T is defined.
29171 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29173         test-framework-sh: minor cleanups
29174         * tests/init.sh (testdir_prefix_): Output a trailing newline,
29175         since strictly speaking POSIX requires this.
29176         (setup_): Do not use the variable 'fail', as that makes the
29177         trace output harder to read ('fail' is typically used by
29178         tests to mean the test failed).  Treat // portably.
29179         Check that new directory is not merely a sibling of the tmp dir.
29180         Avoid unnecessary invocation of tr.
29182         test-framework-sh: revert port to NetBSD 7.0
29183         It was a false alarm; I misinterpreted Assaf Gordon's report.
29184         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29185         Restore.
29186         (test_dir_): Adjust to mktempd_ change.
29187         (mktempd_): Restore 2nd arg.  Use -t again.
29188         (base_template_, template_, nx_): Resurrect old code.
29190         Port better to Alpine Linux
29191         Its diff implementation does not support -c, but does support -U3.
29192         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29193         * tests/init.sh (diff_opt_): New var.
29194         (compare_): Prefer diff -U3 to diff -c to plain diff.
29196 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29198         test-framework-sh: port to NetBSD 7.0
29199         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29200         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29201         Remove.  All uses removed.
29202         (test_dir_): Adjust to mktempd_ change.
29203         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
29204         (base_template_, template_, nx_): Simplify by hardcoding.
29206 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29208         gitlog-to-changelog: suppress ignored chatter
29209         * build-aux/gitlog-to-changelog: Do not warn about skipping
29210         an SHA if it would have been ignored anyway.
29212 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
29214         setlocale: add "sv" to Windows language table
29215         * lib/setlocale.c (language_table) [W32]: Add "sv".
29216         Reported in <https://savannah.gnu.org/bugs/?44588>.
29218 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29220         sys_select: port to new Cygwin
29221         Problem reported by Ken Brown in:
29222         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
29223         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
29224         diagnostics.
29226 2016-03-17  Jim Meyering  <meyering@fb.com>
29228         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
29229         * tests/test-userspec.c (main): Remove unnecessary braces and fix
29230         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
29231           test-userspec.c:176:9: error: statement is indented as if it were \
29232             guarded by... [-Werror=misleading-indentation]
29233                    {
29234                    ^
29235           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
29236                  if (!diag && !T[i].result)
29237                  ^~
29239 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29241         time_rz: port to clang -Wunused-const-variable
29242         * lib/time_rz.c (TZ): Remove.  All uses removed.
29244         std-gnu11: improve clang support
29245         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
29246         2016-03-15 Also try clang
29247         2016-03-15 Port C11 and C++11 testing to clang
29249         select: port more to Intel 2016.1.150 compiler
29250         Problem reported by Balázs Hajgató in:
29251         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
29252         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
29254 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29256         select: try to port to 2016.1.150 compiler
29257         Problem reported by Balázs Hajgató in:
29258         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
29259         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
29260         POSIX specifies 'restrict'.
29262 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29264         localename-tests: memory allocation fixes
29265         * tests/test-localename.c (test_locale_name)
29266         (test_locale_name_thread): Don't call freelocale on a locale
29267         that was the base of a successful newlocale, as that
29268         results in a double free.  Problem reported by Assaf Gordon.
29269         (test_locale_name_thread): Free saved names after use, to pacify
29270         gcc -fsanitize=address.
29272 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29274         intprops: make .h file license match module
29275         * lib/intprops.h: Change the license wording to match glibc format.
29276         This is what is in modules/intprops anyway.  See:
29277         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
29279 2016-03-08  Eric Blake  <eblake@redhat.com>
29281         acl: fix missing return on Cygwin
29282         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
29283         fall off end of function. Fixes http://bugs.gnu.org/22949
29285 2016-03-05  Bruno Haible  <bruno@clisp.org>
29287         extern-inline: port to PGI CC
29288         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
29289         keyword 'inline'.
29290         Reported by Adam James Stewart in:
29291         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
29293 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29295         signbit: port back to pre-C++11 GCC
29296         * lib/math.in.h (signbit): Do previous change only if
29297         __cplusplus < 201103.  See Jonathan Wakely in:
29298         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
29300 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
29302         mountlist: recognize autofs-mounted remote file systems, too
29303         Originally reported at: https://bugzilla.redhat.com/1309247
29304         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
29305         "-hosts" because it is used by autofs to mount remote file systems.
29307 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29309         signbit: port to C++ with GCC 6
29310         * lib/math.in.h (signbit) [__cplusplus]:
29311         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
29312         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
29314         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
29316         regex: make it closer to libc
29317         Make Idx a signed type, rather than possibly unsigned.
29318         The unsignedness was not really buying us anything, since the code
29319         overflows for other reasons before getting to PTRDIFF_MAX.  Making
29320         it signed allows us to use -1 and -2 with abandon, like libc does,
29321         thus lessening the number of differences between gnulib and libc.
29322         Also, it should help avoid gratuitous warnings like the one
29323         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
29324         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
29327         regex: merge patches from libc
29329         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
29330         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
29331         Convert miscellaneous function definitions to prototype style.
29332         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
29333         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
29334         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
29335         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
29336         (re_search_internal):
29337         Convert to prototype-style function definition.
29338         Use internal_function for internal functions.
29340 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
29342         stdalign: port to older HP and IBM cc
29343         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
29344         C compilers, by checking their version numbers.  These version
29345         numbers appear in MariaDB and in Qt code that dates way back and
29346         that conditiionally uses the 'aligned' attribute.
29348 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29350         stdalign: port to clang 3.7.0
29351         Problem reported by Herbert J. Skuhra in:
29352         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
29353         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
29354         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
29355         https://llvm.org/bugs/show_bug.cgi?id=26547
29357 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29359         readdir_r: now obsolescent
29360         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
29361         * lib/mountlist.c (read_file_system_list): Add a FIXME.
29363 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29365         misc: port better to gcc -fsanitize=address
29366         Without these patches, ./configure CFLAGS='-fsanitize=address'
29367         would compute incorrect values.  This patch fixes some (but not all)
29368         test failures with recent glibc, with this configuration.
29369         * m4/acl.m4 (gl_ACL_GET_FILE):
29370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
29371         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
29372         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
29373         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
29374         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29375         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29376         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
29377         * m4/getline.m4 (gl_FUNC_GETLINE):
29378         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
29379         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
29380         * m4/regex.m4 (gl_REGEX):
29381         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29382         * tests/test-calloc-gnu.c (main):
29383         * tests/test-duplocale.c (main):
29384         * tests/test-getgroups.c (main):
29385         * tests/test-getline.c (main):
29386         * tests/test-inttostr.c (main):
29387         * tests/test-localename.c (test_locale_name)
29388         (test_locale_name_thread, test_locale_name_environ)
29389         (test_locale_name_default):
29390         * tests/test-regex.c (main):
29391         * tests/test-setlocale1.c (main):
29392         * tests/test-stat.h (test_stat_func):
29393         Free heap-allocated storage before exiting.
29394         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
29395         Don't match *_foo symbols inserted by AddressSanitizer.
29396         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
29398 2016-02-02  Jim Meyering  <meyering@fb.com>
29400         verify-tests: also remove stray test-verify.Tpo
29401         * modules/verify-tests (Makefile.am): Arrange for "make clean"
29402         to remove the test-verify.Tpo file that is left behind by
29403         the automake-generated rule upon compilation failure.
29404         Otherwise, that .Tpo file would cause a failed "make distcheck"
29405         at least for grep.
29407 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29409         std-gnu11: new module
29410         This makes it easier for applications to prefer C11 and C++11
29411         to older variants, when compiling C and C++ code.
29412         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
29413         a nontrivial chunk of GPLed Autoconf source code.
29414         * COPYING: Mention the m4/*.m4 copyright situation.
29415         * MODULES.html.sh (std-gnu11): New module.
29416         * m4/std-gnu11.m4, modules/std-gnu11: New files.
29418 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29420         get-permissions, strftime: fix grammar in comments
29421         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29422         some grammar fixes Alan Mackenzie made to GNU Emacs.
29424 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29426         gettext: mark as obsolete
29427         Suggested by Paul Eggert in:
29428         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29429         * modules/gettext (Status): Mark as obsolete.
29430         (Notice): Suggest to use 'gettext-h' instead.
29431         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29432         the 'gettext' module.
29434 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29436         gnulib-tool: don't give up on ln -s so easily
29437         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29438         because an earlier one failed.  The targets could be on different
29439         file systems.  Problem reported by KO Myung-Hun in:
29440         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29442         closedir: fix OS/2-related typos
29443         Problem reported by KO Myung-Hun in:
29444         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29445         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29446         in the last couple of changes.
29448 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29450         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29451         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29452         copying a directory.
29454 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29456         regex: treat [x] as x if x is a unibyte encoding error
29457         Problem reported by Aharon Robbins in:
29458         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29459         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29460         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29462         closedir, dirfd, opendir: port to OpenSolaris 5.10
29463         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29464         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29465         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29466         Don't use ${word##pat} substitution, as it doesn't work in
29467         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29468         http://bugs.gnu.org/22443#11
29470 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29472         bootstrap: use American spelling
29473         * build-aux/bootstrap: Honor American spelling.
29475 2016-01-22  Karl Berry  <karl@freefriends.org>
29477         * doc/posix-functions/localtime.texi,
29478         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29480 2016-01-21  Bruno Haible  <bruno@clisp.org>
29482         hash-pjw-bare: fix comment
29483         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29485         wcwidth: Replace also on OpenBSD 5.8
29486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29487         * doc/posix-functions/wcwidth.texi: Update.
29489 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29491         gnu-web-doc-update: fix addition of new files
29492         If there were already added (emnpty) dirs,
29493         then cvs aborts the add with the message:
29494           cvs [add aborted]: there is a version in <./dirname> already
29495         * build-aux/gnu-web-doc-update: Add directories separately
29496         to the addition of files, to avoid the above issue
29497         impacting the addition of files.
29499 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29501         utimens-tests: avoid pulling gettext .m4 files
29502         Although this is not the right fix to the original problem:
29503         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29504         it makes it possible again for consumer projects to use arbitrary
29505         version of gettext, through the steps described at:
29506         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29507         See here for details:
29508         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29509         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29510         'gettext'.
29511         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29512         'gettext'.
29514 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29516         regex: pacify static checkers
29517         Problem and draft fix reported by Aharon Robbins in:
29518         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29519         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29520         Clear memory to pacify static checkers.
29522         regex: fix [ diagnostic
29523         Problem and fix reported by Aharon Robbins in:
29524         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29525         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29527         regex: fix memory leaks
29528         Problem and draft fix reported by Aharon Robbins in:
29529         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29530         * lib/regcomp.c (build_range_exp, build_charclass_op)
29531         * lib/regex_internal.c (re_dfa_add_node):
29532         Fix memory leak on failure.
29534 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29536         fts: don't unconditionally use leaf optimization for NFS
29537         NFS st_nlink are not accurate on all implementations,
29538         leading to aborts() if that assumption is made.
29539         See <https://bugzilla.redhat.com/1299169>
29540         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29541         the white list, and document the issue.
29543 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29544             KO Myung-Hun  <komh@chollian.net>
29546         gnulib-tool: don't assume ln -s works
29547         * gnulib-tool (func_ln_s): New function.
29548         (func_ln): Use it.
29550 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29552         utimes: detect utimes() correctly on OS/2 kLIBC
29553         utimes() of OS/2 kLIBC has some limitations.
29554         1. OS/2 itself supports a file date since 1980 year in local time.
29555         2. OS/2 itself supports only even seconds for a file time.
29556         3. utimes() of OS/2 kLIBC does not work on an opened file.
29557         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29558         * doc/posix-functions/utimes.texi: Document the above limitations of
29559         utimes() on OS/2 kLIBC.
29561 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29562             KO Myung-Hun  <komh@chollian.net>
29564         openat_proc_name: port to OS/2 kLIBC
29565         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29566         instead of /proc/self/fd.
29567         * lib/openat-proc.c (openat_proc_name):
29568         Don't assume file name length is less than INT_MAX.
29569         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29571 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29573         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29574         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29575         definitions of intptr_t and uintptr_t (which use int and unsigned)
29576         to avoid clashes with declarations of system functions like sbrk.
29577         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29578         _INTPTR_T_DECLARED before defining them.
29580         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29581         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29582         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29583         Declare on kLIBC.
29584         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29585         fd associated with dirp.
29586         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29587         dirp_fd_list.
29588         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29589         (dirfd): Implemented for kLIBC.
29590         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29591         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29592         succeeds.
29593         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29594         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29595         (REPLACE_DIRFD): Define to 1 if replaced.
29596         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29597         * modules/closedir (Depends-on): Add dirfd.
29598         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29599         condition.
29600         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29601         * modules/opendir (Depends-on): Add dirfd.
29603         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29604         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29605         * lib/dup.c (dup_nothrow): New.
29606         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29607         (klibc_dup2): New.
29608         * lib/fcntl.c (klibc_fcntl): New.
29609         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29610         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29611         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29612         fd.
29614         pipe_filter_ii_execute: port to OS/2 kLIBC
29615         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29616         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29617         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29618         Reuse Win32 code on OS/2 kLIBC.
29619         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29620         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29622         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29623         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29624         static inline function.  The implementation of wcwidth in wcwidth.c
29625         causes a "conflicting types" error.
29626         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29628         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29629         spawn() on OS/2 kLIBC is not silly like one on Windows
29630         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29631         empty string on OS/2 kLIBC.
29633         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29634         On OS/2 kLIBC, select() works only on sockets.
29635         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29637         binary-io: don't put fd in binary mode if it is a console on EMX
29638         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29639         a console on EMX.
29641 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29643         doc: mention unfixed issues with unsupported localtime() values
29644         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29645         returns nonsense for localtime(2^56).
29646         * doc/posix-functions/localtime_r.texi: Likewise.
29648 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29650         doc: mention setlocale() issues on OpenBSD
29651         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29652         never fails, and the need to check categories individually.
29654 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29656         sig2str: list all signals on FreeBSD >= 7
29657         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29658         to the maximal statically defined signal value.
29659         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29660         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29661         where available, even when NSIG is defined.
29663 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29665         acl-permissions: port to USE_ACL==0 platforms
29666         I ran into this problem when building bleeding-edge GNU Emacs
29667         with gcc -fsanitize=address on Fedora 23.  On this platform
29668         the ACL library does not pass the 'configure' test and Emacs
29669         then does not build due in part to what appear to be typos in the
29670         ACL part of Gnulib.
29671         * lib/acl-internal.c (free_permission_context):
29672         * lib/acl-internal.h (struct permission_context):
29673         Test whether USE_ACL is nonzero, not whether it is defined.
29675 2016-01-12  Martin Sebor  <msebor@redhat.com>
29677         mktime: rename macro to avoid glibc clash
29678         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29679         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29681 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29683         Port "$@" to OpenIndiana ksh93
29684         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29685         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29686         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29687         bug long-dead shells, so remove the workaround.
29688         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29689         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29690         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29691         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29692         Use "$@" instead of ${1+"$@"}.
29694         Port Universal Time settings to strict POSIX
29695         * build-aux/announce-gen, build-aux/bootstrap:
29696         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29697         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29698         * build-aux/gnupload, build-aux/mkinstalldirs:
29699         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29700         * build-aux/update-copyright, build-aux/useless-if-before-free:
29701         * build-aux/vc-list-files, tests/test-strftime.c:
29702         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29703         but POSIX says the behavior of TZ="UTC" is undefined.
29705 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29707         msvc-inval: fix problem with unset shell var
29708         Problem reported by Karl Berry in:
29709         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29710         * modules/msvc-inval (Depends-on):
29711         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29712         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29714 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29716         tests: for compare_(), use cmp -s where available
29717         * tests/init.sh (compare_): Only fall back to cmp without
29718         the POSIX defined -s option, where this is not available.
29720 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29722         version-etc: new year
29723         * build-aux/gendocs.sh (version):
29724         * doc/gendocs_template:
29725         * doc/gendocs_template_min:
29726         * doc/gnulib.texi:
29727         * lib/version-etc.c (COPYRIGHT_YEAR):
29728         Update copyright dates by hand in templates and the like.
29729         * all files: Run 'make update-copyright'.
29731 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29733         human: fix output buffer overrun by 1
29734         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29735         calculation that could lead to a one-byte buffer overrun.
29737 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29739         maint: fix operator precedence in mbrtowc test
29740         This is a fix for test breakage introduced by commit 45228d96; the
29741         equality expression must be parenthesized when negated with '!',
29742         otherwise we always get:
29744           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29746         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29747         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29749 2015-12-23  James Youngman  <jay@gnu.org>
29751         regexprops-generic: update from regex.h
29752         * doc/regexprops-generic.texi: update by running the regexprops binary
29753         from findutils (the command line is 'regexprops "Regular Expressions"
29754         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29755         gnulib with GNU grep had made this document out-of-date.
29757 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29759         strftime-tests: avoid false failure on OS X
29760         * tests/test-strftime.c (struct localtime_rz_test): Add an
29761         ahistorical member which is used to warn rather than fail
29762         when tm_isdst isn't set for such entries.  This is the case for
29763         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29765 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29767         fts: ensure leaf optimization is used for NFS
29768         NFS provides usable dirent.d_type but not necessarily for all entries
29769         of large directories.  See <https://bugzilla.redhat.com/1252549>
29770         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29772 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29774         fts: enable leaf optimization for XFS
29775         XFS provides usable dirent.d_type only for DT_DIR,
29776         but the noleaf optimization still applies.
29777         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29779 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29781         intprops: comment fix
29782         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29783         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29785         intprops-test: work around GCC bug 68971
29786         Problem reported by Pádraig Brady in:
29787         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29788         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29789         (main): Add a case that better tests 64-bit long in this area.
29791 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29793         gnulib-tool: allow multiple --local-dir usage
29794         * gnulib-tool: Use --local-dir to construct compound
29795         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29796         PATH_SEPARATOR early.
29797         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29798         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29799         func_determine_path_separator because that needs to be detected
29800         earlier now.
29801         (func_determine_path_separator): New function.
29802         (func_path_foreach, func_path_foreach_inner): New functions.
29803         (func_path_prepend, func_path_append): Likewise.
29804         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29805         (func_lookup_file, func_all_modules): Use new functions to work
29806         with local_gnulib_path.
29807         (func_modules_in_dir, func_exists_module): New callbacks for
29808         func_path_foreach.
29809         (func_exists_module, func_get_tests_module): Likewise.
29810         (func_is_local_file, func_should_symlink): New helper methods.
29811         (func_add_file, func_update_file): Use new func_should_symlink
29812         instead, DRY.
29813         (func_reconstruct_cached_local_gnulib_path): New helper.
29814         (func_reconstruct_cached_dir): New callback.
29815         (func_import): The cached_local_gnulib_dir renamed to
29816         cached_local_gnulib_path similarly to local_gnulib_dir.
29817         Use new func_reconstruct_cached_local_gnulib_path.
29818         (func_count_relative_local_gnulib_path): New sub-method.
29819         (func_create_testdir): Use func_should_symlink, DRY.
29820         (func_create_megatestdir): Use new functions to work with
29821         local_gnulib_path correctly.
29822         (func_append_local_dir): New helper.
29824 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29826         fix freadptr to work with ungetc on all uClibc configs
29827         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29828         where GNU coreutils cut(1) generates invalid output on uClibc
29829         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29830         * lib/freadptr.c (freadptr): Return NULL if there are
29831         ungotten chars.  In this case freadseek() will iterate
29832         again to process the ungotten character.
29834 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29836         xalloc-oversized: improve performance with GCC 5
29837         * lib/xalloc-oversized.h (xalloc_oversized):
29838         Improve performance with GCC 5 by using __builtin_mul_overflow.
29840 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29842         intprops: new public macro EXPR_SIGNED
29843         Emacs can use this macro, so make it public.
29844         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29845         'Integer Type Determination', since some of these macros apply
29846         to non-integer types.  Clarify what kinds of constant expressions
29847         these macros return.  Say when the arguments can be non-integers.
29848         Mention newly published macro EXPR_SIGNED.
29849         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29850         make it public.  All uses changed.
29852         intprops: fix typo in clang port
29853         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29854         '__builtin_add_overflow' that is not caught by compiler.
29856 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29858         test-timespec: fix typo in previous change
29859         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29861         timespec-sub: fix overflow bug; add tests
29862         * lib/timespec-add.c (timespec_add):
29863         * lib/timespec-sub.c (timespec_sub):
29864         Work even if time_t is narrower than int (a theoretical
29865         possibility).  Redo code for a bit more clarity.
29866         * lib/timespec-sub.c (timespec_sub):
29867         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29868         * modules/timespec-tests, tests/test-timespec.c: New files.
29870         intprops-test: suppress -Woverlength-strings
29871         Problem reported by Pádraig Brady in:
29872         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29873         It is not worth the hassle to port this test to compilers that
29874         cannot handle long strings in diagnostics.
29875         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29877 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29879         quotearg: add quotearg_n_style_colon()
29880         This quotes with default options of the specified style,
29881         but with quoting enabled for instances of ':'.
29882         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29883         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29885 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29887         intprops: revise _WRAPV macros, revert _OVERFLOW
29888         The incompatible changes to the _OVERFLOW macros were too much of
29889         a hassle in practice, so revert them.  Instead, change the new
29890         _WRAPV macros to make them closer in behavior to GCC 5's new
29891         builtin_add_overflow etc. functions.  No other software was using
29892         these newly-added macros yet, so this should be OK.
29893         * NEWS: Revert previous change, since the incompatible change
29894         has been reverted, and nobody used the incompatible version.
29895         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29896         Document revised behavior.
29897         (Integer Range Overflow): Adjust example to match above revisions.
29898         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29899         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29900         these can be used in integer constant expressions again.
29901         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29902         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29903         needed.
29904         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29905         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29906         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29907         Remove, as they did not seem that useful.
29908         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29909         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29910         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29911         Support new semantics.
29912         (__has_builtin): New macro, if not alreay defined.
29913         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29914         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29915         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29916         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29917         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29918         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29919         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29920         New macros.
29921         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29923 2015-11-03  Jim Meyering  <meyering@fb.com>
29925         intprops: add parentheses for when OP has precedence lower than "-"
29926         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29927         "a OP b" must be parenthesized for when OP is like "<<", which has
29928         lower precedence than the following "-". Reported by Pádraig Brady.
29930 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29932         quotearg: constify get_quoting_style parameters
29933         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29934         * lib/quotearg.c (get_quoting_style): Likewise.
29936 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29938         quotearg: add support for $'' shell escaping
29939         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29940         items and descriptions.
29941         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29942         above types by quoting like "shell", but using $'...' syntax
29943         for non printable characters, which should provide unambiguous
29944         printable output for any input.
29945         * tests/test-quotearg-simple.c: Update accordingly.
29947 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29949         maint: use a more standard return from mbrtowc test
29950         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29951         from the test program as this is non standard and often
29952         indicates an unhandled case in the test program.
29953         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29955 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29957         intprops: add WRAPV and const flavors for GCC 5
29958         If available, use GCC 5's builtin functions for efficient integer
29959         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29960         and safely compute the low-order bits of the correct answer.
29961         A downside of these efficient functions is that they cannot be
29962         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29963         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29964         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29965         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29966         Document the changes.
29967         (Wraparound Arithmetic): New section.
29968         (Integer Range Overflow):
29969         Put this subsection last, since it's least useful.
29970         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29971         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29972         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29973         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29974         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29975         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29976         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29977         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29978         New macros.
29979         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29980         Generate calls to GCC builtins if available, for speed.
29981         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29982         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29983         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29984         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29985         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29986         (CHECK_QUOTIENT, CHECK_REMAINDER):
29987         Test WRAPV and CONST flavors (when available) too.
29989 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29991         doc: use extended timezone format in iso-8601 example
29992         * doc/parse-datetime.texi: The standard states that extended format
29993         is to be used consistently throughout.
29994         Note that lib/parse-datetime.y can handle either tz format.
29996 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29998         stdalign: port to Sun C 5.9
29999         * doc/posix-headers/stdalign.texi: Document this.
30000         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
30001         __attribute__ ((__aligned__ (...))).
30003 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
30005         time_rz: fix comment about tzalloc
30006         * lib/time_rz.c (tzalloc): Fix comment.
30008 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30010         stdalign: work around pre-4.9 GCC x86 bug
30011         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
30012         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
30013         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
30015 2015-10-18  Pádraig Brady  <P@draigBrady.com>
30017         maint.mk: sc_tight_scope: remove extraneous expressions
30018         * top/maint.mk (tight_scope): This is not really required since
30019         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
30020         that matches all nm entries.  But it does remove extraneous entries
30021         that may be confusing or cause issue in future maintenance.
30023 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30025         time_rz: return NULL if localtime_r fails
30026         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
30027         while still attempting to pacify bleeding-edge GCC.
30029         fts: port to C11 alignof
30030         * doc/posix-headers/stdalign.texi (stdalign.h):
30031         Document the C11 restriction.
30032         * lib/fts.c: Include stddef.h, for max_align_t.
30033         (fts_alloc): Align using max_align_t, not FTSENT.
30034         * modules/fts (Depends-on): Add stddef.
30036 2015-10-18  Jim Meyering  <meyering@fb.com>
30038         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
30039         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
30040         would see this:
30042         lib/time_rz.c: In function 'localtime_rz':
30043         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
30044           [-Werror=nonnull]
30045                    if (tm && !save_abbr (tz, tm))
30046                        ^
30048         That was complaining about "tm" because it is a parameter that was
30049         declared with the __nonnull__ attribute.
30050         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
30051         result of localtime_r.
30053 2015-10-17  Jim Meyering  <meyering@fb.com>
30055         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
30056         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
30057         name-extraction regexp mistakenly used \S+, and would mistakenly
30058         extract "*F" from "extern int *F()" rather than the desired "F".
30059         Use \w+ instead.
30061 2015-10-17  Jim Meyering  <meyering@fb.com>
30063         maint.mk: sc_tight_scope: factor and support OS X
30064         * top/maint.mk (_gl_tight_scope): Address three issues:
30065         - factor out four instances of code that wraps a string in "^...$"
30066         - allow nm-reported symbol names to have an optional leading "_"
30067         - add "main" to the list of ignored variable names, because on os x,
30068         "main" has nm-reported type "S" in the variable-checking section.
30070 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
30072         safe-alloc-tests: fix typo in license header
30073         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
30075 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
30077         copy-file: fix mem leak in error case
30078         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
30079         upon error opening or performing I/O to the src and dest files.
30081 2015-10-15  Mike Frysinger  <vapier@chromium.org>
30083         localename: control langinfo.h inclusion
30084         This header is only used to work around buggy behavior in old
30085         versions of glibc, so do not include it all the time.  Otherwise
30086         we get build failures on systems that do not provide langinfo.h.
30087         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
30088         in the source later on.
30089         The patch was originally submitted to gettext as:
30090         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
30092 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30094         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
30095         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
30096         * lib/u64.c, lib/unistd.c:
30097         Append 'typedef int dummy;', to pacify compilers that are picky
30098         about empty translation units.
30100 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
30102         accept4-tests: fix to avoid non portable flags
30103         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
30104         as they are the only documented ones, and passing others may trigger
30105         EINVAL (seen on FreeBSD 10.1-RELEASE).
30106         * doc/glibc-functions/accept4.texi: Mention that we don't provide
30107         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
30109 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
30111         gnulib-tool: fix tests of 'extensions' module
30112         This complements f8fe25fab60e3c687a124 commit.
30113         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
30114         emitting of initial gl_EARLY macros.
30115         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
30116         replaced with func_emit_pre_early_macros call.
30118 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30120         unicase/locale-language: fix typo in utf-8 cookie
30121         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
30122         Problem reported by Zbigniew Jędrzejewski-Szmek.
30124 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30126         xalloc: do not worry about GCC 5 warning on 32 bit
30127         * lib/xalloc.h: Revert previous change.
30128         I found a better way to fix this in coreutils.
30130 2015-10-02  Pádraig Brady  <P@draigBrady.com>
30132         xalloc: avoid GCC 5.1 warning on 32 bit
30133         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
30134         xalloc_oversized(), which was seen to give this warning
30135         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
30136         when simplifying conditional".
30138 2015-10-02  Daiki Ueno  <ueno@gnu.org>
30140         uniname/uniname-tests: avoid compiler warnings
30141         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
30142         unused local variables.
30143         (test_alias_lookup): Fix alias name display in failure cases.
30145 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30147         c-ctype: do not worry about EBCDIC + char signed
30148         Drop support for EBCDIC with char being signed, as this breaks too
30149         many programs.  Problem reported by Ben Pfaff in:
30150         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
30151         * lib/c-ctype.h: Verify that we are not using EBCDIC with
30152         char being signed.
30153         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
30154         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
30155         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
30156         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
30157         * tests/test-c-ctype.c (test_all):
30158         Simplify by assuming standard char values cannot be negative.
30159         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
30161 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30163         c-ctype: port better to z/OS EBCDIC
30164         Problems reported by Daniel Richard G. in:
30165         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
30166         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
30167         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
30168         (_C_CTYPE_OTHER_CNTRL): New macro.
30169         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
30170         from SCHAR_MIN, as the functions are defined only from values
30171         promoted from char or from unsigned char, not necessarily from
30172         signed char.
30174 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
30176         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
30178         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
30179         and ARFLAGS variables.  Doing this unconditionally could break
30180         later Automake's AM_PROG_AR invocation (at least it's
30181         AC_CHECK_TOOLS call to detect correct 'ar' binary).
30183         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
30184         Amsterdam Compiler Kit, so make the previous code to have effects
30185         only on ACK, and rather automatically call the Automake's
30186         AM_PROG_AR as soon as possible to decide other cases.
30188         References:
30189         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
30191         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
30192         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
30193         is possible, keep setting AR/ARFLAGS to reasonable defaults.
30194         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
30195         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
30196         'extensions' module is used.
30197         * modules/extensions (configure.ac-early): Remove as this snippet
30198         is added to gnulib-comp.m4 earlier anyway.
30200 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30202         sockets: MS Windows initalization fixes
30203         Problem reported by Test User in:
30204         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
30205         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
30206         Correct the endianness.
30207         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
30208         number mismatch, not just on <.  Cleanup before any such failure.
30210 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30212         gc: fix detection of installed libgcrypt version
30213         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
30214         at least as recent as 1.4.4.  The previously used macro is not
30215         available now, since modules were removed in version 1.6.0.
30217 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30219         c-ctype: rewrite to use inline functions
30220         This simplifies maintenance, since it makes for just one
30221         implementation of each function, letting the compiler have the fun
30222         of optimization.  In practice this works well nowadays with GCC.
30223         E.g., c_isascii might need only three instructions even though the
30224         source code lists every ASCII character individually in a large
30225         switch statement.
30226         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
30227         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
30228         * NEWS: Document the API change.
30229         * lib/c-ctype.c: Drastically simplify, since this now just expands
30230         inline functions.
30231         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30232         (C_CTYPE_INLINE): New macro.
30233         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
30234         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
30235         Verify that either ASCII or EBCDIC is being used.
30236         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
30237         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
30238         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
30239         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
30240         New private macros.
30241         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
30242         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
30243         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
30244         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
30245         (c_tolower, c_toupper): When converting, return the unsigned char,
30246         as that is what z/OS does.
30247         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
30248         of some c-ctype.h macros.
30249         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
30250         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
30251         c_tolower promotion to be compatible with z/OS.
30253 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
30255         gitlog-to-changelog: trim only trailing whitespaces
30256         This is fix for --format regression introduced by commit
30257         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
30258         doubled %n string) had no effect anymore.  This format
30259         specification has been used e.g. by GNU paxuitils (commit
30260         edfd8bcc3).
30262         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
30263         newlines in commmit messages.
30265 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30267         Test that c_iscntrl agrees with iscntrl, etc.
30268         Suggested by Daniel Richard G. in:
30269         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
30270         * modules/c-ctype-tests (Depends-on): Add ctype.
30271         * tests/test-c-ctype.c: Include <ctype.h>.
30272         (NCHARS): New constant.
30273         (test_agree_with_C_locale): New function.
30274         (main): Use it.
30275         (test_all): Use named constants.
30277         c-ctype: improve c_isascii testing
30278         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
30279         Add a test to count the number of ASCII characters.
30281 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30283         savewd: remove SAVEWD_CHDIR_READABLE
30284         It was problematic in the light of file systems that ignore umask.
30285         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
30286         * NEWS: Document this.
30287         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
30288         successful, -1 (setting errno) on failure, rather than something
30289         more complicated than that.
30290         * lib/mkdir-p.c (make_dir_parents):
30291         Do not use SAVEWD_CHDIR_READABLE.
30292         * lib/savewd.c (savewd_chdir):
30293         Remove support for SAVEWD_CHDIR_READABLE.
30294         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
30296         c-ctype: port better to EBCDIC
30297         Problems reported by Daniel Richard G. in
30298         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
30299         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
30300         Include "verify.h".
30301         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
30302         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
30303         Define as enum constants with value false, if not defined, so that
30304         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
30305         code more portable, as both branches of the 'if' are compiled on
30306         all platforms.
30307         (C_CTYPE_EBCDIC): New constant.
30308         Verify that the character set is either ASCII or EBCDIC.
30309         (to_char): New static function.
30310         (c_isascii, c_iscntrl):
30311         Assume standard control-character assignments for EBCDIC.
30312         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
30313         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
30314         Rewrite to use 'if' instead of 'ifdef'.
30315         Use to_char if non-ASCII.  Prefer <= to >=.
30316         Prefer true and false to 1 and 0, for booleans.
30317         (c_iscntrl): Use 'if', not 'ifdef'.
30318         * modules/c-ctype (Depends-on): Add verify.
30319         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
30320         (to_char): New function.
30321         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
30323 2015-09-21  Pádraig Brady  <P@draigBrady.com>
30325         nanosleep: fix return code for interrupted replacement
30326         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
30327         that we return -1 in the case the call is interrupted by a signal,
30328         rather than the current value of 1.
30329         Diagnosed and tested by Daniel Richard G.
30331 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30333         Diagnose ERE '()|\1'
30334         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
30335         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
30336         track of the set of previously-completed subexpressions available
30337         before the first alternative, and restore this set just before
30338         parsing each subsequent alternative.  This lets us diagnose the
30339         invalid back-reference in the ERE '()|\1'.
30341         regex: merge patches from libc
30343         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
30344         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
30345         * lib/regex_internal.h:
30346         Include <libc-lock.h> instead of <bits/libc-lock.h>.
30348         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30349         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
30350         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
30351         wcscoll.
30352         * lib/regexec.c (check_node_accept_bytes): Likewise.
30354         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30355         Fix regex wcrtomb namespace (bug 18496).
30356         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30357         instead of wcrtomb.
30359         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30360         Fix regex wctype namespace (bug 18495).
30361         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
30362         instead of towlower.
30363         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30364         instead of iswlower.  Call __towupper instead of towupper.
30365         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30366         instead of iswalnum.
30368         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
30369         * lib/regcomp.c (parse_bracket_exp): Initialize type to
30370         COLL_SYM in a couple of places to avoid uninitialized variable
30371         wanings on tilegx gcc 4.8.2.
30373         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30374         * lib/regex_internal.h: Remove NOT_IN_libc.
30376         2014-11-17  Andreas Schwab  <schwab@suse.de>
30377         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
30379         2014-09-11  Roland McGrath  <roland@hack.frob.com>
30380         Move findidx nested functions to top-level.
30381         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
30382         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30383         Pass new arguments to findidx.
30384         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30385         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30386         Don't #include it inside the function.  Pass new arguments to findidx.
30387         * lib/regex_internal.h:
30388         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30389         (re_string_elem_size_at): Don't #include it inside the function.
30390         Pass new arguments to findidx.
30392         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30393         Check if DEBUG is defined in regex_internal.c
30394         * lib/regex_internal.c: Check if DEBUG is defined and is set.
30396 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
30398         ceill: detect buggy OpenBSD implementation
30399         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
30400         which returns zero for small values.  Discussed here:
30401         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
30403 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
30405         mountlist: add me_mntroot field on Linux machines
30406         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
30407         mount_entry so Linux machines based on /proc/self/mountinfo can
30408         distinguish between bind mounts and original mounts.  In reality bind
30409         mounts aren't treated differently than mountroot=/ mounts by the
30410         kernel, but the user often wants these bind mounts distinguished.
30411         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
30412         More details at https://pad.lv/1432871
30414 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
30416         doc: Describe to use multiple instances of gnulib
30417         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
30418         instances of gnulib with different modules can be used, for example one
30419         for a lib and another one for associated tools.
30421 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30423         base32: mark function as __attribute__ const
30424         * lib/base32.h (isbase32): Mark __attribute__ const as
30425         suggested by GCC, and consistent with the base64 module.
30427 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30429         gnulib-tool: don't transform binary files with sed
30430         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30431         .mo and .class files.
30432         Reported by Denis Denisov.
30434 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30436         gperf: respect silent rules
30437         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30438         V_GPERF_0 for silent rules.
30439         * modules/iconv_open (Makefile.am): Use V_GPERF.
30440         * modules/unicase/locale-language (Makefile.am): Likewise.
30441         * modules/unicase/special-casing (Makefile.am): Likewise.
30442         * modules/unictype/category-byname (Makefile.am): Likewise.
30443         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30444         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30445         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30446         * modules/unictype/property-byname (Makefile.am): Likewise.
30447         * modules/unictype/scripts (Makefile.am): Likewise.
30448         * modules/uninorm/composition (Makefile.am): Likewise.
30450 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30452         Improve port of stdalign to C++11
30453         Problem reported by Sundaram in:
30454         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30455         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30456         (__alignas_is_defined): Define if C++11 or newer.
30458 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30460         pmccabe2html: fix gawk regex escaping
30461         * build-aux/pmccabe2html: Add one more backslash to properly
30462         escape the gsub replacement value.  Fixes this error:
30463         gawk: ./build-aux/pmccabe2html:425: \
30464         warning: escape sequence `\&' treated as plain `&'
30466 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30468         time_rz: port to pedantic memcpy
30469         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30470         that reject memcpy (..., NULL, 0).
30472 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30474         time_rz: port better to MinGW
30475         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30476         Instead, store the tzname copy in the struct tm_zone object.
30477         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30478         * lib/strftime.c [!_LIBC]:
30479         * lib/time_rz.c: Include time-internal.h.
30480         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30481         name from *TZ rather than from TZNAME, doable because *TZ now has
30482         a tzname_copy member.
30483         * lib/time-internal.h: New file, with contents taken from
30484         lib/time_rz.c.  It's separate because strftime.c now accesses
30485         struct tm_zone members.
30486         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30487         New member tzname_copy.
30488         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30489         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30490         Initialize tzname_copy member.
30491         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30492         in tzname_copy member.
30493         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30494         (restore_tzname): Remove; no longer needed.  All calls removed.
30495         * modules/time_rz (Files): Add lib/time-internal.h.
30497         time: port __need_time_t to MinGW
30498         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30499         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30501 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30503         strftime: fix newly-introduced bug on Solaris
30504         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30505         consistently at the start, rather than doing some of the setup at
30506         the start and some in the %Z format spec.  This is cleaner, and
30507         works better with time_rz on platforms like Solaris where struct
30508         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30509         mktime_z and localtime_rz can mess up the tzname cache.
30511         test-strftime: test for Solaris bug
30512         * modules/strftime-tests (Depends-on): Add strerror.
30513         * tests/test-strftime.c: Include <errno.h>.
30514         (posixtm_test): New function, containing the old 'main'.
30515         (struct tzalloc_test, struct localtime_rz_test): New types.
30516         (TZ, LT): New static vars.
30517         (tzalloc_test): New function.
30518         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30520         time_rz: port to Solaris etc.
30521         Works around a tzname problem on platforms like Solaris that have
30522         tzname but not tm_zone, by setting tzname at the appropriate time
30523         and restoring it later.
30524         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30525         New static vars.
30526         (save_abbr) [HAVE_TZNAME]: Set them.
30527         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30528         (restore_tzname): New function.
30529         (localtime_rz, mktime_z): Use it.
30531         time_rz: now LGPL
30532         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30534         time_rz: make a constant 'const'
30535         * lib/time_rz.c (local_tz): Now const.
30537         time_rz: fix off-by-one typo
30538         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30540 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30542         fprintftime, strftime: use timezone_t args
30543         * NEWS: Document the change.
30544         * lib/fprintftime.h (fprintftime):
30545         * lib/strftime.c (extra_args) [my_strftime]:
30546         * lib/strftime.h (nstrftime):
30547         Time zone arg is now of type timezone_t, not int.
30548         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30549         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30550         (my_strftime) [emacs && !my_strftime]:
30551         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30552         Remove; Emacs doesn't need this any more.
30553         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30554         fprintftime and nstrftime to call tzset.
30555         (ut) [!my_strftime]: Remove, replacing with ...
30556         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30557         (strftime_case_): Use localtime_rz and mktime_z instead
30558         of localtime_r and mktime.
30559         * modules/fprintftime (Depends-on): Add time_rz.
30560         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30561         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30563         time_rz: new module
30564         * MODULES.html.sh: Add time_rz.
30565         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30566         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30567         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30569         New var HAVE_TIMEZONE_T (default 0).
30570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30571         New var GNULIB_TIME_RZ (default 0).
30572         * modules/time (time.h): Substitute the new vars.
30574         flexmember: license is now unlimited
30575         * modules/flexmember (License): Change to unlimited,
30576         since its only source file gives an unlimited license.
30578 2015-07-15  Eric Blake  <eblake@redhat.com>
30580         maint: update copyright paper procedures
30581         * config/srclist.txt: Drop outdated files.
30582         * doc/Copyright/conditions.txt: Update to latest.
30583         * doc/Copyright/assign.changes.manual: Delete.
30584         * doc/Copyright/assign.future.manual: Likewise.
30585         * doc/Copyright/assign.manual: Likewise.
30586         * doc/Copyright/assign.translation.manual: Likewise.
30587         * doc/Copyright/disclaim.changes.manual: Likewise.
30588         * doc/Copyright/disclaim.manual: Likewise.
30589         * doc/Copyright/disclaim.program: Likewise.
30591 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30593         localename: fix link error on Illumos
30594         Illumos defines __sun, but does not have getlocalename_l nor the
30595         equivalent.  This partially reverts commit 387c214.
30596         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30597         available, as well as uselocale.
30598         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30599         use getlocalename_l if it is not available.
30601 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30603         unistr/uN-strtok-tests: avoid a trivial leak
30604         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30605         input and delim after the multibyte delimiter tests.
30607 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30609         file-has-acl, acl-permissions: fix HP-UX typos
30610         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30611         * lib/file-has-acl.c (file_has_acl):
30612         * lib/set-permissions.c (context_acl_from_mode)
30613         (context_aclv_from_mode, set_acls):
30614         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30615         They were introduced by the recent ACL changes.
30617         regex: match current GNU grep behavior
30618         These symbols have not matched GNU grep behavior for quite some time.
30619         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30620         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30621         Change to match current GNU behavior.
30622         Simplify by expressing it as differences from POSIX BREs and EREs.
30623         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30625 2015-07-03  Jim Meyering  <meyering@fb.com>
30627         set-permissions.c: adjust acl_from_mode's cpp guard
30628         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30629         directives identical to those guarding the sole use.
30630         Otherwise, on some systems, we'd get a warning about
30631         the function being defined but not used.
30632         Also, filter through cppi to correct misleading indentation
30633         of cpp directives.
30635 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30637         tests: restrict shells to those that support 'local'
30638         The local keyword is very widely supported and used
30639         in tests in coreutils and grep at least.  Therefore
30640         restrict to testing with shells that support it.
30641         This mainly excludes /bin/sh on Solaris.
30642         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30644 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30645         and Daiki Ueno  <ueno@gnu.org>
30647         unistr/uN-strtok: handle multibyte delimiters
30648         Previously, uN_strtok moved PTR to the next unit to the token end.
30649         When DELIM contained a multibyte character, the new position could
30650         be a middle of a multibyte character.
30651         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30652         after the token.
30653         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30654         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30655         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30656         * modules/unistr/u8-strtok (Depends-on): Depend on
30657         unistr/u8-strmblen.
30658         * modules/unistr/u16-strtok (Depends-on): Depend on
30659         unistr/u16-strmblen.
30660         * modules/unistr/u32-strtok (Depends-on): Depend on
30661         unistr/u32-strmblen.
30662         * tests/unistr/test-u-strtok.h: New file.
30663         * tests/unistr/test-u8-strtok.c: New file.
30664         * tests/unistr/test-u16-strtok.c: New file.
30665         * tests/unistr/test-u32-strtok.c: New file.
30666         * modules/unistr/u8-strtok-tests: New file.
30667         * modules/unistr/u32-strtok-tests: New file.
30668         * modules/unistr/u16-strtok-tests: New file.
30670 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30672         update-copyright: fix test failure with perl >= 5.22 (trivial)
30673         * build-aux/update-copyright: Escape a literal left curly bracket,
30674         required with perl >= 5.22
30676 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30678         u{16,32}-strstr-tests: relax timeout condition
30679         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30680         tests can take longer than 5 seconds to complete.
30681         Reported by Dagobert Michelsen in:
30682         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30683         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30684         seconds to 10 seconds.
30685         * tests/unistr/test-u32-strstr.c (main): Likewise.
30687 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30689         gnulib-common.m4: change the ARFLAGS default to 'cr'
30690         In some GNU/Linux distributions people started to compile 'ar'
30691         binary with --enable-deterministic-archives (binutils project).
30692         That, however, in combination with previous autotools long time
30693         working default AR{_,}FLAGS=cru causes warnings on such
30694         installations:
30695         ar: `u' modifier ignored since `D' is the default (see `U')
30696         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30697         set already.
30699 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30701         selinux-h: avoid double free after *getfilecon()
30702         Originally reported by Ben Shelton on bug-tar:
30703         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30704         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30705         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30706         param should be freed by freecon(3) (regardless the return value).
30708 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30710         fix pty related tests issues on Windows (trivial)
30711         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30712         however it's still present in tests/ subdirectory of the final project.
30713         Therefore avoid it to pass `make check`.
30714         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30715         will just return -ENOSYS, so avoid this non applicable test allowing
30716         the build to proceed.
30718 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30720         acl: fix definition of acl_from_mode on FreeBSD
30721         This was causing basic coreutils copy operations to fail
30722         with ENOTSUP or ENOENT error messages.
30723         * lib/acl-internal.h (acl_from_mode): Only define when
30724         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30725         of acl_from_mode() defined in lib/set-permissions.c to
30726         be used on FreeBSD at least.
30727         * lib/set-permissions.c: Fix up comment spelling,
30728         and a redundant variable assignment; noticed in passing.
30730 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30732         readutmp: port to FreeBSD >= 9
30733         * lib/readutmp.h: Map utmpxname() to setutxdb().
30734         With that coreutils who(1) and pinky(1) tests pass.
30736 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30738         mgetgroups: port to strict OS X
30739         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30740         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30741         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30742         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30744 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30746         mgetgroups: port to strict OS X
30747         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30748         Document the getgrouplist problem.
30749         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30750         New macro.
30751         (mgetgroups): Use it.
30752         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30753         Check for OS X signature for getgrouplist.
30755 2015-06-29  Jim Meyering  <meyering@fb.com>
30757         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30758         It started like this when building coreutils' latest on OS X,
30759         invoking ./configure with a nonempty --cache=.cache:
30761           lib/linkat.c:46:42: error: operator '||' has no right operand
30762           lib/linkat.c: In function 'rpl_linkat':
30763           lib/linkat.c:330:27: error: #if with no expression
30765         Here's linkat.c's line 46:
30767           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30769         Here's some context:
30771           $ grep linkat_nofoll .cache
30772           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30773           $ grep LINKAT_SYM lib/config.h
30774           #define LINKAT_SYMLINK_NOTSUP
30776         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30777         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30778         but that violates a tenet of AC_CACHE_CHECK: it must
30779         have no side effect other than setting its cache variable.
30781         What happens is that when the cache is set, we'd skip the
30782         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30783         defined to whatever value it happened to have in configure's
30784         environment.  In my case, it was not defined, so this later code:
30786           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30787             [Define to 1 if linkat can create hardlinks to symlinks])
30789         would emit code with an empty RHS.
30791         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30792         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30794 2015-06-28  Jim Meyering  <meyering@fb.com>
30796         mountlist: avoid an unused-label warning on OS X
30797         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30798         Building on OS X, I saw a warning about the "free_then_fail" label
30799         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30801         error.c: correct printf-style format: %d -> %u
30802         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30803         rather than %d, to match the type of "line_number", unsigned int.
30805 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30807         fts: avoid reading beyond the heap allocation
30808         GCC 5.1.1 with -O2 and -fsanitize=address reports
30809         a read of size 4 from a heap object of size 3 is indeed invalid,
30810         though this may be due to incorrect padding assumptions by GCC, see:
30811         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30812         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30813         * modules/fts: Depend on stdalign.
30815 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30817         savedir: avoid undefined behavior in qsort call
30818         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30819         "runtime error: null pointer passed as argument 1,
30820          which is declared to never be null"
30821         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30823 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30825         userspec: avoid undefined behavior in gettext call
30826         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30827         "runtime error: null pointer passed as argument 2,
30828          which is declared to never be null"
30829         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30831 2015-06-20  Glenn Morris  <rgm@gnu.org>
30833         gitlog-to-changelog: improve gitmerge.el commits
30834         Let the Emacs ChangeLog generation process exclude "skipped"
30835         messages from merge commits (Bug#20717).
30836         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30838 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30840         wchar: fix MinGW compilation warnings
30841         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30842         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30843         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30845 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30847         uniname/uniname-tests: use pristine data files
30848         For copyright and maintenance reasons, use the data files from UCD
30849         without modification.
30850         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30851         (getfield): Remove.
30852         (aliases_count): New global variable.
30853         (fill_names): Skip comments and empty lines in the input.  Don't
30854         use getfield.
30855         (fill_aliases): Likewise.
30856         (main): Change the expected command line arguments to:
30857         NAMES... ["--" ALIASES...].
30858         * tests/uniname/test-uninames.sh: Adjust to the change in
30859         test-uninames.c.
30860         * tests/uniname/UnicodeDataNames.txt: Remove.
30861         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30862         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30863         file from Unicode 8.0.0.
30865 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30867         linked-list, linkedhash-list: avoid compiler warnings
30868         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30869         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30871 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30873         libunistring: bump minimum version to 0.9.6
30874         * all modules depending on updated Unicode data: Regenerate.
30875         The modules are listed by a script that does:
30876         - for each file listed by: git show --oneline --name-only 705f4efc
30877           - deduce the containing modules, based on "Files:"
30878         - deduce the modules which depend on the containing modules, based
30879           on "Depends-on:"
30881 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30883         uniname/uniname: update to Unicode 8.0.0
30884         * lib/uniname/uninames.h: Regenerate.
30885         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30886         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30888 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30890         libunistring: update to Unicode 8.0.0
30891         * lib/gen-uni-tables.c (SIZEOF): New macro.
30892         (output_numeric): Increase the maximum number of fractions from
30893         128 to 160.  Increase the level3 value width from 7 bits to 8
30894         bits.  Use SIZEOF instead of a hard-coded integer.
30895         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30896         0x28000.
30897         (fill_blocks): Increase the maximum number of blocks from 256 to
30898         384.  Use SIZEOF instead of a hard-coded integer.
30899         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30900         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30901         value width.
30902         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30903         a new case added to LBP22.
30904         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30905         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30906         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30907         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30908         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30909         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30910         lib/uniwidth/width.c.
30911         * all generated files under lib/uni* and tests/uni*: Regenerate.
30913 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30915         gnu-web-doc-update: add --mirror to remove stale files
30916         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30917         out of date files from the CVS server.  Since this is usually
30918         appropriate, a prompt is given when the option is not specified,
30919         along with the `cvs remove` command that would be run.
30921 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30923         acl-permissions: pacify -Wsuggest-attribute=const
30924         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30925         * lib/acl-internal.h (free_permission_context):
30926         Declare with attribute const if ! (defined USE_ACL &&
30927         (HAVE_ACL_GET_FILE || defined GETACL)).
30929         fsync: document AIX misbehavior
30930         * doc/posix-functions/fsync.texi (fsync):
30931         Document failure on AIX with read-only file descriptor.
30933 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30935         stdio: Don't redefine gets when using C++
30936         * lib/stdio.in.h (gets): Disable warning on C++.
30938 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30940         acl-permissions: port to AIX, C89 HP-UX
30941         Problems reported by Michael Felt.
30942         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30943         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30944         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30945         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30946         Add cast for AIX, whose system calls are declared to accept
30947         char * even though the arguments are really char const *.
30948         * lib/get-permissions.c (get_permissions):
30949         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30950         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30951         that broke a build.
30952         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30953         Rework types to pacify xlc.
30955 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30957         vasprintf-posix: avoid compiling vasnprintf where possible
30958         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30959         module where not required.  For example on a GNU/Linux system
30960         when gnulib-tool is run with the --conditional-dependencies option.
30962 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30964         file-has-acl: fix build on Mac OS X 10
30965         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30966         which has an incompatible 6 parameter getxattr() call.
30967         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30968         call on Mac OS X >= 10.4.
30969         * doc/glibc-functions/fgetxattr.texi: Likewise.
30970         * lib/file-has-acl.c: Revert to more complete combined check.
30971         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30972         Reported by Jack Howarth.
30974 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30976         prefix-gnulib-mk: remove no longer needed special case
30977         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30978         continued lib_SOURCES lines are no longer present,
30979         so special case handling of such entries is not required.
30981 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30983         acl: don't depend on the deprecated qacl module
30984         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30986 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30988         gnulib-tool: concatenate lib_SOURCES to a single line
30989         * gnulib-tool: Refactor the line merging sed logic,
30990         and use that to output a single lib_SOURCES line for each module.
30991         gnulib using projects often postprocess this output to prepend
30992         subdir paths to each item, and having a single line simplifies this
30993         processing allowing better decoupling from the gnulib-tool output.
30995 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30997         pthread_sigmask: discount system version if a simple macro (trivial)
30998         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30999         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
31000         function to ensure it's available.
31002 2015-05-31  Pádraig Brady  <P@draigBrady.com>
31004         readlinkat: avoid OS X 10.10 trailing slash bug
31005         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
31006         has this bug.
31007         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
31008         that OS X 10.10 has this function.
31009         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
31010         as done for readlink().
31011         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
31012         trailing slash bug, and assume readlinkat() has the same issue.
31013         Also fix a typo where $gl_cv_decl_readlink_works was tested,
31014         rather than the correct $gl_cv_decl_readlinkat_works.
31016 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31018         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
31019         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
31020         module rewrite.
31022         acl-permissions: Fix build on Solaris and Cygwin
31023         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
31024         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
31025         ace_entries variables have moved into struct permission_context but
31026         they were still accessed as local variables here.
31028 2015-05-29  Pádraig Brady  <P@draigBrady.com>
31030         linkat: avoid OS X 10.10 trailing slash with symlink bug
31031         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
31032         causes the symlink to be dereferenced, and if it points
31033         to a non existent file, that file will be created as
31034         a hard link to "path1".
31035         This fixes a test failure in test-linkat.c.
31036         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
31037         this case.  The existing workaround in linkat.c for
31038         trailing slash issues, suffices for this case.
31039         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
31040         the list of platforms with trailing slash issues.
31042 2015-05-28  Pádraig Brady  <P@draigBrady.com>
31044         unlinkat: handle ignoring of ".." on Darwin 14
31045         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
31046         on Mac OS X 10.10, where it ignores paths with a trailing "..",
31047         so handle in the same manner.
31048         * m4/unlinkat.m4: Comment on this Darwin issue.
31049         * doc/posix-functions/unlink.texi: Update the latest version
31050         where the issue was seen.
31051         * doc/posix-functions/unlinkat.texi: Mention this issue.
31052         Fixes a test failure in test-unlinkat.c.
31054 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31056         qacl: split into qcopy-acl and qset-acl
31057         Emacs needs the former, but not the latter.
31058         * modules/acl-permissions: New file, containing most of the old qacl.
31059         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
31060         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
31061         * modules/qcopy-acl, modules/qset-acl: New files.
31062         * MODULES.html.sh (File system functions):
31063         Mention the new modules, and mention qacl while we're at it.
31065 2015-05-27  Glenn Morris  <rgm@gnu.org>
31067         gitlog-to-changelog: new option --ignore-line
31068         (This patch is imported from the GNU Emacs master.)
31069         This option ignores individual commit lines matching a pattern.
31070         * build-aux/gitlog-to-changelog: Add --ignore-line option.
31072 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
31074         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
31075         Implement get_permissions and set_permissions primitives for getting all
31076         the permissions of a file, storing them, and later setting them. (In the
31077         minimal case, the permissions consist only of a file mode.) Reimplement
31078         qset_acl and qcopy_acl based on these new primitives: this avoids code
31079         duplication and makes error handling more consistent.
31080         The Solaris and Cygwin code still uses duplicate code paths for setting
31081         a file mode while making sure that no acls exist and setting an explicit
31082         acl; this is no worse than before, but could be cleaned up.  The AIX
31083         code still doesn't read ACLs, it only makes sure that acls don't get in
31084         the way when setting a file mode.
31085         * lib/acl-internal.h (struct permission_context): New data structure.
31086         (get_permissions, set_permissions, free_permission_context): Declare.
31087         * lib/acl-internal.c (free_permission_context): New helper function.
31088         * lib/get-permissions.c (get_permissions): New helper function split off
31089         from qcopy_acl.
31090         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
31091         AIX, set a file's permissions based only on a file mode.
31092         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
31093         other platforms construct a temporary acl from the file mode and set
31094         that acl in the same way as setting an acl read from the source file.
31095         This should help avoid code duplication and inconsistent / buggy
31096         behavior.
31097         (set_acls): New helper function Split off from qcopy_acl.
31098         (chmod_or_fchmod): Moved here from qset-acl.c.
31099         (set_permissions): New helper function.
31100         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
31101         set_permissions.
31102         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
31103         * modules/qacl: Add get-permissions.c and set-permissions.c.
31105         file-has-acl: Split feature tests again (Bug#20667)
31106         * lib/file-has-acl.c: Instead of testing for
31107         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
31108         define them when needed.
31109         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
31110         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
31112 2015-05-27  Pádraig Brady  <P@draigBrady.com>
31114         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
31115         This avoids a conflict with "FORTIFY_SOURCE" variants
31116         of the string functions when they're replaced on NetBSD-6.0.1
31117         and Darwin-14.3.0 at least.
31118         * lib/string.in.h: Avoid including our "lib/string.h" while
31119         including the system <string.h>.
31121 2015-05-26  Eric Blake  <eblake@redhat.com>
31123         stdio: limit __gnu_printf__ witness to gcc 4.4+
31124         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
31125         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
31127         error: use correct printf attributes on mingw
31128         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
31130         inttypes: force correct mingw PRIdMAX even without <stdio.h>
31131         * modules/inttypes (Depends-on): Require extensions, so that mingw
31132         always uses GNU style inttypes.
31133         * lib/inttypes.in.h: On mingw, include <stdio.h>.
31135         stdio: fix probe on mingw under gcc 5.1
31136         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
31137         around new gcc preprocessor rules.
31139 2015-05-07  Glenn Morris  <rgm@gnu.org>
31141         gitlog-to-changelog: parse "Tiny-change"
31142         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
31143         "Copyright-paperwork-exempt".  (Bug#20324)
31145 2015-05-06  Pádraig Brady  <P@draigBrady.com>
31147         doc: document glibc posix_fallocate() issues
31148         * doc/posix-functions/posix_fallocate.texi: Mention the
31149         glibc efficiency problems and issues with NFS.
31151 2015-05-05  Karl Berry  <karl@freefriends.org>
31153         * build-aux/gendocs.sh (usage): document new css default
31154         for HTML (--htmlarg).
31156 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31158         extern-inline: no need for workaround in GCC 5.1
31159         * doc/extern-inline.texi (extern inline):
31160         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31161         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
31162         around these bugs in GCC 5.1 and later.  Maybe in a decade or
31163         two we can remove these workarounds.
31165 2015-04-28  Pádraig Brady  <P@draigBrady.com>
31167         eealloc, pagealign_alloc, xalloc: avoid clang warnings
31168         Avoid [-Wunknown-attributes] warnings like:
31169         warning: unknown attribute '__alloc_size__' ignored
31170         * lib/xalloc.h: Don't use the __alloc_size__  attribute
31171         with clang, as support has been fully removed as of clang 3.5:
31172         https://github.com/llvm-mirror/clang/commit/c047507a
31173         * lib/eealloc.h: Likewise.
31174         * lib/pagealign_alloc.h: Likewise.
31176 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31178         tests: pacify GCC 5.1's stricter printf checking
31179         * tests/test-dirname.c (main):
31180         * tests/test-getaddrinfo.c (simple):
31181         * tests/test-getlogin.c (main):
31182         * tests/test-getndelim2.c (main):
31183         * tests/test-inttostr.c (CK):
31184         * tests/test-md5.c (main):
31185         * tests/test-read-file.c (main):
31186         * tests/test-sha1.c (main):
31187         Fix mismatches between printf format and value signedness.
31188         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
31189         Remove, as CAST_VAL always returned a value of type uintmax_t.
31191         fts: port to GCC 5.1 with --enable-gcc-warnings
31192         Without this fix, GCC 5.1 (correctly) warns about a subscript
31193         error on the fts_name component of FTSENT.  It's actually a
31194         flexible member, so define it that way on C99 or later hosts.
31195         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
31196         structure that now has a flexible array member.
31197         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
31198         (FTSENT): fts_name is now flexible on C99-or-later platforms.
31199         * modules/fts (Depends-on): Add flexmember.
31201 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31203         file-has-acl: port to CentOS 6
31204         Problem reported by Tom G. Christensen in:
31205         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
31206         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
31207         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
31208         HAVE_GETXATTR.
31209         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
31210         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
31211         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
31212         file-has-acl.c actually needs.
31214 2015-04-26  Pádraig Brady  <P@draigBrady.com>
31216         file-has-acl: always return false when ACLs aren't supported
31217         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
31218         change the GNU/Linux getxattr path, to transform "not supported"
31219         errors to a false return rather than an error.  This is handled
31220         within file_has_acl() due to the platform specific tests to
31221         determine if ACLs are not supported.
31223 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31225         gettext: propagate po/Makefile.in.in too
31226         * build-aux/po/Makefile.in.in: Copy from latest gettext.
31227         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
31228         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
31229         between Makefile.in.in and the gettext-runtime m4 files.
31231 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31233         file-has-acl: new module, split from acl
31234         And add a new module file-has-acl-tests to match.
31235         I ran into a problem with the recent changes to the acl module,
31236         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
31237         When using the fixed version with Emacs, I discovered that
31238         file-has-acl wasn't separated out well enough for Emacs (e.g., it
31239         had multiple libraries, but needed only one), so I fixed that too.
31240         * NEWS: Document this incompatible change.
31241         * modules/file-has-acl, modules/file-has-acl-tests: New files.
31242         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
31243         Initialize gl_need_lib_has_acl.
31244         (gl_FUNC_ACL): Require it.
31245         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
31246         Move the file-has-acl.c-relevant stuff to ...
31247         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
31248         use_xattrs = 0' typo, and omit some needless work.  Set
31249         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
31250         when gl_FUNC_ACL is called.
31251         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
31252         (Link): Remove $(LIB_HAS_ACL).
31253         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
31254         (check_PROGRAMS): Move stuff relevant to file-has-acl to
31255         modules/file-has-acl-tests.
31256         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
31258         manywarnings: add GCC 5.1 warnings
31259         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
31260         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
31261         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
31262         -Wsuggest-override, -Wuse-without-only.  Change
31263         -Wnormalized=... operands to match 5.1.
31264         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
31265         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
31266         -Wdiscarded-qualifiers, -Wformat-signedness,
31267         -Wincompatible-pointer-types, -Wint-conversion,
31268         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
31269         -Wshift-count-negative, -Wshift-count-overflow,
31270         -Wsizeof-array-argument, -Wsuggest-final-methods,
31271         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
31272         and add -Warray-bounds=2 as a special case.
31274 2015-04-21  Simon Josefsson  <simon@josefsson.org>
31276         doc: update FDL template to match FDL examples.
31277         * doc/alloca-opt.texi:
31278         * doc/alloca.texi:
31279         * doc/c-ctype.texi:
31280         * doc/c-strcase.texi:
31281         * doc/c-strcaseeq.texi:
31282         * doc/c-strcasestr.texi:
31283         * doc/c-strstr.texi:
31284         * doc/c-strtod.texi:
31285         * doc/c-strtold.texi:
31286         * doc/ctime.texi:
31287         * doc/error.texi:
31288         * doc/gcd.texi:
31289         * doc/gnulib-tool.texi:
31290         * doc/inet_ntoa.texi:
31291         * doc/intprops.texi:
31292         * doc/lib-symbol-visibility.texi:
31293         * doc/maintain.texi:
31294         * doc/parse-datetime.texi:
31295         * doc/quote.texi:
31296         * doc/regexprops-generic.texi:
31297         * doc/standards.texi: Remove spurious 'with' in FDL license
31298         template.
31300 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
31302         lstat: fix cross-compilation 'ln -s' problem
31303         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
31304         Have the test program call 'symlink' rather than a separate
31305         script run 'ln -s'; this is more likely to work in
31306         cross-compilation environments.  Reported by Pavel Fedin in:
31307         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
31309 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
31311         gendocs.sh: default to a common CSS style sheet for HTML output
31312         * build-aux/gendocs.sh (htmlarg): Change default value.
31314 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
31316         gnulib-tool: output bold attribute more portably
31317         * gnulib-tool (func_show_module_list): Change hexadecimal
31318         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
31319         encoded numbers as arguments to `printf' is not portable,
31320         and is not claimed by POSIX.  This is the case with FreeBSD.
31322 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31324         qacl: Simplify HP-UX acl_nontrivial check
31325         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
31326         acl_nontrivial. Check if the acl has at most three entries instead (it must
31327         have exactly three entries according to the HP-UX documentation). Ignore
31328         uids and gids as long as an entry is either for a user (i.e., the owner),
31329         a group (i.e., the owning group), or others.
31330         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
31331         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
31333 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
31335         acl: On Linux, check for acls without libacl
31336         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
31337         library function to check for the presence of acls, avoiding a library.
31338         * lib/file-has-acl.c: Include xattr headers if we have them.
31339         (file_has_acl): On Linux, use getxattr().
31340         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
31341         file_has_acl(). Check for xattr headers and getxattr().
31343 2015-04-14  Ángel González  <keisial@gmail.com>
31345         tempname: avoid unused parameter warnings (trivial)
31346         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
31347         (try_nocreate): Likewise.
31349 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
31351         fseeko: fix build failure on NetBSD >= 6 (trivial)
31352         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
31353         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
31355 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31357         gitlog-to-changelog: port to MS-Windows
31358         * build-aux/gitlog-to-changelog (git_dir_option):
31359         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
31360         MS-Windows Perl.  Reported by Eli Zaretskii in:
31361         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
31363 2015-04-07  Karl Berry  <karl@gnu.org>
31365         gendocs: new option --tex for passing args to texi2dvi.
31366         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
31367         (TEXI2DVI): cut to just command name.
31368         (usage): mention new option, and update copyright.
31369         <generate_tex>: use it.
31371 2015-04-07  Karl Berry  <karl@gnu.org>
31373         * config/srclistvars.sh (GETTEXT): new definition.
31374         * config/srclist.txt: use it for gettext .m4 files.
31375         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
31376         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
31377         and continuing into April.
31379 2015-04-07  Daiki Ueno  <ueno@gnu.org>
31381         uniname/uniname-tests: fix failure due to alias
31382         Reported by Jack Howarth in:
31383         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
31384         * tests/uniname/test-uninames.c (name_has_alias): New function.
31385         (test_inverse_lookup): Exclude character name with valid alias,
31386         from randomly generated character names.
31387         (main): Fill unicode_aliases before calling test functions.
31389 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
31391         hash: remove deprecated hash_insert0 function
31392         * lib/hash.h (hash_insert0): Remove deprecated function.
31393         * lib/hash.c (hash_insert0): Likewise.
31395 2015-04-02  Pádraig Brady  <P@draigBrady.com>
31397         mountlist: remove dependency on libmount
31398         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
31399         directly, rather than depending on libmount, which has many
31400         dependencies due to its dependence on libselinux, as detailed at:
31401         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
31402         Note we restrict this to __linux__ as that's probably where this
31403         interface will remain.  If ever porting, it would be best
31404         to first pull the makedev() wrapper from coreutils to a gnulib module.
31405         Note also we don't add a getline dependency to the mountlist module,
31406         as all Linux versions are sufficient.
31408 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31410         stddef: port to pre-C11 GCC on x86
31411         On this platform, max_align_t should have an alignment of 8 even
31412         though the storage alignments of double, long, etc. max out at 4.
31413         Inspired by a comment of Andreas Schwab's here:
31414         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
31415         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
31416         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
31417         * tests/test-stddef.c: Test __alignof__ too, if available.
31419 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31421         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31422         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31424 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31426         yesno: make EOL optional in ENABLE_NLS case also (trival)
31427         * lib/yesno.c (yesno): Check for EOL before replacing.
31428         * tests/test-yesno.sh: Add a test case (test along with gettext).
31430 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31432         fdopendir-tests: test it does not close its arg
31433         * tests/test-fdopendir.c (main): Test that fdopendir does not
31434         close its argument.  From a suggestion by David Grayson in:
31435         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31437 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31439         gitlog-to-changelog: trim trailing white space
31440         * build-aux/gitlog-to-changelog (main):
31441         Trim trailing white space from commit message lines.
31442         This is helpful for processing the GNU Emacs repository,
31443         which dates back to 1985 and contains a lot of such lines.
31445         gitlog-to-changelog: new option --ignore-matching
31446         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31447         Support new option --ignore-matching=PAT, which ignores all
31448         commit messages whose first line matches PAT.
31450 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31452         fdopendir: port better to MinGW
31453         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31454         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31455         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31456         * modules/fdopendir (Depends-on): Add dirfd.
31458 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31460         fdopendir: fix typo in comment
31461         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31463 2015-03-09  Eric Blake  <eblake@redhat.com>
31465         error: document all entry points provided
31466         * doc/glibc-functions/error_print_progname.texi
31467         (error_print_progname): Mention the error module.
31468         * doc/glibc-functions/error_at_line.texi (error_at_line):
31469         Likewise.
31470         * doc/glibc-functions/error_message_count.texi
31471         (error_message_count): Likewise.
31472         * doc/glibc-functions/error_one_per_line.texi
31473         (error_one_per_line): Likewise.
31475 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31477         vasnprintf: pacify clang 3.5.0
31478         Problem reported by Werner Lemberg in:
31479         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31480         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31481         The casts aren't needed, since the characters in question are ASCII.
31483 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31485         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31486         * lib/dirent--.h (GNULIB_defined_opendir):
31487         * lib/dirent.in.h (GNULIB_defined_opendir)
31488         (GNULIB_defined_closedir):
31489         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31490         #undef only if Gnulib defined it.
31492         poll: port to MSVC v18 on MS-Windows 8.1
31493         Problem reported by Gisle Vanem in:
31494         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31495         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31496         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31497         Add sys_socket.
31499 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31501         tests: support stderr verification with returns_()
31502         * tests/init.sh (returns_): Disable tracing for this wrapper
31503         function, so that stderr of the wrapped command is unchanged,
31504         allowing for verification of the contents.
31506 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31508         passfd: avoid valgrind uninitalised data warning
31509         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31510         to include just the fd we've initialized, rather than including
31511         the extra space used for alignment.
31513 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31515         uniwbrk/u32-wordbreaks-tests: fix copyright
31516         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31518         dup2: doc and test for Android bug
31519         Reported by Kevin Cernekee in:
31520         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31521         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31522         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31524 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31526         Replace dup2() on Android
31527         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31528         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31529         fails.  Using rpl_dup2() fixes this because it has an explicit test
31530         for this condition.
31532 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31534         Android doesn't define RLIM_SAVED_*
31535         Portability problem reported by Kevin Cernekee in:
31536         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31537         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31538         Mention the portability problem.
31539         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31540         Define if not defined.
31541         * m4/dup2.m4 (gl_FUNC_DUP2):
31542         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31543         Likewise.
31545 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31547         vasnprintf-posix-tests: use consistent test
31548         * tests/test-vasnprintf-posix.c (test_function):
31549         Use "<" in assert instead of "<=", for consistency with other tests.
31551 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31553         printf, isinf, etc.: noncanonical != NaN
31554         Do not require that isinf, printf, etc. treat noncanonical
31555         values as NaNs.  Instead, require only that they do not crash.
31556         Problem reported by Joseph Myers in:
31557         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31558         * doc/posix-functions/dprintf.texi (dprintf):
31559         * doc/posix-functions/fprintf.texi (fprintf):
31560         * doc/posix-functions/isfinite.texi (isfinite):
31561         * doc/posix-functions/isinf.texi (isinf):
31562         * doc/posix-functions/isnan.texi (isnan):
31563         * doc/posix-functions/printf.texi (printf):
31564         * doc/posix-functions/snprintf.texi (snprintf):
31565         * doc/posix-functions/sprintf.texi (sprintf):
31566         * doc/posix-functions/vdprintf.texi (vdprintf):
31567         * doc/posix-functions/vfprintf.texi (vfprintf):
31568         * doc/posix-functions/vprintf.texi (vprintf):
31569         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31570         * doc/posix-functions/vsprintf.texi (vsprintf):
31571         Document this.
31572         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31573         * m4/isinf.m4 (gl_ISINFL_WORKS):
31574         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31575         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31576         * tests/test-isfinite.c (test_isfinitel):
31577         * tests/test-isinf.c (test_isinfl):
31578         * tests/test-isnan.c (test_long_double):
31579         * tests/test-isnanl.h (main):
31580         * tests/test-snprintf-posix.h (test_function):
31581         * tests/test-sprintf-posix.h (test_function):
31582         * tests/test-vasnprintf-posix.c (test_function):
31583         * tests/test-vasprintf-posix.c (test_function):
31584         Test only that noncanonical values do not cause crashes, not that
31585         they are treated as NaNs.  In some cases this means a larger
31586         output buffer is needed.
31588 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31590         fts: remove redundant close() (trivial)
31591         * lib/fts.c (fts_read): Remove redundant call to close().
31592         Spotted by coverity.
31594 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31596         getdtablesize: port better for Android
31597         Problem reported by Kevin Cernekee in:
31598         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31599         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31600         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31601         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31603         poll: fixes for large fds
31604         * lib/poll.c (poll): Don't check directly for NFD too large.
31605         Don't rely on undefined behavior in FD_SET when an arg exceeds
31606         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31607         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31608         as that makes the test a bit stricter.
31610 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31612         fcntl: Fix cross compiling
31613         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31614         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31616 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31618         dup2, fcntl: cross-compile better for Android
31619         Problem reported by Kevin Cernekee in:
31620         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31621         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31622         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31623         there's little need to cross-compile for older kernels nowadays.
31624         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31625         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31627 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31629         getopt: don't crash on memory exhaustion
31630         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31631         memory exhaustion.  In the _LIBC case we use alloca() as is
31632         already done in glibc, so we don't need to consider the separate
31633         error path in that awkward case.  Also fix a memory leak when
31634         ambiguous options are present.
31635         Reported by Tobias Stoeckmann
31637 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31639         tempname: allow compilation with C++ (trivial)
31640         * lib/tempname.h [C++]: Specify extern "C" linkage.
31641         * lib/tempname.h (try_tempname):
31642         * lib/tempname.c (__try_tempname, __gen_tempname):
31643         Rename 'try' to 'tryfunc'.
31645 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31647         dup2, fcntl: port to AIX
31648         * m4/dup2.m4 (gl_FUNC_DUP2):
31649         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31650         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31651         The former works on AIX 7.1 but the latter does not.
31652         Also, this may work better with Android; see:
31653         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31655 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31657         getdtablesize, dup2, fcntl: port to Android
31658         Problem reported by Kevin Cernekee in:
31659         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31660         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31661         Mention that getdtablesize doesn't work on Android.
31662         * lib/getdtablesize.c: Use getrlimit substitute only if
31663         getdtablesize is declared.  This should suffice for Cygwin
31664         while not breaking Android.
31665         * m4/dup2.m4 (gl_FUNC_DUP2):
31666         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31667         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31668         standardized but the latter is not, and sysconf works on Android.
31669         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31670         Also check that getdtablesize is declared.
31671         This removes the need for a special case for Android.
31673 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31675         localename: Implement gl_locale_name_thread_unsafe for Android
31676         * lib/localename.c: Android API level >= 21 supports two hardcoded
31677         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31678         the internal __locale_t struct.
31680 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31682         fts: avoid crash when a cycle is added while traversing
31683         This could be triggered by auto-mounting a recursive bind mount.
31684         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31685         * lib/fts.c (fts_read): Avoid removing the original hash table item
31686         when leaving a directory that caused a cycle, and preserve the FTS_DC
31687         flag.
31689 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31691         uniname/uniname: support character alias
31692         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31693         Generate one-way mapping from aliases to codepoints in the
31694         generated tables.  Special case variation selectors to reduce
31695         table size.
31696         * lib/uniname/uniname.c (unicode_character_name): Special case
31697         variation selectors.
31698         (unicode_name_character): Special case variation selectors and
31699         their aliases.
31700         * lib/uniname/uninames.h: Regenerate.
31701         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31702         * modules/uniname/uniname-tests (Files): Add
31703         tests/uniname/NameAliases.txt.
31704         * tests/uniname/test-uninames.c: Mark as static.
31705         (ALIASLEN): Define.
31706         (struct unicode_alias): New struct.
31707         (unicode_aliases): New variable.
31708         (fill_aliases): New function.
31709         (test_alias_lookup): New test function.
31710         (main): Run the 'test_alias_lookup' test if the second argument is
31711         given.
31712         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31713         second argument.
31715 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31717         Fix FILE struct compatibility with Android API level >= 21
31718         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31719         __sferror.  Recent versions of Bionic's stdio.h no longer define
31720         __sferror.
31721         * lib/fbufmode.c: Likewise.
31722         * lib/fflush.c: Likewise.
31723         * lib/fpurge.c: Likewise.
31724         * lib/freadable.c: Likewise.
31725         * lib/freadahead.c: Likewise.
31726         * lib/freading.c: Likewise.
31727         * lib/freadptr.c: Likewise.
31728         * lib/freadseek.c: Likewise.
31729         * lib/fseeko.c: Likewise.
31730         * lib/fseterr.c: Likewise.
31731         * lib/fwritable.c: Likewise.
31733         Assume unbroken ungetc() on Android
31734         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31735         test case passed when running on an Android host, and the code
31736         hasn't really changed since 2009.
31738         getdtablesize: Fix Android build
31739         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31740         versions have this symbol in the .so library (at least 32-bit
31741         platforms) but are missing the declaration in the header file,
31742         causing the m4 logic to guess incorrectly.
31744         localename: Fix Android build
31745         * modules/localename (Depends-on): Add langinfo.
31747         getugroups: Fix Android build
31748         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31749         functions.
31751         euidaccess: Fix Android build
31752         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31753         AT_EACCESS gets declared.
31755         linkat_nofollow: Add fallback case for cross compiling
31756         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31758         net_if: Handle content-free <net/if.h> system headers
31759         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31760         struct if_nameindex.  If not, enable the replacement header.
31762         signal_h: Fix Android build
31763         * lib/signal.in.h: Add Android to the list of platforms that declare
31764         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31766         duplocale: Fix Android build of duplocale-tests
31767         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31768         is included by test-duplocale.c (but not by duplocale.c).
31769         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31770         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31771         * doc/posix-headers/monetary.texi: Add Android to the list of
31772         platforms missing monetary.h.
31774 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31776         tests: avoid recent -Werror=unused-variable regression in test-locale
31777         * tests/test-locale.c (main): Reference the variable to avoid the
31778         "unused variable" warning.
31780 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31782         maint: various whitespace cleanups in tempname
31783         * lib/tempname.c: Normalize spacing and line length.
31784         * lib/tempname.h: Likewise.
31785         * modules/tempname: Likewise.
31787 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31789         tests: provide returns_() to simplify exit status checking
31790         * tests/init.sh (returns_): A new function for use in tests,
31791         to allow for easier checking of return values, where you expect
31792         a command to exit with failure status.  By checking for a particular
31793         exit code, you don't hide any crashes for example.
31795 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31797         mountlist: only use libmount when specified
31798         There are currently many shared libs dependencies introduced by
31799         libmount with associated runtime and virt mem overhead.
31800         Therefore don't enable by default.
31801         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31803 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31805         uniname/unimame-tests: don't link with -lunistring
31806         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31807         $(LIBUNISTRING).  Document the rationale why we need to
31808         conditionalize the test.
31810 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31812         fstrcmp: don't assume strlen < INT_MAX
31813         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31814         (uintptr_t): Remove, as we're now assuming stdint.
31815         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31816         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31817         if the input string is long.
31818         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31819         uintptr_t to size_t when the underlying value is a pointer casted
31820         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31821         * modules/fstrcmp (Depends-on): Add stdint.
31823         diffseq: prefer ptrdiff_t to ssize_t
31824         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31825         ptrdiff_t is the natural type for signed indexes.
31826         On a few older platforms, ssize_t is narrower than size_t.
31828         xalloc: fix typo that suppressed warnings
31829         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31830         This typo, introduced a couple of years ago, mistakenly suppressed
31831         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31832         -Wmissing-declarations warnings.
31834         full-read: fix license notice typo
31835         * lib/full-read.h: Remove a stray line in the license notice.
31836         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31838         crypto/gc: fix a -Wswitch warning
31839         Reported by Bruce Korb in:
31840         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31841         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31843 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31845         gnulib-tool: fix handling of patch(1) diagnostics
31846         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31847         as otherwise gnulib-tool will reparse that output and attempt
31848         to lookup modules.
31850 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31852         bootstrap: exit immediately upon gnulib-tool failure
31853         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31854         This was noticed when gnulib-tool exited early due to failure
31855         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31856         but various confusing errors were then given as the build proceeded.
31858 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31860         symlinkat: include all required header files
31861         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31862         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31863         Reported at https://savannah.gnu.org/bugs/index.php?44151
31864         and by Jack Howarth.
31866 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31868         localename: support Solaris 12 and illumos
31869         * lib/localename.c (gl_locale_name_thread_unsafe): call
31870         getlocalename_l() on newer __sun platforms.
31871         Reported by Alexander Pyhalov.
31872         Fix suggested by Rich Burridge.
31874 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31876         locale: fix tests on illumos (trivial)
31877         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31878         so move from global scope to main().
31880 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31882         unictype: avoid undefined left-shift behavior
31883         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31884         gcc's -fsanitize=shift and running its tests triggered:
31885           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31886             places cannot be represented in type 'int'
31887         Cast LHS to 'unsigned int' after integer promotion.
31888         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31889         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31891 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31893         libunistring: bump version of unitypes dependants
31894         Due to the header file search order, all the headers which depend
31895         on unitypes.h need to be generated, when the preinstalled
31896         libunistring is older.
31897         * modules/unicase/base (configure.ac): Bump minimum version to
31898         0.9.4.
31899         * modules/uniconv/base (configure.ac): Likewise.
31900         * modules/unilbrk/base (configure.ac): Likewise.
31901         * modules/uninorm/base (configure.ac): Likewise.
31902         * modules/unistdio/base (configure.ac): Likewise.
31903         * modules/unistr/base (configure.ac): Likewise.
31904         * modules/uniwbrk/base (configure.ac): Likewise.
31905         * modules/uniwidth/base (configure.ac): Likewise.
31907 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31909         unictype/category-none: fix link with libunistring
31910         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31911         prefixed with "libstring_" when compiled as part of libunistring.
31912         To avoid undefined symbol at link time, increase the minimum
31913         version when the dependant modules are updated.
31914         * modules/unictype/category-none (configure.ac): Bump minimum
31915         version to 0.9.5.
31917 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31919         unitypes: fix build with installed libunistring
31920         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31921         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31922         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31924 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31926         time: port to MinGW32 3.21
31927         Problem reported by Eli Zaretskii in:
31928         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31929         * lib/time.in.h:
31930         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31931         * modules/time (Depends-on):
31932         Fall back on unistd.h if the other include files don't define
31933         struct timespec.
31935         update-copyright: apply to self
31936         * build-aux/update-copyright: Fix copyright date.  How ironic!
31938 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31940         libunistring: update to Unicode 7.0.0
31941         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31942         Manichaean names.
31943         * lib/unictype/joininggroup_name.h: Likewise.
31944         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31945         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31946         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31947         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31948         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31949         enum values.
31950         (is_property_alphabetic): Accept newly added characters to
31951         cuneiform numeric signs.
31952         (is_property_default_ignorable_code_point): Reject U+0605.
31953         (FIELDLEN): Increase from 120 to 160.
31954         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31955         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31956         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31957         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31958         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31959         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31960         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31961         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31962         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31963         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31964         U+1E8D0..U+1E8D6.
31965         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31966         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31967         lib/uniwidth/width.c.
31968         * all generated files under lib/uni* and tests/uni*: Regenerate.
31970 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31972         libunistring: update to Unicode 6.3.0
31973         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31974         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31975         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31976         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31977         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31978         Update WB5, WB9, WB10, WB13a, and WB13b.
31979         * tests/uniwbrk/test-uc-wordbreaks.c
31980         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31981         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31982         (UC_BIDI_PDI): New enumeration values.
31983         (bidi_category_byname): Support those enum values.
31984         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31985         dedicated property assigned.
31986         (is_property_case_ignorable): Check 0x0027.
31987         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31988         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31989         (output_wbp): Support those enum values.
31990         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31991         (UC_BIDI_PDI): New enumeration values.
31992         * lib/unictype/bidi_byname.gperf: Add those property names.
31993         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31994         U+180E, U+1A1B, and U+2066..U+2069.
31995         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31996         lib/uniwidth/width.c.
31997         * all generated files under lib/uni* and tests/uni*: Regenerate.
31999 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32001         libunistring: update to Unicode 6.2.0
32002         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
32003         (unilbrk_table): Adjust table size.
32004         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32005         for LBP_RI.
32006         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
32007         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
32008         Normalize table index skipping ignored properties.
32009         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
32010         WBP_EXTEND and WBP_FORMAT, which are now computed without using
32011         the table.
32012         * lib/uniwbrk/wbrktable.h: Adjust table size.
32013         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
32014         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
32015         Support rule GB8a.
32016         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
32017         * tests/unigbrk/test-uc-is-grapheme-break.c
32018         (graphemebreakproperty_to_string): Support GBP_RI.
32019         * tests/uniwbrk/test-uc-wordbreaks.c
32020         (wordbreakproperty_to_string): Support WBP_RI.
32021         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
32022         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
32023         (output_lbp): Support LBP_RI.  Adjust some characters changed from
32024         LBP_AL to LBP_ID.
32025         (output_lbp): Support LBP_RI.
32026         (WBP_RI): New enumeration value.
32027         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
32028         (output_wbp): Support WBP_RI.
32029         (GBP_RI): New enumeration value.
32030         (output_gbp_test, fill_org_gbp): Support GBP_RI.
32031         * all generated files under lib/uni* and tests/uni*: Regenerate.
32033 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32035         libunistring: update to Unicode 6.1.0
32036         * lib/gen-uni-tables.c (output_joining_group): Switch to
32037         3-level table to accommodate joining groups defined with higher
32038         codepoint value.  Since there are only 88 groups defined in
32039         Unicode 7.0.0, use 7-bit packed format for level3 entries.
32040         (get_lbp): Update for Unicode 6.1.0.
32041         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
32042         3-level table.
32043         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
32044         joining group name.
32045         * lib/unictype/joininggroup_name.h: Likewise.
32046         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
32047         (unilbrk_table): Adjust table size.
32048         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32049         for LBP_HL.
32050         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
32051         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
32052         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
32053         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
32054         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
32055         U+302E..U+302F.
32056         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32057         lib/uniwidth/width.c.
32058         * all generated files under lib/uni* and tests/uni*: Regenerate.
32059         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
32061 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32063         uniwbrk/u32-wordbreaks-tests: add conformance test
32064         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
32065         tests/uniwbrk/test-uc-wordbreaks.c,
32066         tests/uniwbrk/test-uc-wordbreaks.sh, and
32067         tests/uniwbrk/WordBreakTest.txt.
32068         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
32069         test-uc-wordbreaks to $(check_PROGRAMS), and define
32070         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
32071         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
32072         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
32074 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32076         uniwbrk: ignore Extended/Format characters at BOL not BOS
32077         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
32078         characters if the previous character property is one of
32079         WBP_NEWLINE, WBP_CR, and WBP_LF.
32081 2015-01-11  Jim Meyering  <meyering@fb.com>
32083         test-strstr.c: avoid a trivial leak
32084         * tests/test-strstr.c (main): Free haystack.
32086         update-copyright: recognize groff's \(co marker
32087         * build-aux/update-copyright (circle_c_re): Also accept
32088         uses of \(co, as found in gzip.1.
32090 2015-01-08  Pádraig Brady  <P@draigBrady.com>
32092         maint.mk: fix compatibility with OS X nm
32093         * top/maint.mk (_gl_tight_scope): Use the -g option to
32094         show exported items rather than the -e option which is
32095         ignored on all platforms except OS X where it gives an error.
32096         Reported by Assaf Gordon.
32098 2015-01-07  KO Myung-Hun  <komh@chollian.net>
32100         localcharset: improve charset detection on OS/2
32101         Use system codepage when appropriate.  Map OS/2 codepages to
32102         GNU canonical charset names if possible.
32103         * lib/config.charset: Don't output aliases if "$os" is os2*.
32104         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
32105         result for OS/2.
32106         (locale_charset) [OS2]: Use system codepage if codeset is omitted
32107         from the locale name which is neither "C" nor "POSIX".
32109 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32111         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
32112         This reverts the last patch but one, as it shouldn't be needed now
32113         that the typo is fixed.
32114         * lib/count-leading-zeros.h (count_leading_zeros_ll):
32115         * lib/count-trailing-zeros.h:
32116         * lib/count-one-bits.h:
32117         Go back to using 64-bit intrinsics.
32119         count-leading-zeros: fix pragma typos
32120         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
32121         Fix typos in declaration of intrinsics when _MSC_VER.
32123 2015-01-06  Pádraig Brady  <P@draigBrady.com>
32125         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
32126         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
32127         intrinsics in this case.
32128         * lib/count-trailing-zeros.h: Likewise.
32129         * lib/count-one-bits.h: Likewise.
32131 2015-01-06  Daiki Ueno  <ueno@gnu.org>
32133         uniname/uniname: update to Unicode 7.0.0
32134         To accommodate new characters added since Unicode 5.1.0, this
32135         changes the internal representation of codepoint ranges.
32136         Previously, we grouped codepoint ranges by manually assigned 4-bit
32137         tag, which only allowed 16 groups.  This removes the limitation by
32138         switching to binary search on a table.  For the detail rationale
32139         and the benchmark results, see:
32140         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
32141         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
32142         to INDEX, as it no longer represents a codepoint.
32143         (range): New struct.
32144         (main): Switch to intervals list from a bit-pattern based
32145         classification.
32146         * lib/uniname/uninames.h: Regenerate.
32147         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
32148         * modules/uniname/base (configure.ac): Bump minimum version to
32149         0.9.5.
32150         * modules/uniname/uniname (configure.ac): Bump minimum version to
32151         0.9.5.
32153 2015-01-05  Eric Blake  <eblake@redhat.com>
32155         doc: update INSTALL from autoconf
32156         * doc/install.texi: Resync from autoconf.
32157         * doc/INSTALL: Reflect recent autoconf update.
32158         * doc/INSTALL.ISO: Likewise.
32159         * doc/INSTALL.UTF-8: Likewise.
32161         stdio: fix use of PRIdMAX on modern mingw
32162         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
32163         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
32164         to work with modern mingw.
32166 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
32168         pthread: detect git mingw builds with only partial pollution
32169         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
32170         pollution, as seen temporarily in Fedora 21.
32172 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32174         lib-symbol-versions: cache script check
32175         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
32176         Cache the check for linker version scripts.
32177         From a suggestion by Christophe Curis in:
32178         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
32180 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
32182         maint: fix grammar nits in propername (trivial change)
32183         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
32184         and use an adequate verb and tense.
32186 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
32188         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32189         * module/gendocs: Add 'doc/gendocs_template_min'.
32191         * build-aux/gendocs.sh: Change email addresses and upstream URLs
32192         from to Gnulib's.
32193         (scripturl, templateurl): Adjust accordingly.
32195 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32197         gendocs: copyright date and version fix
32198         Reported by Karl Berry in:
32199         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
32200         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
32201         Fix copyright date.
32202         * build-aux/gendocs.sh (scriptversion): Update.
32204 2015-01-01  Karl Berry  <karl@gnu.org>
32206         * doc/install.texi,
32207         * build-aux/mdate-sh,
32208         * build-aux/depcomp,
32209         * build-aux/config.guess,
32210         * build-aux/config.sub,
32211         * build-aux/ar-lib,
32212         * build-aux/compile: revert copyright updates (some from last
32213         year) in slaved files.
32215 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32217         version-etc: new year
32218         * doc/gnulib.texi:
32219         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
32220         * all files: Run 'make update-copyright'.
32222 2014-12-30  Pádraig Brady  <P@draigBrady.com>
32224         xstrtol: ensure errno is reset
32225         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
32226         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
32228         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
32230 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32232         utimens: fix dependency typo
32233         * modules/utimens (Depends-on): Remove 'assure'.
32234         This bug was introduced in the recent 'assure' patch.
32236 2014-12-22  Eric Blake  <eblake@redhat.com>
32238         docs: mention why libgen.h is bad
32239         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
32241 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32243         assure: new module
32244         This works better than 'assert' when compiling with -DNDEBUG,
32245         as it avoids some compiler diagnostics in that case.
32246         Reported by Norihiro Tanaka in:
32247         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
32248         * MODULES.html.sh (func_all_modules): Add 'assure'.
32249         * lib/assure.h, modules/assure: New files.
32250         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
32251         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
32252         Prefer 'assure' to 'assert'.
32253         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
32254         * modules/chdir-long, modules/cycle-check, modules/fchdir:
32255         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
32256         Depend on 'assure'.
32258 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
32260         stdalign: port better to HP compilers
32261         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
32262         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
32264         stdalign: work around Apple GCC 4.0 bug
32265         Reported by David Fang in:
32266         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
32267         * lib/stdalign.in.h (_Alignas):
32268         * m4/stdalign.m4 (gl_STDALIGN_H):
32269         Do not use aligned attribute with GCC 4.0 on Apple.
32271 2014-12-16  Pádraig Brady  <P@draigBrady.com>
32273         getcwd: fix test failure on OS X 10.9
32274         * m4/getcwd-path-max.m4: Avoid the replacement if it
32275         won't be effective due to the PATH_MAX limitation of lstat().
32276         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
32277         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
32278         for this case for use in tests, and also exclude this
32279         case when setting REPLACE_GETCWD.
32280         * tests/test-getcwd.c (test_long_name): Restrict the
32281         tested path length so that lstat() will not be passed
32282         a path greater than PATH_MAX.
32283         Also key a test condition on HAVE_OPENAT_SUPPORT rather
32284         than AT_FDCWD, since the latter is set unconditionally
32285         since Sep 2009 in commit 52c658e9.
32287 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
32289         parse-datetime: avoid a compiler warning with byacc (trivial)
32290         * lib/parse-datetime.y (yylex): Use the same prototype in the
32291         function definition as the declaration, to avoid a -Wstrict-prototypes
32292         warning seen when using byacc.
32294 2014-12-12  Daiki Ueno  <ueno@gnu.org>
32296         unicase/locale-language-tests: fix LOCALE_FR test
32297         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
32298         a French locale with traditional encoding.
32299         Reported by umerqayam in:
32300         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
32302 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32304         stddef: support C11's max_align_t
32305         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
32306         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
32307         Do not undef, as that might cause max_align_t to be defined twice.
32308         Instead, change use to check for _GL_STDDEF_WINT_T too.
32309         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
32310         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
32311         Check for max_align_t.
32312         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
32313         * modules/stddef-tests (Depends-on): Add stdalign.
32314         * tests/test-stddef.c: Test max_align_t.
32316 2014-12-11  Daiki Ueno  <ueno@gnu.org>
32318         unistd: fix iOS check conditional
32319         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
32320         as 0 or 1 in <TargetConditionals.h>, and the previous check always
32321         yielded true on non-iOS environment.
32322         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
32323         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
32324         they are defined.
32326 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
32328         posixtm: avoid compiler warning in a better way
32329         * lib/posixtm.c (IF_LINT): Remove.
32330         (year, posix_time_parse):
32331         Return true (not 0) if successful.  All callers changed.
32332         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
32334 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32336         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
32337         started with '/' on EMX.
32339 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32341         freopen: workaround freopen() on OS/2 kLIBC
32342         * lib/freopen.c (rpl_freopen): Workaround.
32343         * m4/freopen.m4: Add os2* case.
32345         get_shared_library_fullname: port to EMX
32346         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
32347         on EMX, respectively.
32348         (_DLL_InitTerm): New on EMX.
32349         (get_shared_library_fullname): Implement on EMX.
32351         find_executable: port to EMX
32352         * lib/progreloc.c (find_executable): Implement on EMX.
32354         sched: check struct sched_param in spawn.h as well
32355         * lib/sched.in.h: Include spawn.h on kLIBC.
32356         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
32358 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
32360         bootstrap: Allow perl modules in $buildreq
32361         * build-aux/bootstrap: Add case for perl modules.
32363 2014-12-08  Pádraig Brady  <P@draigBrady.com>
32365         apply _GL_ATTRIBUTE_PURE to some inline functions
32366         clang 3.4.2 flagged these inline functions as pure
32367         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
32368         * lib/sig-handler.h (get_handler): Likewise.
32369         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
32370         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
32372 2014-12-06  Pádraig Brady  <P@draigBrady.com>
32374         vasnprintf: fix potential use after free
32375         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
32376         flagged by clang-analyzer 3.4.2.
32378 2014-12-05  Pádraig Brady  <P@draigBrady.com>
32380         filevercmp, posixtm: avoid compiler warnings with -O3
32381         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
32382         * lib/posixtm.c: (IF_LINT): Define.
32383         (posix_time_parse): Use it to void a "may be used uninitialized"
32384         warning, seen only with -O3.
32386 2014-12-05  Bruno Haible  <bruno@clisp.org>
32388         Fix LDBL80_WORDS macro on big endian platforms.
32389         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
32390         LDBL80_WORDS macro.
32391         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32393         * tests/test-isfinite.c (test_isfinitel): Likewise.
32394         * tests/test-isinf.c (test_isinfl): Likewise.
32395         * tests/test-isnan.c (test_long_double): Likewise.
32396         * tests/test-isnanl.h (main): Likewise.
32397         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
32398         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
32399         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
32400         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
32401         Reported by Pádraig Brady.
32403 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
32405         git-version-gen: do not print new line characters
32406         * build-aux/git-version-gen: Use printf instead of echo and tr.
32408         gnulib-tool: recognize x:* as an absolute path
32409         * gnulib-tool (func_gnulib_dir): Add ?:* case.
32410         (func_relconcat): Likewise.
32412 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
32414         argp: avoid extraneous translation and mem leak with empty pre doc
32415         * lib/argp-help.c (argp_doc): Never translate the empty string,
32416         when "\v" is the first or last character of the string, as that
32417         has a reserved meaning to return the header info from a po file.
32418         This also fixes a small memory leak in the !post case.
32419         The issue can be seen with this command for example:
32420         LC_MESSAGES=en_US grub2-mknetdir --help
32422 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32424         uniname/uniname-tests: skip if system's libunistring is used
32425         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32426         uniname/uniname module is not compiled.
32428 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32430         printf: fix configure check on big endian systems
32431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32433 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32435         pipe-filter-gi, pipe-filter-ii: port to AIX
32436         On AIX 7.1, 'select' is defined as static and cannot be referred
32437         to from inline function.
32438         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32439         the definition...
32440         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32441         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32443 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32445         gitlog-to-changelog: add --until
32446         * build-aux/gitlog-to-changelog: Support new --until option.
32447         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32449 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32451         extern-inline: update commentary about GCC bugs
32452         * m4/extern-inline.m4: Add another GCC bug number to comments.
32454 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32456         gen-uni-tables: untabify
32457         * lib/gen-uni-tables.c: Untabify.
32459 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32461         gen-uni-tables: check out-of-range values added to 3-level tables
32462         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32463         (output_joining_type, output_ident_category): Check out-of-range
32464         values added to 3-level tables.
32466 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32468         gen-uni-tables: utilize 'assert'
32469         * lib/gen-uni-tables.c: Include <assert.h>.
32470         (output_category, output_combclass, output_decimal_digit_test)
32471         (output_decimal_digit, output_digit_test, output_digit)
32472         (output_numeric, get_mirror_value, fill_properties)
32473         (fill_property30, is_property_alphabetic)
32474         (is_property_default_ignorable_code_point)
32475         (is_property_uppercase, is_property_lowercase)
32476         (is_property_cased, is_property_case_ignorable)
32477         (is_property_changes_when_lowercased, is_property_iso_control)
32478         (is_property_math, fill_arabicshaping, output_joining_group)
32479         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32480         (output_wbp, fill_org_gbp, get_decomposition)
32481         (output_decomposition, fill_composition_exclusions)
32482         (debug_output_composition_tables, output_composition_tables)
32483         (redistribute_casefolding_rules, output_casing_rules): Use
32484         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32485         reporting.
32487 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32489         gen-uni-tables: cosmetic improvements
32490         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32491         variables specification.
32492         (is_outdigit): Remove unused function.
32494 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32496         fcntl-h-tests: port to PA-RISC GNU/Linux
32497         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32499 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32501         fts: port to C89
32502         Problem reported for MSVC 16 by Gisle Vanem in:
32503         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32504         * lib/fts.c (fts_build): Avoid declaration before statement.
32506 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32508         unistd: port to iOS
32509         Problem reported by André Klitzing in:
32510         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32511         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32513 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32515         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32516         Problem reported by Alan Modra in:
32517         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32518         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32519         Always cast the function arg, reverting this part of the previous
32520         change.
32522 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32524         obstack: avoid potentially-nonportable function casts
32525         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32526         Remove, replacing with ...
32527         (call_chunkfun, call_freefun): New static functions.
32528         All uses changed.  Avoid potentially-nonportable casts.
32529         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32530         (_obstack_begin_worker): Omit last two args, since they
32531         rely on potentially-nonportable casts.  All callers changed.
32532         * lib/obstack.h (_OBSTACK_CAST): New macro.
32533         Use it everywhere the old API used a potentially-nonportable cast.
32534         The new API doesn't cast.
32535         (struct obstack): Use unions rather than requiring
32536         potentially-nonportable casts.
32537         (obstack_chunkfun, obstack_freefun): Return void.
32539 2014-11-03  Alan Modra  <amodra@gmail.com>
32541         obstack: fix macro return values
32542         * lib/obstack.h (obstack_next_free): Return void *.
32543         (obstack_1grow_fast, obstack_blank_fast): Return void.
32544         For __GNUC__ macros:
32545         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32546         For !__GNUC__ macros:
32547         (obstack_make_room, obstack_grow, obstack_grow0)
32548         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32550 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32552         obstack: do not assume system-supplied obstack is size_t safe
32553         * m4/obstack.m4: New file.
32554         * modules/obstack (Files): Add it.
32556         obstack: port to platforms that #define __alignof__
32557         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32558         not if !_LIBC.  We don't know of any platforms that #define
32559         __alignof__, but it might be useful in tests.  Conversely,
32560         glibc assumes GCC.
32562 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32564         linkat: don't unconditionally replace on GNU/Linux
32565         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32566         was redundant for a few reasons.  It was present to support compiling
32567         on new systems but running on the old narrow window of Linux 2.6.1[67].
32568         It setup and cleaned up test files which weren't actually used.
32569         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32570         implicit in the following check.
32572 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32574         linkat: wrap to handle symlinks on OS X 10.10
32575         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32576         but not usable because it doesn't support creating hardlinks
32577         to symlinks.  Therefore add a generic test for this capability
32578         and fallback to our emulation if linkat() fails with ENOTSUP.
32580 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32582         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32583         * doc/posix-functions/open.texi (open):
32584         * doc/posix-functions/openat.texi (openat):
32585         Document that these functions do not set errno to ELOOP when
32586         a symlink is opened with O_NOFOLLOW.
32588 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32590         obstack: add NEWS entry for recent incompatible changes
32591         * NEWS: Describe recent changes.
32593 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32595         mountlist: don't use libmount to decide on dummy/remote
32596         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32597         routines to determine whether a file system is dummy or remote,
32598         as they're not currently compatible.  For example the remoteness
32599         is determined on file system type (for which the list seems incomplete),
32600         rather than simply checking for a ':' in the device name.
32601         Also libmount currently determines that 'tmpfs' is a dummy file system
32602         even though it has associated storage.
32604 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32606         obstack: prefer __alignof__ to alignof
32607         This is for portability to pre-4.7 GCC when compiling glibc.
32608         See Joseph S. Myers in:
32609         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32610         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32611         New macro, defined by including and using <alignof.h>.
32612         (MAX): New macro.
32613         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32614         Do not use enums as they are not portable to some broken compilers.
32615         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32617         obstack: prefer alignof to calculating alignments by hand
32618         * lib/obstack.c: Include <stdalign.h>.
32619         (struct fooalign): Remove.
32620         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32621         * modules/obstack (Depends-on): Add stdalign.
32623 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32625         obstack: use size_t alignments and check for overflow
32626         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32627         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32628         * lib/obstack.h (struct obstack.alignment_mask):
32629         Use _OBSTACK_SIZE_T, not int, for alignments.
32630         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32631         overflows, e.g., when adding the alignment.
32633 2014-10-29  Alan Modra  <amodra@gmail.com>
32635         obstack: 64-bit obstack support, part 3
32636         This finally enables full 64-bit obstack support.  The glibc
32637         shared library specific code is removed from obstack.c too, and
32638         the error handling code conditionally compiled under control of
32639         another macro, _OBSTACK_NO_ERROR_HANDLER.
32640         * lib/obstack.h: Include string.h earlier.
32641         (_OBSTACK_INTERFACE_VERSION): Define.
32642         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32643         * lib/obstack.c: Don't include shlib-compat.h.
32644         (OBSTACK_INTERFACE_VERSION): Delete.
32645         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32646         glibc code is compatible with version 2.  Don't include stdio.h for
32647         __GNU_LIBRARY.
32648         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32649         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32650         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32651         glibc shared library specific source.
32653         obstack: 64-bit obstack support, part 2
32654         This gets us 4G obstack support, without changing ABI
32655         compatibility, apart from possibly introducing some
32656         signed/unsigned comparison warnings in code that uses obstack.h.
32657         a) Replace "int" size parameters, return values, and macro local vars
32658            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32659         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32660         c) Make all obstack macros checking available room use obstack_room.
32661            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32662            allocated near the top of memory.
32663         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32664         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32665         in place of "int" size parameters, return values and local vars.
32666         (_CHUNK_SIZE_T): Define.
32667         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32668         union use an _OBSTACK_SIZE_T integer type.
32669         For __GNUC__ versions of the following macros...
32670         (obstack_room): Rename local var.
32671         (obstack_make_room): Use obstack_room.
32672         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32673         obstack_int_grow, obstack_blank): Likewise.
32674         (obstack_finish): Use unsigned comparison when comparing aligned
32675         next_free against chunk_limit.
32676         (obstack_free): Cast OBJ to remove possible const qualifier.
32677         For !__GNUC__ versions of the following macros...
32678         (obstack_make_room): Use obstack_room.
32679         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32680         obstack_int_grow, obstack_blank): Likewise.
32681         (obstack_finish): Use unsigned comparision when comparing aligned
32682         next_free against chunk_limit.
32683         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32684         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32685         _OBSTACK_SIZE_T.
32686         (_obstack_begin, _obstack_begin_1): Likewise.
32687         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32688         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32690         obstack: 64-bit obstack support, part 1
32691         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32692            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32693            and "size_t" 64 bits.
32694         b) Consolidate _obstack_begin and _obstack_begin1 code.
32695         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32696         use "size_t" rather than "long".
32697         (_obstack_begin, _obstack_begin1): Likewise.
32698         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32699         obstack_chunkfun): Update alloc function casts.
32700         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32701         (chunkfun_type, freefun_type): New typdefs.
32702         (_obstack_begin_worker): Split out from ..
32703         (_obstack_begin, _obstack_begin_1): ..here.
32705         obstack: tidy part 2
32706         a) Don't be concerned about "not polluting the namespace with stddef.h
32707            symbols" in obstack.h, since gnulib string.h includes stddef.h
32708            anyway, and it seems unlikely that anyone would care.
32709         b) Don't roll our own slow memcpy in _obstack_newchunk.
32710         c) Rename obstack_free to _obstack_free.  This makes the naming
32711            consistent with other obstack functions and obviates the need for
32712            __obstack_free.  Ancient obstack.c defined both obstack_free and
32713            _obstack_free.  We continue to do that for _LIBC via an alias.
32714         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32715            is clever, but nowadays gcc warns on undefined macros.  You'll get
32716            an undefined macro warning if simulating an old gcc with -U__GNUC__
32717            -U__GNUC_MINOR__ -D__GNUC__=1.
32718         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32719         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32720         (__obstack_free): Delete, update refs.
32721         (_obstack_free): Rename from obstack_free.
32722         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32723         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32724         * lib/obstack.c: Don't include stddef.h.
32725         (COPYING_UNIT): Delete.
32726         (_obstack_begin): Formatting fix.
32727         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32728         (_obstack_free): Rename from __obstack_free, update alias.  Move
32729         undef of obstack_free to where it is needed.
32731         obstack: tidy part 1
32732         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32733            to me, and result in overlong lines after later patches.
32734         b) Move error handling code, to avoid a forward declaration and to
32735            simplify later patches in this series.
32736         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32737         and update all uses.
32738         * lib/obstack.c: Include stdlib.h earlier.
32739         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32740         in file.
32741         (print_and_abort): Remove now redundant forward declaration.
32743 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32745         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32746         Without this change, in bleeding-edge fileutils Autoconf complains
32747         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32748         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32749         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32750         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32752 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32754         iconv: avoid false detection of non-working iconv
32755         The INBUF arguments of iconv can be either 'const char **'
32756         or 'char **'.  If CC is g++, the difference causes a compile error
32757         and thus leads to a false detection of non-working iconv.
32758         Reported by Eli Zaretskii and Werner LEMBERG in:
32759         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32760         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32761         iconv.  Bump serial number.
32763 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32765         bootstrap: print more diagnostics for missing programs
32766         * build-aux/bootstrap: only suppress stderr when checking for
32767         alternative program names.  This supports programs issuing non
32768         standard error messages.
32770 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32772         bootstrap: only update the gnulib submodule
32773         * build-aux/bootstrap: Restrict the "submodule update" command
32774         to the gnulib path.
32776 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32778         symlinkat: port to AIX 7.1
32779         * doc/posix-functions/symlinkat.texi (symlinkat):
32780         Mention AIX porting problem.
32781         * lib/symlinkat.c: Always include errno.h.
32782         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32783         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32784         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32786         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32787         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32788         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32790         readlinkat: port to AIX 7.1
32791         * doc/posix-functions/readlink.texi (readlink):
32792         * doc/posix-functions/readlinkat.texi (readlinkat):
32793         Mention AIX porting problem.
32794         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32795         New function.
32796         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32797         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32799         * modules/readlinkat (configure.ac): Also compile replacement
32800         if REPLACE_READLINKAT.
32801         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32803 2014-10-12  Karl Berry  <karl@gnu.org>
32805         * doc/posix-functions/dirname.texi: remove spurious {.
32807 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32809         basename, dirname: Improve documentation.
32810         * doc/posix-functions/basename.texi: Mention dirname module and
32811         base_name() function.
32812         * doc/posix-functions/dirname.texi: Mention dir_name() and
32813         mdir_name() functions.
32814         Suggested by Werner LEMBERG <wl@gnu.org>.
32816 2014-09-24  Jim Meyering  <meyering@fb.com>
32818         exclude: declare exclude_patopts static
32819         * lib/exclude.c (exclude_patopts): Declare static,
32820         to avoid triggering a -Wmissing-prototypes warning.
32821         The alternative (declaring it in the .h file) would
32822         require publicizing the private "struct patopts".
32824 2014-09-21  Werner Lemberg  <wl@gnu.org>
32826         dirname: support compilation with C++
32827         * lib/dirname.h: Add necessary C linkage declarations.
32829 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32831         qsort_r: include <config.h>
32832         Problem reported by Tom G. Christensen in:
32833         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32834         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32836 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32838         avltree-list: avoid compiler warnings (trivial)
32839         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32840         -Werror=suggest-attribute=pure.
32841         * lib/gl_array_list.c: Likewise.
32842         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32843         declaration to avoid -Werror=missing-prototypes.  This is not added
32844         to a header as only exported for tests.  Add (void) to the
32845         check_invariants() call to indicate we're discarding the result
32846         in this context which avoids -Werror=unused-value.  Note we don't
32847         use ignore_value here to avoid a dependency as we know we'll not
32848         be adding __attribute__((warn_unused_result)) to check_invariants().
32849         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32851 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32853         qsort_r: new module, for GNU-style qsort_r
32854         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32856 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32858         strerror_r-posix: support compilation with C++
32859         * lib/strerror_r.c: Add necessary C linkage declarations.
32861 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32863         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32864         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32866 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32868         mountlist: use /proc/self/mountinfo when available
32869         Use libmount to propagate device IDs provided by Linux in
32870         /proc/self/mountinfo.  This will give more accurate output when
32871         using df in chroot'ed environments as the device IDs are not
32872         determined by stat() which may be inaccurate within the chroot.
32873         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32874         from util-linux to parse "/proc/self/mountinfo" or fall back to
32875         standard getmntent() processing.
32876         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32877         getmntent() is used, as is the case on GNU/Linux.
32879 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32881         users.txt: add cmogstored
32882         cmogstored has used gnulib since the beginning in 2012 to support
32883         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32885 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32887         Trivial change.
32888         * gnulib-tool: Use same options as build-aux/bootstrap to download
32889         PO files.
32891 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32893         Trivial change.
32894         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32896 2014-09-04  Eric Blake  <eblake@redhat.com>
32898         maintainer-makefile: add syntax check for useless ';;'
32899         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32901 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32903         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32904         Problem reported by Assaf Gordon in:
32905         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32906         Apparently Ubuntu is doing some fancy link-time optimization
32907         that doesn't work with -lpthread but does work with -pthread.
32908         Work around the bug by preferring -pthread to -lpthread.
32909         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32910         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32912         Treat -pthread like -lpthread.
32914 2014-09-04  Eric Blake  <eblake@redhat.com>
32916         error: drop spurious semicolon
32917         * lib/error.c (__error_at_line): Fix ';;'.
32919 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32921         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32922         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32923         Override AC_C_RESTRICT unconditionally.
32924         Update from autoconf, incorporating:
32925         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32926         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32928 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32930         manywarnings: add GCC 4.9 warnings
32931         Also, make it easier to maintain this in the future.
32932         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32933         -Wconditionally-supported, -Wdelete-incomplete,
32934         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32935         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32936         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32937         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32938         only for older GCC versions that need them.  Handle
32939         -Wnormalized=nfc specially, so that the 'comm' command used
32940         for maintenance doesn't get confused.
32942 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32944         vasnprintf: fix bugs in width computation
32945         * lib/vasnprintf.c (VASNPRINTF):
32946         Rework previous change, which introduced a bug,
32947         to avoid the warning in a different way.
32948         Avoid undefined behavior if the width arg is less than -INT_MAX.
32949         Avoid unnecessary use of HAS_WIDTH local.
32951 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32953         vasnprintf: Avoid signed/unsigned comparison warning.
32954         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32955         compare end addr of generated string w/ maximum end addr.
32957 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32959         parse-datetime: Avoid pointer difference.
32960         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32961         instead of calculating difference of pointers.  This removes an
32962         annoying warning, devoid of any use.
32964 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32966         qsort_r: new module, for GNU-style qsort_r
32967         This works even on FreeBSD, which has an incompatible qsort_r API.
32968         * MODULES.html.sh: Add it.
32969         * doc/glibc-functions/qsort_r.texi: It's now supported.
32970         * lib/qsort.c: New file, taken from glibc with minor changes
32971         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32972         removed.
32973         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32974         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32976         * modules/qsort_r, modules/qsort_r-tests: New files.
32977         * modules/stdlib (Makefile): Set up its defaults.
32978         * tests/test-qsort_r.c: New file.
32980 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32982         vla: new module
32983         GNU RCS can use this, mostly for documentation I expect.  See:
32984         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32985         * MODULES.html.sh: Add vla.
32986         * lib/vla.h, modules/vla: New files.
32988 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32990         localename: make gl_locale_name_thread really thread-safe on Windows
32991         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32992         "glthread/lock.h".
32993         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32994         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32996 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32998         getpass: don't assume struct termios
32999         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
33000         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
33001         * lib/getpass.c (getpass): Port to systems lacking struct termios.
33003         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
33004         Problem reported by Jonas 'Sortie' Termansen in:
33005         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
33006         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
33007         Implement via sysconf for platforms that lack getdtablesize.
33009         vararrays: modernize AC_C_VARARRAYS for C11
33010         This backports a change I recently made to Autoconf.
33011         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
33012         VLAs are not supported, as this is what C11 does.  The old macro
33013         HAVE_C_VARARRAYS is still defined if they are supported, but is
33014         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
33016 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
33018         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
33019         * build-aux/install-reloc (func_create_wrapper): Also wrap
33020         strerror-override, stat, stat.
33022 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33024         sys_select: fix FD_ZERO problem on Solaris 10
33025         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
33026         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
33027         to expand to an expression that invoked memset without necessarily
33028         including <string.h>.  The problem was that the first include
33029         defined _SYS_TIME_H, causing the second include to short-circuit.
33030         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
33031         Also, fix what appears to be a cut-and-paste typo, by replacing
33032         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
33033         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
33035         accept: document Solaris 10 type glitch
33036         * doc/posix-functions/accept.texi (accept): Mention that
33037         Solaris 10 'accept' takes void * last arg, not socklen_t *.
33039 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
33041         extern-inline: port to FreeBSD, DragonFly
33042         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
33043         is present if either __DragonFly__ or __FreeBSD__ is defined.
33044         FreeBSD problem reported by Andrey Borzenkov in:
33045         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
33046         Also, worry about __APPLE__ only if __MACH__ is also defined,
33047         as this is more consistent with the rest of gnulib.
33048         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
33049         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
33051 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33053         regex: Make #if/#ifdef usage consistent for DEBUG
33054         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
33055         of the inconsistent usage of #if and #ifdef as that works with
33056         both Glibc and Gnulib's style.
33058 2014-07-31  Eric Blake  <eblake@redhat.com>
33060         openat-die: use _Noreturn markup
33061         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
33062         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
33063         _Noreturn.
33065 2014-07-30  Eric Blake  <eblake@redhat.com>
33067         test-open: port to cygwin, which lacks Fortify
33068         * tests/test-open.h (ALWAYS_INLINE): New macro.
33069         (__always_inline): Don't abuse internal symbol on non-glibc.
33071 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
33073         localename: Enforce declarations before statements.
33074         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
33075         first statement.
33077 2014-07-18  Jim Meyering  <meyering@fb.com>
33079         test-userspec: don't look up numeric user names
33080         * tests/test-userspec.c: I found a system for which getpwnam("0")
33081         returned a pointer to a non-root user's entry, and that made the
33082         test fail.
33083         (T): Prefix each numeric input with "+", to inhibit lookup.
33085 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
33087         localcharset, localename: MS-Windows support for non-default locales
33088         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
33089         falling back on the default system codepage, try extracting
33090         the codepage from what 'setlocale' returns.  This allows to
33091         take into account changes of the codeset due to non-default
33092         locale set by a previous call to 'setlocale'.
33093         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
33094         Define if not already defined.
33095         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
33096         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
33097         current locale by calling 'setlocale', then converting the
33098         locale name into LCID by calling 'get_lcid'.  This allows to
33099         take into account changes in the current locale from the
33100         default one, in contrast to GetThreadLocale.
33102 2014-07-14  Daiki Ueno  <ueno@gnu.org>
33104         announce-gen: avoid failure when Digest::SHA is installed
33105         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
33106         Digest::SHA1->new in print_checksums fails.
33107         * build-aux/announce-gen (digest_classes): New associative array
33108         for available message digest implementations.
33109         (print_locations): Use it.
33111 2014-07-13  Pádraig Brady  <P@draigBrady.com>
33113         gettext: revert "update macros to version 0.19"
33114         This reverts commit 9b9370ca, as it currently requires that
33115         developers of any project that explicitly uses the gettext module
33116         or implicitly uses it through the utimens-tests or
33117         futimens-tests modules, use gettext >= 0.19.
33118         However there are some stability and availablity issues with
33119         that version at present.  We can reinstate this soon, when stability
33120         is addressed and packages are more readily available.
33122 2014-07-12  Jim Meyering  <meyering@fb.com>
33124         regex: don't deref NULL upon heap allocation failure
33125         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
33126         failure in one more place.
33127         To trigger the segfault, configure grep -with-included-regex,
33128         build it, and run these commands:
33129         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
33130         I discovered this while replying to a private report from
33131         Jens Schleusener about excessive memory consumption by grep
33132         when using a regular expression like the one above.
33134 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33136         regex: fix memory leak in compiler
33137         Fix by Andreas Schwab in:
33138         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
33139         * lib/regcomp.c (parse_reg_exp): Deallocate partially
33140         constructed tree before returning error.
33142 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33144         announce-gen: avoid perl warnings
33145         * build-aux/announce-gen: add two minor checks to avoid
33146         "use of uninitialized value" warnings when command-line parameters are
33147         missing.
33149 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33151         localename: avoid -Wsuggest-attribute={const,pure} warnings
33152         * lib/localename.c (string_has): Tag internal function as pure.
33153         * lib/localename.h (gl_locale_name_default): Tag extern declaration
33154         as const when appropriate.
33156 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
33158         nl_langinfo: Fix last change.
33159         * lib/nl_langinfo.c (includes): Drop redundant include.
33161 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33163         error: Fix -Wundef warnings in glibc
33164         * lib/error.c [_LIBC]: Define default macros for
33165         glibc.
33166         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
33167         Check _LIBC before STRERROR_R_CHAR_P.
33169         error: Sync from glibc master
33170         * lib/error.c [_LIBC]: Remove INTUSE usage.
33171         (error_tail): Remove unused macro ALLOCA_LIMIT.
33172         Fix potential buffer overflow.  Fix potential NULL dereference
33173         in strcmp.
33175 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
33177         nl_langinfo: fix build under mingw
33178         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
33180 2014-07-09  Andrew D Warshall  <warshall@99main.com>
33182         mountlist: do not classify a bind-mounted dir entry as "dummy"
33183         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
33184         1-argument getmntent() (instead of assuming absence).
33186 2014-07-08  Eric Blake  <eblake@redhat.com>
33188         maint.mk: less syntax-check noise when SIGPIPE is ignored
33189         * top/maint.mk (_sc_header_without_use)
33190         (sc_require_config_h_first): Parse full list.
33192 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
33193             Paul Eggert  <eggert@cs.ucla.edu>
33195         nl_langinfo: CODESET on MS-Windows and more items from localeconv
33196         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
33197         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
33198         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
33199         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
33200         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
33201         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
33202         Include <stdio.h> if Microsoft Windows.
33203         Include <time.h> if !REPLACE_NL_LANGINFO.
33204         (ctype_codeset): New function, taken from rpl_nl_langinfo,
33205         and with improvements for Microsoft Windows.
33206         (rpl_nl_langinfo): Use it.
33207         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
33208         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
33209         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
33210         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
33211         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
33212         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
33213         corresponding values returned by 'localeconv'.  Compute the values
33214         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
33215         'strftime' with a suitable struct tm value.
33217 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33219         Bruno Haible has stepped down as maintainer.
33220         See Karl Berry in:
33221         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
33222         Daiki Ueno has volunteered to maintain libunistring; see:
33223         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
33224         * modules/gen-uni-tables, modules/libunistring:
33225         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
33226         * modules/unicase/base, modules/unicase/cased:
33227         * modules/unicase/empty-prefix-context:
33228         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
33229         * modules/unicase/locale-language, modules/unicase/special-casing:
33230         * modules/unicase/tocasefold, modules/unicase/tolower:
33231         * modules/unicase/totitle, modules/unicase/toupper:
33232         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
33233         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
33234         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
33235         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
33236         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
33237         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
33238         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
33239         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
33240         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
33241         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
33242         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
33243         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
33244         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
33245         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
33246         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
33247         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
33248         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
33249         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
33250         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
33251         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
33252         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
33253         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
33254         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
33255         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
33256         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
33257         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
33258         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
33259         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
33260         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
33261         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
33262         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
33263         * modules/unicase/ulc-casexfrm, modules/unicodeio:
33264         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
33265         * modules/uniconv/u16-conv-to-enc:
33266         * modules/uniconv/u16-strconv-from-enc:
33267         * modules/uniconv/u16-strconv-from-locale:
33268         * modules/uniconv/u16-strconv-to-enc:
33269         * modules/uniconv/u16-strconv-to-locale:
33270         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
33271         * modules/uniconv/u32-strconv-from-enc:
33272         * modules/uniconv/u32-strconv-from-locale:
33273         * modules/uniconv/u32-strconv-to-enc:
33274         * modules/uniconv/u32-strconv-to-locale:
33275         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
33276         * modules/uniconv/u8-strconv-from-enc:
33277         * modules/uniconv/u8-strconv-from-locale:
33278         * modules/uniconv/u8-strconv-to-enc:
33279         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
33280         * modules/unictype/bidicategory-all:
33281         * modules/unictype/bidicategory-byname:
33282         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
33283         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
33284         * modules/unictype/bidiclass-byname:
33285         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
33286         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
33287         * modules/unictype/block-all, modules/unictype/block-list:
33288         * modules/unictype/block-of, modules/unictype/block-test:
33289         * modules/unictype/category-C, modules/unictype/category-Cc:
33290         * modules/unictype/category-Cf, modules/unictype/category-Cn:
33291         * modules/unictype/category-Co, modules/unictype/category-Cs:
33292         * modules/unictype/category-L, modules/unictype/category-LC:
33293         * modules/unictype/category-Ll, modules/unictype/category-Lm:
33294         * modules/unictype/category-Lo, modules/unictype/category-Lt:
33295         * modules/unictype/category-Lu, modules/unictype/category-M:
33296         * modules/unictype/category-Mc, modules/unictype/category-Me:
33297         * modules/unictype/category-Mn, modules/unictype/category-N:
33298         * modules/unictype/category-Nd, modules/unictype/category-Nl:
33299         * modules/unictype/category-No, modules/unictype/category-P:
33300         * modules/unictype/category-Pc, modules/unictype/category-Pd:
33301         * modules/unictype/category-Pe, modules/unictype/category-Pf:
33302         * modules/unictype/category-Pi, modules/unictype/category-Po:
33303         * modules/unictype/category-Ps, modules/unictype/category-S:
33304         * modules/unictype/category-Sc, modules/unictype/category-Sk:
33305         * modules/unictype/category-Sm, modules/unictype/category-So:
33306         * modules/unictype/category-Z, modules/unictype/category-Zl:
33307         * modules/unictype/category-Zp, modules/unictype/category-Zs:
33308         * modules/unictype/category-all, modules/unictype/category-and:
33309         * modules/unictype/category-and-not, modules/unictype/category-byname:
33310         * modules/unictype/category-longname, modules/unictype/category-name:
33311         * modules/unictype/category-none, modules/unictype/category-of:
33312         * modules/unictype/category-or, modules/unictype/category-test:
33313         * modules/unictype/category-test-withtable:
33314         * modules/unictype/combining-class:
33315         * modules/unictype/combining-class-all:
33316         * modules/unictype/combining-class-byname:
33317         * modules/unictype/combining-class-longname:
33318         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
33319         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
33320         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
33321         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
33322         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
33323         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
33324         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
33325         * modules/unictype/digit, modules/unictype/joininggroup-all:
33326         * modules/unictype/joininggroup-byname:
33327         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
33328         * modules/unictype/joiningtype-all:
33329         * modules/unictype/joiningtype-byname:
33330         * modules/unictype/joiningtype-longname:
33331         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
33332         * modules/unictype/mirror, modules/unictype/numeric:
33333         * modules/unictype/property-all, modules/unictype/property-alphabetic:
33334         * modules/unictype/property-ascii-hex-digit:
33335         * modules/unictype/property-bidi-arabic-digit:
33336         * modules/unictype/property-bidi-arabic-right-to-left:
33337         * modules/unictype/property-bidi-block-separator:
33338         * modules/unictype/property-bidi-boundary-neutral:
33339         * modules/unictype/property-bidi-common-separator:
33340         * modules/unictype/property-bidi-control:
33341         * modules/unictype/property-bidi-embedding-or-override:
33342         * modules/unictype/property-bidi-eur-num-separator:
33343         * modules/unictype/property-bidi-eur-num-terminator:
33344         * modules/unictype/property-bidi-european-digit:
33345         * modules/unictype/property-bidi-hebrew-right-to-left:
33346         * modules/unictype/property-bidi-left-to-right:
33347         * modules/unictype/property-bidi-non-spacing-mark:
33348         * modules/unictype/property-bidi-other-neutral:
33349         * modules/unictype/property-bidi-pdf:
33350         * modules/unictype/property-bidi-segment-separator:
33351         * modules/unictype/property-bidi-whitespace:
33352         * modules/unictype/property-byname:
33353         * modules/unictype/property-case-ignorable:
33354         * modules/unictype/property-cased:
33355         * modules/unictype/property-changes-when-casefolded:
33356         * modules/unictype/property-changes-when-casemapped:
33357         * modules/unictype/property-changes-when-lowercased:
33358         * modules/unictype/property-changes-when-titlecased:
33359         * modules/unictype/property-changes-when-uppercased:
33360         * modules/unictype/property-combining:
33361         * modules/unictype/property-composite:
33362         * modules/unictype/property-currency-symbol:
33363         * modules/unictype/property-dash:
33364         * modules/unictype/property-decimal-digit:
33365         * modules/unictype/property-default-ignorable-code-point:
33366         * modules/unictype/property-deprecated:
33367         * modules/unictype/property-diacritic:
33368         * modules/unictype/property-extender:
33369         * modules/unictype/property-format-control:
33370         * modules/unictype/property-grapheme-base:
33371         * modules/unictype/property-grapheme-extend:
33372         * modules/unictype/property-grapheme-link:
33373         * modules/unictype/property-hex-digit:
33374         * modules/unictype/property-hyphen:
33375         * modules/unictype/property-id-continue:
33376         * modules/unictype/property-id-start:
33377         * modules/unictype/property-ideographic:
33378         * modules/unictype/property-ids-binary-operator:
33379         * modules/unictype/property-ids-trinary-operator:
33380         * modules/unictype/property-ignorable-control:
33381         * modules/unictype/property-iso-control:
33382         * modules/unictype/property-join-control:
33383         * modules/unictype/property-left-of-pair:
33384         * modules/unictype/property-line-separator:
33385         * modules/unictype/property-logical-order-exception:
33386         * modules/unictype/property-lowercase, modules/unictype/property-math:
33387         * modules/unictype/property-non-break:
33388         * modules/unictype/property-not-a-character:
33389         * modules/unictype/property-numeric:
33390         * modules/unictype/property-other-alphabetic:
33391         * modules/unictype/property-other-default-ignorable-code-point:
33392         * modules/unictype/property-other-grapheme-extend:
33393         * modules/unictype/property-other-id-continue:
33394         * modules/unictype/property-other-id-start:
33395         * modules/unictype/property-other-lowercase:
33396         * modules/unictype/property-other-math:
33397         * modules/unictype/property-other-uppercase:
33398         * modules/unictype/property-paired-punctuation:
33399         * modules/unictype/property-paragraph-separator:
33400         * modules/unictype/property-pattern-syntax:
33401         * modules/unictype/property-pattern-white-space:
33402         * modules/unictype/property-private-use:
33403         * modules/unictype/property-punctuation:
33404         * modules/unictype/property-quotation-mark:
33405         * modules/unictype/property-radical:
33406         * modules/unictype/property-sentence-terminal:
33407         * modules/unictype/property-soft-dotted:
33408         * modules/unictype/property-space:
33409         * modules/unictype/property-terminal-punctuation:
33410         * modules/unictype/property-test, modules/unictype/property-titlecase:
33411         * modules/unictype/property-unassigned-code-value:
33412         * modules/unictype/property-unified-ideograph:
33413         * modules/unictype/property-uppercase:
33414         * modules/unictype/property-variation-selector:
33415         * modules/unictype/property-white-space:
33416         * modules/unictype/property-xid-continue:
33417         * modules/unictype/property-xid-start:
33418         * modules/unictype/property-zero-width, modules/unictype/scripts:
33419         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
33420         * modules/unictype/syntax-c-whitespace:
33421         * modules/unictype/syntax-java-ident:
33422         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33423         * modules/unigbrk/u16-grapheme-breaks:
33424         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33425         * modules/unigbrk/u32-grapheme-breaks:
33426         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33427         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33428         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33429         * modules/unigbrk/uc-is-grapheme-break:
33430         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33431         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33432         * modules/unilbrk/u16-width-linebreaks:
33433         * modules/unilbrk/u32-possible-linebreaks:
33434         * modules/unilbrk/u32-width-linebreaks:
33435         * modules/unilbrk/u8-possible-linebreaks:
33436         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33437         * modules/unilbrk/ulc-possible-linebreaks:
33438         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33439         * modules/uniname/uniname, modules/uninorm/base:
33440         * modules/uninorm/canonical-decomposition:
33441         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33442         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33443         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33444         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33445         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33446         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33447         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33448         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33449         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33450         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33451         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33452         * modules/unistdio/base, modules/unistdio/u-printf-args:
33453         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33454         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33455         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33456         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33457         * modules/unistdio/u16-u16-sprintf:
33458         * modules/unistdio/u16-u16-vasnprintf:
33459         * modules/unistdio/u16-u16-vasprintf:
33460         * modules/unistdio/u16-u16-vsnprintf:
33461         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33462         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33463         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33464         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33465         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33466         * modules/unistdio/u32-u32-asnprintf:
33467         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33468         * modules/unistdio/u32-u32-sprintf:
33469         * modules/unistdio/u32-u32-vasnprintf:
33470         * modules/unistdio/u32-u32-vasprintf:
33471         * modules/unistdio/u32-u32-vsnprintf:
33472         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33473         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33474         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33475         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33476         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33477         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33478         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33479         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33480         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33481         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33482         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33483         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33484         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33485         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33486         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33487         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33488         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33489         * modules/unistr/u16-check, modules/unistr/u16-chr:
33490         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33491         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33492         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33493         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33494         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33495         * modules/unistr/u16-move, modules/unistr/u16-next:
33496         * modules/unistr/u16-prev, modules/unistr/u16-set:
33497         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33498         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33499         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33500         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33501         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33502         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33503         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33504         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33505         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33506         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33507         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33508         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33509         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33510         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33511         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33512         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33513         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33514         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33515         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33516         * modules/unistr/u32-next, modules/unistr/u32-prev:
33517         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33518         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33519         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33520         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33521         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33522         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33523         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33524         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33525         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33526         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33527         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33528         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33529         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33530         * modules/unistr/u8-check, modules/unistr/u8-chr:
33531         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33532         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33533         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33534         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33535         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33536         * modules/unistr/u8-next, modules/unistr/u8-prev:
33537         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33538         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33539         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33540         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33541         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33542         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33543         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33544         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33545         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33546         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33547         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33548         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33549         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33550         * modules/uniwbrk/base, modules/uniwbrk/table:
33551         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33552         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33553         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33554         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33555         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33556         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33557         * modules/uniwidth/width, modules/utf16-ucs4:
33558         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33559         * modules/utf8-ucs4-unsafe:
33560         Change maintainer from Bruno Haible to Daiki Ueno.
33561         This is my guess at the libunistring modules; please feel free
33562         to fix if I guessed incorrectly.
33563         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33564         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33565         * modules/areadlink, modules/array-list, modules/array-mergesort:
33566         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33567         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33568         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33569         * modules/binary-io, modules/bison-i18n, modules/btowc:
33570         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33571         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33572         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33573         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33574         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33575         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33576         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33577         * modules/closedir, modules/concat-filename, modules/copy-file:
33578         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33579         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33580         * modules/csharpcomp-script, modules/csharpexec:
33581         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33582         * modules/dprintf, modules/dprintf-posix, modules/dup:
33583         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33584         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33585         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33586         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33587         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33588         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33589         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33590         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33591         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33592         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33593         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33594         * modules/findprog, modules/findprog-lgpl, modules/floor:
33595         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33596         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33597         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33598         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33599         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33600         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33601         * modules/freadable, modules/freadahead, modules/freadptr:
33602         * modules/freadseek, modules/freopen, modules/frexp:
33603         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33604         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33605         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33606         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33607         * modules/ftello, modules/full-read, modules/full-write:
33608         * modules/fwritable, modules/fwriteerror, modules/gcd:
33609         * modules/get-rusage-as, modules/get-rusage-data:
33610         * modules/getdtablesize, modules/getrusage, modules/gettext:
33611         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33612         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33613         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33614         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33615         * modules/iconv, modules/iconv-h, modules/iconv_open:
33616         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33617         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33618         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33619         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33620         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33621         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33622         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33623         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33624         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33625         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33626         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33627         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33628         * modules/lib-symbol-visibility, modules/libsigsegv:
33629         * modules/linked-list, modules/linkedhash-list, modules/list:
33630         * modules/localcharset, modules/locale, modules/localeconv:
33631         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33632         * modules/log10, modules/log10-ieee, modules/log10f:
33633         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33634         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33635         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33636         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33637         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33638         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33639         * modules/logf, modules/logf-ieee, modules/login_tty:
33640         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33641         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33642         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33643         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33644         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33645         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33646         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33647         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33648         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33649         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33650         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33651         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33652         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33653         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33654         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33655         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33656         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33657         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33658         * modules/posix_spawn, modules/posix_spawn-internal:
33659         * modules/posix_spawn_file_actions_addclose:
33660         * modules/posix_spawn_file_actions_adddup2:
33661         * modules/posix_spawn_file_actions_addopen:
33662         * modules/posix_spawn_file_actions_destroy:
33663         * modules/posix_spawn_file_actions_init:
33664         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33665         * modules/posix_spawnattr_getpgroup:
33666         * modules/posix_spawnattr_getschedparam:
33667         * modules/posix_spawnattr_getschedpolicy:
33668         * modules/posix_spawnattr_getsigdefault:
33669         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33670         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33671         * modules/posix_spawnattr_setschedparam:
33672         * modules/posix_spawnattr_setschedpolicy:
33673         * modules/posix_spawnattr_setsigdefault:
33674         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33675         * modules/pow, modules/powf, modules/printf-frexp:
33676         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33677         * modules/progname, modules/propername, modules/pselect:
33678         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33679         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33680         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33681         * modules/read, modules/readdir, modules/readlink:
33682         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33683         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33684         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33685         * modules/relocatable-script, modules/remainder:
33686         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33687         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33688         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33689         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33690         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33691         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33692         * modules/setlocale, modules/sh-quote, modules/shutdown:
33693         * modules/signal, modules/signbit, modules/sigpipe:
33694         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33695         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33696         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33697         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33698         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33699         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33700         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33701         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33702         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33703         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33704         * modules/streq, modules/strerror_r-posix, modules/striconv:
33705         * modules/striconveh, modules/striconveha, modules/strncat:
33706         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33707         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33708         * modules/sys_wait, modules/system-posix, modules/system-quote:
33709         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33710         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33711         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33712         * modules/truncf, modules/truncf-ieee, modules/truncl:
33713         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33714         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33715         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33716         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33717         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33718         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33719         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33720         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33721         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33722         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33723         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33724         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33725         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33726         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33727         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33728         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33729         * modules/write, modules/xconcat-filename, modules/xlist:
33730         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33731         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33732         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33733         * modules/y0, modules/y1, modules/yn:
33734         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33735         change the maintainer to 'all'.  Let's hope someone volunteers.
33737 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33739         mktime: merge #if/#ifdef usage from glibc
33740         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33741         as that works with both Glibc's and Gnulib's style.
33742         See thread starting at Siddhesh Poyarekar's bug report at:
33743         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33745 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33747         git-version-gen: improve option descriptions
33748         * build-aux/git-version-gen: Mention that --prefix and --fallback
33749         have a mandatory argument.
33751 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33753         regex: fix memory leak in compiler
33754         Fix by Andreas Schwab in:
33755         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33756         * lib/regcomp.c (parse_expression): Deallocate partially
33757         constructed tree before returning error.
33759         regex: merge patch from libc
33760         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33761         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33762         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33764 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33766         acl: port to gcc -Wredundant-decls
33767         From a request by Dmitry Antipov in:
33768         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33769         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33770         "#ifndef _GL_ACL_H".
33772 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33773         Jim Meyering  <meyering@fb.com>
33775         parse-duration: eliminate 68-year duration limit
33776         * lib/parse-duration.c: Include "intprops.h".
33777         (TIME_MAX): Rename to MAX_DURATION and define to
33778         TYPE_MAXIMUM(time_t).
33779         * modules/parse-duration (Depends-on): Add intprops.
33780         Reported by Jonas 'Sortie' Termansen.
33782 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33784         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33785         * modules/pthread (Depends-on): Add 'extensions', as it defines
33786         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33787         (configure.ac-early): New section.
33788         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33789         it is no longer needed.
33791 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33793         pthread: define thread-safe macros on some platforms
33794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33795         for thread-safe operation on some platforms.
33797 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33799         regex: don't be multithreaded if USE_UNLOCKED_IO.
33800         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33801         * lib/regex_internal.h: Do not use multithreaded version if
33802         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33803         around a porting bug with coreutils 8.22 on AIX 7.1.
33805 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33807         gettext: update macros to version 0.19
33808         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33809         depend on gl_EXTERN_INLINE and drop support for older Bison
33810         versions.
33812 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33814         select,poll: fix console handle check on windows 8
33815         lib/poll.c (IsConsoleHandle): Change from testing the lower
33816         2 bits of the handle to the more expensive but accurate syscall.
33817         lib/select.c: Likewise.
33819 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33821         select: fix waiting on anonymous pipes on MS-Windows
33822         * lib/select.c (rpl_select): Fall back to polling when select()
33823         indicates there is nothing to check, while due to the timeout not
33824         expiring, activity is indicated on one of the handles.
33825         Also clear the TIMEOUT argument if the timer does expire.
33827 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33829         times: fix to return non constant value on MS-Windows
33830         * lib/times.c (times): Don't use the process creation time,
33831         rather clock() which on windows returns the number of
33832         clock ticks since the process started.
33834 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33836         isatty: fix to work on windows 8
33837         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33838         2 bits of the handle to the more expensive but accurate syscall.
33840 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33842         maint: fix typo in fdl.texi
33843         * doc/fdl.texi: Fix typo (missing '@').
33844         Somehow this was in fdl.texi but not fdl-1.3.texi.
33846 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33848         mountlist: avoid hasmntopt const type warning on solaris
33849         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33850         with char * instead of const char *.  Passing the constant string
33851         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33852         to avoid the warning.
33854 2014-06-04  Eric Blake  <eblake@redhat.com>
33856         maintainer-makefile: delete obsolete code
33857         * top/maint.mk (build_aux): Drop old code, as threatened.
33859         maintainer-makefile: avoid spurious error messages
33860         * top/maint.mk (syntax-check): Guard definition and use of
33861         $(shell) by whether Makefile is present.
33863 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33865         rename: avoid unused-but-set-variable compiler warning
33866         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33867         it is possible that dst_exists may be set but not used.  Mark it with
33868         the unused attribute to avoid compiler warnings.
33870 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33872         rename: mark a label as potentially unused
33873         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33874         by marking the out label as potentially unused.
33875         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33877 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33879         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33880         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33882 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33884         acl: apply pure attribute to two functions
33885         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33886         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33888 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33890         gnulib-common.m4: add _GL_UNUSED_LABEL
33891         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33892         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33894 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33896         dup2, fcntl, fcntl-h: port to AIX 7.1
33897         This fixes some porting problems discovered when testing the latest
33898         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33899         in grep but it could be important for other applications.
33900         * doc/posix-functions/dup2.texi:
33901         * doc/posix-functions/fcntl.texi:
33902         * doc/posix-headers/fcntl.texi:
33903         Document AIX bugs.
33904         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33905         Define to 0 if outside 'int' range.
33906         * m4/dup2.m4 (gl_FUNC_DUP2):
33907         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33908         Check for getdtablesize.  If it's available, test a value just
33909         outside its range instead of testing 1000000.  When cross-compiling,
33910         guess that AIX will fail this improved test.
33912 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33914         printf, config.rpath: Port to FreeBSD 10.
33915         Problem reported by Tijl Coosemans in:
33916         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33917         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33918         (hardcode_direct): Simplify FreeBSD configuration.
33919         (library_names_spec): Don't mishandle FreeBSD 10+.
33920         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33921         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33922         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33923         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33924         Don't mishandle FreeBSD 10+ when cross-compiling.
33926         ftoastr: work around compiler bug in IBM xlc 12.1
33927         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33928         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33929         around a compiler bug in IBM xlc 12.1.0.0: it complains
33930         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33931         _GL_FLT_PREC_BOUND.'
33933 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33935         valgrind-tests: fixed misleading help message
33936         * m4/valgrind-tests.m4: The help message generated by configure
33937         implied that valgrind was disabled by default, which it wasn't.
33938         Adjusted the help message using s/enable/disable/ to clarify.
33940 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33942         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33943         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33944         first double of a PowerPC "double double" pair.
33945         * tests/test-isinf.c (test_isinfl): Likewise.
33946         * tests/test-isnan.c (test_long_double): Likewise.
33947         * tests/test-isnanl.h (main): Likewise.
33948         * tests/test-signbit.c (test_signbitl): Likewise.
33950 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33952         exclude-tests: port to AIX 7.1
33953         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33954         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33955         the regex code uses locks.
33957 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33959         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33960         Without this fix, Emacs would sometimes call sigprocmask instead
33961         of pthread_sigmask, which is a no-no in multithreaded applications.
33962         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33963         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33964         Suppress check for pthread_sigmask working without -lpthread if
33965         the application always links with -lpthread.  Do not link with
33966         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33967         * m4/timer_time.m4 (gl_TIMER_TIME):
33968         Require gl_THREADLIB only if it is defined.  Do not append
33969         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33971 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33973         gnulib-tool: wget translations using --no-verbose rather than --quiet
33974         This allows the user to see error messages if any (--quiet hides them)
33975         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33977 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33979         gnulib-tool: adjust translation wget to avoid a https redirection
33980         Context: http://translationproject.org/latest/gnulib redirects to
33981            https://translationproject.org/latest/gnulib/
33982         Rationale: if the user falls back to wget, she doesn't have rsync and
33983         is probably in a minimal build environment, where packages such as
33984         'ca-certificates' are missing as well, resulting in a failed (and
33985         difficult to detect since ignored) translation initial fetch.
33986         Consequently let's avoid https if possible, and add the missing
33987         trailing slash.  This also avoids an unnecessary 302 redirection.
33988         * gnulib-tool: Add trailing slash to gnulib URL.
33990 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33992         getlogin_r-tests: check return value rather than errno
33993         * tests/test-getlogin_r.c (main): As per POSIX we should be
33994         verifying the return value from getlogin_r() rather than errno.
33996 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33998         getlogin_r-tests: fix various issues in recent change
33999         * tests/test-getlogin_r.c: Include required headers that were
34000         missed in recent commit eec20b4e.
34001         Also consistently check the errno rather than the return value from
34002         getlogin_r as POSIX only specifies that non zero is returned on error.
34003         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
34005 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
34007         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
34008         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
34009         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
34010         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
34011         * lib/spawn-pipe.c:
34012         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
34013         and then 'int open64(const char *, int, ...);', which means the
34014         declaration for 'open' gets lost if we later '#undef open'.
34015         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
34016         where the compilation reported the non-fatal error "In function
34017         'openat_proc_name' ... warning: implicit declaration of function
34018         'open'".  In this case the error is relatively harmless, but in
34019         other cases it might not be so minor.
34021 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34023         xalloc: don't potentially generate invalid code for xmemdup calls
34024         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
34025         this function can initialize the newly-allocated storage with new
34026         pointers, which means this function is not malloc-like.  See:
34027         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
34029 2014-05-19  Pádraig Brady  <P@draigBrady.com>
34031         getlogin_r-tests: avoid false failure under sudo/ssh etc.
34032         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
34033         changes from commit 97249cf29 to not depend on environment variables.
34035 2014-05-18  Pádraig Brady  <P@draigBrady.com>
34037         getlogin-tests: avoid false failure under cron
34038         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
34039         since that's not what's under test.  Centos 6 was seen to return
34040         EINVAL for ttyname() when run from cron.
34042 2014-05-16  Jim Meyering  <meyering@fb.com>
34044         mbrtowc.m4: fix a comment typo
34045         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
34046         emitted documentation string.
34048 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34050         mbrlen, mbrtowc: fix bug with empty input
34051         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
34052         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
34053         so this is mainly for documentation.
34054         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
34055         (gl_FUNC_MBRTOWC): Use it.
34056         * tests/test-mbrtowc.c (main): Test for the bug.
34058 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34060         doc: document mbrtowc and mbrlen problem with empty input
34061         * doc/posix-functions/mbrlen.texi (mbrlen):
34062         * doc/posix-functions/mbrtowc.texi (mbrtowc):
34063         Document portability problem when the input string is empty.  See:
34064         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
34066         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
34067         Problem reported by Eli Zaretskii in:
34068         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
34069         * doc/posix-functions/execl.texi (execl):
34070         * doc/posix-functions/execle.texi (execle):
34071         * doc/posix-functions/execlp.texi (execlp):
34072         * doc/posix-functions/execv.texi (execv):
34073         * doc/posix-functions/execve.texi (execve):
34074         * doc/posix-functions/execvp.texi (execvp):
34075         Mention spawn+exit problem on non-Cygwin Windows platforms.
34077 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
34079         getlogin-tests: avoid false failure under sudo/ssh etc.
34080         * modules/getlogin-tests (configure.ac): Check for ttyname().
34081         * tests/test-getlogin.c (main): Don't depend on environment variables
34082         to correlate with getlogin(), since sudo and ssh etc. can tamper
34083         with the LOGNAME and USER env vars.  Instead lookup the name from
34084         the uid associated with the stdin tty.
34086 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34088         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
34089         These were found when building the latest grep snapshot on IRIX 6.5.
34090         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
34091         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
34092         never used later.
34093         * lib/quotearg.c (quoting_options_from_style):
34094         * lib/xstrtol.c (__xstrtol):
34095         Use enum instead of 0, to pacify IRIX 6.5 cc.
34097 2014-04-18  Pádraig Brady  <P@draigBrady.com>
34099         gitlog-to-changelog: revert inclusion of git-log-fix file
34100         * build-aux/git-log-fix: Delete dummy file.
34101         * modules/gitlog-to-changelog: Don't reference (overwrite)
34102         the project specific git-log-fix file.
34104 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
34106         maint.mk: Relax the copyright check to cater for non FSF projects
34107         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
34108         to not require the "Free" suffix after the copyright years.
34110 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
34112         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
34113         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
34114         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
34115         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
34116         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
34118 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
34120         exclude: port to strict C99
34121         Strict C does not allow converting a function pointer to void *
34122         and vice versa.  Pass a pointer to a function pointer instead.
34123         * lib/exclude.c (add_exclude_file):
34124         Pass the address of the function pointer.
34125         (call_addfn): And deference the address here, to match.
34127 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34129         regex: do not depend on malloc-gnu
34130         * modules/regex (Depends-on): Remove malloc-gnu.
34131         It's no longer needed, because of the 2012-12-29 patch
34132         "regex: port to hosts where malloc (0) == NULL".
34133         Reported by Nathan Kennedy in:
34134         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
34136 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
34138         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
34139         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
34140         * doc/posix-functions/expl.texi: Mention the workaround.
34142 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34144         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
34145         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
34146         size to be zero even when the pointer is nonnull.  This
34147         accommodates the use case where P is malloc (0) and *PN is 0 on a
34148         host where malloc (0) yields nonnull.
34150 2014-04-09  Eric Blake  <eblake@redhat.com>
34152         fts: avoid unnecessary strlen calls
34153         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
34155 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34157         fts: avoid unnecessary strlen calls
34158         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
34159         when that can be faster than strlen.
34161 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34163         fts: avoid unnecessary strlen calls
34164         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
34165         (fts_build): Store the length of the dp->d_name entry in a local variable
34166         instead of calling strlen() several times via the above, removed macro.
34167         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
34168         run by ~4%, yet this reduces the execution time by about a third if run
34169         via "ltrace -c rm -rf some-dir".
34171 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34173         obstack: Remove ancient NeXTSTEP gcc support conditional
34174         This change will ease merging with glibc.  The "#if ... __NEXT__"
34175         causes a warning with -Wundef which glibc now enables by default.
34176         Problem reported by Will Newton in
34177         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
34178         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
34179         so go with that.
34180         * lib/obstack.h (__extension__):
34182 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34184         obstack: merge with glibc changes
34185         * lib/obstack.c, lib/obstack.h: Merge from glibc.
34186         This is mostly indenting and commentary changes.
34187         Instances of 'register' have been removed.
34189 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34191         strftime: wrap macros in "do {...} while(0)"
34192         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
34193         this macro in "do {...} while(0)" to prevent false use as a
34194         single statement, e.g., in an un-braced "{}" else-block.
34195         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
34196         (strftime_case_): Remove 'else' after 'goto' - which was the
34197         only non-fatal, un-braced use of one of the above macros.
34198         Spotted by coverity (NESTING_INDENT_MISMATCH).
34200 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34202         modechange: avoid memory leaks for invalid octal modes
34203         * lib/modechange.c (mode_compile): During the parsing of
34204         notations like +40, free the 'mc' buffer for invalid mode
34205         strings like +17777 (greater than the maximum octal mode),
34206         =18 (bad octal mode characters) or u=1 ('affected' with
34207         octal modes).
34208         Reproducer, e.g.:
34209             $ valgrind --leak-check=full chmod +17777 file
34210         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
34211         add notations +40, 00440, etc.".
34212         Spotted by coverity (RESOURCE_LEAK).
34214 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
34216         gitlog-to-changelog: include a dummy git-log-fix file
34217         Problem reported by Nathan Stratton Treadway in:
34218         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
34219         * build-aux/git-log-fix: New file.
34221 2014-03-13  Jim Meyering  <meyering@fb.com>
34223         gitlog-to-changelog: also include the file, git-log-fix
34224         * modules/gitlog-to-changelog (Files): Add git-log-fix.
34225         Reported by Assaf Gordon.
34227 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
34229         regex: port to OS X 10.8.5 en_US.UTF-8 locale
34230         This fixes a bug when ignoring case and when comparing the
34231         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
34232         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
34233         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
34234         titlecase letter is neither lowercase nor uppercase, but
34235         uppercasing the titlecase letter (via towupper) yields the
34236         uppercase letter, so the two letters should match when ignoring case.
34237         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
34238         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
34239         Don't test whether a character is lowercase before uppercasing it.
34241 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
34243         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
34244         This is basically one of the options Bruno Haible proposed in:
34245         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
34246         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
34247         * lib/stdint.in.h: Use it.
34248         * modules/stdint (Depends-on): Add sys_types.
34250 2014-02-26  Pádraig Brady  <P@draigBrady.com>
34252         parse-datetime: fix crash or infloop in TZ="" parsing
34253         * lib/parse-datetime.y (parse_datetime): Break out of the
34254         TZ="" parsing loop once the second significant " is found.
34255         Also skip over any subsequent whitespace to be consistent
34256         with the non TZ= case.
34257         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
34259 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34261         savedir: new symbol for fast-read version
34262         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
34263         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
34264         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
34265         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
34267 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
34269         unistd: port readlink to Mac OS X 10.3.9
34270         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
34271         around self-include problem in Mac OS X 10.3.9 when combined with
34272         readlink module.  Problem reported by Klaus Zietler in
34273         <http://bugs.gnu.org/16825>.
34275 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
34277         diffseq: remove TOO_EXPENSIVE heuristic
34278         Problem with diffutils reported by Vincent Lefevre in
34279         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
34280         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
34281         Although appropriate for circa-1993 hardware, these days the heuristic
34282         seems to be more trouble than it's worth.
34283         * lib/diffseq.h: Modernize citations.
34284         (struct context): Remove member too_expensive.
34285         All uses changed.
34286         (struct partition): Remove members lo_minimal, hi_minimal.
34287         All uses changed.
34288         (diag, compareseq): Remove arg find_minimal.  All uses changed.
34289         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
34290         1993 to make 'diff' run faster (but not as well) on large inputs.
34291         These days, computers are fast enough that it's typically better
34292         to run slower but more accurately.
34293         * lib/fstrcmp.c: Remove duplicate comment.
34294         * lib/fstrcmp.c (strcmp_bounded):
34295         * lib/git-merge-changelog.c (compute_differences):
34296         Adjust to diffseq.h changes.
34297         * NEWS: Document the change.
34299         savedir: simplify by using stpcpy
34300         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
34301         (streamsavedir): Use stpcpy instead.
34302         * modules/savedir (Depends-on): Add stpcpy.
34304 2014-02-21  Pádraig Brady  <P@draigBrady.com>
34306         spawn: fix link error on uclibc
34307         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
34308         to incorporate -lrt if needed (on uclibc for example).
34309         * modules/posix_spawn: Reference the substituted LIB.
34311 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
34312         timer: fix uClibc detection of threading
34313         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
34314         enabled in uClibc.
34316 2014-02-21  Eric Blake  <eblake@redhat.com>
34318         maintainer-makefiles: provide AC_PROG_SED for older autoconf
34319         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
34321 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34323         exclude: add support for posix regexps
34325         This commit adds support for POSIX extended regular expressions
34326         and fixes a long-standing memory leak (pattern buffer was never
34327         freed).  It also implements a new interface function to read
34328         exclude patterns from a FILE, which passes an additional parameter
34329         to its callback function, thereby allowing to preserve its state
34330         between invocations.
34332         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
34333         (pattern_buffer): New struct.
34334         (exclude): New member patbuf.
34335         (exclude_add_pattern_buffer): New function.
34336         (free_exclude_segment): Free regexps.
34337         (free_exclude): Free allocated pattern buffers.
34338         (exclude_patopts): New function.
34339         (file_pattern_matches): Use exclude_patopts.
34340         (add_exclude): support regexps.
34341         (add_exclude_fp): New function.
34342         (add_exclude_file): Rewrite using add_exclude_fp.
34343         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34344         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34345         (add_exclude_fp)
34346         (add_exclude_file): Rewrite using add_exclude_fp.
34347         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34348         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34349         (add_exclude_fp)
34350         (exclude_add_pattern_buffer): New prototypes.
34351         * modules/exclude: Depends on regex and filename.
34353 2014-02-20  Eric Blake  <eblake@redhat.com>
34355         maintainer-makefiles: use $(SED) for syntax check
34356         * modules/maintainer-makefile (configure.ac): Check for sane sed.
34357         * top/maint.mk: Change sed to $(SED).
34359 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
34360             Paul Eggert  <eggert@cs.ucla.edu>
34362         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
34363         Patch based on an idea by Dick Streefland in
34364         <https://savannah.gnu.org/patch/?7892>.
34365         * NEWS: Document this.
34366         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
34367         (direntry_t, comparison_function): New types.
34368         (direntry_cmp_name): New function.
34369         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
34370         (streamsavedir, savedir): New arg OPTION.
34371         (streamsavedir): Simplify memory allocation.
34372         (fdsavedir): Remove.
34373         * lib/savedir.h (enum savedir_option): New type.
34374         (streamsavedir, savedir): New arg OPTION.
34375         (fdsavedir): Remove.
34377 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34379         file-type: add support for doors and other less-common file types
34380         Problem with S_ISDOOR reported by Rich Burridge.
34381         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
34382         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
34383         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
34385 2014-01-23  Eric Blake  <eblake@redhat.com>
34387         pthread: work around winpthread header pollution on mingw
34388         * lib/time.in.h: Move pthread workarounds...
34389         * lib/pthread.in.h: ...here.
34390         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
34391         detect macro pollution on mingw.
34392         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
34394 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34396         qacl: check for fchmod
34397         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
34398         and qset-acl.c both use HAVE_FCHMOD.
34400 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34402         fdopen-tests: port to Tru64
34403         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
34404         descriptor that is not open, as POSIX doesn't specify the
34405         resulting behavior and the test does not work on Tru64.
34406         Problem reported by Steven M. Schweda in:
34407         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
34409         stdalign: port to HP-UX compilers
34410         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
34411         if __HP_cc or __HP_aCC are nonzero.
34413 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34415         strtoimax: port to platforms lacking 'long long'
34416         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
34417         check whether strtoll is declared, which causes the C file to
34418         wrongly report an error.  Problem reported by Steven M. Schweda in:
34419         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
34420         * lib/strtoimax.c (strtoull):
34421         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34422         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34424 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34426         relocatable-perl: fix texi syntax
34427         * doc/relocatable-maint.texi: Escape braces.
34429 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34431         relocatable-perl: like relocatable-script, but for Perl scripts
34432         * build-aux/relocatable.pl.in: Add.
34433         * doc/relocatable-maint.texi: Add documentation.
34434         * modules/relocatable-perl: Add.
34436 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34438         tests: fix export bug in previous patch
34439         Problem reported by Jim Meyering.
34440         * tests/init.sh (re_shell): New var, which is exported instead of
34441         re_shell_.
34443         tests: simplify porting to Solaris 10 /bin/sh
34444         Some test cases in 'grep' need a shell that groks '$(';
34445         export re_shell_ for their benefit.  Problem reported for 'grep'
34446         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34447         * tests/init.sh (re_shell_): Export if it's used.
34449 2014-01-06  Eric Blake  <eblake@redhat.com>
34451         md5, sha1, sha256, sha512: support older autoconf
34452         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34453         for autoconf < 2.63b.
34455         include_next: port to autoconf 2.63
34456         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34458 2014-01-04  Jim Meyering  <meyering@fb.com>
34460         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34461         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34462         so that "make sc_maint" will ding anyone who puts non-ascii
34463         in any of gnulib's .texi files.
34465 2014-01-03  Jim Meyering  <meyering@fb.com>
34467         freadable, fwritable, fwriting: declare with the "pure" attribute
34468         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34469         * lib/fwritable.h (fwritable): Likewise.
34470         * lib/fwriting.h (fwriting): Likewise.
34471         Suggested by Bruno Haible.
34473         maint.mk: adapt openat.h-include-without-use test
34474         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34475         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34476         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34477         With this change, running "make sc_maint" in gnulib's top-level
34478         directory now passes for me.
34480 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34482         doc: use ASCII in .texi files where UTF-8 isn't needed
34483         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34484         * doc/posix-functions/setkey.texi, doc/regex.texi:
34485         Use ASCII input, not UTF-8.
34487 2014-01-02  Jim Meyering  <meyering@fb.com>
34489         freading: declare with the "pure" attribute
34490         * lib/freading.h (freading): Declare with the "pure" attribute.
34492         manywarnings: remove -Wmudflap
34493         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34494         it is no longer supported in gcc-4.9-to-be.
34496 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34498         relocatable-script: remove unused code
34499         Problem reported by Reuben Thomas in:
34500         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34501         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34503 2014-01-01  Jim Meyering  <meyering@fb.com>
34505         maint: fix public-submodule-commit to work with newer git
34506         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34507         We were over-quoting the test arguments, and somewhere prior to
34508         version 1.8.5.2.229, git stopped removing those excess quotes,
34509         which made the test fail, since the unexpanded strings would
34510         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34511         command wasn't even being run.
34513 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34515         doc: update main copyright year
34516         * doc/gnulib.texi: Update copyright date.
34518 2014-01-01  Eric Blake  <eblake@redhat.com>
34520         version-etc: new year
34521         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34522         * all files: run 'make update-copyright'
34524 2013-12-24  Eric Blake  <eblake@redhat.com>
34526         passfd: give nicer error for recvfd at eof
34527         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34528         * tests/test-passfd.c (main): Enhance test to cover this.
34530 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34532         gettimeofday: port recent C++ fix to Emacs
34533         Without this further patch, Emacs won't build due to
34534         the portcheck failing.  Also, this simplifies the patch a bit.
34535         * lib/time.in.h (localtime, gmtime): Don't replace unless
34536         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34537         * lib/time.in.h (localtime, gmtime):
34538         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34539         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34540         * modules/time (time.h):
34541         Don't worry about the possibility of localtime and gmtime
34542         being absent; they're present in all C libraries we know about.
34543         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34544         Don't assume sys_time is present and has been initialized.
34545         Instead, use a hack that should work even if it hasn't been.
34546         Don't use a portcheck for gmtime or localtime; this supports
34547         the hack.
34548         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34550 2013-12-17  John W. Eaton  <jwe@gnu.org>
34552         gettimeofday: fix C++ crosscompilation
34554         Never replace gmtime and localtime by macros when compiling with
34555         C++, this prevents <ctime> from being included.
34557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34558         define gmtime and localtime as preprocessor macros.  Instead
34559         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34560         REPLACE_LOCALTIME substitutions.
34561         * lib/time.in.h: Declare gmtime and localtime when needed.
34562         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34563         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34564         * modules/time: Depend on gettimeofday, and substitute the above
34565         variables in time.h.
34567 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34569         qacl: port to Windows better
34570         See Eli Zaretskii in
34571         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34572         * lib/file-has-acl.c (acl_access_nontrivial):
34573         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34574         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34576 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34578         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34579         * lib/gl_openssl.h: Cast void pointers to a specific type.
34581 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34583         open-tests: fix build failure with -Werror=old-style-declaration
34584         * tests/test-open.h: Reorder the inline to avoid the issue.
34586 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34588         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34589         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34590         init time, so that if early checks find crypto routines,
34591         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34592         avoiding link failures.
34594 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34596         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34597         This provides a new way to specify the default for
34598         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34599         Emacs uses this, as well as the old way.
34600         This attempts to implement a suggestion by Pádraig Brady in
34601         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34602         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34603         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34605         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34606         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34607         Add support for a new option, --with-openssl=auto, which causes
34608         the library to be used if available and silently ignored if not.
34609         Add support to allow configure.ac to specify its own
34610         default, by setting with_openssl_default before invoking gl_INIT.
34612 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34614         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34615         Problem reported by Daiki Ueno in:
34616         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34617         * tests/test-open.h (__always_inline):
34618         New macro, if not already defined.
34619         (test_open): Use it.
34621 2013-12-04  Eric Blake  <eblake@redhat.com>
34623         include_next: minimize code duplication
34624         * modules/include_next (Depends-on): Add absolute-header.
34625         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34626         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34628 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34630         getcwd: fix compile error in configure check
34631         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34633 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34635         regex: suppress core dumps from detection code
34636         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34637         to suppress core dumps that may well occur on glibc systems.
34638         These core dumps might not be cleaned up automatically, or could
34639         trigger some system core dump handling logic.
34641 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34643         md5, sha1, sha256, sha512: support mandating use of openssl
34644         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34645         description, to list the now 3 separate options.  also don't
34646         mention the default=no, since this is implicit given the option
34647         is described as --with-openssl rather than --without-openssl.
34648         If projects change the default they're free to document that.
34649         with --with-openssl[=yes] we now error out when the specified
34650         hash algorithm is not available in libcrypto.
34652 2013-12-03  Ivailo  <xakepa10@gmail.com>
34654         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34655         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34656         -Wformat-nonliteral checks, as these edge cases are part of the test.
34658 2013-12-03  Eric Blake  <eblake@redhat.com>
34660         regex: avoid glibc deadlock during configure
34661         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34662         glibc bug 15078 in turn triggers bug 16159.
34663         Reported by Michal Privoznik.
34665 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34667         md5, sha1, sha256, sha512: use openssl routines if available.
34668         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34669         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34670         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34671         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34672         in the standard system location.
34673         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34674         * m4/sha256.m4: Likewise with SHA256.
34675         * m4/sha512.m4: Likewise with SHA512.
34676         * m4/md5.m4: Likewise with MD5.
34677         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34678         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34679         * lib/sha256.h: Likewise with SHA256.
34680         * lib/sha512.h: Likewise with SHA512.
34681         * lib/md5.h: Likewise with MD5.
34682         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34683         * lib/sha256.c: Likewise with SHA256.
34684         * lib/sha512.c: Likewise with SHA512.
34685         * lib/md5.c: Likewise with MD5.
34686         * modules/crypto/sha1 (Link:): Add the new optional lib.
34687         (Depends-on:): Add dependency on extern-inline.
34688         * modules/crypto/sha256: Likewise.
34689         * modules/crypto/sha512: Likewise.
34690         * modules/crypto/md5: Likewise.
34691         * modules/crypto/sha1-tests: Reference the lib here too.
34692         * modules/crypto/md5-tests: Likewise.
34693         * modules/crypto/gc-des-tests: Likewise.
34694         * modules/crypto/gc-hmac-md5-tests: Likewise.
34695         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34696         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34697         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34698         * modules/crypto/gc-md5-tests: Likewise.
34699         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34700         * modules/crypto/gc-sha1-tests: Likewise.
34701         * modules/crypto/gc-tests: Likewise.
34702         * modules/crypto/hmac-md5-tests: Likewise.
34703         * modules/crypto/hmac-sha1-tests: Likewise.
34704         * modules/crypto/hmac-sha256-tests: Likewise.
34705         * modules/crypto/hmac-sha512-tests: Likewise.
34707 2013-11-29  RV1971  <rv1971@web.de>
34709         base64: (trivial) fix compilation regression on some compilers
34710         * lib/base64.c: Don't return the void function,
34711         instead split to a separate return statement.
34713 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34715         ignore-value: revert previous code change
34716         * lib/ignore-value.h (ignore_value): Use __extension__ and
34717         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34718         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34719         Change the comment to try to explain this better.
34721 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34723         selinux-h: improve stub types and add more stub functions
34725         * lib/se-selinux.in.h: Change security_context_t to a typedef
34726         rather than a define, as it's a pointer type and so is better
34727         as a typedef to avoid issues declaring multiple variables
34728         with the comma operator.  Also add stub for string_to_security_class().
34729         * lib/se-context.in.h: Add stub functions for
34730         context_{type,range,role,user}_get().
34732 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34734         ignore-value: prefer GCC version back through 2.0
34735         The code didn't match the comments, so I did a bit of software
34736         archaeology.  GCC 2.0 seems to support __extension__ and
34737         __typeof__, so fix both code and comments to use 2.0.
34738         * lib/ignore-value.h (ignore_value): Use __extension__ and
34739         __typeof__ for GCC 2.0 through 3.3, too.
34741 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34743         pty: Activate the signature wrapper of forkpty.
34744         The intended preprocessor macro HAVE_FORKPTY is
34745         never defined, yet `lib/forkpty.c' depends on it.
34747         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34748         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34749         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34751 2013-11-18  Jim Meyering  <meyering@fb.com>
34752         and Paul Eggert  <eggert@cs.ucla.edu>
34754         quotearg: don't attempt to store 1 << 31 into an "int"
34755         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34756         gcc's new -fsanitize=undefined and running its tests triggered some
34757         new test failures due to undefined behavior, all with this diagnostic:
34758           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34759             cannot be represented in type int
34760         Rather than shifting "1" left to form a mask, shift the bits right and
34761         simply use "1" as the mask.
34763 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34765         error: depend on stdio
34766         Problem reported by Nikos Mavrogiannopoulos in
34767         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34768         * modules/error (Depends-on): Add stdio.
34770 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34772         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34773         wording.
34774         Reported by Reuben Thomas <rrt@sc3d.org>.
34776 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34778         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34779         New function and macro, to work around _DARWIN_C_SOURCE problem.
34780         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34782 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34784         base64: provide a fast path for encoding well sized buffers
34785         Avoid conditionals in the base64 encoding loop,
34786         which was seen to give 60% better throughput.
34787         * lib/base64.c (base64_encode_fast): A new function to be called
34788         when we don't want to NUL terminate, and we have enough space
34789         in the output to encode the given input.
34790         (base64_encode): Call the _fast() version when appropriate.
34791         Also remove a redundant mask with 0x3F on the first encoded byte.
34793 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34795         extern-inline: port better to OS X 10.9
34796         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34797         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34798         OS X 10.9, except for g++ where the bug is still present.
34799         See <http://trac.macports.org/ticket/41033>.
34801 2013-11-08  Eric Blake  <eblake@redhat.com>
34803         fpending: fix regression on DragonFly BSD
34804         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34805         * lib/fpending.h (__fpending): Don't declare twice.
34806         Reported by GW in
34807         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34809 2013-11-05  Jim Meyering  <meyering@fb.com>
34811         hash: relax license to LGPLv2+, for libguestfs
34812         * modules/hash (License): Change from GPL to LGPLv2+.
34814 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34816         intprops: port to Oracle Studio c99
34817         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34818         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34820 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34822         obstack: pacify HP C
34823         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34824         warning "conversion from pointer to smaller integer" from HP
34825         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34826         C89 or later nowadays, so cast to void instead of int.  Privately
34827         reported by H.Merijn Brand.  Also, change header to match glibc's,
34828         to make checking against glibc easier.
34830 2013-10-29  Jim Meyering  <meyering@fb.com>
34832         maint.mk: prefer gpgv2 over gpgv
34833         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34834         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34835         Reported by Gary Vaughan.
34837 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34839         isnan: port to VAX
34840         Reported by John Klos for NetBSD-5/VAX in
34841         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34842         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34843         (FUNC): Use it.
34845 2013-10-28  Jim Meyering  <meyering@fb.com>
34847         gnulib-tool: protect against CDPATH
34848         * gnulib-tool: Many "cd" built-in functions print a directory name
34849         to stdout when CDPATH is set, e.g.,
34850           $ bash -c 'CDPATH=/; cd tmp'
34851           /tmp
34852         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34854         maint.mk: restore functionality removed by recent change...
34855         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34856         the context of a shallow-cloned gnulib repository: "git describe"
34857         would fail in such a directory.  However, that change made it so
34858         the reported gnulib revision no longer includes the version number
34859         or a commit count, even when run from a full clone.
34860         * top/maint.mk (gnulib-version): Use the full "git describe"
34861         output when possible, e.g., the form above, rather than the
34862         abbreviated, no-tag, no-commit-count string, and fall back to
34863         using a 10-byte hash, rather than the default minimal-length
34864         hash prefix, since while the minimal-length one may be fine today,
34865         it is likely not to be unique for very long.
34867 2013-10-26  Jim Meyering  <meyering@fb.com>
34869         maint.mk: fix "release" target to build _version
34870         This fixes a bug in README-release whereby following the outlined
34871         steps, one would publish a tarball whose programs would report
34872         --version output not consistent with the package version number.
34873         This bug caused grep-2.15 to produce a grep program whose
34874         --version option made it print 2.14.56-1e3d rather than 2.15.
34875         * top/maint.mk (release): Making this target build "_version"
34876         ensures that the new version number is reflected in configure.
34878 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34880         install-reloc: Support multi-binary installation.
34881         * build-aux/install-reloc: Support installing multiple programs in
34882         one invocation, as done by Automake starting with commit
34883         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34884         Haible <bruno@clisp.org>, archived at
34885         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34886         Reported by Sylvain <beuc@gnu.org>.
34888 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34890         selinux-h: Really build without selinux when library is missing.
34891         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34892         continue without selinux, as already told in the warning message.
34894 2013-10-21  Jim Meyering  <meyering@fb.com>
34896         regex: also remove dependency on HAVE_WCSCOLL
34897         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34899 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34901         xfreopen: Fix typo. s/frepoen/freopen/
34902         * lib/xfreopen.c: Fix description.
34903         * modules/xfreopen: Likewise.
34905 2013-10-21  Jim Meyering  <meyering@fb.com>
34907         regex: don't depend on wcscoll
34908         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34909         It is no longer used.
34911 2013-10-20  Jim Meyering  <meyering@fb.com>
34913         error: add the printf attribute to a static function
34914         * lib/error.c (error_tail): Add the printf attribute, to placate
34915         gcc's -Werror=suggest-attribute=format option.
34917 2013-09-30  Jim Meyering  <meyering@fb.com>
34919         fpending, obstack, strerror-override: use pure+const function attrs
34920         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34921         * lib/obstack.c (_obstack_allocated_p): Likewise.
34922         * lib/obstack.h (_obstack_memory_used): Likewise.
34923         (_obstack_memory_used): Likewise.
34924         * lib/strerror-override.h (strerror_override): Declare with
34925         the "const" attribute.
34927 2013-10-18  Eric Blake  <eblake@redhat.com>
34929         extern-inline: make safe for -Wundef usage
34930         Reported by Vladimir 'phcoder' Serbinenko in
34931         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34932         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34934 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34936         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34937         Problem reported by Daniel Richard G. in
34938         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34939         * doc/posix-functions/mkfifo.texi (mkfifo):
34940         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34941         * doc/posix-functions/mknod.texi (mknod):
34942         * doc/posix-functions/mknodat.texi (mknodat):
34943         Document the HP-UX 11.11 bug.
34944         * tests/test-mkfifo.h (test_mkfifo):
34945         Allow the HP-UX 11.11 bug.
34947 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34949         acl: allow cross-compilation to Gentoo
34950         Problem reported by Gabriel Marcano in
34951         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34952         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34953         test only whether it links.
34955 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34957         mgetgroups: remove dependency on realloc-gnu
34958         The dependency violates the comment in realloc-gnu, which
34959         says that tests can't depend on realloc-gnu; some tests depend
34960         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34961         Problem reported by Daniel Richard G. in
34962         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34963         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34964         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34965         not realloc-gnu.
34967 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34969         regex-tests: port to HP-UX 11.11
34970         Problem reported by Daniel Richard G. in
34971         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34972         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34974 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34976         verify: document some 'assume' pitfalls
34977         * doc/verify.texi (Compile-time Assertions):
34978         Mention that 'assume (E)' can sometimes slow things down.
34979         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34981 2013-10-10  Eric Blake  <eblake@redhat.com>
34983         strtoumax: fix typo in previous commit.
34984         * modules/strtoumax (Depends-on): Fix typo.
34985         * modules/strtoimax (Depends-on): Likewise.
34987 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34989         strtoumax: port to Solaris 8
34990         This problem was introduced in the recent HP-UX patch.
34991         Reported by Tom G. Christensen in
34992         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34993         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34994         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34996 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34998         strtoimax, strtoumax: port to HP-UX 11.11
34999         Problem reported by Daniel Richard G. in
35000         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
35001         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
35002         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
35003         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
35004         REPLACE_STRTOUMAX.
35005         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
35006         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
35007         Replace the function if defined as a macro but not as a function.
35008         * modules/inttypes-incomplete (inttypes.h): Substitute
35009         REPLACE_STRTOUMAX.
35010         * modules/strtoumax (configure.ac): Replace strtoumax if
35011         REPLACE_STRTOUMAX.
35013 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35015         strtoimax: port to HP-UX 11.11
35016         Problem reported by Daniel Richard G.
35017         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
35018         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
35019         they might clash with inttypes.h.
35021 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35023         New module 'count-trailing-zeros'.
35024         * MODULES.html.sh: Mention it.
35025         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
35026         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
35027         * modules/count-trailing-zeros-tests:
35028         * tests/test-count-trailing-zeros.c:
35029         New files.
35031         count-leading-zeros: port to MSC; support types wider than 64 bits
35032         The ideas behind the MSC port are stolen from Emacs.
35033         * lib/count-leading-zeros.h:
35034         Don't include verify.h: it's no longer needed, as types wider than
35035         64 bits are now supported.
35036         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
35037         performance with MSC.  All uses changed.  Do not assume that TYPE
35038         has at most 64 bits.
35039         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
35040         All uses changed.  Fold the subtraction from 31 into the table.
35042         count-one-bits: port to MSC; support types wider than 64 bits
35043         The ideas behind the MSC port are stolen from Emacs.
35044         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
35045         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
35046         Don't include verify.h: it's no longer needed, as types wider than
35047         64 bits are now supported.
35048         (COUNT_ONE_BITS_GENERIC): New macro.
35049         (popcount_supported) [_MSC_VER]: New inline function.
35050         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
35051         performance with MSC.  All uses changed.  Do not assume that TYPE
35052         has at most 64 bits.
35053         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
35055 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
35057         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
35058         * lib/mountlist.c (read_file_system_list): fix leak of directory
35059         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
35061 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35063         tests: improve diagnostic when an assertion fails
35064         * tests/macros.h (ASSERT): Report the assertion that failed.
35066 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35068         verify: new macro 'assume'
35069         This is taken from Emacs, and should be generally useful.
35070         * doc/verify.texi (assume): Document it.
35071         * lib/verify.h (assume): New macro.
35072         (__has_builtin): Expand to 0 if not defined.
35074 2013-09-26  Eric Blake  <eblake@redhat.com>
35076         dup2, dup3: work around another cygwin crasher
35077         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
35078         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
35079         * tests/test-dup2.c (main): Likewise.
35080         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
35081         * lib/dup3.c (dup3): Likewise.
35082         * doc/posix-functions/dup2.texi (dup2): Document it.
35083         * doc/glibc-functions/dup3.texi (dup3): Likewise.
35085         getdtablesize: work around cygwin issue
35086         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
35087         * modules/getdtablesize (configure.ac): Build replacement.
35088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
35089         * modules/unistd (Makefile.am): Expose the witness.
35090         * lib/unistd.in.h (getdtablesize): Declare replacement.
35091         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
35092         * tests/test-getdtablesize.c (main): Test it.
35093         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
35095 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
35097         pmccabe2html: escaping of special characters
35098         Escape all '<', '>', and '&' in HTML output.
35099         * build-aux/pmccabe2html (html_fnc): Call gsub()
35100         instead of sub() to capture all '<', '>', and '&'.
35101         Neither of '<' and '>' is special in a regexp,
35102         so first arguments to gsub() are corrected. Also,
35103         in replacement strings, ampersand must be escaped.
35104         Finally, '&' must be handled first, then '<' and '>'.
35106 2013-09-24  Eric Blake  <eblake@redhat.com>
35108         manywarnings: enable nicer gcc warning messages
35109         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
35110         some -f options for optimal warnings.
35112 2013-09-21  Jim Meyering  <meyering@fb.com>
35114         timespec: use the new TIMESPEC_RESOLUTION in a few more places
35115         * lib/timespec-add.c (timespec_add): Also replace 999999999
35116         with TIMESPEC_RESOLUTION - 1.
35117         * lib/timespec-sub.c (timespec_sub): Likewise.
35119 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35121         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
35122         Problem reported by Dagobert Michelsen via Eric Blake in
35123         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
35124         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
35125         not AC_COMPILE_IFELSE.
35127 2013-09-23  Eric Blake  <eblake@redhat.com>
35129         configmake: support new --runstatedir option
35130         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
35131         even if autoconf was too old to provide the command line option.
35132         * modules/configmake (Makefile.am): Propagate it to .h file.
35134 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35136         ctype, string: depend on extern-inline
35137         This is needed to complete the recent OS X fixes.
35138         Also, fix related documentation as suggested by Eric Blake.
35139         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35140         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
35141         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
35142         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
35143         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
35144         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
35145         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
35146         * doc/posix-functions/toupper.texi:
35147         List the 'ctype' gnulib module.
35148         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
35149         * doc/posix-functions/strncpy.texi:
35150         List the 'string' gnulib module.
35151         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
35152         Add string.
35153         * modules/ctype, modules/string (Depends-on): Add extern-inline.
35155 2013-09-19  Pádraig Brady  <P@draigBrady.com>
35157         userspec: support optional parameters to parse_user_spec()
35158         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
35159         then avoid group processing and treat the full spec as a user.
35160         (parse_with_separator): Allow the USERNAME and GROUPNAME to
35161         be optional params (NULL), in which case they're ignored.
35163 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
35165         timespec: new function make_timespec, and new constants
35166         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
35167         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
35168         (make_timespec): New function.
35169         * lib/dtotimespec.c (dtotimespec):
35170         * lib/timespec-add.c (timespec_add):
35171         * lib/timespec-sub.c (timespec_sub):
35172         * lib/utimens.c (validate_timespec):
35173         * lib/utimensat.c (rpl_utimensat):
35174         Use these new constants and functions.
35176         stdio: OS X port of putc_unlocked + extern inline
35177         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
35178         * doc/posix-functions/putc_unlocked.texi:
35179         * doc/posix-functions/putchar_unlocked.texi:
35180         Document this portability problem.
35182         signal: OS X port of sigaddset etc. + extern inline
35183         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
35184         (sigismember): #undef on problematic Apple platforms.
35185         * doc/posix-functions/sigaddset.texi:
35186         * doc/posix-functions/sigdelset.texi:
35187         * doc/posix-functions/sigemptyset.texi:
35188         * doc/posix-functions/sigfillset.texi:
35189         * doc/posix-functions/sigismember.texi:
35190         Document this portability problem.
35192         extern-inline: do not always suppress extern inline on OS X
35193         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
35194         extern inline on Apple only if the particular compile-time
35195         configuration is known to have the problem.
35196         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
35197         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
35198         other Gnulib modules.
35200         extern-inline: document fixes for ctype and wctype macros
35201         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35202         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
35203         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
35204         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
35205         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
35206         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
35207         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
35208         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
35209         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
35210         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
35211         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
35212         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
35213         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
35214         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
35215         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
35216         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
35217         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
35218         * doc/posix-functions/strncpy.texi:
35219         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
35220         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
35221         Document that Gnulib fixes portability problems with these
35222         functions on OS X 10.8 and earlier when called from plain inline
35223         or extern inline functions.
35225 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
35227         fflush, freadahead, fseeko: Fix for Android
35228         Suggested by Bruno Haible in:
35229         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
35230         * lib/stdio-impl.h: Use local __sfileext definition.
35232 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
35234         pmccabe2html: Portability to other awk versions.
35235         The functions systime() and strftime() are available
35236         in Gawk only.  Properly close two HTML-tags 'style'
35237         and 'span'.
35238         * build-aux/pmccabe2html (BEGIN): Store timing
35239         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
35240         systime() in HTML_COMMENT.
35241         (html_header): Correctly close tag 'style'.
35242         (END): Replace strftime() by CHRONOS_TIME.  Close
35243         tag 'span' correctly, not as 'div'.
35245 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
35247         getgroups: statement without effect
35248         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
35249         Change equality conditional to expected assignment.
35251 2013-09-09  Eric Blake  <eblake@redhat.com>
35253         glob: fix compilation
35254         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
35256 2013-09-07  Eric Blake  <eblake@redhat.com>
35258         glob: fix build for platforms without __THROW
35259         * lib/glob.in.h (__THROW): Add definition again.
35261 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
35263         regex-quote: fix buffer access out of bounds
35264         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
35265         * lib/regex-quote.c (regex_quote_spec_pcre):
35266         Fix typo that resulted in an out-of-bounds read.
35268 2013-09-04  Eric Blake  <eblake@redhat.com>
35270         glob: avoid -Wattribute warnings on glibc
35271         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
35272         __THROWNL, not __THROW, on static functions.
35273         * lib/glob.in.h (__THROW): Adjust...
35274         (__THROWNL): ...accordingly.
35276 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35278         headers: check that _GL_INLINE_HEADER_BEGIN is defined
35279         Suggested by Bruce Korb in:
35280         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
35281         * doc/extern-inline.texi (extern inline):
35282         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
35283         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
35284         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
35285         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
35286         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
35287         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
35288         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
35289         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35290         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
35291         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
35292         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
35293         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
35294         * lib/xtime.h:
35295         Check that _GL_INLINE_HEADER_BEGIN is defined.
35297 2013-08-29  Pádraig Brady  <P@draigBrady.com>
35299         bootstrap: remove the --version requirement from ancillary tools
35300         * build-aux/bootstrap (check_exists): A new refactored function to
35301         determine if a command exists.
35302         (find_tool): Use the new function which does not require the
35303         --version option to be supported.
35304         (check_versions): Use the new function.
35306 2013-08-26  Simon Josefsson  <simon@josefsson.org>
35308         gc: support HMAC-SHA256 and HMAC-SHA512.
35309         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
35310         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
35311         functions.
35312         (gc_hmac_md5): Use symbolic constant.
35313         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
35314         (gc_hmac_sha256, gc_hmac_sha512): New functions.
35315         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
35316         * m4/sha256.m4: Protect against empty expansion.
35317         * m4/sha512.m4: Likewise.
35318         * lib/hmac-sha256.c: New file.
35319         * lib/hmac-sha512.c: Likewise.
35320         * m4/gc-hmac-sha256.m4: Likewise.
35321         * m4/gc-hmac-sha512.m4: Likewise.
35322         * m4/gc-sha256.m4: Likewise.
35323         * m4/gc-sha512.m4: Likewise.
35324         * modules/crypto/gc-hmac-sha256: Likewise.
35325         * modules/crypto/gc-hmac-sha256-tests: Likewise.
35326         * modules/crypto/gc-hmac-sha512: Likewise.
35327         * modules/crypto/gc-hmac-sha512-tests: Likewise.
35328         * modules/crypto/hmac-sha256: Likewise.
35329         * modules/crypto/hmac-sha256-tests: Likewise.
35330         * modules/crypto/hmac-sha512: Likewise.
35331         * modules/crypto/hmac-sha512-tests: Likewise.
35332         * tests/test-gc-hmac-sha256.c: Likewise.
35333         * tests/test-gc-hmac-sha512.c: Likewise
35334         * tests/test-hmac-sha256.c: Likewise.
35335         * tests/test-hmac-sha512.c: Likewise
35337 2013-08-24  Daiki Ueno  <ueno@gnu.org>
35339         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
35340         of AC_CHECK_DECLS.
35342 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35344         selinux-at: omit unnecessary include
35345         * lib/selinux-at.c: Don't include dosname.h; not needed, since
35346         this source file doesn't use its macros, and subsidiary files that
35347         use the macros already include it.
35349 2013-08-21  Eric Blake  <eblake@redhat.com>
35351         d-ino: avoid false negative on symlink
35352         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
35353         Reported by Stephane Chazelas.
35355 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
35357         bootstrap: port to OpenBSD sed
35358         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
35359         does not interpret `-' as a file argument to mean stdin.
35361 2013-08-15  Eric Blake  <eblake@redhat.com>
35363         warnings: minor optimization
35364         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
35366         warnings: check -Wfoo rather than -Wno-foo
35367         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
35368         -Wno-, test if the compiler recognizes the positive form instead.
35370 2013-08-15  Karl Berry  <karl@gnu.org>
35372         * config/srclist-update: add option "doclicense" to placate
35373         pulling *.texi files from Emacs.  Write terse usage
35374         documentation at the top.
35376 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
35378         xvasprintf-tests: port to GCC with hardening flags
35379         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
35380         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
35381         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
35383 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35385         fpending: port to recent Cygwin change to stdio_ext.h
35386         Reported by LRN in
35387         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
35388         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
35389         just declare __fpending unless it's a macro.
35390         A duplicate decl shouldn't hurt.
35391         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
35392         call compiles and links, instead of separately checking for
35393         decl and lib function.
35394         * modules/fpending (configure-ac):
35395         Adjust to fpending.m4's renaming of shell variable.
35397 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35399         sys_time: port to OpenBSD
35400         * lib/sys_time.in.h: Simply delegate to the system's header
35401         in the BSDish cases as well.  Problem reported by Mike Miller in
35402         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
35403         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
35404         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
35405         wider than time_t.
35407 2013-08-09  Pádraig Brady  <P@draigBrady.com>
35409         bootstrap: support checksum utils having -c but not --status
35410         * build-aux/bootstrap: Only look for sha1sum if updating po files.
35411         Add sha1 to the list of supported checksum utils since it's now
35412         supported through adjustments below.
35413         (update_po_files): Remove the use of --status
35414         in a way that will suppress all error messages, but since this is
35415         only used to minimize updates, it shouldn't cause an issue.
35416         Exit early if there is a problem updating the po file checksums.
35417         (find_tool): Remove the check for --version support as this
35418         is optional as per commit 86186b17.  Don't even check for the
35419         presence of the command as if that is needed, it's supported
35420         through configuring prerequisites in bootstrap.conf.
35421         Prompt that when a tool isn't found, one can define an environment
35422         variable to add to the hardcoded search list.
35424 2013-08-05  Jim Meyering  <meyering@fb.com>
35426         regex: port to non-glibc/lock-using systems
35427         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35428         system with GNULIB_LOCK would fail due to absence of the
35429         included "glthread/lock.h".  This would affect any package
35430         for which the "lock" module is used only by the regex module,
35431         and not explicitly used.
35432         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35433         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35434         Add a dependency on the "lock" module.
35436 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35438         localecharset: make locale_charset thread-safe on Mac OS X
35439         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35440         instead of MB_CUR_MAX.
35442 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35444         gettext: update to version 0.18.3
35445         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35446         require AC_PROG_SED to allow user to specify custom sed command when
35447         generating en@quot PO file.
35449 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35451         bootstrap: use correct source when copying build-aux files
35452         * build-aux/bootstrap (gnulib_extra_files): This variable is
35453         relative to upstream gnulib layout, not downstream.
35455 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35457         tmpdir: fix bug in VMS port
35458         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35459         See Steven M. Schweda in
35460         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35462 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35464         tmpdir: port to VMS, to // != /, and to long dirs
35465         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35466         __secure_getenv, so that we're more like the glibc version.
35467         All uses changed.
35468         (path_search): Don't put slash after directory if __VMS.
35469         Problem reported by Steven M. Schweda in
35470         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35471         Simplify code to add slash; no need for a loop.
35472         Do not remove trailing slash from "//".
35473         Do not assume dlen <= INT_MAX.
35475 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35477         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35478         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35479         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35480         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35482         accept4, dup3, pipe2: port to Cygwin
35483         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35484         * lib/accept4.c (accept4) [O_BINARY]:
35485         * lib/dup3.c (dup3) [O_BINARY]:
35486         * lib/pipe2.c (pipe2) [O_BINARY]:
35487         Use set_binary_mode, not setmode.
35488         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35489         * modules/binary-io (Depends-on): Remove module indicator.
35490         These last two bits undo the previous change to pipe2 and binary-io.
35492 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35494         mountlist: add support for deallocating returned list entries
35495         * lib/mountlist.c (free_mount_entry): A new exported function
35496         to deallocate a mount list entry.
35497         (read_file_system_list): Refactor to use the new deallocation function.
35498         Suggested by Anton Ovchinnikov.
35500 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35502         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35503         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35504         * lib/stdalign.in.h (_Alignas, _Alignof):
35505         Port to FreeBSD 9.1, and to C11 and C++11.
35506         (_Alignas): Also support ICC.
35507         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35508         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35510 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35512         fnmatch: don't goto over declaration
35513         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35514         undefined behavior for goto over a declaration.
35515         Problem reported by Charlie Brown in
35516         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35518         pipe2: decouple from binary-io a bit
35519         This is for Emacs, which needs pipe2 but not binary-io.
35520         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35521         * modules/binary-io (Depends-on): Add module indicator.
35523 2013-07-03  Eric Blake  <eblake@redhat.com>
35525         mgetgroups: relax license to LGPLv2+
35526         * modules/getugroups (License): Change from GPLv3+.
35527         * modules/mgetgroups (License): Likewise.
35528         * modules/getgroups (License): Change from LGPLv3+.
35530         xalloc-oversized: relax license to LGPLv2+
35531         * modules/xalloc-oversized (License): Change from GPLv3+.
35533         nproc: relax license to LGPLv2+
35534         * modules/nproc (License): Change from LGPLv3+.
35536         bootstrap: honor --no-git
35537         * build-aux/bootstrap: Don't even try to use git when user is
35538         pointing to a static checkout.
35540 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35542         ignore-value: port to gcc -pedantic
35543         * lib/ignore-value.h (ignore_value):
35544         Port to gcc -pedantic, by using __extension__.
35545         Reindent as per usual gnulib style nowadays.
35546         Simplify GCC version check.
35548 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35550         extern-inline: port to gcc -std=c89
35551         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35552         Do not use __gnu_inline__ if pedantic and pre-C99.
35554 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35556         doc: document extern-inline
35557         * doc/extern-inline.texi: New file.
35558         * doc/gnulib.texi (alloca-opt): Include it.
35559         * m4/extern-inline.m4: Move some comments to documentation,
35560         and others closer to what they describe.
35562         doc: chatter less
35563         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35564         (updated-stamp): Use it.  This causes 'make' to output just
35565         one file name rather than zillions.
35567         fflush, fseeko: port to musl cross-compiles
35568         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35569         on some implementation that (1) is not known to be buggy,
35570         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35571         cross-compiled to so we can't easily check for lack of
35572         conformance.  This is for cross-compiling to musl.
35573         Reported by Rich Felker in
35574         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35575         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35576         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35577         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35578         Adjust to above change.
35579         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35580         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35581         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35582         known not to work, or unknown.
35584 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35586         msvc-inval: port to mingw-w64
35587         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35588         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35589         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35591 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35593         getcwd-lgpl: port to Tru64
35594         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35595         Problem reported by Steven M. Schweda in
35596         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35598         tests: port large-fd POSIX spawn tests to OS X
35599         Problem reported by Daiki Ueno in
35600         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35601         * tests/test-posix_spawn_file_actions_addclose.c:
35602         * tests/test-posix_spawn_file_actions_adddup2.c:
35603         * tests/test-posix_spawn_file_actions_addopen.c:
35604         Include <limits.h>, for OPEN_MAX, if available.
35605         (big_fd): New static function.
35606         (main): Use it.
35608 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35610         tests/nap.h: use an adaptive delay to avoid ctime update issues
35611         The recent change in nap.h (5191133e) decreased the probability of lost
35612         races to about a third, however such problems could still be observed
35613         in virtual machines and openSUSE's OBS.
35614         Before, nap() detected the needed time once empirically and then used
35615         that delay (together with a small correction multiplier) in further
35616         calls.  This problem has been reported and discussed several times,
35617         including guesses about possible kernel issues:
35618         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35619         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35620         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35621         http://bugs.gnu.org/12820
35622         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35623         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35624         Now, nap() avoids the race alltogether by verifying on a reference
35625         file whether a timestamp difference has happened.
35626         * tests/nap.h (nap_fd): Define file descriptor variable for the
35627         witness file.
35628         (nap_works): Change return value to bool.  Change passing
35629         the old file's status by value instead of by reference as this function
35630         does no longer update that timestamp; rename the function argument from
35631         st to old_st.  Remove the local variables cdiff and mdiff because that
35632         function now returns true/false instead of the precise delay.
35633         (guess_delay): Remove function.
35634         (clear_tmp_file): Add new function to close and unlink the witness file.
35635         (nap): Instead of re-using the delay which has been calculated during
35636         the first call, avoid the race by actually verifying that a timestamp
35637         difference can be observed on the current file system.  Use an adaptive
35638         approach for the delay to minimize execution time.  Assert that the
35639         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35640         = 2^31 - 1 = 2.1s.
35641         Use atexit to call clear_tmp_file when the process terminates.
35643 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35645         sig2str: port to C++
35646         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35647         Reported by Daniel J Sebald in
35648         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35650 2013-05-30  Eric Blake  <eblake@redhat.com>
35652         docs: mention cygwin shortcoming in <sys/un.h>
35653         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35655         vasnprintf: silence mingw compiler warning
35656         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35658 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35660         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35661         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35662         This fixes a porting bug I recently reintroduced in regex, and
35663         some other instances that I discovered while testing the fix.
35664         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35665         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35666         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35667         with an empty argument if this is a pedantic pre-C99 GCC.
35668         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35669         pre-C11 GCC.
35671         regex: adapt to locking regime instead of depending on pthread
35672         Instead of depending on pthread, adapt to whatever thread
35673         modules are in use.  Problem reported by Ludovic Courtès in
35674         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35675         and by Mats Erik Andersson in
35676         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35677         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35678         Support either the 'lock' module, or the 'pthread' module, or
35679         no module.
35680         (lock_lock, lock_unlock): New macros.
35681         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35682         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35683         * modules/regex (Depends-on): Remove pthread.
35685 2013-05-22  Eric Blake  <eblake@redhat.com>
35687         getgroups: document portability issues
35688         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35689         multithread safety.
35690         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35691         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35692         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35693         getugroups.
35694         * doc/posix-functions/getgroups.texi (getgroups): Mention
35695         multithread safety and mgetgroups.
35697 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35699         test-lchown, test-chown: also skip test if chown fails with EPERM
35700         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35701         skip this test, to handle FAT file systems.
35702         * tests/test-chown.h (test_chown): Likewise.
35704 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35706         regex: fix dfa race in multithreaded uses
35707         Problem reported by Ludovic Courtès in
35708         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35709         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35710         New macros.  All uses of __libc_lock_define, __libc_lock_init
35711         changed to use the first two of these.
35712         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35713         non-glibc platforms.
35714         (struct re_dfa_t): Define the lock unconditionally.
35715         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35716         '#ifdef _LIBC"s.
35717         * modules/regex (Depends-on): Add pthread, if we use the
35718         included regex.
35720         * lib/regcomp.c: Do actions that are not needed for glibc,
35721         but may be needed elsewhere.
35722         (regfree, re_compile_internal): Destroy the lock.
35723         (re_compile_internal): Check for lock-initialization failure.
35725         malloca: port to compilers that reject size-zero arrays
35726         This fixes a bug introduced in my previous patch.
35727         * lib/malloca.c (struct preliminary_header): Use an int
35728         rather than a character array of size int; that's simpler.
35729         (struct header): Remove, replacing with ...
35730         (union header): New type.  This avoids the need for declaring a
35731         character array of size zero, which is not allowed on some platforms.
35732         All uses changed.
35734 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35736         parse-datetime, tests: don't use "string" + int
35737         Recent versions of 'clang' complain about C source code that
35738         uses expressions of the form '"string literal" + integer',
35739         I guess on the theory that it's confusing for readers who are
35740         used to C++.  On those grounds I suppose it's OK to make this
35741         minor style change.
35742         * lib/parse-datetime.y (parse_datetime):
35743         * tests/test-fchdir.c (main):
35744         * tests/test-snprintf-posix.h (test_function):
35745         * tests/test-snprintf.c (main):
35746         * tests/test-vasnprintf-posix.c (test_function):
35747         * tests/test-vasnprintf.c (test_function):
35748         * tests/test-vsnprintf.c (main):
35749         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35750         Rewrite '"str" + E' to '&"str"[E]'.
35752 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35754         argmatch: port to C++
35755         * lib/argmatch.h [__cplusplus]: Add extern "C".
35757         argp: typo fix
35758         * lib/argp-help.c: Typo in comment.
35760 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35762         manywarnings: update for GCC 4.8.0
35763         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35764         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35765         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35766         -Wmissing-noreturn, as they are duplicates of other warnings.
35767         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35768         was documented to be flaky in earlier versions of GCC.
35770         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35771         * tests/test-spawn.c (main):
35772         * tests/test-sys_socket.c (main):
35773         * tests/test-sys_wait.c (main):
35774         Don't have a switch value that isn't covered by a case.
35776         getaddrinfo-tests: port --enable-gcc-warnings to clang
35777         * tests/test-getaddrinfo.c (simple):
35778         Avoid casts from looser to stricter-aligned pointers.
35780         thread: port --enable-gcc-warnings to clang
35781         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35782         Include <signal.h>, to pacify a warning about pthread_sigmask.
35784         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35785         * lib/stdio.in.h (fwrite):
35786         When working around bug 11959, use __REDIRECT rather than '#define
35787         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35788         fix the -Wunused-value issue with clang, and it works with GCC too.
35789         Problem with targeting reported by Eric Blake in
35790         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35791         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35792         debugging the fwrite issue.
35794         stdio: port --enable-gcc-warnings to clang
35795         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35796         since the GCC workaround for fwrite does not pacify clang.
35798         sig2str: port --enable-gcc-warnings to clang
35799         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35801         obstack: port --enable-gcc-warnings to clang
35802         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35803         Avoid casts from looser to stricter-aligned pointers.
35805         memchr2: port --enable-gcc-warnings to clang
35806         * lib/memchr2.c (memchr2):
35807         Avoid casts from looser to stricter-aligned pointers.
35809         mbsstr: port --enable-gcc-warnings to clang
35810         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35811         Avoid casts from looser to stricter-aligned pointers.
35813         malloca: port --enable-gcc-warnings to clang
35814         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35815         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35817         inttostr: port --enable-gcc-warnings to clang
35818         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35820         warnings: port to clang
35821         Problem reported by Daniel P. Berrange via Eric Blake in
35822         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35823         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35824         (gl_WARN_ADD): Use it.
35826 2013-05-11  Jim Meyering  <meyering@fb.com>
35828         quotearg: do not read beyond end of buffer
35829         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35830         end of an ARG for which no length was specified.  With an N-byte
35831         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35832         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35833         via coreutils' misc/sort-debug-keys.sh test and detected by running
35834         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35835         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35836         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35837         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35838         characters correctly."
35840 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35842         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35843         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35844         compilation target is Mac OS X 10.6.
35845         Problem reported by parafin and Andoni Morales in
35846         <http://savannah.gnu.org/bugs/?37844> and
35847         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35849 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35851         mkdir-p: remove assumptions about umask and mode
35852         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35853         umask is 0, or that MODE is a subset of MODE_BITS.
35855 2013-05-10  Eric Blake  <eblake@redhat.com>
35857         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35858         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35860 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35862         deps: require Automake >= 1.9.6 in generated Makefile fragments
35864         That is the same minimal version required in the DEPENDENCIES file.
35865         Moreover, the old code generated a requirement of Automake >= 1.5,
35866         and that is an insanely outdated version.
35868         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35869         * tests/havelib/rpathlx/Makefile.am: Likewise.
35870         * tests/havelib/rpathly/Makefile.am: Likewise.
35871         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35872         * tests/havelib/rpathlz/Makefile.am: Likewise.
35873         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35874         * tests/havelib/rpathx/Makefile.am: Likewise.
35875         * tests/havelib/rpathy/Makefile.am: Likewise.
35876         * tests/havelib/rpathz/Makefile.am: Likewise.
35878 2013-05-08  Eric Blake  <eblake@redhat.com>
35880         bootstrap: AC_INIT may have more than four parameters
35881         * build-aux/bootstrap (extract_package_name): Correctly extract
35882         non-empty tarname field.  Avoid range in regex.
35883         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35885 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35887         qacl: port to MS-Windows port of GNU Emacs
35888         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35889         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35890         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35891         <http://bugs.gnu.org/14295#14>.
35893 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35895         acl: include quote.h
35896         * lib/copy-acl.c: Include quote.h.
35897         * lib/set-acl.c: Likewise.
35899 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35901         fchownat, renameat, unlinkat: update statat dependencies
35902         These modules use statat and lstatat, not fstatat; so depend on
35903         the statat module, which was split out recently from fstatat.
35904         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35905         * modules/renameat: Likewise.  Also delete fstat.
35906         URL: http://bugs.gentoo.org/468790
35908 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35910         Assume gnulib is checked out from Git, not CVS
35912         In fact, access to the gnulib repository through CVS has been
35913         disabled, or more precisely, got broken and was never restored; see:
35914         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35916         Note that support for CVS is not removed completely and unthinkingly
35917         by this change: only support for CVS checkouts of gnulib itself is
35918         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35919         files and CVS directories, for the benefit of those poor gnulib clients
35920         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35922         * gnulib-tool: Simplify accordingly.
35923         * posix-modules: Likewise.
35924         * MODULES.html.sh: Likewise.
35925         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35926         repository.
35927         * doc/gnulib-intro.texi: Likewise.
35928         * doc/gnulib-readme.texi: Likewise.
35929         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35930         sample '.gitignore' file rather than a sample '.cvsignore'.
35931         * NEWS: Update.
35932         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35933         to "CVS Autoconf" rather than "git Autoconf".
35935 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35937         utimensat-tests, etc.: try to fix some races
35938         Problem reported by Bernhard Voelker in
35939         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35940         I don't know whether this patch fixes that race condition, but it
35941         fixes *some* race conditions, so it should be a win.
35942         * modules/chown-tests (Depends-on):
35943         * modules/fchownat-tests (Depends-on):
35944         * modules/fdutimensat-tests (Depends-on):
35945         * modules/futimens-tests (Depends-on):
35946         * modules/lchown-tests (Depends-on):
35947         * modules/stat-time-tests (Depends-on):
35948         * modules/utimens-tests (Depends-on):
35949         * modules/utimensat-tests (Depends-on):
35950         Depend on nanosleep, not usleep.
35951         * modules/chown-tests (test_chown_LDADD):
35952         * modules/lchown-tests (test_lchown_LDADD):
35953         * modules/stat-time-tests (test_stat_time_LDADD):
35954         New macro.
35955         * modules/fchownat-tests (test_fchownat_LDADD):
35956         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35957         * modules/futimens-tests (test_futimens_LDADD):
35958         * modules/utimens-tests (test_utimens_LDADD):
35959         * modules/utimensat-tests (test_utimensat_LDADD):
35960         Add $(LIB_NANOSLEEP).
35961         * modules/stat-time-tests (Files): Add tests/nap.h.
35962         * tests/nap.h: Include <limits.h>, for INT_MAX.
35963         (lt_mtime): Remove.
35964         (diff_timespec): New function.
35965         (get_stat): Rename from get_mtime.  All callers changed.
35966         (nap_works): Determine the needed delay by inspecting the
35967         file system's timestamp jumps; this should be more reliable.
35968         Look at both mtime and ctime, and take the maximum of the two jumps.
35969         (nap_works, guess_delay):
35970         Return a nanosecond count, not a microsecond count.
35971         All callers changed.
35972         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35973         failure.
35974         (nap): Multiply the guess by 1.125, to accommodate the case where
35975         the file system's clock is a bit slower than nanosleep's clock.
35976         * tests/test-stat-time.c (BASE): New macro.
35977         Include nap.h.
35978         (nap): Remove; nap.h now defines this.  This removes a duplicate
35979         implementation of 'nap'.
35981         utimens, utimensat: work around Solaris UTIME_OMIT bug
35982         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35983         Linux kernel 2.6.32 does.  Work around it in the same way.
35984         * doc/posix-functions/futimens.texi (futimens):
35985         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35986         * lib/utimens.c (fdutimens, lutimens):
35987         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35989         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35990         Formerly, it was your responsibility to do this for all Makefile.ams
35991         other than Gnulib's.  Now it's your responsibility to do it for
35992         Gnulib's Makefile.am, too.
35993         * NEWS: Document this.
35994         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35996         acl: include errno.h to get errno
35997         Reported by Daiki Ueno in
35998         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35999         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
36001 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36003         tests: don't assume getdtablesize () <= 10000000
36004         * modules/cloexec-tests:
36005         * modules/dup2-tests:
36006         * modules/dup3-tests:
36007         * modules/nonblocking-tests:
36008         * modules/posix_spawn_file_actions_addclose-tests:
36009         * modules/posix_spawn_file_actions_adddup2-tests:
36010         * modules/posix_spawn_file_actions_addopen-tests:
36011         * modules/unistd-safer-tests:
36012         Depend on the getdtablesize module.
36013         * tests/test-cloexec.c:
36014         * tests/test-dup-safer.c:
36015         * tests/test-dup2.c:
36016         * tests/test-dup3.c:
36017         * tests/test-fcntl.c:
36018         * tests/test-nonblocking.c:
36019         * tests/test-posix_spawn_file_actions_addclose.c:
36020         * tests/test-posix_spawn_file_actions_adddup2.c:
36021         * tests/test-posix_spawn_file_actions_addopen.c:
36022         Don't assume getdtablesize () <= 10000000.
36024 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
36026         extern-inline: work around bug in Sun c99
36027         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36028         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
36030 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
36032         qacl: new module, broken out from the acl module
36033         This is for GNU Emacs, which wants the acl functions but does
36034         not want 'error' invoked when they fail.
36035         * lib/acl-internal.h: Do not include error.h, quote.h.
36036         (ENOSYS, ENOTSUP): Remove; no longer needed.
36037         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
36038         * lib/acl.h: Include <stdbool.h>.
36039         (acl_errno_valid): New function.
36040         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
36041         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
36042         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
36043         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
36044         (ACL_INTERNAL_INLINE): Remove; no longer needed.
36045         * lib/file-has-acl.c (file_has_acl):
36046         * lib/qcopy-acl.c (qcopy_acl):
36047         * lib/qset-acl.c (qset_acl):
36048         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
36049         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
36050         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
36051         lib/file-has-acl.c, m4/acl.m4 to qacl module.
36052         Add lib/set-acl.c.
36053         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
36054         Add qacl.
36055         (configure.ac): Move gl_FUNC_ACL to qacl module.
36056         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
36057         Rename set-mode-acl.c to set-acl.c.
36058         * lib/acl-errno-valid.c: New file.
36059         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
36060         copy_acl function remains in copy-acl.c.
36061         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
36062         (_): Remove; not needed.
36063         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
36064         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
36065         * modules/qacl: New file, moved from the old modules/acl.
36066         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
36067         Remove set-mode-acl.c, copy-acl.c.
36068         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
36070         alignof, intprops, malloca: port better to IBM's C compiler
36071         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
36072         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
36073         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
36075 2013-04-25  Daiki Ueno  <ueno@gnu.org>
36077         wctype-h: fix gettext link error on mingw
36078         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
36079         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
36080         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
36081         rpl_towupper and rpl_towupper.
36083 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
36085         regex-tests, regex: allow glibc re_search behavior
36086         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
36087         re_search input data to make the multi-character collating element
36088         in it clearly visible, and treat re_search return code 0 as valid.
36089         * m4/regex.m4 (gl_REGEX): Likewise.
36091 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36093         stdalign: doc fix
36094         * doc/posix-headers/stdalign.texi (stdalign.h):
36095         Gnulib doesn't support '_Alignof expr'.
36097 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36099         stdalign: port to stricter ISO C11
36100         ISO C11 says that _Alignof's operand must be a parenthesized type.
36101         Problem reported by Eli Zaretskii in
36102         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
36103         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
36104         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
36106 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
36108         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
36109         Problem reported by Marco Atzeri in
36110         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
36111         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
36112         Simply delegate to the system <sys/select.h> in this case too.
36113         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
36114         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
36115         be needed on Solaris either.
36116         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
36117         Simply delegate to the system <sys/time.h> in this case.
36119 2013-03-19  Karl Berry  <karl@gnu.org>
36121         * build-aux/gnupload: check for erroneous (with gnupload) use of
36122         ftp-upload.gnu.org, tweak help.
36124 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36126         copy-file, rpmatch: fix problems found by cppcheck
36127         Reported by Arno Onken in
36128         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
36129         * lib/rpmatch.c (try): Fix memory leak.
36130         * lib/copy-file.c: Include "ignore-value.h".
36131         (qcopy_file_preserving): Ignore chown value.
36132         * modules/copy-file (Depends-on): Add ignore-value.
36134 2013-01-27  Jim Meyering  <jim@meyering.net>
36136         prefix-gnulib-mk: give better diagnostics
36137         * build-aux/prefix-gnulib-mk: Don't just "die".
36138         Give better diagnostics upon failure.
36140 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
36142         putenv: port to Solaris 10
36143         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
36144         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
36145         is not what is wanted here.
36146         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
36147         declaration, not for its existence.
36149 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
36151         mktime: fix configure typo
36152         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
36154 2013-03-12  Eric Blake  <eblake@redhat.com>
36156         regex-tests: skip UTF-8 test on mingw
36157         * modules/regex-tests (Depends-on): Add localcharset.
36158         * tests/test-regex.c (main): Use it to skip test on mingw.
36160 2013-03-11  Eric Blake  <eblake@redhat.com>
36162         tests: make it easier to bypass alarm time in debugger
36163         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
36164         * tests/test-memmem.c (main): Likewise.
36165         * tests/test-passfd.c (main): Likewise.
36166         * tests/test-ptsname.c (main): Likewise.
36167         * tests/test-ptsname_r.c (main): Likewise.
36168         * tests/test-strcasestr.c (main): Likewise.
36169         * tests/test-strstr.c (main): Likewise.
36171         regex: port to mingw's recent addition of undeclared alarm
36172         * doc/posix-functions/alarm.texi (alarm): Document that alarm
36173         exists but still doesn't work in newer mingw.
36174         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
36175         not existence.  Ensure SIGALRM is not trapped.
36176         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
36177         * m4/regex.m4 (gl_REGEX): Likewise.
36178         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
36179         * tests/test-regex.c (main): Use correct probe for alarm.
36181         putenv: avoid compilation warning on mingw
36182         * lib/putenv.c (_unsetenv): Protect variable declaration.
36183         (putenv): Fix indentation.
36185 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
36187         unistd: don't prevent Tru64 Unix from using gnulib strtod.
36188         * lib/unistd.in.h: be careful not to include un-needed system
36189         stdlib.h from here, because that prevents gnulib stdlib.h from
36190         defining rpl_strtod correctly.
36192 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
36194         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
36195         changesets, but for the 'precision 0' test.
36196         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36197         round-to-even, since POSIX says rounding is implementation-defined
36198         and OS X 10.8.2 rounds 1.51 to 1 here.
36200         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
36201         changeset.
36202         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36203         round-to-even, since POSIX says rounding is implementation-defined
36204         and OS X 10.8.2 rounds 1.5 to 1 here.
36206 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36208         vasnprintf-posix-tests: allow rounding 1.5 to 1
36209         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
36210         round-to-even, since POSIX says rounding is implementation-defined
36211         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
36212         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
36214         bootstrap: port to FreeBSD
36215         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
36216         that treat '--' differently.  Reported by Mats Erik Andersson in
36217         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
36219 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
36221         regex: rename remaining __attribute calls to __attribute__.
36222         2012-02-25 changed definition of __attribute, but left some uses
36223         unchanged, preventing compilation of regex module on most non-gcc
36224         environments.
36225         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
36226         (lookup_collation_sequence_value, build_range_exp)
36227         (build_collating_symbol): Set attributes with newly renamed
36228         __attribute__ decorator.
36229         * lib/regex_internal.c (re_string_peek_byte_case)
36230         (re_node_set_compare, re_node_set_contains): Likewise.
36231         * lib/regexec.c (acquire_init_state_context): Likewise.
36233 2013-03-06  Bruno Haible  <bruno@clisp.org>
36235         execute: Revert last change, but use a different condition.
36236         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
36237         on Windows.
36239 2013-03-05  Eric Blake  <eblake@redhat.com>
36241         execute: drop dead code
36242         * lib/execute.c (nonintr_close, nonintr_open): Delete.
36244 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
36246         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
36247         * m4/non-recursive-gnulib-prefix-hack.m4
36248         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
36249         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
36250         <http://bugs.gnu.org/10305#237>.
36252 2013-03-04  Eric Blake  <eblake@redhat.com>
36254         test-getsockopt: avoid compiler warning
36255         * tests/test-getsockopt.c (includes): Ensure close is declared.
36257 2013-03-02  Bruno Haible  <bruno@clisp.org>
36259         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
36260         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
36262 2013-03-02  Bruno Haible  <bruno@clisp.org>
36264         gettext: Update to version 0.18.2.
36265         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
36266         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
36267                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
36269 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36271         regex: merge patches from libc
36273         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36274         * lib/regex_internal.h (__attribute__): Rename from __attribute.
36275         All uses changed.
36276         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
36277         (re_string_wchar_at, re_string_elem_size_at):
36278         Mark function as possibly unused.
36280         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
36281         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
36282         elements compare against the byte sequence of it, not its name.
36284 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36286         putenv: port better to native Windows
36287         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36288         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
36289         (_unsetenv): Use _putenv if available.
36290         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
36291         a bit less likely to cause damage.
36292         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36293         Fix the wrong value with SetEnvironmentVariable.
36294         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
36295         code better.
36297 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36299         regex: ignore old-style-definition warnings
36300         * lib/regex.c: Add pragma to ignore these warnings.
36301         Problem reported for GNU tar by Pavel Raiskup.
36303 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36305         getcwd: support coreutils better
36306         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
36307         but this might not be correct in coreutils, which disables
36308         the raw decl checks.  Problem reported by Nagendra in
36309         <http://bugs.gnu.org/10305#192>.
36310         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
36311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36312         Test the getcwd function, not any macro, since getcwd.c wants the
36313         function.
36314         * m4/getcwd.m4 (gl_FUNC_GETCWD):
36315         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
36316         compile, as might happen if there's a macro but no function.
36318         strtod: support coreutils better
36319         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
36320         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
36321         disables the raw decl checks.  This assumes there is an underlying
36322         strtod, but that's a safe assumption these days.
36323         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
36325         mountlist: port to HP NonStop
36326         Reported by Joachim Schmitz in
36327         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
36328         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
36329         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
36331 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36333         extern-inline: avoid compilation error with HP-UX cc
36334         Reported by Richard Lloyd in
36335         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
36336         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36337         Suppress extern inline with HP-UX cc.  This should be safe,
36338         though it may hurt performance.  Perhaps someone with some HP-UX
36339         experience can come up with a higher-performance fix.
36341 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36343         putenv: fix heap corruption with mixed putenv/_putenv
36344         Problem reported by Michael Goffioul in
36345         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
36346         * lib/putenv.c (putenv) [HAVE__PUTENV]:
36347         Rely on _putenv to allocate the new environment.
36348         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36349         * modules/putenv (configure.ac): Use it.
36351 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
36353         unsetenv etc.: port to Solaris 11 + GNU Emacs
36354         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
36355         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
36356         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
36357         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
36358         idea but is too painful to fix right now), and without this gnulib
36359         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
36360         compiling unsetenv.c on Solaris 11.  Fix the problem for
36361         unsetenv.c, and fix other similar occurrences.
36363 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36365         secure_getenv: fix C++ declaration typo
36366         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
36367         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
36368         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
36370 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36372         careadlinkat: stop exporting careadlinkatcwd
36373         Only Emacs used it directly, and Emacs no longer needs it.
36374         * NEWS: Document this simplification.
36375         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
36376         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
36377         for readlink.
36378         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
36379         Don't include stdlib.h; no longer needed.
36380         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
36381         * lib/relocwrapper.c: Adjust comment to match new dependencies.
36382         * modules/areadlink (Depends-on): Add readlink.
36383         (Maintainer): Add self.
36384         * modules/careadlinkat (Depends-on): Remove readlink.
36386         extensions: port better to HP-UX
36387         This is merged from git Autoconf.
36388         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36389         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
36390         so that it's compatible with the value used when compiling.
36392         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
36393         Problem reported by Mats Erik Andersson in
36394         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
36395         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36396         openpty function exists, not merely when we intend to replace it.
36397         This corrects the 2013-01-31 patch, which mistakenly defined
36398         HAVE_OPENPTY even on hosts that lacked it.
36400 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36402         secure_getenv: fix include typo
36403         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
36405         secure_getenv: port better to FreeBSD and Solaris
36406         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
36407         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
36408         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
36409         This works better on BSDish platforms.
36410         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
36411         Test for issetugid if __secure_getenv is missing.
36413 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36415         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
36416         Some of these changes are merged in from git Autoconf.
36417         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36418         When deciding whether to define _XOPEN_SOURCE, inspect the
36419         preprocessor macro __hpux instead of the more-heavyweight
36420         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36421         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36422         as the key for __EXTENSIONS__.
36424         unistd: avoid namespace pollution on non-glibc systems
36425         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36426         This avoids namespace pollution on non-glibc systems, by causing
36427         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36428         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36429         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36431 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36433         tmpdir: use secure_getenv
36434         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36435         Define to secure_getenv, not getenv.
36436         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36437         as that's now secure_getenv's job.
36438         * modules/tmpdir (Depends-on): Add secure_getenv.
36440         tempname: use secure_getenv
36441         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36442         Define to secure_getenv, not getenv.
36443         * modules/tempname (Depends-on):
36444         Add secure_getenv.
36446         secure_getenv: new module
36447         * MODULES.html.sh (Extra functions based on ANSI C 89):
36448         Add secure_getenv.
36449         * doc/glibc-functions/secure_getenv.texi: New file.
36450         * doc/gnulib.texi: Include it.
36451         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36452         New files.
36453         * lib/stdlib.in.h (secure_getenv): New decl.
36454         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36455         * modules/stdlib (stdlib.h):
36456         Add secure_getenv checks.
36458 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36460         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36461         Reported for OS X 10.8.2 by Assaf Gordon in
36462         <http://bugs.gnu.org/13516>.
36463         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36464         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36465         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36466         so that they can be kept in sync more easily.  Avoid PATH_MAX
36467         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36468         mkdir or chdir failure.
36469         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36470         lib/getcwd.c.
36471         (test_abort_bug): Do not test for the deep directory bug unless we
36472         have openat support.  Avoid PATH_MAX test on the Hurd.
36474         regex-tests, regex: fix bug: memset undeclared
36475         * tests/test-regex.c: Don't include regex.h twice.  Include
36476         string.h, to declare memset.  Christensen's report also mentioned
36477         this issue.
36478         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36479         test-regex.c, to avoid future problems like this.  Remove
36480         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36481         twice.
36483         regex-tests: fix link errors on older Solaris
36484         These need to link with @LIBINTL@ to get libintl_gettext.
36485         Problem reported by Tom G. Christensen in
36486         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36487         * modules/regex-tests (test_regex_LDADD): New macro.
36489 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36491         regex-tests: new module
36492         * modules/regex-tests, tests/test-regex.c: New files.
36494         regex: fix off-by-one error in configure test
36495         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36497 2013-01-31  Eric Blake  <eblake@redhat.com>
36499         regex: avoid infinite configure test
36500         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36502 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36504         openpty: fix bug where HAVE_OPENPTY wasn't defined
36505         See the thread starting at:
36506         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36507         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36508         openpty function exists, not merely when we intend to replace it.
36510 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36512         sys_time: port to Solaris 2.6
36513         There is a circularity problem on Solaris 2.6, where <time.h> includes
36514         <sys/time.h> for struct timespec.  The include nesting is gnulib
36515         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36516         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36517         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36518         <sys/siginfo.h>; the last, innermost file needs struct
36519         timestruc_t, which is defined in <sys/time.h>, which has not been
36520         fully parsed.  Problem reported by Tom G. Christensen in
36521         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36522         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36523         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36524         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36525         uses split double-inclusion guards.
36527 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36529         regex: test for buffer overrun
36530         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36531         for the just-fixed regex bug.
36533 2013-01-29  Andreas Schwab  <schwab@suse.de>
36535         regex: fix buffer overrun in regexp matcher [BZ #15078]
36536         * lib/regexec.c (extend_buffers): Add parameter min_len.
36537         (check_matching): Pass minimum needed length.
36538         (clean_state_log_if_needed): Likewise.
36539         (get_subexp): Likewise.
36541 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36543         mountlist: don't consider "devtmpfs" as dummy
36544         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36545         as there is storage associcated with it.
36547 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36549         futimens-tests, utimens-tests: Depend on gettext.
36550         This works around a problem introduced in my 2013-01-12 patch,
36551         which added @LIBINTL@ to these modules.
36552         * modules/futimens-tests (Depends-on):
36553         * modules/utimens-tests (Depends-on): Add gettext.
36555 2013-01-26  Eric Blake  <eblake@redhat.com>
36557         test-getpeername: fix typo
36558         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36560 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36562         bootstrap: remove the need for a sorted .gitignore file
36563         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36564         rename to insert_if_absent(), so that we don't need or generate
36565         a sorted .gitignore file.  We do require a .gitignore with no
36566         existing duplicate entries and enforce that.
36567         (sort_patterns): Remove this function as we now use the simpler
36568         technigue of inserting blacklist entries at the top of the file,
36569         assuming gnulib won't be inserting !whitelist entries.
36571 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36573         readlinkat: don't depend on gl_FUNC_OPENAT
36574         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36575         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36576         renameat.m4, symlinkat.m4; but one thing at a time.
36578         statat: new module, split out from fstatat
36579         GNU Emacs needs the POSIX-specified fstatat, but not the
36580         gnulib-specified statat and lstat.  Split the latter two into a
36581         new module 'statat'.
36582         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36583         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36584         Rename from FSTATAT_INLINE. All uses changed.
36585         * modules/fstatat (Files): Remove lib/statat.c.
36586         (gl_MODULE_INDICATOR([fstatat])): Remove.
36587         (lib_SOURCES): Remove.
36588         (Maintainer): Add self.
36589         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36590         * tests/test-fstatat.c (BASE): Don't define if already defined.
36591         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36593 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36595         tests: don't assume fd 99 is closed
36596         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36597         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36598         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36599         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36600         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36601         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36602         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36603         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36604         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36605         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36606         * tests/test-fwrite.c, tests/test-getpeername.c:
36607         * tests/test-getsockname.c, tests/test-getsockopt.c:
36608         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36609         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36610         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36611         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36612         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36613         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36614         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36615         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36616         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36617         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36618         Close file descriptor 99, instead of assuming it's already closed.
36620 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36622         stpncpy: port to OS X 10.8
36623         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36624         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36626 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36628         unistd: port to recent mingw
36629         * lib/unistd.in.h: Remove special invocation convention for mingw,
36630         which breaks for the latest mingw version.  See John W. Eaton in
36631         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36633         largefile: port better to Mac OS X 10.5
36634         This patch is backported from Autoconf git.
36635         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36636         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36637         with ino_t size being different for configuration time versus
36638         build/run time.  Problem reported by PHO in
36639         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36641 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36643         doc: clarify -Werror
36644         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36645         clarify that it's intended for developers, not for ordinary builds,
36646         and mention --enable-gcc-warnings as one possible use.
36648 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36650         stdint: fix build with Android's Bionic fox x86
36651         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36652         was already included as _SSIZE_T_DEFINED_ might also be defined
36653         in include/machine/_types.h, which is included by stdio.h
36655 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36657         net_if-tests: port to Solaris 7 + GCC 3.4.6
36658         Problem reported by Tom G. Christensen in
36659         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36660         * tests/test-net_if.c (ni): Move to next the code that uses it,
36661         so that it's declared only if needed.
36663 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36665         net_if-tests: port to older Solaris
36666         Problem reported by Tom G. Christensen in
36667         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36668         * modules/net_if-tests (NET_IF_LIB): New substitution.
36669         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36670         (HAVE_IF_NAMEINDEX): New C macro.
36671         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36673         system-quote-tests: port to older Solaris
36674         Problem reported by Tom G. Christensen in
36675         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36676         * tests/test-system-quote-child.c (fopen, fread): Undef.
36678         c-xvasprintf etc.: fix link errors on older Solaris
36679         These need to link with @LIBINTL@ to get libintl_gettext.
36680         Problem reported by Tom G. Christensen in
36681         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36682         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36683         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36684         * modules/futimens-tests (test_futimens_LDADD):
36685         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36687 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36689         locale: port to Solaris 2.6 and 7 + GNU gettext
36690         * lib/locale.in.h: Just include_next <locale.h> when
36691         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36692         when combining the localename module with GNU gettext 0.18.2.
36693         Problem reported by Tom G. Christensen in
36694         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36696 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36698         stdlib: port to Solaris 2.6
36699         Also, the code worked on Solaris 7 through 9 only by accident.
36700         Problem reported by Tom G. Christensen in
36701         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36702         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36703         simply include the system stdlib.h.
36704         * lib/getopt.in.h (__need_system_stdlib_h):
36705         * lib/pthread.in.h (__need_system_stdlib_h):
36706         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36707         Define when including <stdlib.h>, to avoid problems at least for
36708         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36709         with the system stdlib.h.
36711 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36713         doc: update main copyright year
36714         * doc/gnulib.texi: Update copyright date.
36716         doc: improve ISO 8601 discussion
36717         * doc/parse-datetime.texi (Combined date and time of day items):
36718         Specify more carefully what formats are supported and what is
36719         done with excess precision.
36721 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36723         doc: avoid small caps
36724         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36725         they're more trouble than they're worth.  Suggested by Karl Berry
36726         in <http://bugs.gnu.org/13360>.
36728         regex: conform to strict C
36729         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36730         From Aharon Robbins.
36732         gnulib-tool: fix incompatibility with autopoint 0.18.2
36733         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36734         Problem reported by Tom G. Christensen in
36735         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36737 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36739         fprintftime: bring back and reword fwrite comment
36740         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36742         stdio: remove now-unnecessary stdio.c
36743         Since stdio.in.h no longer uses inline functions, we no longer
36744         need to compile the extern versions.
36745         * lib/stdio.c: Remove.
36746         * modules/stdio (Files): Remove lib/stdio.c.
36747         (lib_SOURCES): Remove.
36749         unicodeio: depend on stdio, not ignore-value
36750         * lib/unicodeio.c: Do not include ignore-value.h.
36751         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36752         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36754         fprintftime: depend on stdio, not ignore-value
36755         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36756         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36757         since the stdio module arranges to silence that warning now.
36758         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36760 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36762         stdint-tests: Fix expanded-before-required-warning.
36763         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36765 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36767         fwrite: silence __wur only for older glibc versions
36768         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36769         This will help us remove this workaround some time in the far future.
36771 2013-01-03  Eric Blake  <eblake@redhat.com>
36773         fwrite: silence __wur without using inline
36774         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36775         just gcc, and in a way that avoids inline issues.
36776         * modules/stdio (Depends-on): Drop extern-inline.
36778 2013-01-03  Jim Meyering  <jim@meyering.net>
36780         update-copyright: avoid copyright notice date corruption
36781         Given a sequence of copyright year numbers in which the final
36782         one was a two-digit number that happened to be a substring of
36783         a preceding four-digit year number, we would mistakenly update
36784         the substring (from two- to four-digit) rather than the two-digit
36785         number at the end, which, combined with the addition of the current
36786         4-digit year number would yield two 5-digit year numbers, e.g.,
36787         here, it would convert the first "99" to "1999, 2013" rather than
36788         the final one:
36789           1991, 99
36790           11999, 20131, 1999
36791         * build-aux/update-copyright: Tighten a regexp.
36792         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36793         Reported by Joseph Myers in
36794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36796 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36798         regex: omit needless signed-pointer casts
36799         * lib/regcomp.c (build_charclass, build_charclass_op):
36800         Use char *, not unsigned char *, for class name and extra.
36801         The char values are always nonnegative so there's no need to
36802         insist on unsigned char * here, and using char * removes the need
36803         for casts.  Reported by Aharon Robbins in
36804         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36806         regex: support Gawk, which never uses alloca
36807         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36808         Do not include in this case.  Gawk doesn't supply a substitute
36809         alloca.h and doesn't need one.
36811         regex: port __libc_lock_define usage to C89
36812         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36813         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36814         does not conform to C89, as it has an empty macro argument.
36815         Reported by Aharon Robbins in
36816         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36818 2013-01-01  Eric Blake  <eblake@redhat.com>
36820         maint: update all copyright year number ranges
36821         Run "make update-copyright".
36823         version-etc: bump copyright year reported in --version
36824         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36826 2012-12-31  Eric Blake  <eblake@redhat.com>
36828         sigprocmask-tests: skip test if pid is unexpectedly large
36829         * tests/test-sigprocmask.c (main): Add range check.
36831         git-version-gen: avoid test -z portability glitch
36832         * build-aux/git-version-gen: Prefer portable test spelling, since
36833         git-version-gen is run on more than just developer machines.
36835 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36837         git-version-gen: add --fallback option to use if git is not present
36838         * build-aux/git-version-gen: Add support for the new option --fallback,
36839         which comes into play when there is no $tarball_version_file and
36840         git is not working.
36841         (scriptversion): Update.
36843         maint.mk: handle missing git with more grace
36844         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36845         Quietly proceed if git is not present.
36847 2012-12-31  Eric Blake  <eblake@redhat.com>
36849         dup2: work around cygwin bug
36850         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36851         * lib/dup2.c (rpl_dup2): Work around it.
36852         * doc/posix-functions/dup2.texi (dup2): Document it.
36854 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36856         regex: remove unnecessary dependency on localcharset.h
36857         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36858         hasn't been needed for years.
36859         * modules/regex (Depends-on): Remove localcharset.
36861         regex: revert single-byte change
36862         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36863         to this function.  This was alredy fixed in a different way, at
36864         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36865         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36866         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36868         regex: simplify based on Gawk version
36869         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36870         Reported by Aharon Robbins in
36871         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36873 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36875         regex: check that pattern char is single-byte
36876         Reported by Aharon Robbins in
36877         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36878         * lib/regexec.c (check_node_accept_bytes):
36879         Return 0 if the pattern string has a multibyte character here.
36881         regex: implement rational ranges
36882         Reported by Aharon Robbins in
36883         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36884         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36885         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36886         Implement rational ranges.
36888         regex: avoid redefining __wctype
36889         Reported by Aharon Robbins in
36890         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36891         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36892         #undef before defining.
36894         regex: port to hosts where malloc (0) == NULL
36895         Reported by Aharon Robbins in
36896         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36897         * lib/regex_internal.c (re_node_set_alloc):
36898         Don't assume that malloc (0) yields nonnull.
36899         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36900         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36901         * modules/regex (Files): Add m4/eealloc.m4.
36903         regex: port to C89
36904         Reported by Aharon Robbins in
36905         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36906         * lib/regcomp.c (init_word_char): Declaration before statement.
36908         regex: merge glibc changes
36909         Also, copy the license wording from glibc.  This simplifies
36910         merging changes.  gnulib-tool will change the wording to GPL as
36911         appropriate, when importing it to other packages.  The only
36912         glibc change made since the last merge, which needs merging, is:
36913         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36914         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36916         * users.txt: Add Emacs.
36918         doc: omit mention of version when not needed
36919         * doc/gnulib-intro.texi (Portability and Application Code):
36920         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36921         Don't mention particular dates or versions when not necessary, so
36922         that the documentation won't go out of date so quickly.
36924         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36926 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36928         bootstrap: pass --force to autoreconf.
36929         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36930         Add "--force" so that Automake's ylwrap and other such tools
36931         be updated at each bootstrap invocation.
36932         Use it.
36934 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36936         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36937         The earlier patch forgot to update one of the #if conditions, causing
36938         a problem on Debian testing i386 reported by Mats Erik Andersson
36939         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36940         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36941         (__argp_fmtstream_puts, argp_fmtstream_puts)
36942         (__argp_fmtstream_write, argp_fmtstream_write)
36943         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36945         * doc/gnulib-readme.texi: Minor fixups.
36946         (Portability guidelines): Modernize URLs.  Remove some repetition.
36947         (Indent with spaces not TABs): Reword to avoid too-long lines.
36948         Remove some '@ifset standalone' stuff that isn't used.
36950         * doc/gnulib-readme.texi (Portability guidelines):
36951         ctype.h, not ctime.h.
36953         Correct name of POSIX.1-2001.
36954         * doc/posix-functions/fgetc.texi (fgetc):
36955         * doc/posix-functions/fgets.texi (fgets):
36956         * doc/posix-functions/fread.texi (fread):
36957         * doc/posix-functions/fscanf.texi (fscanf):
36958         * doc/posix-functions/getc.texi (getc):
36959         * doc/posix-functions/getchar.texi (getchar):
36960         * doc/posix-functions/scanf.texi (scanf):
36961         POSIX.1-2001, not POSIX-2001.
36963         doc: move README into manual
36964         * README: Move contents to new file doc/gnulib-readme.texi.
36965         Replace with a one-line summary.
36966         * doc/gnulib.texi (Brief Overview): New section,
36967         with old intro preface.  Include gnulib-readme.texi for contents.
36968         (Philosophy): Rename from "Introduction", since this
36969         section no longer introduces the rest.  Write a new preface.
36970         * doc/gnulib-readme.texi: New file, with the old contents of
36971         README texinfo-ized.  This way, the README info appears
36972         in the online and printed manual.
36974 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36976         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36977         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36978         c_vasprintf() prototype.
36980 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36982         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36983         * lib/c-vasprintf.h: Remove stray semicolon.
36985 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36987         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36988         It is obsolete and is planned to be removed from Automake 1.14; see
36989         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36990         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36991         (installdirs-data, installdirs-data-yes):
36992         Use $(MKDIR_P), not $(mkdir_p).
36993         * m4/intl.m4 (AM_INTL_SUBDIR):
36994         * m4/po.m4 (AM_PO_SUBDIRS):
36995         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36997 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36999         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
37000         On this platform, we are not optimizing but we are using
37001         the substitute for extern inlines, so compile as if
37002         C99-style extern inline, or a substitute, is available.
37003         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
37004         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
37005         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
37006         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
37007         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
37008         Declare as ARGP_FS_EI, not as extern.
37009         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
37010         (__option_is_short, _option_is_end, __option_is_end)
37011         [!_LIBC && __USE_EXTERN_INLINES]:
37012         Declare as ARGP_EI, not as extern.
37014 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37016         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
37017         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
37018         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
37019         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
37020         ...), as the latter is fatal with older Autoconfs.
37021         Problem reported and fix suggested by Eric Blake in thread starting at
37022         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
37024 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
37026         AC_PROG_MKDIR_P: don't workaround if not buggy
37027         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
37028         Define only for Autoconf versions before 2.62.
37029         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
37030         undocumented m4_PACKAGE_VERSION, for consistency with the
37031         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
37032         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
37033         was introduced in 2.62.
37035 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
37037         New 'c-*printf' modules for formatted output in C locale.
37039         New module 'c-vasnprintf'.
37040         * modules/c-vasnprintf: New file.
37041         * lib/c-vasnprintf.c: New file.
37042         * lib/c-vasnprintf.h: New file.
37044         New module 'c-snprintf'.
37045         * modules/c-snprintf: New file.
37046         * modules/c-snprintf-tests: New file.
37047         * lib/c-snprintf.c: New file.
37048         * lib/c-snprintf.h: New file.
37049         * tests/test-c-snprintf.c: New file.
37050         * tests/test-c-snprintf.sh: New file.
37052         New module 'c-vsnprintf'.
37053         * modules/c-vsnprintf: New file.
37054         * modules/c-vsnprintf-tests: New file.
37055         * lib/c-vsnprintf.c: New file.
37056         * lib/c-vsnprintf.h: New file.
37057         * tests/test-c-vsnprintf.c: New file.
37058         * tests/test-c-vsnprintf.sh: New file.
37060         New module 'c-vasprintf'.
37061         * modules/c-vasprintf: New file.
37062         * modules/c-vasprintf-tests: New file.
37063         * lib/c-asprintf.c: New file.
37064         * lib/c-vasprintf.c: New file.
37065         * lib/c-vasprintf.h: New file.
37066         * tests/test-c-vasprintf.c  +: New file.
37067         * tests/test-c-vasprintf.sh: New file.
37069         New module 'c-xvasprintf'.
37070         * modules/c-xvasprintf: New file.
37071         * modules/c-xvasprintf-tests: New file.
37072         * lib/c-xasprintf.c: New file.
37073         * lib/c-xvasprintf.c: New file.
37074         * lib/c-xvasprintf.h: New file.
37075         * tests/test-c-xvasprintf.c: New file.
37076         * tests/test-c-xvasprintf.sh: New file.
37078 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37080         argp: better 'inline'
37081         Use extern-inline module to declare extern inline functions.
37082         This avoids some bogus warning diagnostics.  Problem discovered
37083         when modifying GNU tar to use the manywarnings module.
37084         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
37085         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
37086         Define based on extern-inline.
37087         * modules/argp (Depends-on): Add extern-inline.
37089 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
37091         filemode, sys_stat: Handle MPX files a la AIX.
37092         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
37093         * lib/sys_stat.in.h (S_ISMPX): New macro.
37094         * tests/test-sys_stat.c: Add tests for MPX files.
37096 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37098         x-to-1: honor $PERL
37099         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
37100         a chance to use his preferred version of Perl.  This is typically
37101         required by Darwin users whose default /usr/bin/perl does not have all
37102         the libraries required by help2man, and who need to use their MacPorts
37103         installation of Perl instead.
37105 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37107         gnu-web-doc-update: add all the new files, even in new directories
37108         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
37109         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
37110         Use it.
37111         (main): Don't use cvsutils to get the list of unknown files,
37112         just add all the existing files and directories.
37114 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37116         gnu-web-doc-update: improve --help
37117         * build-aux/gnu-web-doc-update: Move comments into --help.
37119 2012-12-07  Eric Wong  <normalperson@yhbt.net>
37121         mountlist: recognize more "dummy" file systems
37122         * lib/mountlist.c (ME_DUMMY_0):
37123         Add these dummy FS names to the list:
37124         - "debugfs" virtual filesystem for kernel debugging
37125         - "devpts" PTY slave filesystem
37126         - "devtmpfs" device filesystem on top of tmpfs/ramfs
37127         - "fusectl" control filesystem for FUSE
37128         - "mqueue" enumerates POSIX message queues
37129         - "rpc_pipefs" kernel <-> userspace bridge for NFS
37130         - "sysfs" is for exporting kernel objects
37131         - "devfs" device filesystem for Linux 2.4 and FreeBSD
37133 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37135         extern-inline: avoid incompatibility with Darwin Libc
37136         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
37137         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
37138         Problem reported by Akim Demaille in
37139         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
37141 2012-12-11  Simon Josefsson  <simon@josefsson.org>
37143         gnupload: Work with GnuPG using gpg-agent (for smartcards).
37144         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
37145         let it handle password prompting.
37147 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
37149         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
37150         * lib/canonicalize.c (canonicalize_filename_mode):
37151         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
37152         fetching the current directory.  Don't overrun the beginning of
37153         rpath if there's no slashes after the MS-Windows drive letter.
37155 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
37157         maint.mk: avoid extra forks
37158         * top/maint.mk (_cfg_mk): The GNU make manual documents that
37159         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
37160         So use that instead of "$(shell test -f FILE && echo FILE)".
37162 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37164         vasnprintf: fix ASCII_ONLY typo
37165         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37166         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37167         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37168         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
37169         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
37171 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37173         list, oset, xlist, xoset: fix extern inline issue with C99
37174         This was introduced by my recent changes for 'inline'.
37175         Problem reported for gettext by Daiki Ueno in
37176         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
37177         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
37178         (gl_list_nx_create, gl_list_size, gl_list_node_value)
37179         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
37180         (gl_list_previous_node, gl_list_get_at)
37181         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
37182         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
37183         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
37184         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
37185         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
37186         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
37187         (gl_list_iterator_free, gl_sortedlist_search)
37188         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
37189         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
37190         (gl_sortedlist_remove):
37191         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
37192         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
37193         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
37194         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
37195         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
37196         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
37197         (gl_list_add_at, gl_sortedlist_add):
37198         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
37199         Wrap these extern decls inside "#if 0", because they are implemented
37200         as inline functions, and extern inline is not what's wanted here.
37201         It would simplify these .h files to remove the extern decls entirely,
37202         although a downside would be less-clear separation between
37203         specification and implementation.
37205 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37207         sys_stat: no 'static inline'
37208         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
37209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
37211         extern-inline: no 'static inline'
37212         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
37213         Do not require AC_C_INLINE.
37214         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
37215         'static inline', for older compilers.
37217         snippet/warn-on-use: no 'static inline'
37218         * build-aux/snippet/warn-on-use.h:
37219         Remove unnecessary 'inline' in comment.
37221         rbtree-list, rbtreehash-list: no 'static inline'
37222         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
37223         * lib/gl_anytree_list2.h (node_at):
37224         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
37225         (gl_oset_first, add_nodes_to_buckets):
37226         Now static, not static inline.
37228         regex: no 'static inline'
37229         * lib/regex_internal.c (calc_state_hash):
37230         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
37231         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
37232         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
37233         Now static, not static inline.
37234         (inline) [__GNUC__ < 3 && _LIBC]:
37235         Remove macro; no longer needed.
37237         xvasprintf: no 'static inline'
37238         * lib/xvasprintf.c (xstrcat):
37239         Now static, not static inline.
37240         * m4/xvasprintf.m4 (gl_XVASPRINTF):
37241         Do not require AC_C_INLINE.
37243         parse-datetime, parse-duration: no 'static inline'
37244         * lib/parse-datetime.y (to_uchar):
37245         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
37246         (scale_n_add):
37247         Now static, not static inline.
37248         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
37249         * modules/parse-duration (configure.ac):
37250         Do not require AC_C_INLINE.
37252         getaddrinfo: no 'static inline'
37253         * lib/getaddrinfo.c (validate_family):
37254         Now static, not static inline.
37255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
37256         Do not require AC_C_INLINE.
37258         ftruncate, fts, lstat, openat, raise: no 'static inline'
37259         * lib/ftruncate.c (chsize_nothrow):
37260         * lib/fts.c (opendirat, diropen):
37261         * lib/lstat.c (orig_lstat):
37262         * lib/openat.c (orig_openat):
37263         * lib/raise.c (raise_nothrow):
37264         Now static, not static inline.
37265         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
37266         * m4/fts.m4 (gl_FUNC_FTS_CORE):
37267         * m4/lstat.m4 (gl_PREREQ_LSTAT):
37268         * m4/openat.m4 (gl_PREREQ_OPENAT):
37269         * m4/raise.m4 (gl_PREREQ_RAISE):
37270         Do not require AC_C_INLINE.
37272         fflush, stat: no 'static inline'
37273         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37274         (clear_ungetc_buffer, disable_seek_optimization)
37275         (restore_seek_optimization, update_fpos_cache):
37276         * lib/stat.c (orig_stat):
37277         Now static, not static inline.
37278         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
37279         (update_fpos_cache):
37280         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
37281         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
37282         * m4/stat.m4 (gl_PREREQ_STAT):
37283         Do not require AC_C_INLINE.
37285         error, filevercmp: no 'static inline'
37286         * lib/error.c (is_open, flush_stdout):
37287         * lib/filevercmp.c (order):
37288         Now static, not static inline.
37289         * m4/error.m4 (gl_PREREQ_ERROR):
37290         * modules/filevercmp (configure.ac):
37291         Do not require AC_C_INLINE.
37293         dup, execute, fatal-signal, etc.: no 'static inline'
37294         * lib/dup.c (dup_nothrow):
37295         * lib/execute.c (nonintr_close, nonintr_open):
37296         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
37297         * lib/fopen.c (orig_fopen):
37298         * lib/freadseek.c (freadptrinc):
37299         * lib/freopen.c (orig_freopen):
37300         * lib/fstat.c (orig_fstat, fstat_nothrow):
37301         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
37302         (get_rusage_as_via_iterator):
37303         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
37304         * lib/getdtablesize.c (_setmaxstdio_nothrow):
37305         * lib/isatty.c (_isatty_nothrow):
37306         * lib/open.c (orig_open):
37307         * lib/read.c (read_nothrow):
37308         * lib/sigprocmask.c (signal_nothrow):
37309         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
37310         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
37311         * lib/wait-process.c (unregister_slave_subprocess):
37312         * lib/write.c (write_nothrow):
37313         Now static, not static inline.
37314         * lib/spawn-pipe.c (nonintr_open): Define only if
37315         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
37316         * m4/dup.m4 (gl_PREREQ_DUP):
37317         * m4/execute.m4 (gl_EXECUTE):
37318         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
37319         * m4/fopen.m4 (gl_PREREQ_FOPEN):
37320         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
37321         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
37322         * m4/fstat.m4 (gl_PREREQ_FSTAT):
37323         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
37324         * m4/isatty.m4 (gl_PREREQ_ISATTY):
37325         * m4/open.m4 (gl_PREREQ_OPEN):
37326         * m4/read.m4 (gl_PREREQ_READ):
37327         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
37328         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
37329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
37330         * m4/wait-process.m4 (gl_WAIT_PROCESS):
37331         * m4/write.m4 (gl_PREREQ_WRITE):
37332         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
37333         Do not require AC_C_INLINE.
37335         c-strtod, memcoll, readutmp: no 'static inline'
37336         * lib/c-strtod.c (c_locale):
37337         * lib/memcoll.c (strcoll_loop):
37338         * lib/readutmp.c (desirable_utmp_entry):
37339         Now static, not static inline.
37340         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
37341         * m4/memcoll.m4 (gl_MEMCOLL):
37342         * m4/readutmp.m4 (gl_READUTMP):
37343         Do not require AC_C_INLINE.
37345         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
37346         * lib/arctwo.c (to_uchar):
37347         * lib/md4.c (set_uint32):
37348         * lib/md5.c (set_uint32):
37349         * lib/sha1.c (set_uint32):
37350         * lib/sha256.c (set_uint32):
37351         * lib/sha512.c (set_uint64):
37352         Now static, not static inline.  This is a bit simpler, and doesn't
37353         affect performance with GCC and default optimization.
37354         * m4/arctwo.m4 (gl_ARCTWO):
37355         * m4/md4.m4 (gl_MD4):
37356         * m4/md5.m4 (gl_MD5):
37357         * m4/sha1.m4 (gl_SHA1):
37358         * m4/sha256.m4 (gl_SHA256):
37359         * m4/sha512.m4 (gl_SHA512):
37360         Do not require AC_C_INLINE.
37362         cond, lock, thread: better 'inline'
37363         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
37364         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
37365         New macros.  Use them instead of static inline, for header functions.
37366         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
37367         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37368         * lib/glthread/lock.c (gl_waitqueue_init)
37369         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37370         * lib/glthread/thread.c (get_current_thread_handle):
37371         Change 'static inline' to 'inline'.
37372         * lib/glthread/cond.h, lib/glthread/thread.h:
37373         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37374         * m4/cond.m4 (gl_COND):
37375         * m4/lock.m4 (gl_PREREQ_LOCK):
37376         * m4/thread.m4 (gl_THREAD):
37377         Do not require AC_C_INLINE.
37378         * modules/cond, modules/thread (Depends-on): Add extern-inline.
37380         chdir-long, cycle-check, savewd: better 'inline'
37381         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
37382         (find_non_slash):
37383         * lib/cycle-check.c (is_zero_or_power_of_two):
37384         * lib/savewd.c (savewd_delegating):
37385         Change 'static inline' to 'inline'.
37386         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
37387         Replace all remaining uses of 'static inline' with it.
37388         * lib/savewd.h:
37389         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37390         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
37391         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37392         * m4/savewd.m4 (gl_SAVEWD):
37393         Do not require AC_C_INLINE.
37394         * modules/savewd (Depends-on): Add extern-inline.
37396         base32, base64: no need for 'inline'
37397         * lib/base32.c (to_uchar, get_8, decode_8):
37398         * lib/base64.c (to_uchar, get_4, decode_4):
37399         Change 'static inline' to 'inline'.
37400         * m4/base32.m4 (gl_PREREQ_BASE32):
37401         * m4/base64.m4 (gl_PREREQ_BASE64):
37402         Do not require AC_C_INLINE.
37404         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
37405         * lib/gl_array_oset.c (gl_array_nx_add_at):
37406         (gl_array_remove_at):
37407         * lib/gl_linkedhash_list.c (hash_resize_after_add)
37408         (add_to_bucket, remove_from_bucket):
37409         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
37410         Change 'static inline' to 'static', as it's simpler to omit
37411         'inline' unless there's a significant performance advantage.
37413         list, oset, xlist, xoset, xsublist: simplify via extern inline
37414         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
37415         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
37416         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
37417         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
37418         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
37419         New macro.  Replace all uses of 'static inline' with it.
37420         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37421         instead of as macros FOO that are defined to static inline
37422         functions FOO_inline.
37423         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37424         * lib/gl_xsublist.c:
37425         Reimplement from scratch, by defining the corresponding *_INLINE
37426         macro and including the corresponding .h file.  This is simpler.
37427         * modules/list, modules/oset, modules/xlist, modules/xoset:
37428         (Files): Remove m4/gl_list.m4.
37429         (configure.ac): Remove gl_LIST.
37430         * m4/gl_list.m4: Remove.
37431         * modules/list, modules/oset, modules/xlist, modules/xoset:
37432         * modules/xsublist:
37433         (Depends-on): Depend on extern-inline, not inline.
37435         xalloc: better 'inline'
37436         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37437         New macro.  Replace all uses of 'static inline' with it.
37438         (static_inline): Remove.
37439         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37440         Let 'extern inline' do the work automatically, instead of doing
37441         it by hand.
37442         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37443         Remove.  All uses removed.
37444         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37446         gethrxtime: better 'inline'
37447         * lib/xtime.c: New file.
37448         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37449         * lib/xtime.h (XTIME_INCLUDE):
37450         New macros.  Replace all uses of 'static inline' with them.
37451         * lib/gethrxtime.c (gethrxtime): Define only if
37452         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37453         this source file is now always compiled, because of the extern inline.
37454         * lib/gethrxtime.h, lib/xtime.h:
37455         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37456         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37457         if gethrtime works, as they're not needed in that case.
37458         (gl_XTIME): Do not require AC_C_INLINE.
37459         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37460         compiled now.  Move the check into gl_GETHRXTIME.
37461         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37462         (Depends-on): Add extern-inline.
37463         (configure.ac): gethrxtime is always compiled now.
37464         (lib_SOURCES): Add gethrxtime.c.
37466         wctype-h: better 'inline'
37467         * lib/wctype-h.c: New file.
37468         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37469         New macro.  Replace all uses of 'static inline' with it.
37470         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37471         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37472         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37473         (Depends-on): Add extern-inline.
37475         unistd: better 'inline'
37476         * lib/unistd.c: New file.
37477         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37478         New macro.  Replace all uses of 'static inline' with it.
37479         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37480         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37481         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37482         (Depends-on): Add extern-inline.
37484         sys_socket: better 'inline'
37485         * lib/sys_socket.c: New file.
37486         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37487         New macro.  Replace all uses of 'static inline' with it.
37488         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37489         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37490         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37491         (Depends-on): Add extern-inline.
37493         stdio: better 'inline'
37494         * lib/stdio.c: New file.
37495         * lib/stdio.in.h (_GL_STDIO_INLINE):
37496         New macro.  Replace all uses of 'static inline' with it.
37497         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37498         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37499         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37500         (Depends-on): Add extern-inline.
37502         sigaction: better 'inline'
37503         * lib/sig-handler.c: New file.
37504         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37505         New macro.  Replace all uses of 'static inline' with it.
37506         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37507         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37508         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37509         (Depends-on): Add extern-inline.
37511         selinux-h: better 'inline'
37512         * lib/se-context.c, lib/se-selinux.c: New files.
37513         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37514         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37515         New macro.  Replace all uses of 'static inline' with it.
37516         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37517         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37518         New macro.  Replace all uses of 'static inline' with it.
37519         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37520         * modules/selinux-h (Files, lib_SOURCES):
37521         Add lib/se-context.c, lib/se-selinux.c.
37522         (Depends-on): Add extern-inline.
37523         (configure.ac): Do not require AC_C_INLINE.
37525         pthread: better 'inline'
37526         * lib/pthread.c: New file.
37527         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37528         New macro.  Replace all uses of 'static inline' with it.
37529         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37530         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37531         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37532         * modules/pthread (Files): Add lib/pthread.c.
37533         (Depends-on): Add extern-inline.
37535         math: better 'inline'
37536         * lib/math.c: New file.
37537         * lib/math.in.h (_GL_MATH_INLINE):
37538         New macro.  Replace all uses of 'static inline' with it.
37539         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37540         * m4/math_h.m4 (gl_MATH_H):
37541         Do not require AC_C_INLINE.
37542         * modules/math (Files, lib_SOURCES):
37543         Add lib/math.c.
37544         (Depends-on): Add extern-inline.
37546         count-one-bits: better 'inline'
37547         * lib/count-one-bits.c: New file.
37548         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37549         New macro.  Replace all uses of 'static inline' with it.
37550         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37551         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37552         Do not require AC_C_INLINE.
37553         * modules/count-one-bits (Files, lib_SOURCES):
37554         Add lib/count-one-bits.c.
37555         (Depends-on): Add extern-inline.
37557         count-leading-zeros: better 'inline'
37558         * lib/count-leading-zeros.c: New file.
37559         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37560         New macro.  Replace all uses of 'static inline' with it.
37561         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37562         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37563         Do not require AC_C_INLINE.
37564         * modules/count-leading-zeros (Files, lib_SOURCES):
37565         Add lib/count-leading-zeros.c.
37566         (Depends-on): Add extern-inline.
37568         bitrotate: better 'inline'
37569         * lib/bitrotate.c: New file.
37570         * lib/bitrotate.h (BITROTATE_INLINE):
37571         New macros.
37572         Replace all uses of 'static inline' with them.
37573         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37574         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37575         (Depends-on): Add extern-inline.
37576         (configure.ac): Do not require AC_C_INLINE.
37578 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37580         maint.mk: avoid gratuitous failure
37581         Reported by Stefano Lattarini in
37582         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37583         * top/maint.mk (public-submodule-commit): Quote more safely.
37585 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37587         canonicalize, canonicalize-lgpl: support MS-Windows file names
37588         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37589         for test cases, which it'd be nice to add at some point.
37590         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37591         * lib/canonicalize.c (canonicalize_filename_mode):
37592         * lib/canonicalize-lgpl.c (__realpath):
37593         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37594         slash is at the beginning of the file name.  Use ISSLASH, instead
37595         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37596         the first character with '/'.  Test for
37597         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37598         with a drive letter.
37599         * lib/canonicalize.c (SLASHES): New macro.
37600         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37602 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37604         fts: introduce FTS_VERBATIM
37605         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37606         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37607         * lib/fts.c (fts_open): Honor it.
37609 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37611         getlogin-tests: allow errno == ENXIO
37612         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37613         with errno == ENXIO (No controlling tty).
37614         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37615         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37616         with errno == ENOENT.  This was reported to happen in various
37617         situations on GNU/Linux.
37619 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37621         getlogin-tests: allow errno == ENOENT
37622         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37623         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37624         when running a test in an Emacs shell buffer.
37626 2012-11-08  Jim Meyering  <jim@meyering.net>
37628         tests/nap.h: avoid warning about unused variable
37629         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37631         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37632         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37633         white space before each of the special-cased file names, to avoid
37634         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37635         in http://bugs.gnu.org/12830.
37637 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37639         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37640         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37641         fails with errno == EBADF when fd is opened with O_PATH.
37642         Reported by Jim Meyering in
37643         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37644         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37645         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37647 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37649         test-utimens: speed up by taking shorter naps
37650         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37651         New functions.
37652         (nap): Use them, to do a better job of guessing the delay.
37653         On Fedora 17 with ext4 atop md atop hard disks, this made
37654         test-utimens run 10x faster, because the test napped for
37655         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37656         <http://bugs.gnu.org/12820#11>.
37658 2012-11-07  Jim Meyering  <jim@meyering.net>
37660         mountlist.c: fix a compilation failure
37661         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37662         I introduced while transforming commit v0.0-7683-g613bcb6
37664 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37666         errno: port to LynxOS 178 2.2.2
37667         Problem reported by Joel Brobecker in
37668         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37669         * doc/posix-headers/errno.texi (errno.h): Document this.
37670         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37671         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37672         Supply a string for EILSEQ.
37673         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37675 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37677         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37678         Linux kernel 2.6.39 introduced O_PATH (see
37679         <http://lwn.net/Articles/433854/>) and this is a better fallback
37680         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37681         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37682         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37683         * lib/fcntl.in.h (O_ACCMODE):
37684         * tests/test-fcntl-h.c (main):
37685         Do not reject O_ACCMODE merely because it has more than the
37686         minimal number of bits, as POSIX allows extensions here.
37688 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37690         mountlist: do not classify a bind-mounted dir entry as "dummy"
37691         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37692         the "none"-testing clause.
37693         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37694         exception for bind-mounted directories.
37696 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37698         quote: provide a means to escape strings with nul characters
37699         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37700         (quote, quote_n): Rename formal arguments for consistency with
37701         quotearg.
37703 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37705         test-raise: don't assume 199 is an invalid signal
37706         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37708         sh-quote-tests: port to Solaris 9
37709         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37710         Problem reported by Dagobert Michelsen in
37711         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37713 2012-10-28  Jim Meyering  <jim@meyering.net>
37715         maint.mk: rename a new configurable variable
37716         * top/maint.mk (_gl_translatable_string_re): Rename from
37717         translation-markers: _gl_ prefix to insulate from user Makefile code,
37718         and the _re suffix to inform that it's a regular expression.
37720 2012-10-26  Eric Blake  <eblake@redhat.com>
37722         maint.mk: let packages tweak sc_po_check pattern
37723         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37724         finding files with other translation markers.
37726 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37728         euidaccess: speed up 'configure' on GNU hosts
37729         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37730         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37731         it's needed only in this case.  Use AC_CHECK_DECLS, not
37732         AC_CHECK_DECLS_ONCE.
37733         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37734         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37736         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37738 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37740         fchmodat, fchownat, fstatat: port to non-inlining compilers
37741         Problem reported for FreeBSD 9 by Jim Meyering in
37742         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37743         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37744         New files, which define FCHMODAT_INLINE etc.
37745         * lib/fchmodat.c (FCHMODAT_INLINE):
37746         * lib/fchownat.c (FCHOWNAT_INLINE):
37747         * lib/fstatat.c (FSTATAT_INLINE):
37748         Remove, as chmodat.c etc. now do this.
37749         * modules/fchmodat (Files): Add lib/chmodat.c.
37750         * modules/fchownat (Files): Add lib/chownat.c.
37751         * modules/fstatat (Files): Add lib/statat.c.
37753 2012-10-15  Jim Meyering  <jim@meyering.net>
37755         fchmodat.c, fchownat.c: compile-impeding typos
37756         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37757         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37758         Introduced in commit v0.0-7636-gd202279.
37760 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37762         fcntl-h: support GNU flags like O_IGNORE_CTTY
37763         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37764         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37765         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37766         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37767         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37768         Define to 0 if not already defined.
37769         * tests/test-fcntl-h.c: Test these new flags.
37771 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37773         faccessat, etc.: support AT_FDCWD-only use
37774         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37775         this function only if its first argument is AT_FDCWD.
37776         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37777         values other than AT_FDCWD, so it doesn't want all the openat
37778         machinery with fchdir etc.
37779         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37780         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37781         * modules/unlinkat (Files):
37782         Remove lib/openat-priv.h, as at-internal supplies this file.
37783         Removing this file here allows us to support programs like Emacs
37784         that avoid at-internal.
37786         faccessat: speed up 'configure' on mainstream hosts
37787         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37788         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37789         since it's only on unusual platforms that we need to check for
37790         'access', and it's better not to slow 'configure' down on all
37791         platforms.
37793         faccessat: port to Solaris 10
37794         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37795         Needed on Solaris 10, which doesn't have AT_EACCESS,
37796         so we need the Gnulib fcntl.h, which defines it.
37798 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37799         canonicalize: fix C89 compilation
37800         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37801         declarations so C89 is supported.  Also remove the comment
37802         referencing memorty allocation as the suggested feature could
37803         not be implemented as suggested.
37804         Reported by Michael Goffioul.
37806 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37808         group-member: omit unnecessary dependencies
37809         This is for Emacs, which has its own allocator and where we
37810         don't want to use xalloc.
37811         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37812         since we no longer use xmalloc.  Do not include stdbool.h, since
37813         the changes below happen to remove the only use of bool.
37814         (GROUPBUF_SIZE): New constant.
37815         (struct group_info): Remove n_groups member.  Add groupbuf member.
37816         This lets us get the groups without using malloc, usually.
37817         (free_group_info, get_group_info): Adjust to this.
37818         (get_group_info): Return the number of groups found, or -1 on error.
37819         Use plain malloc not xmalloc, and treat its failure as if there
37820         are no groups, as the user already loses in case of error.
37821         (group_member): Simplify, based on changes to get_group_info.
37822         * modules/group-member (Depends-on): Remove dependencies on
37823         xalloc and stdbool.  Add dependency on xalloc-oversized.
37825 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37827         gethrxtime: port to C++
37828         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37830 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37832         ptsname: fix macro-name typo
37833         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37835 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37837         inttostr: Relax license.
37838         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37840 2012-10-03  Eric Blake  <eblake@redhat.com>
37842         ptsname_r: support ptys returned by FreeBSD posix_openpt
37843         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37844         lives in /dev/pts/.
37846 2012-10-02  Eric Blake  <eblake@redhat.com>
37848         pselect: reject invalid file descriptors
37849         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37850         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37851         * modules/pselect (Depends-on): Add dup2.
37852         * doc/posix-functions/pselect.texi (pselect): Document this.
37854         select: reject invalid file descriptors
37855         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37856         * lib/select.c (rpl_select) [!win32]: Work around it.
37857         * modules/select (Depends-on): Add dup2.
37858         * doc/posix-functions/select.texi (select): Document this.
37860         select: enhance test
37861         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37862         New functions.
37863         (test_function): Enhance test.
37864         (do_select_bad_fd): Avoid any stale errno values.
37866         ptsname: reject invalid file descriptors
37867         http://www.austingroupbugs.net/view.php?id=503
37868         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37870         * modules/stdlib (Makefile.am): Replace witness.
37871         * lib/stdlib.in.h (ptsname): Allow for replacement.
37872         * modules/ptsname (configure.ac): Trigger replacement.
37873         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37875 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37877         hash-pjw-bare: new module
37878         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37879         * lib/hash-pjw-bare.h: Likewise.
37880         * modules/hash-pjw-bare: New file.
37881         * MODULES.html.sh (Misc): Add it.
37883 2012-10-02  Eric Blake  <eblake@redhat.com>
37885         manywarnings: cater to more gcc infelicities
37886         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37887         -Wuninitialized without -O.
37889 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37891         select, poll tests: Make setsockopt invocation effective.
37892         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37893         the bind() call.
37894         * tests/test-select.h (open_server_socket): Likewise.
37896 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37898         sockets, sys_stat: restore AC_C_INLINE
37899         This undoes the 2012-09-22 patch.
37900         * m4/sockets.m4 (gl_SOCKETS):
37901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37902         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37903         and does not support plain 'inline'.  Reported by Bruno Haible in
37904         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37906 2012-09-30  Bruno Haible  <bruno@clisp.org>
37908         localeconv tests: Avoid test failure on OpenIndiana.
37909         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37910         skip the 'grouping' and 'mon_grouping' tests.
37911         Reported by Jim Meyering.
37913 2012-09-30  Bruno Haible  <bruno@clisp.org>
37915         havelib: Follow libtool developments.
37916         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37917         Suggested by Simon Josefsson.
37919 2012-09-29  Jim Meyering  <meyering@redhat.com>
37921         fstatat.c: fix a compile-impeding typo
37922         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37923         Introduced in commit v0.0-7636-gd202279.
37924         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37926 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37928         extern-inline: provide a -Wundef safe config.h
37929         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37930         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37931         to produce a -Wundef warning free config.h.
37933 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37935         hash-pjw: relax license to LGPLv2+
37936         * modules/hash-pjw (License): Relax, with consent of author.
37938 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37940         maint.mk: fix strict vs. lazy variable issues with RELEASE
37941         * top/maint.mk (_equal): New function.
37942         (member_check): Strip the result to avoid spurious spaces.
37943         (url_dir_list): Do not use ifeq, which is strict, as it will
37944         require RELEASE_TYPE to be defined.
37945         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37946         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37947         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37948         (announcement_Cc_beta,announcement_mail_headers_beta)
37949         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37950         (release): Do not depend on $(release-type), as it forces its
37951         evaluation.  Bounce to it.
37953 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37955         maint.mk: formatting changes
37956         * top/maint.mk: Indent bodies of if's.
37958 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37960         maint.mk: factor the validation of RELEASE_TYPE
37961         With help from Jim Meyering.
37962         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37963         * top/maint.mk (_empty, _sp): Move their definition earlier.
37964         (member-check, release-type): New.
37965         Use the latter instead of $(RELEASE_TYPE).
37966         Remove now useless local checks.
37968 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37970         maint.mk: provide "make upload" to ease uploading
37971         See
37972         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37973         Do not depend simply on the current $(VERSION), as there may have been
37974         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37975         as "make release-commit" already does.
37977         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37978         "make TYPE".
37980         * top/maint.mk (upload_command, upload, release): New.
37981         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37982         (VERSION): first word of $(RELEASE) is always right.
37983         (emit_upload_commands): Adjust.
37984         * top/README-release: Update.
37986 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37988         maint.mk: silent rules
37989         With help from Stefano Lattarini.
37990         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37991         (announcement): Use $(AM_V_at).
37993 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37995         localename: port gl_locale_name_thread_unsafe to FreeBSD
37996         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37997         and use the simpler FreeBSD implementation on Mac OS X as well.
37998         Original idea suggested by Ed Maste in
37999         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
38001 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38003         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
38004         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
38005         * lib/mbuiter.c, lib/xsize.c: New files.
38006         * lib/binary-io.h (BINARY_IO_INLINE):
38007         * lib/eealloc.h (EEALLOC_INLINE):
38008         * lib/mbfile.h (MBFILE_INLINE):
38009         * lib/mbiter.h (MBITER_INLINE):
38010         * lib/mbuiter.h (MBUITER_INLINE):
38011         * lib/xsize.h (XSIZE_INLINE):
38012         New macros.
38013         Replace all uses of 'static inline' with them.
38014         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38015         * m4/eealloc.m4 (gl_EEALLOC):
38016         * m4/mbfile.m4 (gl_MBFILE):
38017         * m4/mbiter.m4 (gl_MBITER):
38018         * m4/xsize.m4 (gl_XSIZE):
38019         Do not require AC_C_INLINE.
38020         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
38021         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
38022         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
38023         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
38024         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
38025         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
38026         * modules/binary-io, modules/eealloc, modules/mbfile:
38027         * modules/mbiter, modules/mbuiter:
38028         (Depends-on): Add extern-inline.
38030         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
38031         * lib/pipe-filter-aux.c: New file.
38032         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
38033         Replace all uses of 'static inline' with it.
38034         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38035         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
38036         (filter_retcode): No real need for inline here.
38037         * modules/pipe-filter-gi, modules/pipe-filter-ii:
38038         (Files): Add lib/pipe-filter-aux.c.
38039         (Depends-on): Add extern-inline.
38040         (configure.ac): Do not require AC_C_INLINE.
38041         (lib_SOURCES): Add pipe-filter-aux.c.
38043         fdutimensat: omit unnecessary AC_C_INLINE
38044         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
38046         fchmodat, fchownat, fstatat: use extern-inline
38047         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
38048         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
38049         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
38050         New macros.
38051         * lib/openat.h:
38052         Replace all uses of 'static inline' with them.
38053         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38054         * modules/fchmodat, modules/fchownat, modules/fstatat:
38055         * modules/openat-h:
38056         (Depends-on):
38057         Add extern-inline.
38058         (configure.ac): Remove AC_C_INLINE.
38060         acl, mbchar, priv-set: use extern-inline
38061         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
38062         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
38063         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
38064         New macros.
38065         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
38066         Replace all uses of 'static inline' with it.
38067         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38068         * m4/acl.m4 (gl_FUNC_ACL):
38069         * m4/mbchar.m4 (gl_MBCHAR):
38070         * m4/priv-set.m4 (gl_PRIV_SET):
38071         Remove AC_C_INLINE, since 'inline' is no longer used directly.
38072         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
38073         Add extern-inline.
38075         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
38076         * m4/sockets.m4 (gl_SOCKETS):
38077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
38078         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
38079         environments where it's already guaranteed to work, so we needn't
38080         check for it at 'configure'-time.
38082         tls-tests: omit unnecessary 'inline'
38083         * tests/test-tls.c (perhaps_yield): No longer inline.
38084         Simplicity and portability trump efficiency in test cases.
38086         utimens-tests: avoid unnecessary 'inline'
38087         * modules/fdutimensat-tests (configure.ac):
38088         * modules/futimens-tests (configure.ac):
38089         * modules/utimens-tests (configure.ac):
38090         * modules/utimensat-tests (configure.ac):
38091         Remove AC_C_INLINE.
38092         * tests/test-utimens-common.h (ctime_compare):
38093         No longer inline.  Simplicity and portability trump efficiency here.
38095         misc: don't limit commentary to inline functions
38096         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
38097         * lib/xalloc-oversized.h, lib/xsize.h:
38098         Contrast macros to functions in general, not just to inline functions,
38099         when the commentary does not apply only to inline functions.
38101 2012-09-20  Jim Meyering  <meyering@redhat.com>
38103         non-recursive-gnulib-prefix-hack: new module
38104         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
38105         the file that originated in Bison.
38106         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
38107         largely copied from a snippet that resided in bison's configure.ac.
38108         * modules/non-recursive-gnulib-prefix-hack: New file.
38109         * MODULES.html.sh (Support for maintaining and releasing projects):
38110         Add it.
38112 2012-09-18  Jim Meyering  <meyering@redhat.com>
38114         maint.mk: generalize _gl_tight_scope for non-recursive make
38115         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
38116         that *.h would describe additional .h files in the directory
38117         specified by $(_gl_TS_dir).  I.e., add this...
38118         (_gl_TS_other_headers): New variable.
38120         maint.mk: exempt trailing blanks found in "binary" files
38121         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
38122         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
38123         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38125 2012-09-17  Jim Meyering  <meyering@redhat.com>
38127         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
38128         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
38129         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
38130         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38132 2012-09-17  Jim Meyering  <meyering@redhat.com>
38134         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
38135         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
38136         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
38137         It is not in the same category as "exit (0)" or "exit (1)", and
38138         besides, I know of no symbolic name for that 77.  Reported by
38139         Richard W.M. Jones in
38140         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38142 2012-09-17  Jim Meyering  <meyering@redhat.com>
38144         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
38145         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
38146         all uses of #define, not just those that start in column 1.
38147         Richard W.M. Jones reported a false positive in
38148         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38150 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38152         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
38153         * lib/localcharset.c (locale_charset) [DARWIN7]:
38154         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
38155         as these two values are incompatible.  Problem reported by Max Horn.
38156         For more discussion, please see
38157         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
38159         doc: document sticky-EOF issue
38160         * doc/posix-functions/fgetc.texi (fgetc):
38161         * doc/posix-functions/fgets.texi (fgets):
38162         * doc/posix-functions/fread.texi (fread):
38163         * doc/posix-functions/fscanf.texi (fscanf):
38164         * doc/posix-functions/getc.texi (getc):
38165         * doc/posix-functions/getchar.texi (getchar):
38166         * doc/posix-functions/scanf.texi (scanf):
38167         Mention that glibc and default Solaris do not conform to
38168         C99 and POSIX-2001 or later, with respect to how getchar
38169         etc. behave when feof reports nonzero.
38171 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38173         poll: fix poll(0, NULL, msec)
38174         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
38175         but nfd is 0.  In that case poll should behave like select.
38177 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38178             Paolo Bonzini  <bonzini@gnu.org>
38180         poll: fix for systems that can't recv() on a non-socket
38181         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
38182         is readable.  In this case POLLHUP will not be supported.
38183         * doc/posix-functions/poll.texi: Document this.
38185 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
38187         poll/select: document portability problems not fixed by Gnulib.
38188         * doc/posix-functions/poll.texi: poll does not work well on
38189         pipes under Windows.  It has the same limitations as select on
38190         BeOS.
38191         * doc/posix-functions/select.texi: select does not work well
38192         on pipes under Windows.
38194 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
38196         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
38197         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
38198         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
38199         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
38201 2012-09-06  Eric Blake  <eblake@redhat.com>
38203         net_if: give more details about the bug being fixed
38204         * doc/posix-headers/net_if.texi: Add clarification.
38206 2012-09-05  Eric Blake  <eblake@redhat.com>
38208         net_if: new module
38209         * modules/net_if: New module, borrowing ideas from netinet_in.
38210         * m4/net_if_h.m4: New file.
38211         * lib/net_if.in.h: Likewise.
38212         * doc/posix-headers/net_if.texi (net/if.h): Document it.
38213         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38214         * tests/test-net_if.c: Make function checks conditional.
38215         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
38217 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
38219         readutmp: fix non-portable UT_PID use
38220         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
38221         Use `UT_PID (u) > 0' as absolute condition.
38223 2012-09-04  Jim Meyering  <meyering@redhat.com>
38225         fts: reduce two or more trailing spaces to just one, usually
38226         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
38227         or more slashes, trim all but the final one.  But if a name consists
38228         solely of two slashes, don't modify it.  If it consists solely of
38229         three or more slashes, strip all but one.
38231         This is part of the solution to a minor problem with rm:
38232         it would print a bogus ELOOP diagnostic when failing to remove
38233         the slash-decorated name of a symlink-to-directory:
38235             $ mkdir d && ln -s d s && env rm -r s/
38236             rm: cannot remove 's': Too many levels of symbolic links
38238         With the change below and a trivial don't-trim-trailing-slashes
38239         adjustment to remove.c, it does this:
38241             $ env rm -r s/
38242             rm: cannot remove 's/': Not a directory
38244         Improved by: Eric Blake
38246         fts: when there is no risk of overlap, use memcpy, not memmove
38247         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
38249 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
38251         stdbool: be more compatible with mixed C/C++ compiles
38252         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
38253         Define to bool, true, false, respectively, as GCC's builtin
38254         stdbool.h does.  Problem reported by Michael Goffioul in
38255         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
38257 2012-08-28  Jim Meyering  <meyering@redhat.com>
38259         revert last change: it was not needed
38260         * tests/test-vc-list-files-git.sh: There's already a test for
38261         a working git, just below.
38263 2012-08-28  Jim Meyering  <meyering@redhat.com>
38265         tests: test-vc-list-files-git.sh: skip if git is not available
38266         * tests/test-vc-list-files-git.sh: Skip this test when git is
38267         not available.
38269 2012-08-26  Bruno Haible  <bruno@clisp.org>
38271         gnulib-tool: Remove no-op option --no-changelog.
38272         * gnulib-tool (func_usage): Don't mention --no-changelog.
38273         (do_changelog): Remove variable.
38274         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38276 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38278         doc: remove fdl-1.2.texi
38279         It is no longer used or maintained, and its use of @acronym
38280         is problematic.  See the thread containing
38281         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
38282         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
38283         * doc/old-licenses/fdl-1.2.texi: Remove.
38285         execinfo: port to FreeBSD
38286         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
38287         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
38288         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
38289         * modules/execinfo (Link): Add $(LIB_EXECINFO).
38291 2012-08-23  Jim Meyering  <meyering@redhat.com>
38293         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
38294         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
38295         to placate gcc's -Wold-style-declaration.
38297 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38299         doc: do not use @acronym
38300         * doc/inet_ntoa.texi (inet_ntoa):
38301         * doc/parse-datetime.texi (Seconds since the Epoch)
38302         (Specifying time zone rules):
38303         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
38304         Don't use @acronym.  Problem reported by John Darlington in
38305         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
38307 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38309         stdnoreturn: port to newer GCCs
38310         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
38311         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
38312         Problem reported by Jim Meyering in
38313         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
38314         Also, rename the 'test' function to a void a clash with the
38315         already-supplied 'main' function; this fixes a bug that incorrectly
38316         rejected GCC 4.7.1's <stdnoreturn.h>.
38317         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
38318         Document GCC problem.
38320 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
38322         pipe-filter: fix comment typo
38323         * lib/pipe-filter.h: Mention correct function.
38325 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38327         execinfo: new module
38328         This is for Emacs.  Currently, it provides a no-effect stub
38329         on all platforms where it does not already work.
38330         It already works on glibc-based systems, and on Solaris 11.
38331         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
38332         New files.
38333         * doc/glibc-headers/execinfo.texi (execinfo.h):
38334         * MODULES.html.sh (Misc): Document it.
38336 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38338         extern-inline: support old GCC 'inline'
38339         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
38340         if available.  This applies to GCC versions 2.7 through 4.2, or
38341         when newer GCC is using -fgnu89-inline.  The goal is to address
38342         some of the performance issues mentioned by Bruno Haible in
38343         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
38345 2012-08-20  Eric Blake  <eblake@redhat.com>
38347         maint.mk: avoid redundant file name in message
38348         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38349         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
38350         (sc_makefile_path_separator_check): Remove bogus $(ME).
38352 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
38354         timer-time: fix link order when static linking on glibc
38355         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38356         _after_ -lrt so that it's significant.
38358 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38360         timespec: omit unnecessary AC_C_INLINE
38361         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
38363         stat-time: omit unnecessary AC_C_INLINE
38364         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38365         Do not require AC_C_INLINE.
38367         ignore-value: omit unnecessary AC_C_INLINE
38368         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
38370         sys_select: avoid 'static inline'
38371         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
38373         mktime: avoid 'static inline'
38374         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
38375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
38377 2012-08-19  Bruno Haible  <bruno@clisp.org>
38379         gnulib-tool: Improve coding style.
38380         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
38381         func_emit_lib_Makefile_am.
38382         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38384 2012-08-19  Bruno Haible  <bruno@clisp.org>
38386         gnulib-tool: Fix indentation.
38387         * gnulib-tool (func_import): Fix indentation.
38389 2012-08-19  Bruno Haible  <bruno@clisp.org>
38391         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
38392         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
38393         on the list of removed files.
38395 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38397         test-parse-datetime: avoid glibc leap-second glitch
38398         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
38399         with the 2012 rules.  Problem reported by Bruce Dubbs in
38400         <http://bugs.gnu.org/12206>.
38402 2012-08-14  Bruno Haible  <bruno@clisp.org>
38404         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
38405         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
38406         from argument.
38407         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38409 2012-08-14  Eric Blake  <eblake@redhat.com>
38411         ldexp: relax license
38412         * modules/ldexp (License): Trivial relax, since the module only
38413         provides a permissively licensed m4 file.
38415 2012-08-13  Bruno Haible  <bruno@clisp.org>
38417         gnulib-tool: Fix persistence of --witness-c-macro option.
38418         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
38419         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38421 2012-08-11  Eric Blake  <eblake@redhat.com>
38423         count-leading-zeros: use a lookup table on non-gcc compilers
38424         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38425         alternate implementation, suggested by Jim Meyering.
38427 2012-08-10  Eric Blake  <eblake@redhat.com>
38429         count-leading-zeros: new module
38430         * modules/count-leading-zeros: New module.
38431         * m4/count-leading-zeros.m4: New file.
38432         * lib/count-leading-zeros.h: Likewise.
38433         * modules/count-leading-zeros-tests: New test.
38434         * tests/test-count-leading-zeros.c: New file.
38435         * MODULES.html.sh (Integer arithmetic functions): Document it.
38437 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38438             Jim Meyering  <meyering@redhat.com>
38440         maintainer-makefile: Fix syntax error with dash.
38441         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38442         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38444 2012-08-05  Jim Meyering  <meyering@redhat.com>
38446         extern-inline: also ignore -Wmissing-declarations
38447         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38448         required with gcc-4.8.0-to-be.
38450         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38451         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38452         for /error ?([^,]*)/.  This avoids false-positives for strings like
38453         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38455 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38457         gnumakefile: better interaction with Automake-NG
38458         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38459         Automake-NG always contain a definition of VPATH, even in non-VPATH
38460         builds (its value being simply '.' in that case).  So, in the
38461         'clean-GNUmakefile' rule, to determine whether running under a
38462         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38463         '$(VPATH)' expands to the empty string.
38465 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38467         base64: Use extern C scope in header file, for C++.
38468         * lib/base64.h: Add C++ namespace protection.
38470 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38472         stat-time, timespec, u64: support naive out-of-dir builds
38473         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38474         Use '#include "foo.h"', not '#include <foo.h>', when including
38475         one's own interface.  This works better when configuring with
38476         out-of-directory builds, since packages need not add an
38477         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38479 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38481         utimens: use extern-inline
38482         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38483         * lib/utimens.h: Add copyright notice, since this is now large enough
38484         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38485         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38486         * modules/utimens (Depends-on): Add extern-inline.
38488         u64: use extern-inline
38489         * lib/u64.c: New file.
38490         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38491         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38492         * modules/u64 (Files): Add lib/u64.c.
38493         (Depends-on): Add extern-inline.
38494         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38495         does that now.
38496         (lib_SOURCES): Add u64.c.
38498         timespec: use extern-inline
38499         * lib/timespec.c: New file.
38500         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38501         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38502         * modules/timespec (Files): Add lib/timespec.c.
38503         (Depends-on): Add extern-inline.
38504         (lib_SOURCES): Add timespec.c.
38506         stat-time: use extern-inline
38507         * lib/stat-time.c: New file.
38508         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38509         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38510         * modules/stat-time (Files): Add lib/stat-time.c.
38511         (Depends-on): Add extern-inline.
38512         (lib_SOURCES): Add stat-time.c.
38514         extern-inline: new module
38515         * modules/extern-inline, m4/extern-inline.m4: New files.
38516         This is for better support of 'extern inline' a la ISO C99,
38517         with a portable alternative on compilers that do not support
38518         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38519         of the Emacs executable, when compiled with debugging disabled,
38520         which is a typical way that Emacs is built while developing.
38522 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38524         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38525         * build-aux/do-release-commit-and-tag: Move variable definitions
38526         together.
38527         ($branch): Instead of defaulting to "master", default to the current
38528         branch (as gnu-web-doc-update does).
38529         (help): Display the current values of the option arguments.
38530         * top/maint.mk (release-commit): New.
38531         * top/README-release: Simplify the corresponding step.
38533 2012-07-30  Eric Blake  <eblake@redhat.com>
38535         passfd: fix comment on recvfd
38536         * lib/passfd.c (recvfd): Fix comment.
38537         Reported by Jann Horn <jannhorn@googlemail.com>.
38539 2012-07-30  Jim Meyering  <meyering@redhat.com>
38541         maint.mk: avoid a sub-shell
38542         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38544 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38546         maint.mk: use silent-rules support from Automake
38547         * top/maint.mk (news-check, vc-diff-check, announcement)
38548         (no-submodule-changes, alpha beta stable, release-prep)
38549         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38551 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38553         maint.mk: provide a web-manual-update target
38554         * top/maint.mk: here.
38555         * top/README-release: Use it to simplify the web manual update step.
38557 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38559         README-release: shorten the circuit to post a news
38560         * top/README-release: Point directly to the news submission form.
38562 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38564         gnu-web-doc-update: fix --help
38565         * build-aux/gnu-web-doc-update: The information "top level" was written
38566         twice.
38568 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38570         maint.mk: absolute VPATH issue
38571         * top/maint.mk (release-prep): Help Git find .git/.
38572         From Jim Meyering.
38574 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38576         gitlog-to-changelog: fix previous change
38577         * build-aux/gitlog-to-changelog: Fix condition.
38578         Add missing ";".
38580 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38582         gitlog-to-changelog: don't expect .git to be in $srcdir
38583         Reported by Bruno Haible.
38584         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38585         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38586         Use it.
38588 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38590         maint.mk: absolute VPATH build fix
38591         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38592         $(srcdir) is not a parent of $(builddir).
38594 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38596         clean-temp: Fix memory leak.
38597         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38598         'files' members of tmpdir.
38600 2012-07-27  Jim Meyering  <meyering@redhat.com>
38602         maint.mk: new rule: refresh-gnulib-patches
38603         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38604         Use this rule to refresh them.
38605         * top/maint.mk (refresh-gnulib-patches): New rule.
38607 2012-07-24  Bruno Haible  <bruno@clisp.org>
38609         gnulib-tool: Fix handling of inctests variable.
38610         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38611         Reported by Nick Bowler <nbowler@elliptictech.com>.
38613 2012-07-22  Bruno Haible  <bruno@clisp.org>
38615         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38616         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38617         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38618         Remove exemption for getpass.h.
38619         Suggested by Eric Blake.
38621 2012-07-20  Eric Blake  <eblake@redhat.com>
38623         verify: document conflict with -Wnested-externs
38624         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38626         maint.mk: forbid exit(-1)
38627         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38629 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38631         fsusage: port back to Solaris
38632         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38633         error (fsd not declared) on Solaris 10.  Reported privately by
38634         Andrew Borodin.
38636 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38638         gnu-web-doc-update: fix error messages
38639         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38641         gnu-web-doc-update: check the requirements.
38642         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38643         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38644         * build-aux/bootstrap (find_tool): Comment change.
38646 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38648         maint.mk: minor simplication.
38649         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38650         for default values.
38652 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38654         gitlog-to-changelog: VPATH build issues
38655         If builddir is not a subdirectory of srcdir, running git from it will
38656         fail.
38657         * build-aux/gitlog-to-changelog (--srcdir): New option.
38659 2012-07-15  Bruno Haible  <bruno@clisp.org>
38661         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38662         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38663         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38664         Remove exemption for fpending.h.
38665         Suggested by Eric Blake.
38667 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38669         pthread_sigmask: fix bug on FreeBSD 9
38670         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38671         Include string.h.
38672         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38673         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38674         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38675         but pthread_sigmask (1729, NULL, NULL) returns zero.
38676         See <http://bugs.gnu.org/11884>.
38677         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38678         by inspecting whether the main call changed the old mask.
38680 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38682         README-release: make it more legible
38683         * top/README-release: Improve typography slightly.
38685 2012-07-15  Jim Meyering  <meyering@redhat.com>
38687         maint: require that each sc_... command start with "@"
38688         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38689         "make sc_maint" helps us avoid this nit.
38691 2012-07-15  Jim Meyering  <meyering@redhat.com>
38693         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38694         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38696 2012-07-13  Eric Blake  <eblake@redhat.com>
38698         maint.mk: new syntax check for HAVE_DECL checks
38699         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38700         * cfg.mk
38701         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38702         Exempt some false positives.
38703         Based on a report by Karel Zak.
38705         argp: make HAVE_DECL usage consistent
38706         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38707         macros, not whether they are defined.
38708         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38709         convention with other declaration checks.
38710         Reported by Karel Zak, with suggestions from Paul Eggert.
38712         stat-time: relax license to LGPLv2+
38713         * modules/stat-time (License): Relax, with consent of all authors.
38715         strndup: fix m4 usage error
38716         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38717         defined, to either 0 or 1.
38718         Reported by Karel Zak.
38720 2012-07-11  Jim Meyering  <meyering@redhat.com>
38722         maint: enable the sc_avoid_if_before_free syntax-check rule
38723         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38724         (if_before_free_offenders_): Define.
38725         (if_before_free_basename_re_): Define.
38726         Exempt current files with useless if-before-free.
38728 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38730         gettext: do not assume '#define ... defined ...' behavior
38731         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38732         Do not use '#define FOO ... defined BAR ...', as the C standard says
38733         it's not portable to expect that this works after macro expansion.
38734         Problem reported for gzip by Steven M. Schweda in
38735         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38737 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38739         getloadavg: clean out old Emacs and Autoconf cruft
38740         See Glenn Morris in <http://bugs.gnu.org/11905>.
38741         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38742         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38743         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38744         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38746 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38748         bootstrap: let warn be like tests/init.sh's warn_
38749         Reported by Jim Meyering.
38750         * build-aux/bootstrap (warn): Remove, replaced by...
38751         (warnf_, warn_): these.
38752         Adjust callers.
38753         Shorten messages that no longer fit in 80 columns.
38755 2012-07-09  Bruno Haible  <bruno@clisp.org>
38757         getopt: Simplify after Emacs changed.
38758         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38759         (gl_GETOPT_IFELSE): Remove macro.
38761 2012-07-09  Jim Meyering  <meyering@redhat.com>
38763         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38764         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38766         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38767         Bugs in both of those conspired to make the
38768         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38769         _sc_search_regexp's handling of non-empty $in_files would filter
38770         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38771         choice of in_files value meant there would be no match in most
38772         projects, due to the presence of two or more Makefile.in files.
38773         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38774         Fix a bug in how a non-empty $$in_files was processed:
38775         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38776         in spite of the name, it's a regexp, not a list of file names.
38778 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38780         getloadavg, getopt: fix commentary re configure.in
38781         Autoconf is deprecating the name 'configure.in', so change it to
38782         to the new name 'configure.ac' in a couple of places.
38783         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38784         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38785         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38786         Emacs has renamed it to configure.ac, and it no longer refers
38787         to these macros anyway.
38789         timespec: mark functions with const attributes
38790         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38791         Mark with _GL_ATTRIBUTE_CONST.
38793 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38795         canonicalize[-lgpl]: handle "guessing" values when cross-building
38796         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38797         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38798         matches "*yes" instead of just "yes".  Regression introduced in commit
38799         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38801 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38802             Bruno Haible  <bruno@clisp.org>
38804         canonicalize: make the right guess when cross-compiling to GNU
38805         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38806         determine whether cross-compiling to glibc systems, so as to
38807         include GNU/Hurd.
38809 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38811         timespec-sub: avoid duplicate include
38812         * lib/timespec-sub.c: Do not include <config.h> twice.
38813         Reported by Juanma Barranquero.
38815 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38817         bootstrap: use a more consistent error reporting scheme
38818         * build-aux/bootstrap (warn, die): New.
38819         Use them.
38821 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38823         sys_time: allow too-wide tv_sec
38824         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38825         timeval even if tv_sec is wider than time_t.  This allows
38826         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38827         as without this patch gnulib replaces struct timeval
38828         and OpenBSD futimes therefore has a type mismatch.
38829         * doc/posix-headers/sys_time.texi: Mention this.
38831         pthread: check for both pthread_create and pthread_join
38832         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38833         alter the check so that it tests for both pthread_create and
38834         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38835         Suggested by Bruno Haible and Richard Yao in
38836         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38838         parse-datetime: doc tuneup
38839         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38840         spacing issues.
38842 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38844         do-release-commit-and-tag: fix the previous commit
38845         * build-aux/do-release-commit-and-tag: Actually the test was right,
38846         but the comment and the error message were misleading.
38847         Fix comment, and improve error message.
38848         Perform check first, so that NEWS is not modified uselessly.
38850         do-release-commit-and-tag: fix typo
38851         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38852         _not_ start with a stub.
38854 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38856         pthread: check for pthread_create, not pthread_join
38857         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38858         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38859         pthread_join in libc.  I hope this removes the need for all the
38860         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38861         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38863 2012-07-04  Jim Meyering  <meyering@redhat.com>
38865         parse-datetime: fix failure to diagnose invalid input
38866         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38867         rather than diagnosing the invalid input.  Now it reports this:
38868         date: invalid date '\260'
38869         * lib/parse-datetime.y (to_uchar): Define.
38870         (yylex): Don't sign-extend "other" bytes.
38871         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38872         Thanks to Bruno Haible for the patch to this file.
38873         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38874         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38876 2012-07-03  Jim Meyering  <meyering@redhat.com>
38878         bootstrap: do not require now-removed build-aux/missing
38879         Now that build-aux/missing is, er, missing, bootstrap would
38880         silently fail.
38881         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38882         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38883         no longer part of gnulib.
38884         Diagnose the failure.
38886 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38888         alloca: add support for HP NonStop TNS/E native
38889         * lib/alloca.in.h (alloca): Support the new host.
38890         From a suggestion by Joachim Schmitz in
38891         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38893 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38895         fsusage: remove code not needed on non GNU/Linux systems.
38897         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38898         Don't include headers no longer needed in this case.
38899         * lib/fsusage.c [STAT_STATVFS &&
38900         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38901         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38903 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38905         fsusage: include files needed for glibc 2.6 fallback
38906         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38907         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38908         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38909         Problem reported by Ludovic Courtès in
38910         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38912         fsusage: avoid needless check on GNU/Linux
38913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38914         on GNU/Linux systems, since it can't possibly work.
38916 2012-07-01  Bruno Haible  <bruno@clisp.org>
38918         log: Fix an autoconf >= 2.64 warning.
38919         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38920         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38922 2012-06-28  Bruno Haible  <bruno@clisp.org>
38924         log10f: Fix possible configuration problem.
38925         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38926         $LOGF_LIBM.
38927         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38929 2012-06-28  Bruno Haible  <bruno@clisp.org>
38931         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38932         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38933         not gl_cv_func_unlink_works.
38934         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38936 2012-06-27  Eric Blake  <eblake@redhat.com>
38938         config: drop scripts that automake says are not independent
38939         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38940         * build-aux/elisp-comp: Delete.
38941         * build-aux/missing: Likewise.
38942         * build-aux/ylwrap: Likewise.
38943         * modules/elisp-comp: Likewise.
38944         * MODULES.html.sh: Drop mention of elisp-comp.
38945         * NEWS: Mention this.
38947 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38949         root-uid: new module
38950         This is for portability to Tandem's NonStop Kernel.
38951         * lib/root-uid.h, modules/root-uid: New files.
38952         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38953         * lib/write-any-file.c, tests/test-sethostname2.c:
38954         Include "root-uid.h".
38955         * lib/euidaccess.c (euidaccess):
38956         * lib/pt_chown.c (main):
38957         * lib/unlinkdir.c (cannot_unlink_dir):
38958         * lib/write-any-file.c (can_write_any_file):
38959         * m4/mknod.m4 (gl_FUNC_MKNOD):
38960         * tests/test-sethostname2.c (geteuid, main):
38961         Don't assume ROOT_UID == 0.
38962         * modules/euidaccess (Depends-on):
38963         * modules/pt_chown (Depends-on):
38964         * modules/sethostname-tests (Depends-on):
38965         * modules/unlinkdir (Depends-on):
38966         * modules/write-any-file (Depends-on):
38967         Add root-uid.
38969         regex: use locale-independent comparison for codeset name
38970         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38971         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38972         for codeset name.
38973         * lib/regex_internal.h: Do not include <strings.h>, since we
38974         no longer use strcasecmp.
38975         * modules/regex (Depends-on): Remove strcase.
38977 2012-06-23  Bruno Haible  <bruno@clisp.org>
38979         getopt-posix: No longer guarantee that option processing is resettable.
38980         * doc/posix-functions/getopt.texi: Drop description of problem with
38981         internal state. Fix info about mingw and msvc9.
38982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38983         option processing by getopt(). Run three test programs instead of one.
38984         Simplify cross-compilation guess.
38985         * NEWS: Mention the change.
38986         Reported by Rich Felker <dalias@aerifal.cx>.
38988 2012-06-26  Bruno Haible  <bruno@clisp.org>
38990         argp, regex: Ensure strcasecmp gets declared.
38991         * lib/argp-help.c: Include <strings.h>.
38992         * lib/regex_internal.h: Likewise.
38993         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38995 2012-06-24  Bruno Haible  <bruno@clisp.org>
38997         ptsname_r: Make it consistent with ptsname on AIX.
38998         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38999         implementation as for OSF/1.
39000         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
39001         a pty master.
39003         ptsname_r: Make it consistent with ptsname on OSF/1.
39004         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39005         OSF/1.
39007 2012-06-24  Bruno Haible  <bruno@clisp.org>
39009         ttyname_r: Fix result on OSF/1, Solaris.
39010         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
39012 2012-06-24  Bruno Haible  <bruno@clisp.org>
39014         ptsname_r: Add support for Solaris.
39015         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39016         Solaris.
39018         ptsname_r: Fix test failure on native Windows.
39019         * modules/ptsname_r (Depends-on): Add isatty.
39021         ptsname_r: Fix test failures on IRIX, Solaris.
39022         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
39023         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
39024         accordingly.
39025         * lib/ptsname_r.c: Include <fcntl.h>.
39026         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
39027         set errno if fd is invalid.
39028         * tests/test-isatty.c (main): Update comments.
39030 2012-06-24  Bruno Haible  <bruno@clisp.org>
39032         ptsname test: Extend test.
39033         * tests/test-ptsname.c: Include <errno.h>.
39034         (main): Test behaviour with invalid file descriptor.
39036 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39038         time: fix obsolete comment
39039         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
39040         reference to HAVE_STRUCT_TIMESPEC in comment.
39042 2012-06-23  Bruno Haible  <bruno@clisp.org>
39044         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
39045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
39046         does not handle abbreviated long options with equivalent
39047         disambiguations, set gl_replace_getopt to yes.
39048         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
39050 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39052         time_r: fix typo that always overrode localtime_r decl
39053         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
39054         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
39055         not in a standard include.
39057 2012-06-22  Bruno Haible  <bruno@clisp.org>
39059         Write "Mac OS X" instead of "MacOS X".
39060         * README: Write "Mac OS X" instead of "MacOS X".
39061         * build-aux/bootstrap: Likewise.
39062         * build-aux/install-reloc: Likewise.
39063         * lib/acl-internal.h: Likewise.
39064         * lib/acl_entries.c: Likewise.
39065         * lib/argp-ba.c: Likewise.
39066         * lib/argp-pv.c: Likewise.
39067         * lib/config.charset: Likewise.
39068         * lib/copy-acl.c: Likewise.
39069         * lib/csharpexec.c: Likewise.
39070         * lib/euidaccess.c: Likewise.
39071         * lib/fbufmode.c: Likewise.
39072         * lib/fflush.c: Likewise.
39073         * lib/file-has-acl.c: Likewise.
39074         * lib/filemode.h: Likewise.
39075         * lib/fpurge.c: Likewise.
39076         * lib/freadable.c: Likewise.
39077         * lib/freadahead.c: Likewise.
39078         * lib/freading.c: Likewise.
39079         * lib/freadptr.c: Likewise.
39080         * lib/freadseek.c: Likewise.
39081         * lib/fseeko.c: Likewise.
39082         * lib/fseterr.c: Likewise.
39083         * lib/fsusage.c: Likewise.
39084         * lib/fwritable.c: Likewise.
39085         * lib/fwriting.c: Likewise.
39086         * lib/get-rusage-as.c: Likewise.
39087         * lib/get-rusage-data.c: Likewise.
39088         * lib/getdomainname.c: Likewise.
39089         * lib/idpriv-drop.c: Likewise.
39090         * lib/idpriv-droptemp.c: Likewise.
39091         * lib/localcharset.c: Likewise.
39092         * lib/locale.in.h: Likewise.
39093         * lib/localename.c: Likewise.
39094         * lib/mbsrtowcs-state.c: Likewise.
39095         * lib/nproc.c: Likewise.
39096         * lib/passfd.c: Likewise.
39097         * lib/posix_openpt.c: Likewise.
39098         * lib/printf-parse.c: Likewise.
39099         * lib/progreloc.c: Likewise.
39100         * lib/safe-read.h: Likewise.
39101         * lib/safe-write.h: Likewise.
39102         * lib/sched.in.h: Likewise.
39103         * lib/set-mode-acl.c: Likewise.
39104         * lib/signal.in.h: Likewise.
39105         * lib/stdint.in.h: Likewise.
39106         * lib/stdio-impl.h: Likewise.
39107         * lib/stdlib.in.h: Likewise.
39108         * lib/strtod.c: Likewise.
39109         * lib/sys_select.in.h: Likewise.
39110         * lib/tcgetsid.c: Likewise.
39111         * lib/unistd.in.h: Likewise.
39112         * lib/unlockpt.c: Likewise.
39113         * lib/vasnprintf.c: Likewise.
39114         * lib/vma-iter.c: Likewise.
39115         * lib/wcsrtombs-state.c: Likewise.
39116         * m4/acl.m4: Likewise.
39117         * m4/acosl.m4: Likewise.
39118         * m4/asinl.m4: Likewise.
39119         * m4/atanl.m4: Likewise.
39120         * m4/c-stack.m4: Likewise.
39121         * m4/cosl.m4: Likewise.
39122         * m4/expl.m4: Likewise.
39123         * m4/extensions.m4: Likewise.
39124         * m4/fdatasync.m4: Likewise.
39125         * m4/fmal.m4: Likewise.
39126         * m4/frexp.m4: Likewise.
39127         * m4/frexpf.m4: Likewise.
39128         * m4/frexpl.m4: Likewise.
39129         * m4/fsusage.m4: Likewise.
39130         * m4/getdomainname.m4: Likewise.
39131         * m4/getloadavg.m4: Likewise.
39132         * m4/getopt.m4: Likewise.
39133         * m4/gettext.m4: Likewise.
39134         * m4/gnulib-common.m4: Likewise.
39135         * m4/intdiv0.m4: Likewise.
39136         * m4/intlmacosx.m4: Likewise.
39137         * m4/largefile.m4: Likewise.
39138         * m4/ldexpl.m4: Likewise.
39139         * m4/link-follow.m4: Likewise.
39140         * m4/locale-ar.m4: Likewise.
39141         * m4/locale-fr.m4: Likewise.
39142         * m4/locale-ja.m4: Likewise.
39143         * m4/locale-tr.m4: Likewise.
39144         * m4/locale-zh.m4: Likewise.
39145         * m4/locale_h.m4: Likewise.
39146         * m4/lock.m4: Likewise.
39147         * m4/logl.m4: Likewise.
39148         * m4/mathfunc.m4: Likewise.
39149         * m4/minus-zero.m4: Likewise.
39150         * m4/mktime.m4: Likewise.
39151         * m4/mmap-anon.m4: Likewise.
39152         * m4/multiarch.m4: Likewise.
39153         * m4/nanosleep.m4: Likewise.
39154         * m4/nocrash.m4: Likewise.
39155         * m4/poll.m4: Likewise.
39156         * m4/printf-frexpl.m4: Likewise.
39157         * m4/printf.m4: Likewise.
39158         * m4/signbit.m4: Likewise.
39159         * m4/sinl.m4: Likewise.
39160         * m4/sqrtl.m4: Likewise.
39161         * m4/strerror_r.m4: Likewise.
39162         * m4/tanl.m4: Likewise.
39163         * m4/threadlib.m4: Likewise.
39164         * m4/ttyname_r.m4: Likewise.
39165         * m4/unlink.m4: Likewise.
39166         * m4/visibility.m4: Likewise.
39167         * m4/wcwidth.m4: Likewise.
39168         * tests/minus-zero.h: Likewise.
39169         * tests/test-alloca-opt.c: Likewise.
39170         * tests/test-copy-acl.sh: Likewise.
39171         * tests/test-copy-file.sh: Likewise.
39172         * tests/test-fdatasync.c: Likewise.
39173         * tests/test-file-has-acl.sh: Likewise.
39174         * tests/test-flock.c: Likewise.
39175         * tests/test-fsync.c: Likewise.
39176         * tests/test-localename.c: Likewise.
39177         * tests/test-malloca.c: Likewise.
39178         * tests/test-nonblocking-pipe.h: Likewise.
39179         * tests/test-nonblocking-socket.h: Likewise.
39180         * tests/test-openpty.c: Likewise.
39181         * tests/test-posix_openpt.c: Likewise.
39182         * tests/test-ptsname.c: Likewise.
39183         * tests/test-ptsname_r.c: Likewise.
39184         * tests/test-sameacls.c: Likewise.
39185         * tests/test-select.h: Likewise.
39186         * tests/test-set-mode-acl.sh: Likewise.
39187         * tests/test-snprintf-posix.h: Likewise.
39188         * tests/test-sprintf-posix.h: Likewise.
39189         * tests/test-strtod.c: Likewise.
39190         * tests/test-time.c: Likewise.
39191         * tests/test-vasnprintf-posix.c: Likewise.
39192         * tests/test-vasprintf-posix.c: Likewise.
39193         * doc/acl-resources.txt: Likewise.
39194         * doc/**/*.texi: Likewise.
39195         Reported by Max Horn <max@quendi.de>.
39197 2012-06-22  Bruno Haible  <bruno@clisp.org>
39199         grantpt: Relax requirement regarding invalid file descriptors.
39200         * lib/grantpt.c: Don't include <fcntl.h>.
39201         (grantpt): Don't verify the validity of the file descriptor.
39202         * modules/grantpt (Depends-on): Remove fcntl-h.
39203         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
39204         file descriptors.
39205         * doc/posix-functions/grantpt.texi: Document more platforms on which
39206         grantpt succeeds for invalid file descriptors.
39207         Reported by Rich Felker <dalias@aerifal.cx>.
39209 2012-06-22  Bruno Haible  <bruno@clisp.org>
39211         fbufmode test: Don't test unportable behaviour.
39212         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
39213         (main): Invoke it three times.
39214         Reported by Szabolcs Nagy <nsz@port70.net>
39215         and Rich Felker <dalias@aerifal.cx>.
39217 2012-06-21  Bruno Haible  <bruno@clisp.org>
39219         gnulib-tool: Refactor inctests variable.
39220         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
39221         (func_modules_transitive_closure,
39222         func_modules_transitive_closure_separately,
39223         func_import, func_create_testdir): Update.
39225         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
39226         * gnulib-tool: Accept option --without-tests.
39227         (func_usage): Document --without-tests option. Rearrange.
39228         (inctests): Normalize according to the mode.
39229         * NEWS: Mention the change.
39230         Suggested by Simon Josefsson.
39232 2012-06-21  Bruce Korb  <bkorb@gnu.org>
39234         parse-duration test: Avoid spurious output.
39235         * tests/test-parse-duration.sh: Reindent with leading tabs.
39237 2012-06-21  Jim Meyering  <meyering@redhat.com>
39239         maint: disable the strncpy prohibition
39240         * cfg.mk: Do not prohibit strncpy here.
39242 2012-06-21  Bruno Haible  <bruno@clisp.org>
39244         nonblocking: Avoid compilation error on mingw64.
39245         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
39246         fscanf.
39247         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
39248         * modules/vfscanf (configure.ac): Likewise.
39249         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
39250         definition only if stdio.h has prepared it.
39251         Reported by Daniel P. Berrange <berrange@redhat.com>.
39253 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
39255         gnulib-tool: Use readlink if it is available.
39256         * gnulib-tool (func_readlink): Choose function more appropriately.
39258 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39260         posixtm-tests: port to buggy compiler
39261         Problem reported by Simon Josefsson in
39262         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
39263         * modules/posixtm-tests (Depends-on): Add stdint.
39264         * tests/test-posixtm.c (struct posixtm_test.t_expected):
39265         Now of type int_least64_t, not int64_t, both because that's
39266         what INT64_C returns and because int_least64_t works even
39267         on 72-bit hosts.
39268         (T): Use INT64_C on constants outside the traditional int range,
39269         to work around compiler bug noted by Simon.
39271         mktime: fix integer overflow in 'configure'-time test
39272         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
39273         after integer overflow.  Problem reported by Rich Felker in
39274         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
39275         Also, don't look for further instances of a bug if we've already
39276         found one instance; this helps 'configure' run faster.
39278 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
39280         tmpfile, clean-temp: Fix invocation of GetVersionEx.
39281         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
39282         GetVersionEx correctly.
39283         * lib/clean-temp.c (supports_delete_on_close): Likewise.
39285 2012-06-20  Bruno Haible  <bruno@clisp.org>
39287         fdopen: Allow implementations that don't reject invalid fd arguments.
39288         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
39289         succeeds.
39290         Reported by Rich Felker <dalias@aerifal.cx>.
39292 2012-06-20  Simon Josefsson  <simon@josefsson.org>
39294         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
39295         bring in LIBINTL.
39297 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39299         init.sh: do not rely on autoupated PWD
39300         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
39301         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
39302         Although Nelson's bug was not necessarily fixed by this patch,
39303         it seems wise to make the change for safety.
39304         * tests/init.sh (path_prepend_): Do not rely on PWD updating
39305         automagically after 'cd'; this is not reliable on older shells.
39306         (setup_): Fail if we cannot cd to temporary directory.
39308 2012-06-19  Bruno Haible  <bruno@clisp.org>
39310         stat, fstat: Avoid warnings on mingw64.
39311         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
39312         redefining.
39313         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
39314         Reported by Daniel P. Berrange <berrange@redhat.com>.
39316 2012-06-19  Bruno Haible  <bruno@clisp.org>
39318         stdioext: Add support for musl libc.
39320         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
39321         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
39323         * m4/fseterr.m4: New file.
39324         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
39325         function exists.
39326         * modules/fseterr (Files): Add m4/fseterr.m4.
39327         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
39328         __fseterr does not exist.
39329         (Makefile.am): Remove fseterr.c from lib_SOURCES.
39331         * lib/freadable.h: Update comment.
39333         * lib/fwritable.h: Update comment.
39335         * lib/freading.h: Update comment.
39337         * lib/fwriting.h: Update comment.
39339         * m4/freadahead.m4: New file.
39340         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
39341         that function exists.
39342         * modules/freadahead (Files): Add m4/freadahead.m4.
39343         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
39344         __freadahead does not exist.
39345         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39347         * m4/freadptr.m4: New file.
39348         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
39349         function exists.
39350         * modules/freadptr (Files): Add m4/freadptr.m4.
39351         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
39352         __freadptr does not exist.
39353         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39355         * m4/freadseek.m4: New file.
39356         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
39357         exists.
39358         * modules/freadseek (Files): Add m4/freadseek.m4.
39359         (configure.ac): Invoke gl_FUNC_FREADSEEK.
39361         * lib/fpurge.c (fpurge): Update comment.
39363         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
39365 2012-06-19  Bruno Haible  <bruno@clisp.org>
39367         *printf-posix: Put more info into config.log.
39368         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
39369         exit code into config.log.
39371 2012-06-19  Bruno Haible  <bruno@clisp.org>
39373         getopt-gnu: Fix exit code overflow in autoconf test.
39374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
39375         to keep them below < 128.
39377 2012-06-17  Jim Meyering  <meyering@redhat.com>
39379         maint.mk: fix typo in code to derive GPG key at release time
39380         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
39382 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
39384         regex: avoid warning when pointers are not long
39385         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
39386         and uintptr_t, not long, for portability to hosts where pointers and
39387         long have different sizes.  Issue noted by Daniel P. Berrange in
39388         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
39389         and fix suggested by Bruno Haible in
39390         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
39392 2012-06-17  Bruno Haible  <bruno@clisp.org>
39394         dummy: Relicense into the public domain.
39395         * modules/dummy (License): Set to "public domain".
39396         Suggested by Reuben Thomas.
39398 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39400         announce-gen: VPATH issues
39401         * build-aux/announce-gen (--srcdir): New option, used to trim the
39402         $srcdir part of the path from $builddir to NEWS.
39403         * top/maint.mk (announcement): Adjust.
39405 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39407         gnu-web-doc-update: VPATH builds
39408         * build-aux/gnu-web-doc-update (--builddir): New option.
39409         Revamp the handling of options.
39410         Prefer $(...) to `...`.
39411         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
39412         the template, and it is GNU mktemp specific.
39413         Prefer set -e to long series of &&.
39414         Restore the initial git branch, not "master".
39415         Properly initialize submodules (don't rely only on bootstrap).
39416         Do not reconfigure blindly, use config.status.
39417         * top/README-release: Update instructions for gnu-web-doc-update.
39419 2012-06-11  Jim Meyering  <meyering@redhat.com>
39421         maint.mk: revert most of the previous change re "all these"
39422         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39423         For rationale, see the discussion at
39424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39426 2012-06-10  Karl Berry  <karl@gnu.org>
39428         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39430         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39432 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39434         parse-duration: Relicense under LGPLv2+.
39435         * modules/parse-duration (License): Change to LGPLv2+.
39437 2012-06-10  Jim Meyering  <meyering@redhat.com>
39439         maint.mk: prohibit common grammar error: "all these"
39440         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39441         the list of prohibited word sequences.  It should be "all of these".
39442         * lib/tempname.c (__gen_tempname): Fix one of them.
39444 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39446         do-release-commit-and-tag: support VPATH builds
39447         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39448         (noteworthy): Defined earlier to factor its value.
39449         (noteworthy_stub): New.
39450         Use it to factor.
39451         (help_version): Split into...
39452         (help, version): these.
39453         Adjust the option processing part.
39454         Support "--option=value" in addition to "--option value".
39455         (builddir): New.
39456         (--builddir): New option.
39457         * top/README-release: Document this.
39458         Reword slightly so that the reader cannot understand that he
39459         has to do these steps before calling do-release-commit-and-tag.
39461 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39463         readme-release: also require announce-gen and maintainer-makefile
39464         * modules/readme-release (Depends-on): here.
39465         * modules/announce-gen, modules/do-release-commit-and-tag,
39466         modules/gnu-web-doc-update, modules/maintainer-makefile
39467         (Description): Point to readme-release.
39469 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39471         maint.mk: fix VPATH issues.
39472         * top/maint.mk (news-check): GNU Make understand $< very well.
39473         (release-prep): NEWS is in $(srcdir).
39475 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39477         readme-release: require the promoted modules.
39478         * modules/readme-release (Depends-on): Add
39479         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39480         in this text.
39482 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39483             Bruno Haible  <bruno@clisp.org>
39485         error, strerror-override: Support mingw64 from Fedora 17.
39486         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39487         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39488         EINPROGRESS.
39489         * lib/strerror-override.h (strerror_override): Test it.
39490         * lib/strerror-override.c (strerror_override): Likewise.
39491         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39493 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39494             Bruno Haible  <bruno@clisp.org>
39496         error, strerror-override: Support mingw64 from Fedora 17.
39497         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39498         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39499         * lib/strerror-override.h (strerror_override): Test it.
39500         * lib/strerror-override.c (strerror_override): Likewise.
39502 2012-06-03  Bruno Haible  <bruno@clisp.org>
39504         error, strerror-override: Support new errno values from POSIX:2008.
39505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39506         ENOTRECOVERABLE.
39507         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39508         platforms.
39509         * lib/strerror-override.c (strerror_override): Conditionalize the
39510         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39511         * lib/strerror-override.h (strerror_override): Declare also if
39512         GNULIB_defined_EOWNERDEAD is defined.
39513         * tests/test-errno.c (e130, e131): New variables.
39514         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39515         ENOTRECOVERABLE.
39516         Reported by Paolo Bonzini.
39518 2012-05-31  Jim Meyering  <meyering@redhat.com>
39520         savewd: add missing dependency on sys_wait module
39521         * modules/savewd (Depends-on): Add sys_wait, needed at least
39522         for MSVC.  Report and suggested change by Michael Goffioul.
39524 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39526         system-quote-tests: port to CentOS 5
39527         Problem reported by Tom G. Christensen in
39528         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39529         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39531 2012-05-29  Jim Meyering  <meyering@redhat.com>
39533         maint: fix typos in comments and ChangeLog
39534         Culprits identified and fixed mostly automatically using these commands:
39535         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39536         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39537         using http://github.com/lyda/misspell-check
39538         * ChangeLog: Fix typos.
39539         * doc/solaris-versions: Likewise.
39540         * lib/regexec.c (re_search_stub): Likewise.
39541         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39543 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39545         manywarnings: remove duplicate -Wmultichar entry
39546         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39547         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39548         so keep the entry marked as documented.
39550 2012-05-27  Karl Berry  <karl@gnu.org>
39552         * config/srclist.txt (mktime.c): remove last libc sync,
39553         perhaps just temporarily.
39555 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39557         regex: don't assume uint64_t or uint32_t
39558         * lib/regcomp.c (init_word_char): Don't assume that the types
39559         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39560         them, and on some 32-bit compilers there is no uint64_t.
39561         Problem reported by Gianluigi Tiesi in
39562         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39564 2012-05-25  Jim Meyering  <meyering@redhat.com>
39566         maint.mk: add strncpy-prohibiting syntax-check rule
39567         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39569 2012-05-24  Jim Meyering  <meyering@redhat.com>
39571         maint.mk: compute $(gpg_key_ID) more portably
39572         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39573         That use of sed is not portable to some fringe systems.
39574         Reported by Paul Eggert in
39575         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39577 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39579         mktime: sync from glibc
39580         * config/srclist.txt: Uncomment mktime.c.
39581         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39582         First, indent with tabs, since glibc uses tabs and doesn't want to
39583         change and we'd rather be identical to glibc.  Also, two small
39584         coding changes:
39585         (isdst_differ): Use &&, not &, as && is the usual style.
39586         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39587         for clarity.
39589 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39591         announce-gen: du -h is more portable than du --human
39592         * build-aux/announce-gen (sizes): Invoke du with -h instead
39593         of --human.  Accept leading white space in its output.
39595 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39597         announce-gen: Improve diagnostics.
39598         * build-aux/announce-gen: When parsing command line options,
39599         prefer "announce-gen: option --release-type requires an argument"
39600         to "Option release-type requires an argument".
39602 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39604         maint.mk: gpg_key_ID: use sed more portably
39605         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39606         the closing brace.
39607         (refresh-po): Fuse two sed invocations into one.
39609 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39611         gitlog-to-changelog: support the log message format used in Bison.
39612         * build-aux/gitlog-to-changelog: Support --strip-tab and
39613         --strip-cherry-picked.
39615 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39617         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39618         the rest of the current time slice to another thread in the current
39619         process. So if the thread that feeds the file decscriptor we're
39620         polling is not in the current process, we get busy-waiting.
39621         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39622         Patch from Theodore Leblond.
39623         * lib/select.c: Split polling out of the loop that sets the output
39624         fd_sets.  Check for zero result and loop if the wait timeout is
39625         infinite.
39627 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39629         select: Fix build error on IRIX 6.5.
39630         * lib/select.c: Include stddef.h for NULL.
39632 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39634         gc: fix libgcrypt detection on older machines.
39635         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39636         copyright years because the file has been distributed every year
39637         since it was created.
39639 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39641         crypto: fix bug in large buffer handling
39642         Problem reported by Serge Belyshev for glibc in
39643         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39644         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39645         * lib/md4.c (md4_process_block):
39646         * lib/md5.c (md5_process_block):
39647         * lib/sha1.c (sha1_process_block):
39648         * lib/sha256.c (sha256_process_block):
39649         Don't assume the buffer length is less than 2**32.
39650         * lib/sha512.c (sha512_process_block): Likewise.
39651         Here, the bug is present only in the rare case where the host does
39652         not support uint64_t or where size_t is wider than 64 bits.
39653         Use u64size to work around the problems.
39654         * lib/u64.h (u64size): New macro.
39656 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39658         fsusage: fix block size returned on older Linux 2.6
39660         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39661         which is available since Linux 2.6.
39662         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39663         when the member is available so it can be used as a fallback.
39664         * doc/posix-functions/statvfs.texi: Mention the hang issue
39665         on Linux < 2.6.36.
39667 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39669         bootstrap: suppress stderr chatter
39670         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39671         Omit unnecessary chatter to stderr.  The main program chatter
39672         was there only inadvertantly.
39674         bootstrap: .gitignore files created by autopoint, libtool
39675         I ran into this problem when bootstrapping the latest diffutils.
39676         After './bootstrap', 'git status' reported lots of untracked files
39677         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39678         autopoint and do not need to be version-controlled.
39679         * build-aux/bootstrap: Put into .gitignore the files that
39680         autopoint and libtool create, by keeping track of files that exist
39681         after but not before these programs are run.
39682         (version_controlled_file): Move up.  2nd arg is now full file
39683         name, not base name; this is more convenient.  Put CVS at the end,
39684         as it's now somewhat deprecated.
39686 2012-05-14  Jim Meyering  <meyering@redhat.com>
39688         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39689         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39690         definition.  Reported by Bruno Haible.
39692 2012-05-13  Bruno Haible  <bruno@clisp.org>
39693             Paul Eggert  <eggert@cs.ucla.edu>
39695         binary-io: Define set_binary_mode function.
39696         * lib/binary-io.h (set_binary_mode): New function.
39697         (SET_BINARY): Define in terms of set_binary_mode.
39698         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39699         * tests/test-binary-io.c (main): Accept an argument, and test either
39700         set_binary_mode or SET_BINARY depending on the argument.
39701         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39702         argument. Clean up also t-bin-out0.tmp.
39704 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39706         bootstrap: take advantage of POSIX shell features
39708         The 'bootstrap' script offered by Gnulib script already uses POSIX
39709         shell features (like $((...)) arithmetic expansions) that are not
39710         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39711         means that bootstrap must already be run using a proper POSIX shell,
39712         which will thus provide more features, like ${var#pattern} parameter
39713         expansion or inversion of a command exit status with '!'.  We can
39714         thus use these features to improve the clarity and the performances
39715         of the bootstrap script.
39717         Suggested by Eric Blake.
39719         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39720         of sed/expr plus command substitutions, to save some forks.  While
39721         we are at it, prefer the POSIX $(...) form of command substitution,
39722         rather than the legacy form `...` (since the former is visually
39723         clearer and interacts better with quoting), and prefer the idiom:
39724           "if ! CMD; then ACTION ..."
39725         over the idiom:
39726           "if CMD; then :; else ACTION ..."
39727         which was required by legacy Bourne shells not supporting '!'.
39729 2012-05-12  Bruno Haible  <bruno@clisp.org>
39731         system-quote: Add more comments.
39732         * lib/system-quote.h: Add more comments about wilcards and limitations.
39733         Suggested by Eli Zaretskii <eliz@gnu.org>.
39735         sh-quote, system-quote: Add comments about wildcards.
39736         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39737         * lib/system-quote.h: Likewise.
39738         Reported by Eli Zaretskii <eliz@gnu.org>.
39740 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39742         fsusage: check for GNU/Linux statvfs problem dynamically
39743         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39744         Define STAT_STATFS2_BSIZE too, since in this case the code now
39745         checks dynamically whether statvfs is reliable, falling back on
39746         Linux-style statfs otherwise.
39747         (statvfs_works): New function, for dynamically testing statvfs.
39748         (get_fs_usage) [STAT_STATVFS]: Use it.
39749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39750         statvfs on GNU/Linux hosts, since it's now done dynamically.
39752 2012-05-10  Bruno Haible  <bruno@clisp.org>
39754         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39755         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39756         '?' character.
39757         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39758         * tests/test-system-quote-main.c (check_all): Check also strings like
39759         "??????????".
39760         Reported by Eli Zaretskii <eliz@gnu.org>.
39762 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39764         _Noreturn: port config.h to gcc -Wundef
39765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39766         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39767         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39769 2012-05-10  Bruno Haible  <bruno@clisp.org>
39771         system-quote: Refactor.
39772         * lib/system-quote.h (system_quote_copy): Fix comment.
39773         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39774         New functions, extracted from system_quote_copy.
39775         (system_quote_length, system_quote_copy): Use these functions.
39776         Reported by Paul Eggert.
39778 2012-05-08  Bruno Haible  <bruno@clisp.org>
39780         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39781         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39783 2012-05-08  Bruno Haible  <bruno@clisp.org>
39785         Tests for module 'system-quote'.
39786         * modules/system-quote-tests: New file.
39787         * tests/test-system-quote.sh: New file.
39788         * tests/test-system-quote-main.c: New file.
39789         * tests/test-system-quote-child.c: New file.
39791         New module 'system-quote'.
39792         * lib/system-quote.h: New file.
39793         * lib/system-quote.c: New file.
39794         * modules/system-quote: New file.
39796 2012-05-08  Bruno Haible  <bruno@clisp.org>
39798         sh-quote: Make C++ safe and allow multiple inclusion.
39799         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39800         declarations in extern "C".
39802 2012-05-08  Bruno Haible  <bruno@clisp.org>
39804         sh-quote tests: Make tests stricter.
39805         * tests/test-sh-quote.c (check_one): Check the return value of
39806         shell_quote_copy.
39807         (main): Check a string with a CR character. Check a string that
39808         contains UCHAR_MAX.
39810 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39812         warnings.m4: provide a means to specify the program to compile.
39813         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39814         (gl_WARN_ADD): here.
39815         Use gl_AS_VAR_APPEND.
39816         Support an argument to specify the program to compile.
39817         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39818         AC_SUBST the WARN_CFLAGS when they are used.
39819         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39820         leave this to gl_WARN_ADD.
39822 2012-05-08  Eric Blake  <eblake@redhat.com>
39824         doc: recommendations on gettext version
39825         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39826         choice between versions.
39827         * DEPENDENCIES (gettext): Cover both approaches.
39829 2012-05-08  Jim Meyering  <meyering@redhat.com>
39831         init.sh: explain why EXEEXT support uses aliases rather than functions
39832         * tests/init.sh: Add a comment.
39834         init.sh: don't let bash aliases interfere with tests
39835         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39836         is bash.  This avoids problems for those who alias standard commands to
39837         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39838         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39840 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39842         stdint: be more consistent with glibc, SunOS libc
39843         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39844         (gl_int_fast16_t, gl_uint_fast16_t)
39845         (gl_int_fast32_t, gl_uint_fast32_t)
39846         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39847         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39848         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39849         Be consistent with glibc by default, and with SunOS 5.10 and later
39850         if __sun is defined.  This lessens the likelihood of clashes if
39851         code compiled for older hosts is combined with code compiled for
39852         newer ones.  Problem reported by Niels Möller in
39853         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39855 2012-05-07  Eric Blake  <eblake@redhat.com>
39857         isatty: relax license to LGPLv2+
39858         * modules/isatty (License): Relax license.
39860 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39862         stat-size: comment fix
39863         * lib/stat-size.h: Remove obsolete comment about indenting.
39865 2012-05-06  Bruno Haible  <bruno@clisp.org>
39867         Tests for module 'sh-quote'.
39868         * modules/sh-quote-tests: New file.
39869         * tests/test-sh-quote.c: New file.
39871 2012-05-06  Bruno Haible  <bruno@clisp.org>
39873         sh-quote: Improve shell_quote_argv's signature.
39874         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39875         * lib/sh-quote.c (shell_quote_argv): Likewise.
39877 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39879         stdint: document issues with int_fast8_t etc.
39880         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39881         stdint.h substitutes may define these types differently.  See
39882         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39884 2012-05-05  Bruno Haible  <bruno@clisp.org>
39886         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39888         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39889         or 'guessing no (mishandles large arguments)'.
39891 2012-05-05  Bruno Haible  <bruno@clisp.org>
39893         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39894         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39895         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39896         set gl_cv_func_link_follows_symlink to "guessing no".
39898 2012-05-05  Bruno Haible  <bruno@clisp.org>
39900         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39901         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39902         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39903         "guessing no".
39904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39906 2012-05-05  Bruno Haible  <bruno@clisp.org>
39908         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39909         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39910         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39911         set gl_cv_struct_dirent_d_ino to "guessing yes".
39913 2012-05-05  Bruno Haible  <bruno@clisp.org>
39915         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39916         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39917         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39918         "guessing yes".
39920 2012-05-05  Bruno Haible  <bruno@clisp.org>
39922         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39923         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39924         compiling to a glibc system, set gl_cv_func_signbit and
39925         gl_cv_func_signbit_gcc to "guessing yes".
39927 2012-05-05  Bruno Haible  <bruno@clisp.org>
39929         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39930         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39931         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39932         to "guessing yes".
39933         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39934         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39936 2012-05-05  Bruno Haible  <bruno@clisp.org>
39938         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39939         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39940         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39941         gl_cv_func_realpath_works to "guessing yes".
39943 2012-05-05  Bruno Haible  <bruno@clisp.org>
39945         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39947         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39949 2012-05-04  Bruno Haible  <bruno@clisp.org>
39951         Tweak last commit.
39952         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39953         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39955 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39957         unistd_h: make it easier to avoid sys_types_h
39958         This is useful for Emacs, which has its own method of porting to
39959         Windows, and which therefore does not need the sys_types_h module.
39960         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39961         code moved here from gl_SYS_TYPES_H.
39962         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39963         using the code directly.
39964         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39965         gl_SYS_TYPES_H.
39966         * modules/sys_types (Files):
39967         * modules/unistd (Files): Add m4/off_t.m4.
39969 2012-05-03  Bruno Haible  <bruno@clisp.org>
39971         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39972         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39973         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39974         "guessing yes" or "guessing no".
39975         (gl_FUNC_LSTAT): Update.
39976         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39977         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39978         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39980 2012-05-03  Bruno Haible  <bruno@clisp.org>
39982         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39983         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39984         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39985         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39986         cross-compiling, choose the first alternative on glibc systems.
39987         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39989 2012-05-03  Bruno Haible  <bruno@clisp.org>
39991         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39992         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39993         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39995 2012-05-03  Bruno Haible  <bruno@clisp.org>
39997         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39998         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
40000 2012-05-03  Bruno Haible  <bruno@clisp.org>
40002         Avoid "guessing no" guesses when cross-compiling to glibc systems.
40003         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
40004         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
40005         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
40006         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
40007         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
40008         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
40009         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
40010         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
40011         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
40012         compiling to glibc systems, set gl_cv_func_chown_slash_works,
40013         gl_cv_func_chown_ctime_works to "guessing yes".
40014         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
40015         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
40016         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
40017         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
40018         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
40019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
40020         compiling to glibc systems, set gl_cv_func_open_directory_works to
40021         "guessing yes".
40022         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
40023         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
40024         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
40025         "guessing yes".
40026         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
40027         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
40028         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
40029         compiling to glibc systems, set gl_cv_func_floorf_ieee to
40030         "guessing yes".
40031         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
40032         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
40033         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
40034         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
40035         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
40036         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
40037         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
40038         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
40039         "guessing yes".
40040         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
40041         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
40042         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
40043         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
40044         "guessing yes".
40045         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
40046         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
40047         "guessing yes".
40048         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
40049         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
40050         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
40051         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
40052         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
40053         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
40054         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
40055         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
40056         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
40057         compiling to glibc systems, set gl_cv_func_log10f_ieee to
40058         "guessing yes".
40059         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
40060         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
40061         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
40062         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
40063         "guessing yes".
40064         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
40065         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
40066         "guessing yes".
40067         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
40068         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
40069         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
40070         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
40071         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
40072         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
40073         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
40074         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
40075         compiling to glibc systems, set gl_cv_func_mkfifo_works to
40076         "guessing yes".
40077         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
40078         compiling to glibc systems, set gl_cv_func_mknod_works to
40079         "guessing yes".
40080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
40081         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
40082         "guessing yes".
40083         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
40084         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
40085         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
40086         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
40087         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
40088         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
40089         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
40090         compiling to glibc systems, set gl_cv_func_svid_putenv to
40091         "guessing yes".
40092         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
40093         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
40094         "guessing yes".
40095         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
40096         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
40097         "guessing yes".
40098         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
40099         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
40100         to "guessing yes".
40101         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
40102         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
40103         to "guessing yes".
40104         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
40105         compiling to glibc systems, set gl_cv_func_rmdir_works to
40106         "guessing yes".
40107         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
40108         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
40109         gl_cv_func_unlink_parent_fails to "guessing yes".
40110         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
40111         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
40112         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
40113         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
40114         gl_cv_func_rename_dest_works to "guessing yes".
40115         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
40116         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
40117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
40118         compiling to glibc systems, set gl_cv_func_roundf_ieee to
40119         "guessing yes".
40120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
40121         compiling to glibc systems, set gl_cv_func_roundl_ieee to
40122         "guessing yes".
40123         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
40124         compiling to glibc systems, set gl_cv_func_setenv_works to
40125         "guessing yes".
40126         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
40127         compiling to glibc systems, set gl_cv_func_unsetenv_works to
40128         "guessing yes".
40129         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
40130         compiling to glibc systems, set gl_cv_func_sleep_works to
40131         "guessing yes".
40132         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
40133         compiling to glibc systems, set gl_cv_func_stat_file_slash to
40134         "guessing yes".
40135         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
40136         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
40137         "guessing yes".
40138         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
40139         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
40140         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
40141         compiling to glibc systems, set gl_cv_func_truncf_ieee to
40142         "guessing yes".
40143         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
40144         compiling to glibc systems, set gl_cv_func_truncl_ieee to
40145         "guessing yes".
40146         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
40147         compiling to glibc systems, set gl_cv_func_usleep_works to
40148         "guessing yes".
40149         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
40150         compiling to glibc systems, set gl_cv_func_futimesat_works to
40151         "guessing yes".
40153 2012-05-03  Bruno Haible  <bruno@clisp.org>
40155         Say "guessing yes" or "guessing no" when cross-compiling.
40156         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
40157         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
40158         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
40159         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
40160         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
40161         am_cv_func_working_getline to "guessing yes" or "guessing no".
40162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
40163         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
40164         (gl_FUNC_MEMMEM): When cross-compiling, set
40165         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
40166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
40167         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
40168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
40169         set gl_cv_func_strcasestr_works_always to "guessing yes" or
40170         "guessing no".
40171         (gl_FUNC_STRCASESTR): When cross-compiling, set
40172         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
40173         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
40174         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
40175         (gl_FUNC_STRSTR): When cross-compiling, set
40176         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
40177         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
40178         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
40179         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
40180         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
40182 2012-05-01  Bruno Haible  <bruno@clisp.org>
40184         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
40185         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
40186         * build-aux/reloc-ldflags: Likewise.
40187         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
40189 2012-05-01  Bruno Haible  <bruno@clisp.org>
40191         gnulib-tool: Remove transitional code.
40192         * gnulib-tool: Don't warn about --import with 0 arguments any more.
40193         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
40195 2012-05-01  Bruno Haible  <bruno@clisp.org>
40197         getcwd: Fix misindentation.
40198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
40200 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
40202         exclude: process exclude and include directives in order
40203         This restores the pre-2009 behavior, and is part of a fix of a
40204         grep bug reported by Quentin Arce in
40205         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
40206         * lib/exclude.c (struct exclude): Remove 'tail' member.
40207         (new_exclude_segment): Prepend the new segment instead of appending.
40208         Return void, since that's now more convenient.
40209         (file_pattern_matches): Renamed from excluded_file_pattern_p.
40210         (file_name_matches): Renamed from excluded_file_name_p.
40211         (file_pattern_matches, file_name_matches):
40212         Return true if the pattern matches, not if it excludes.
40213         All callers changed.
40214         (excluded_file_name): Process the list in reverse order;
40215         since the list is now reversed this restores the pre-2009 behavior.
40216         (add_exclude): Adjust to new reversed-order list.  Use local var
40217         rather than macro, for clarity.
40218         * tests/test-exclude7.sh: Adjust to corrected behavior.
40220         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
40221         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
40222         it's not possible here.  Handle the case of \ at end of pattern
40223         without dumping core.
40224         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
40226         _Noreturn: future-proof non-GNU and non-MSVC compilers
40227         * build-aux/snippet/_Noreturn.h (_Noreturn):
40228         * m4/gnulib-common.m4 (gl_COMMON_BODY):
40229         Do not define _Noreturn if __STDC_VERSION__ indicates this is
40230         C11 or later.  This is more likely to work with random future C
40231         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
40232         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
40234         exclude: handle wildcards with FNM_EXTMATCH
40235         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
40236         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
40237         comment that "has wildcards" really means "has or may have
40238         wildcards".  Simplify by avoiding the need to call strcspn.
40240 2012-04-29  Bruno Haible  <bruno@clisp.org>
40242         gnulib-tool: Fix list of authors.
40243         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
40245 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
40247         bootstrap: support Automake-NG in $buildreq
40248         * bootstrap (check_versions): Handle automake and aclocal from
40249         Automake-NG specially.  They can be specified as respectively
40250         the "automake-ng" and "aclocal-ng" requirements.
40252 2012-04-25  Eric Blake  <eblake@redhat.com>
40254         bootstrap: only force latest Makefile.in.in for gettext module
40255         * build-aux/bootstrap (with_gettext): Only install latest
40256         Makefile.in.in for projects requesting bleeding edge gettext.
40258 2012-04-22  Bruno Haible  <bruno@clisp.org>
40260         doc: Mention reason for replacement on glibc/Linux systems.
40261         * doc/posix-functions/dprintf.texi: Mention the problem with special
40262         'long double' values.
40263         * doc/posix-functions/fprintf.texi: Likewise.
40264         * doc/posix-functions/printf.texi: Likewise.
40265         * doc/posix-functions/snprintf.texi: Likewise.
40266         * doc/posix-functions/sprintf.texi: Likewise.
40267         * doc/posix-functions/vdprintf.texi: Likewise.
40268         * doc/posix-functions/vfprintf.texi: Likewise.
40269         * doc/posix-functions/vprintf.texi: Likewise.
40270         * doc/posix-functions/vsnprintf.texi: Likewise.
40271         * doc/posix-functions/vsprintf.texi: Likewise.
40272         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
40273         platforms with F_DUPFD_CLOEXEC problems.
40274         * doc/posix-functions/glob.texi: Mention which platforms are affected
40275         by the problem with symbolic links.
40276         * doc/posix-functions/linkat.texi: Mention the problem with
40277         AT_SYMLINK_FOLLOW on Linux.
40279 2012-04-22  Bruno Haible  <bruno@clisp.org>
40281         pwrite: Don't replace on all platforms.
40282         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
40284 2012-04-22  Bruno Haible  <bruno@clisp.org>
40286         rint* tests: Avoid gcc warnings.
40287         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
40288         * tests/test-rintf.c (INFINITY, NAN): Likewise.
40289         * tests/test-rintl.c (INFINITY, NAN): Likewise.
40291 2012-04-21  Bruno Haible  <bruno@clisp.org>
40293         users.txt: Update.
40294         * users.txt: Add freedink, wdiff. Update URLs for projects that have
40295         switched from CVS to git, bzr, or svn.
40297 2012-04-21  Bruno Haible  <bruno@clisp.org>
40299         Large File Support for native Windows platforms.
40301         * m4/largefile.m4 (gl_LARGEFILE): New macro.
40302         * modules/largefile (configure.ac): Require gl_LARGEFILE.
40304         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
40305         type.
40306         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
40307         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
40308         * doc/posix-headers/sys_types.texi: Mention the effect of the
40309         'largefile' module.
40311         * lib/fcntl.in.h: Add comments about off_t.
40312         * modules/fcntl-h (Depends-on): Add sys_types.
40314         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
40315         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
40316         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
40317         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
40318         * modules/unistd (Depends-on): Add sys_types.
40319         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
40321         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
40322         instead of lseek.
40323         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
40324         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
40325         * modules/lseek (Depends-on): Add sys_types.
40327         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
40328         msvc-nothrow.h.
40329         (SetFileSize): New function.
40330         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
40331         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
40332         if Large File Support is requested.
40333         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
40334         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
40336         * lib/stdio.in.h: Add comments about off_t.
40337         * modules/stdio (Depends-on): Add sys_types.
40339         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
40340         instead of ftello.
40341         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
40342         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
40343         (gl_PREREQ_FTELLO): New macro.
40344         * modules/ftello (Depends-on): Add sys_types.
40345         (configure.ac): Incoke gl_PREREQ_FTELLO.
40347         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
40348         instead of fseeko.
40349         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
40350         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
40351         (gl_PREREQ_FSEEKO): New macro.
40352         * modules/fseeko (Depends-on): Add sys_types.
40353         (configure.ac): Invoke gl_PREREQ_FSEEKO.
40355         * lib/sys_stat.in.h: Add comments about off_t.
40356         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
40357         64-bit integer for st_size in 'struct stat'.
40358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
40359         Define _GL_WINDOWS_64_BIT_ST_SIZE.
40360         * modules/sys_stat (Depends-on): Add sys_types.
40361         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
40363         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
40364         instead of stat or _stat.
40366         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
40367         'struct _stati64' instead of fstat and 'struct stat'.
40368         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
40369         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
40371         Reported by Ray Satiro <raysatiro@yahoo.com>.
40373 2012-04-19  Eric Blake  <eblake@redhat.com>
40375         bootstrap: accommodate older libtool
40376         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
40377         Reported by Daniel P. Berrange.
40379 2012-04-19  Jim Meyering  <meyering@redhat.com>
40381         announce-gen: avoid failure due to lack of Digest::SHA1
40382         Even with the preferred Digest::SHA available, this script
40383         would fail when the backup module, Digest::SHA1, was not installed.
40384         * build-aux/announce-gen: Quote the conditional use of "use".
40385         Reported by Reuben Thomas in:
40386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
40388         bootstrap: don't let a user's CDPATH setting affect this script
40389         When CDPATH is set, cd will sometimes generate output.
40390         When "cd" is run in a subshell whose output matters, that
40391         surprising-to-some output can cause malfunction.
40392         Unsetting CDPATH turns off this shell "feature."
40393         * build-aux/bootstrap (CDPATH): Unset.
40394         Reported by Reuben Thomas in:
40395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
40396         and inspired by his patch here:
40397         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
40399 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
40400         and Jim Meyering  <meyering@redhat.com>
40402         maint.mk: catch "see @xref{}" and similar
40403         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
40404         prohibit "See also @xref{", "Also see @pxref{", and similar.
40406 2012-04-16  Jim Meyering  <meyering@redhat.com>
40408         bootstrap: really use gnulib's po/Makefile.in.in
40409         * build-aux/bootstrap: Correct the source file name in previous change.
40410         Reported by Akim Demaille.
40412         configmake: correct minor inconsistency in Makefile rule
40413         * modules/configmake (Makefile.am): All other rules like this one
40414         run the final "mv -f ..." in the same backslash-continued command
40415         as the one that does everything else.  This one put the mv -f ...
40416         command on a separate, non-backslash-continued line.
40417         Make it like the others.
40419         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
40420         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40421         the one from gettext.  Reported by Akim Demaille.
40423 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40425         Fix recursion of install-* into po directories.
40426         Bison's install-pdf bug reported by Hans Aberg at
40427         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40428         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40429         (install-info, install-pdf, install-ps): New targets.
40431 2012-04-16  Jim Meyering  <meyering@redhat.com>
40433         maint: avoid spurious "make sc_maint" failure
40434         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40435         exempt all *.class file names, for lib/javaversion.class.
40437 2012-04-15  Bruno Haible  <bruno@clisp.org>
40439         lseek: Make configure test independent of environment.
40440         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40441         Windows, we know that lseek() on pipes is broken; skip the runtime
40442         test.
40444 2012-04-14  Bruno Haible  <bruno@clisp.org>
40446         stat: Bypass buggy override in mingw64.
40447         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40448         * lib/stat.c (stat) [mingw64]: Define to _stat.
40449         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40451 2012-04-14  Bruno Haible  <bruno@clisp.org>
40453         pathmax: Fix compilation error on MSVC 9.
40454         * modules/pathmax (Depends-on): Add unistd.
40456 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40458         README: document pointer comparison assumption
40459         * README (Portability guidelines): Document assumption about
40460         pointer comparisons, in response to a recent bug-gnulib comment by
40461         Jeffrey Kegler.
40463 2012-04-12  Bruno Haible  <bruno@clisp.org>
40465         Tests for module 'getrusage'.
40466         * modules/getrusage-tests: New file.
40467         * tests/test-getrusage.c: New file.
40469         New module 'getrusage'.
40470         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40471         warn-on-use.h.
40472         (getrusage): New declaration.
40473         * lib/getrusage.c: New file.
40474         * m4/getrusage.m4: New file.
40475         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40476         is declared.
40477         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40478         HAVE_GETRUSAGE.
40479         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40480         snippet/c++defs, snippet/warn-on-use.
40481         (Makefile.am): Update generation of sys/resource.h. Substitute
40482         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40483         * modules/getrusage: New file.
40484         * doc/posix-functions/getrusage.texi: Mention the new module.
40486 2012-04-12  Bruno Haible  <bruno@clisp.org>
40488         Tests for module 'sys_resource'.
40489         * modules/sys_resource-tests: New file.
40490         * tests/test-sys_resource.c: New file.
40492         New module 'sys_resource'.
40493         * lib/sys_resource.in.h: New file.
40494         * m4/sys_resource_h.m4: New file.
40495         * modules/sys_resource: New file.
40496         * doc/posix-headers/sys_resource.texi: Mention the new module.
40498 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40500         ioctl: Fix compilation error on mingw.
40501         * lib/ioctl.c: Include <windows.h>.
40502         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40504 2012-04-04  Jim Meyering  <meyering@redhat.com>
40506         regex: correct #pragma guard expression
40507         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40508         not 4.3.  Correct its cpp guard expression.
40510 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40512         regex: remove unnecessary type punning
40513         Problem reported by Vladimir Serbinenko in
40514         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40515         * lib/regex.h (struct re_pattern_buffer): Change the type of
40516         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40517         Fix comment to match code.
40518         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40519         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40520         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40521         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40522         (set_regs):
40523         Omit no-longer-necessary casts.
40525 2012-04-03  Bruno Haible  <bruno@clisp.org>
40527         Tests for module 'ilogbl'.
40528         * modules/ilogbl-tests: New file.
40529         * tests/test-ilogbl.c: New file.
40531         New module 'ilogbl'.
40532         * lib/math.in.h (ilogbl): New declaration.
40533         * lib/ilogbl.c: New file.
40534         * m4/ilogbl.m4: New file.
40535         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40537         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40538         Split sed invocation, to avoid the limit of 100 substitutions of
40539         HP-UX 'sed'.
40540         * modules/ilogbl: New file.
40541         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40542         * doc/posix-functions/ilogbl.texi: Mention the new module.
40544 2012-04-03  Bruno Haible  <bruno@clisp.org>
40546         Tests for module 'ilogbf'.
40547         * modules/ilogbf-tests: New file.
40548         * tests/test-ilogbf.c: New file.
40550         New module 'ilogbf'.
40551         * lib/math.in.h (ilogbf): New declaration.
40552         * lib/ilogbf.c: New file.
40553         * m4/ilogbf.m4: New file.
40554         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40556         REPLACE_ILOGBF.
40557         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40558         REPLACE_ILOGBF.
40559         * modules/ilogbf: New file.
40560         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40561         * doc/posix-functions/ilogbf.texi: Mention the new module.
40563 2012-04-03  Bruno Haible  <bruno@clisp.org>
40565         Tests for module 'ilogb'.
40566         * modules/ilogb-tests: New file.
40567         * tests/test-ilogb.c: New file.
40568         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40569         tests/test-logb-ieee.h.
40571         New module 'ilogb'.
40572         * lib/math.in.h (ilogb): New declaration.
40573         * lib/ilogb.c: New file.
40574         * m4/ilogb.m4: New file.
40575         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40577         REPLACE_ILOGB.
40578         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40579         REPLACE_ILOGB.
40580         * modules/ilogb: New file.
40581         * tests/test-math-c++.cc: Check the declaration of ilogb.
40582         * doc/posix-functions/ilogb.texi: Mention the new module.
40584 2012-04-03  Bruno Haible  <bruno@clisp.org>
40586         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40587         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40588         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40589         (main): Check their values.
40590         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40591         problem.
40593 2012-04-03  Bruno Haible  <bruno@clisp.org>
40595         Tests for module 'logbl-ieee'.
40596         * modules/logbl-ieee-tests: New file.
40597         * tests/test-logbl-ieee.c: New file.
40599         New module 'logbl-ieee'.
40600         * modules/logbl-ieee: New file.
40602         Tests for module 'logb-ieee'.
40603         * modules/logb-ieee-tests: New file.
40604         * tests/test-logb-ieee.c: New file.
40606         New module 'logb-ieee'.
40607         * modules/logb-ieee: New file.
40609         Tests for module 'logbf-ieee'.
40610         * modules/logbf-ieee-tests: New file.
40611         * tests/test-logbf-ieee.c: New file.
40612         * tests/test-logb-ieee.h: New file.
40614         New module 'logbf-ieee'.
40615         * modules/logbf-ieee: New file.
40617 2012-04-03  Bruno Haible  <bruno@clisp.org>
40619         Tests for module 'logbl'.
40620         * modules/logbl-tests: New file.
40621         * tests/test-logbl.c: New file.
40623         New module 'logbl'.
40624         * lib/math.in.h (logbl): New declaration.
40625         * lib/logbl.c: New file.
40626         * m4/logbl.m4: New file.
40627         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40629         REPLACE_LOGBL.
40630         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40631         REPLACE_LOGBL.
40632         * modules/logbl: New file.
40633         * tests/test-math-c++.cc: Check the declaration of logbl.
40634         * doc/posix-functions/logbl.texi: Mention the new module.
40636 2012-04-02  Bruno Haible  <bruno@clisp.org>
40638         Tests for module 'logbf'.
40639         * modules/logbf-tests: New file.
40640         * tests/test-logbf.c: New file.
40642         New module 'logbf'.
40643         * lib/math.in.h (logbf): New declaration.
40644         * lib/logbf.c: New file.
40645         * m4/logbf.m4: New file.
40646         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40648         REPLACE_LOGBF.
40649         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40650         REPLACE_LOGBF.
40651         * modules/logbf: New file.
40652         * tests/test-math-c++.cc: Check the declaration of logbf.
40653         * doc/posix-functions/logbf.texi: Mention the new module.
40655 2012-04-02  Bruno Haible  <bruno@clisp.org>
40657         logb tests: More tests.
40658         * tests/test-logb.h: New file, based on tests/test-logb.c and
40659         tests/test-frexp.h.
40660         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40661         (main): Just invoke test_function.
40662         * modules/logb-tests (Files): Add tests/test-logb.h,
40663         tests/minus-zero.h, tests/randomd.c.
40664         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40666         logb: Provide replacement and workarounds.
40667         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40668         is 1.
40669         * lib/logb.c: New file.
40670         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40671         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40673         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40674         * modules/logb (Files): Add lib/logb.c.
40675         (Depends-on): Add isfinite, frexp, isnand.
40676         (configure.ac): Compile the replacement code logb.c if needed.
40677         * tests/test-math-c++.cc: Check the declaration of logb.
40678         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40679         with subnormal numbers.
40681 2012-04-02  Bruno Haible  <bruno@clisp.org>
40683         log10* tests: Speed up.
40684         * tests/test-log10.h (test_function): Reduce amount of random numbers
40685         to test.
40687 2012-04-01  Bruno Haible  <bruno@clisp.org>
40689         logf-ieee: Fix test whether logf works.
40690         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40692 2012-04-01  Bruno Haible  <bruno@clisp.org>
40694         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40695         * lib/log10l.c: Include <float.h>
40696         (log10l): On IRIX, normalize the +Infinity value.
40697         * modules/log10l (Depends-on): Add 'float'.
40698         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40699         +Infinity.
40701         log10f-ieee: Work around test failure on NetBSD 5.1.
40702         * m4/log10f-ieee.m4: New file.
40703         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40704         test whether log10f works with a negative argument. Replace it if not.
40705         * lib/log10f.c (log10f): For negative arguments, return NaN.
40706         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40707         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40708         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40710         log10f-ieee: Work around test failure on Solaris 9.
40711         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40712         (configure.ac): Require gl_FUNC_LOG10F.
40714         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40715         * m4/log10-ieee.m4: New file.
40716         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40717         whether log10 works with a negative argument. Replace it if not.
40718         * lib/log10.c (log10): For negative arguments, return NaN.
40719         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40720         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40721         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40723         Tests for module 'log10l-ieee'.
40724         * modules/log10l-ieee-tests: New file.
40725         * tests/test-log10l-ieee.c: New file.
40727         New module 'log10l-ieee'.
40728         * modules/log10l-ieee: New file.
40730         Tests for module 'log10-ieee'.
40731         * modules/log10-ieee-tests: New file.
40732         * tests/test-log10-ieee.c: New file.
40734         New module 'log10-ieee'.
40735         * modules/log10-ieee: New file.
40737         Tests for module 'log10f-ieee'.
40738         * modules/log10f-ieee-tests: New file.
40739         * tests/test-log10f-ieee.c: New file.
40740         * tests/test-log10-ieee.h: New file.
40742         New module 'log10f-ieee'.
40743         * modules/log10f-ieee: New file.
40745 2012-04-01  Bruno Haible  <bruno@clisp.org>
40747         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40748         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40749         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40750         workaround.
40751         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40752         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40754         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40755         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40756         (Depends-on): Update conditions.
40757         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40758         IRIX 6.5, OSF/1 5.1 problems.
40760 2012-04-01  Bruno Haible  <bruno@clisp.org>
40762         log10f: Work around OSF/1 5.1 bug.
40763         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40764         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40765         workaround.
40766         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40767         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40769         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40770         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40771         (Depends-on): Update conditions.
40772         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40774 2012-04-01  Bruno Haible  <bruno@clisp.org>
40776         log10: Work around OSF/1 5.1 bug.
40777         * lib/math.in.h (log10): New declaration.
40778         * lib/log10.c: New file.
40779         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40780         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40781         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40783         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40784         * modules/log10 (Files): Add lib/log10.c.
40785         (Depends-on): Add math.
40786         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40787         * tests/test-math-c++.cc: Check the declaration of log10.
40788         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40790 2012-03-31  Bruno Haible  <bruno@clisp.org>
40792         log10l tests: More tests.
40793         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40794         tests/minus-zero.h, tests/randoml.c.
40795         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40796         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40797         (main): Invoke test_function.
40799         log10f tests: More tests.
40800         * modules/log10f-tests (Files): Add tests/test-log10.h,
40801         tests/minus-zero.h, tests/randomf.c.
40802         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40803         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40804         (main): Invoke test_function.
40806         log10 tests: More tests.
40807         * tests/test-log10.h: New file.
40808         * modules/log10-tests (Files): Add tests/test-log10.h,
40809         tests/minus-zero.h, tests/randomd.c.
40810         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40811         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40812         (main): Invoke test_function.
40814 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40816         fflush: Fix syntax error.
40817         * lib/fflush.c: Include unused-parameter.h, needed for
40818         _GL_UNUSED_PARAMETER.
40819         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40821 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40823         regex: pacify GCC when compiling GRUB
40824         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40825         a diagnostic.  Reported by Vladimir Serbinenko in
40826         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40828 2012-03-29  Eric Blake  <eblake@redhat.com>
40830         stdio: don't assume gets any more
40831         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40832         support.
40833         * modules/stdio (Makefile.am): Likewise.
40834         * lib/stdio-read.c (gets): Likewise.
40835         * tests/test-stdio-c++.cc: Likewise.
40836         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40837         * lib/stdio.in.h (gets): Make warning occur in more places.
40838         * doc/posix-functions/gets.texi (gets): Update documentation.
40839         Reported by Christer Solskogen.
40841         maint.mk: fix syntax checks without exclusions
40842         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40843         Reported by Daniel P. Berrange.
40845         strerror_r: avoid compiler warning
40846         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40847         level.
40849         fflush: avoid compiler warning
40850         * lib/fflush.c (update_fpos_cache): Mark variables that are
40851         potentially unused.
40853 2012-03-25  Bruno Haible  <bruno@clisp.org>
40855         Tests for module 'localeconv'.
40856         * modules/localeconv-tests: New file.
40857         * tests/test-localeconv.c: New file.
40859         New module 'localeconv'.
40860         * lib/locale.in.h (localeconv): New declaration.
40861         * lib/localeconv.c: New file.
40862         * m4/localeconv.m4: New file.
40863         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40864         REPLACE_LOCALECONV.
40865         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40866         REPLACE_LOCALECONV.
40867         * modules/localeconv: New file.
40868         * modules/nl_langinfo (Depends-on): Add localeconv.
40869         * modules/human (Depends-on): Likewise.
40870         * doc/posix-functions/localeconv.texi: Mention the new module.
40872 2012-03-25  Bruno Haible  <bruno@clisp.org>
40874         locale: Provide a complete 'struct lconv'.
40875         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40876         'struct lconv' does not contain int_p_cs_precedes.
40877         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40878         * doc/posix-headers/locale.texi: Update.
40880         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40881         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40882         * doc/posix-headers/locale.texi: Update.
40884         locale: Provide a working 'struct lconv'.
40885         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40886         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40887         'struct lconv' does not even contain decimal_point.
40888         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40889         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40890         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40891         * doc/posix-headers/locale.texi: Mention the problems with
40892         'struct lconv'.
40893         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40895 2012-03-24  Bruno Haible  <bruno@clisp.org>
40897         Enable common subexpression optimization in GCC.
40898         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40899         macros.
40900         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40901         GCC attribute 'const'.
40902         (uc_locale_language): Declare with GCC attribute 'pure'.
40903         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40904         with GCC attribute 'const'.
40905         * lib/unictype.in.h (uc_is_general_category_withtable,
40906         uc_combining_class, uc_combining_class_name,
40907         uc_combining_class_long_name, uc_bidi_class_name,
40908         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40909         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40910         uc_decimal_value, uc_digit_value, uc_numeric_value,
40911         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40912         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40913         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40914         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40915         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40916         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40917         Declare with GCC attribute 'const'.
40918         (uc_general_category_name, uc_general_category_long_name,
40919         uc_general_category_byname, uc_general_category,
40920         uc_is_general_category, uc_combining_class_byname,
40921         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40922         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40923         Declare with GCC attribute 'pure'.
40924         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40925         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40926         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40927         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40928         with GCC attribute 'pure'.
40929         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40930         'const'.
40931         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40932         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40933         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40934         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40935         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40936         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40937         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40938         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40939         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40940         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40941         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40942         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40943         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40944         GCC attribute 'pure'.
40945         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40946         'const'.
40947         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40948         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40949         u32_strwidth): Declare with GCC attribute 'pure'.
40951         Enable common subexpression optimization in GCC.
40952         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40953         (alphasort): Declare with GCC attribute 'pure'.
40954         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40955         (atoll): Declare with GCC attribute 'pure'.
40956         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40957         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40958         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40959         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40960         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40961         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40962         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40964 2012-03-24  Bruno Haible  <bruno@clisp.org>
40966         gnulib-tool: Avoid unintended error output from 'cmp'.
40967         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40968         "cmp -s", not "cmp > /dev/null".
40970 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40972         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40974         It's not just Automake versions < 1.9b that creates an empty
40975         pkgdatadir at installation time if pkgdata_DATA is specified
40976         to empty; modern automake versions do this as well, at least
40977         until automake 1.11.4 (not yet released at the moment of writing,
40978         but soon to appear).  That behaviour was generally considered a
40979         feature rather than a bug, at least until this discussion:
40980         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40982         See also automake bugs #10997 and #11030.
40984         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40985         reference to relevant automake bug numbers.
40986         (func_emit_tests_Makefile_am): Likewise.
40988 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40990         announce-gen: use Digest::SHA when possible
40991         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40992         back to Digest::SHA1 if necessary.
40994 2012-03-20  Jim Meyering  <meyering@redhat.com>
40996         tests: avoid gcc warnings about argv vs. const initializers
40997         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40998         warnings about discarding 'const' qualifier from pointer target type.
40999         * tests/test-posix_spawn2.c (main): Likewise.
41001 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41003         README-release: simplify slightly
41004         * top/README-release: Run "git checkout master" only once.
41006 2012-03-15  Mark Wielaard  <mark@klomp.org>
41008         git-merge-changelog: add specific example on how to use with hg.
41009         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
41011 2012-03-18  Mark Wielaard  <mark@klomp.org>
41013         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
41015 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
41017         git-version-gen: don't let "prefix" envvar cause trouble
41018         * build-aux/git-version-gen (prefix): Initialize properly,
41019         so as not to use a value specified via the environment.
41020         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
41022 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41024         regex: diagnose too-large repeat counts in EREs
41025         Previously, the code did not diagnose the too-large repeat count
41026         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
41027         as if it were 'b\{1000000000}', which is unexpected.
41028         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
41029         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
41030         is a reasonable one for this problem.  Another option would be to
41031         create a new REG_OVERFLOW error for repeat counts that are too large.
41032         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
41033         count is too large, so that the caller can distinguish the two cases.
41034         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
41035         "Too large" return code, and that repeat counts are one example of this.
41037 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41039         doc: some glibc x32 integer width issues
41040         * doc/posix-headers/sys_types.texi (sys/types.h):
41041         * doc/posix-headers/time.texi (time.h):
41042         Mention that glibc x32 does not conform to POSIX in a couple of
41043         areas related to integer widths.
41045 2012-03-15  Bruno Haible  <bruno@clisp.org>
41047         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
41048         * lib/fma.c (VOLATILE): New macro.
41049         (FUNC): Use it to work around a GCC compiler bug.
41051 2012-03-13  Bruno Haible  <bruno@clisp.org>
41053         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41054         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
41055         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
41056         REPLACE_HYPOTL to 1.
41057         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
41059 2012-03-13  Bruno Haible  <bruno@clisp.org>
41061         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41062         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
41063         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
41064         REPLACE_REMAINDERL to 1.
41065         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
41066         bug.
41068 2012-03-13  Bruno Haible  <bruno@clisp.org>
41070         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41071         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
41072         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
41073         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
41074         too big rounding errors.
41075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
41076         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
41077         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
41078         (Depends-on): Update conditions.
41079         * tests/test-sqrtl.c (my_ldexpl): New function.
41080         (main): Add test of a particular value.
41081         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41083 2012-03-13  Pádraig Brady  <P@draigBrady.com>
41085         doc: Update timer_* platform portability notes.
41086         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
41087         that always return ENOSYS.
41088         * doc/posix-functions/timer_delete.texi: Likewise.
41089         * doc/posix-functions/timer_gettime.texi: Likewise.
41090         * doc/posix-functions/timer_settime.texi: Likewise.
41092 2012-03-13  Bruno Haible  <bruno@clisp.org>
41094         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41095         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
41096         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
41097         REPLACE_CBRTL to 1.
41098         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41100 2012-03-13  Bruno Haible  <bruno@clisp.org>
41102         remainderl: Avoid compilation error on AIX >= 5.2.
41103         * lib/math.in.h (remainderl): Undefine macro from the system header.
41105 2012-03-13  Bruno Haible  <bruno@clisp.org>
41107         Avoid compilation errors with MSVC option -fp:strict.
41108         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
41109         * lib/cbrtf.c: Likewise.
41110         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41112 2012-03-12  Bruno Haible  <bruno@clisp.org>
41114         uninorm: Don't crash in out-of-memory conditions.
41115         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
41116         gracefully.
41117         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
41118         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
41120 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
41122         quote: fix syntax-check
41123         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
41124         also exports quote_quoting_options.
41126 2012-03-12  Simon Josefsson  <simon@josefsson.org>
41128         Collapse list of copyright years to ranges.  See
41129         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
41130         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
41131         build-aux/csharpexec.sh.in, build-aux/gnupload,
41132         build-aux/install-reloc, build-aux/javacomp.sh.in,
41133         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
41134         build-aux/move-if-change, build-aux/reloc-ldflags,
41135         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
41137 2012-03-11  Bruno Haible  <bruno@clisp.org>
41139         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41140         * m4/log2f-ieee.m4: New file.
41141         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
41142         whether log2f works with a minus zero argument. Replace it if not.
41143         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
41144         (Depends-on): Add log2-ieee.
41145         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
41146         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
41148         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41149         * m4/log2-ieee.m4: New file.
41150         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
41151         whether log2 works with a minus zero argument. Replace it if not.
41152         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
41153         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
41154         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
41156         Tests for module 'log2l-ieee'.
41157         * modules/log2l-ieee-tests: New file.
41158         * tests/test-log2l-ieee.c: New file.
41160         New module 'log2l-ieee'.
41161         * modules/log2l-ieee: New file.
41163         Tests for module 'log2-ieee'.
41164         * modules/log2-ieee-tests: New file.
41165         * tests/test-log2-ieee.c: New file.
41167         New module 'log2-ieee'.
41168         * modules/log2-ieee: New file.
41170         Tests for module 'log2f-ieee'.
41171         * modules/log2f-ieee-tests: New file.
41172         * tests/test-log2f-ieee.c: New file.
41173         * tests/test-log2-ieee.h: New file.
41175         New module 'log2f-ieee'.
41176         * modules/log2f-ieee: New file.
41178 2012-03-11  Bruno Haible  <bruno@clisp.org>
41180         Tests for module 'log2l'.
41181         * modules/log2l-tests: New file.
41182         * tests/test-log2l.c: New file.
41184         New module 'log2l'.
41185         * lib/math.in.h (log2l): New declaration.
41186         * lib/log2l.c: New file.
41187         * m4/log2l.m4: New file.
41188         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
41189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
41190         REPLACE_LOG2L.
41191         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
41192         REPLACE_LOG2L.
41193         * modules/log2l: New file.
41194         * tests/test-math-c++.cc: Check the declaration of log2l.
41195         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
41196         and OSF/1 problems.
41198 2012-03-11  Bruno Haible  <bruno@clisp.org>
41200         Tests for module 'log2f'.
41201         * modules/log2f-tests: New file.
41202         * tests/test-log2f.c: New file.
41204         New module 'log2f'.
41205         * lib/math.in.h (log2f): New declaration.
41206         * lib/log2f.c: New file.
41207         * m4/log2f.m4: New file.
41208         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
41209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
41210         REPLACE_LOG2F.
41211         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
41212         REPLACE_LOG2F.
41213         * modules/log2f: New file.
41214         * tests/test-math-c++.cc: Check the declaration of log2f.
41215         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
41216         and OSF/1 and Cygwin problems.
41218 2012-03-11  Bruno Haible  <bruno@clisp.org>
41220         Tests for module 'log2'.
41221         * modules/log2-tests: New file.
41222         * tests/test-log2.c: New file.
41223         * tests/test-log2.h: New file.
41225         New module 'log2'.
41226         * lib/math.in.h (log2): New declaration.
41227         * lib/log2.c: New file.
41228         * m4/log2.m4: New file.
41229         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
41230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
41231         REPLACE_LOG2.
41232         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
41233         REPLACE_LOG2.
41234         * modules/log2: New file.
41235         * tests/test-math-c++.cc: Check the declaration of log2.
41236         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
41237         and OSF/1 and Cygwin problems.
41239 2012-03-11  Bruno Haible  <bruno@clisp.org>
41241         exp2* tests: More tests.
41242         * tests/test-exp2.h (test_function): Test all integral arguments that
41243         don't need to overflow or denormalized numbers.
41244         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
41245         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
41246         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
41248 2012-03-10  Bruno Haible  <bruno@clisp.org>
41250         log1pl-ieee: Work around test failure on AIX 7.1.
41251         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
41253         log1pl-ieee: Work around test failure on IRIX 6.5.
41254         * m4/log1pl-ieee.m4: New file.
41255         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
41256         test whether log1pl works with a minus zero argument. Replace it if
41257         not.
41258         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
41259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
41260         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
41261         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
41262         (Depends-on): Update conditions.
41263         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41264         m4/signbit.m4.
41265         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
41266         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
41268         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
41269         * m4/log1pf-ieee.m4: New file.
41270         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
41271         test whether log1pf works with a minus zero argument. Replace it if
41272         not.
41273         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
41274         m4/signbit.m4.
41275         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
41276         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
41278         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
41279         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
41280         (configure.ac): Require gl_FUNC_LOG1PF.
41282         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
41283         * m4/log1p-ieee.m4: New file.
41284         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
41285         whether log1p works with a minus zero argument. Replace it if not.
41286         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
41287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
41288         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
41289         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
41290         (Depends-on): Update conditions.
41291         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41292         m4/signbit.m4.
41293         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
41294         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
41296         Tests for module 'log1pl-ieee'.
41297         * modules/log1pl-ieee-tests: New file.
41298         * tests/test-log1pl-ieee.c: New file.
41300         New module 'log1pl-ieee'.
41301         * modules/log1pl-ieee: New file.
41303         Tests for module 'log1p-ieee'.
41304         * modules/log1p-ieee-tests: New file.
41305         * tests/test-log1p-ieee.c: New file.
41307         New module 'log1p-ieee'.
41308         * modules/log1p-ieee: New file.
41310         Tests for module 'log1pf-ieee'.
41311         * modules/log1pf-ieee-tests: New file.
41312         * tests/test-log1pf-ieee.c: New file.
41313         * tests/test-log1p-ieee.h: New file.
41315         New module 'log1pf-ieee'.
41316         * modules/log1pf-ieee: New file.
41318 2012-03-10  Bruno Haible  <bruno@clisp.org>
41320         Tests for module 'log1pl'.
41321         * modules/log1pl-tests: New file.
41322         * tests/test-log1pl.c: New file.
41324         New module 'log1pl'.
41325         * lib/math.in.h (log1pl): New declaration.
41326         * lib/log1pl.c: New file.
41327         * m4/log1pl.m4: New file.
41328         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
41329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
41330         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
41331         * modules/log1pl: New file.
41332         * tests/test-math-c++.cc: Check the declaration of log1pl.
41333         * doc/posix-functions/log1pl.texi: Mention the new module.
41335 2012-03-10  Bruno Haible  <bruno@clisp.org>
41337         Tests for module 'log1pf'.
41338         * modules/log1pf-tests: New file.
41339         * tests/test-log1pf.c: New file.
41341         New module 'log1pf'.
41342         * lib/math.in.h (log1pf): New declaration.
41343         * lib/log1pf.c: New file.
41344         * m4/log1pf.m4: New file.
41345         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
41346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
41347         REPLACE_LOG1PF.
41348         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
41349         REPLACE_LOG1PF.
41350         * modules/log1pf: New file.
41351         * tests/test-math-c++.cc: Check the declaration of log1pf.
41352         * doc/posix-functions/log1pf.texi: Mention the new module.
41354 2012-03-10  Bruno Haible  <bruno@clisp.org>
41356         log1p tests: More tests.
41357         * tests/test-log1p.h: New file.
41358         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
41359         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
41360         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
41361         (main): Invoke test_function.
41363         log1p: Provide replacement for Minix and MSVC.
41364         * lib/math.in.h (log1p): New declaration.
41365         * lib/log1p.c: New file.
41366         * m4/log1p.m4: New file.
41367         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
41368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
41369         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
41370         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
41371         (Depends-on): Add math, isnand, log, round.
41372         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
41373         HAVE_LOG1P is 0.
41374         * tests/test-math-c++.cc: Check the declaration of log1p.
41375         * doc/posix-functions/log1p.texi: Mention the replacement.
41377 2012-03-10  Bruno Haible  <bruno@clisp.org>
41379         math tests: Small simplification.
41380         * tests/test-exp.h (test_function): Use the same err_bound for
41381         'double' on platforms with sizeof (long double) == sizeof (double)
41382         than on platforms with sizeof (long double) > sizeof (double).
41383         * tests/test-exp2.h (test_function): Likewise.
41384         * tests/test-expm1.h (test_function): Likewise.
41385         * tests/test-log.h (test_function): Likewise.
41387 2012-03-10  Bruno Haible  <bruno@clisp.org>
41389         Fix some comments.
41390         * lib/expl.c: Fix an ambiguous comment.
41391         * lib/expm1.c: Likewise.
41392         * lib/expm1l.c: Likewise.
41393         * lib/exp2.c: Likewise.
41394         * lib/exp2l.c: Likewise.
41396 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
41398         regex: allow inclusion of <regex.h> before <limits.h>
41399         Without this patch, portable programs had to include <limits.h> before
41400         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41401         I ran into this problem with a test version of GNU grep on Solaris 8.
41402         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
41403         This is done conditionally so that this change can be merged
41404         back to glibc.
41405         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
41406         using the included regex.
41408         fts: depend on fdopendir
41409         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
41410         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
41411         problem was introduced when fdopendir was split out.
41413 2012-03-10  Bruno Haible  <bruno@clisp.org>
41415         Remove unused variables.
41416         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41417         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41419 2012-03-10  Bruno Haible  <bruno@clisp.org>
41421         isnanf-nolibm: Fix last commit.
41422         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41424         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41425         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41427 2012-03-10  Bruno Haible  <bruno@clisp.org>
41429         logf-ieee: Work around test failure on NetBSD 5.1.
41430         * m4/logf-ieee.m4: New file.
41431         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41432         whether logf works with a negative argument. Replace it if not.
41433         * lib/logf.c (logf): For negative arguments, return NaN.
41434         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41435         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41436         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41438         logf-ieee: Work around test failure on Solaris 9.
41439         * modules/logf-ieee (Depends-on): Add log-ieee.
41440         (configure.ac): Require gl_FUNC_LOGF.
41442         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41443         * m4/log-ieee.m4: New file.
41444         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41445         log works with a negative argument. Replace it if not.
41446         * lib/log.c (log): For negative arguments, return NaN.
41447         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41448         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41449         * doc/posix-functions/log.texi: Mention the log-ieee module.
41451         Tests for module 'logl-ieee'.
41452         * modules/logl-ieee-tests: New file.
41453         * tests/test-logl-ieee.c: New file.
41455         New module 'logl-ieee'.
41456         * modules/logl-ieee: New file.
41458         Tests for module 'log-ieee'.
41459         * modules/log-ieee-tests: New file.
41460         * tests/test-log-ieee.c: New file.
41462         New module 'log-ieee'.
41463         * modules/log-ieee: New file.
41465         Tests for module 'logf-ieee'.
41466         * modules/logf-ieee-tests: New file.
41467         * tests/test-logf-ieee.c: New file.
41468         * tests/test-log-ieee.h: New file.
41470         New module 'logf-ieee'.
41471         * modules/logf-ieee: New file.
41473 2012-03-10  Bruno Haible  <bruno@clisp.org>
41475         log: Fix bug introduced on 2012-03-09.
41476         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41478 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41480         timer-time: link explicitly with pthreads on glibc
41481         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41482         to support static linking, when newer glibc is
41483         detected, as that contains pthread emulation of
41484         POSIX timer functions where required.
41485         * modules/timer-time: Depend on threadlib to
41486         pull in the appropriate library to link.
41488 2012-03-10  Bruno Haible  <bruno@clisp.org>
41490         log* tests: More tests.
41491         * tests/test-log.h: New file.
41492         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41493         (main): Invoke test_function.
41494         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41495         (main): Invoke test_function.
41496         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41497         (main): Invoke test_function.
41498         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41499         tests/randomd.c.
41500         (Makefile.am): Add randomd.c to test_log_SOURCES.
41501         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41502         tests/randomf.c.
41503         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41504         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41505         tests/randoml.c.
41506         (Depends-on): Add 'float'.
41507         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41509 2012-03-09  Bruno Haible  <bruno@clisp.org>
41511         logl: Work around OSF/1 5.1 bug.
41512         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41513         * lib/logl.c (logl): If logl exists, use it and provide just the
41514         workaround.
41515         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41516         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41518         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41519         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41520         (Depends-on): Update conditions.
41521         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41523 2012-03-09  Bruno Haible  <bruno@clisp.org>
41525         logf: Work around OSF/1 5.1 bug.
41526         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41527         * lib/logf.c (logf): If logf exists, use it and provide just the
41528         workaround.
41529         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41530         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41532         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41533         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41534         (Depends-on): Update conditions.
41535         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41537 2012-03-09  Bruno Haible  <bruno@clisp.org>
41539         log: Work around OSF/1 5.1 bug.
41540         * lib/math.in.h (log): New declaration.
41541         * lib/log.c: New file.
41542         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41543         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41544         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41546         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41547         * modules/log (Files): Add lib/log.c.
41548         (Depends-on): Add math.
41549         (configure.ac): If REPLACE_LOG is 1, compile an override.
41550         * tests/test-math-c++.cc: Check the declaration of log.
41551         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41553 2012-03-09  Jim Meyering  <meyering@redhat.com>
41555         readtokens.c: adjust wording in a comment
41556         * lib/readtokens.c: Insert omitted "that" in a comment.
41558 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41560         modechange: add notations +40, 00440, etc.
41561         * lib/modechange.c (mode_compile): Support new notations
41562         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41564 2012-03-08  Bruno Haible  <bruno@clisp.org>
41566         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41567         * m4/exp2l-ieee.m4: New file.
41568         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41569         test whether exp2l works with a NaN argument and with a negative
41570         infinity argument. Replace it if not.
41571         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41573         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41574         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41575         (Depends-on): Update conditions.
41576         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41577         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41578         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41580         Tests for module 'exp2l-ieee'.
41581         * modules/exp2l-ieee-tests: New file.
41582         * tests/test-exp2l-ieee.c: New file.
41584         New module 'exp2l-ieee'.
41585         * modules/exp2l-ieee: New file.
41587         Tests for module 'exp2-ieee'.
41588         * modules/exp2-ieee-tests: New file.
41589         * tests/test-exp2-ieee.c: New file.
41591         New module 'exp2-ieee'.
41592         * modules/exp2-ieee: New file.
41594         Tests for module 'exp2f-ieee'.
41595         * modules/exp2f-ieee-tests: New file.
41596         * tests/test-exp2f-ieee.c: New file.
41597         * tests/test-exp2-ieee.h: New file.
41599         New module 'exp2f-ieee'.
41600         * modules/exp2f-ieee: New file.
41602 2012-03-08  Bruno Haible  <bruno@clisp.org>
41604         Tests for module 'exp2l'.
41605         * modules/exp2l-tests: New file.
41606         * tests/test-exp2l.c: New file.
41608         New module 'exp2l'.
41609         * lib/math.in.h (exp2l): New declaration.
41610         * lib/exp2l.c: New file.
41611         * lib/expl-table.c: New file, extracted from lib/expl.c.
41612         * lib/expl.c (gl_expl_table): New declaration.
41613         (expl): Remove expl_table. Update reference.
41614         * m4/exp2l.m4: New file.
41615         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41617         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41618         * modules/exp2l: New file.
41619         * modules/expl (Files): Add lib/expl-table.c.
41620         (configure.ac): Compile also expl-table.c.
41621         * tests/test-math-c++.cc: Check the declaration of exp2l.
41622         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41623         problem.
41625 2012-03-08  Bruno Haible  <bruno@clisp.org>
41627         Tests for module 'exp2f'.
41628         * modules/exp2f-tests: New file.
41629         * tests/test-exp2f.c: New file.
41631         New module 'exp2f'.
41632         * lib/math.in.h (exp2f): New declaration.
41633         * lib/exp2f.c: New file.
41634         * m4/exp2f.m4: New file.
41635         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41637         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41638         * modules/exp2f: New file.
41639         * tests/test-math-c++.cc: Check the declaration of exp2f.
41640         * doc/posix-functions/exp2f.texi: Mention the new module and the
41641         IRIX problem.
41643 2012-03-08  Bruno Haible  <bruno@clisp.org>
41645         Tests for module 'exp2'.
41646         * modules/exp2-tests: New file.
41647         * tests/test-exp2.c: New file.
41648         * tests/test-exp2.h: New file.
41650         New module 'exp2'.
41651         * lib/math.in.h (exp2): New declaration.
41652         * lib/exp2.c: New file.
41653         * m4/exp2.m4: New file.
41654         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41656         REPLACE_EXP2.
41657         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41658         REPLACE_EXP2.
41659         * modules/exp2: New file.
41660         * tests/test-math-c++.cc: Check the declaration of exp2.
41661         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41662         and OpenBSD problems.
41664 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41666         savedir: fix comment typo
41667         * lib/savedir.c (savedirstream): Fix typo in comment.
41669 2012-03-08  Bruno Haible  <bruno@clisp.org>
41671         test-readtokens.c: use const; remove unwarranted cast
41672         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41674 2012-03-08  Bruno Haible  <bruno@clisp.org>
41676         fmal: Avoid compilation error on AIX.
41677         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41678         AIX 5.2..7.1.
41680 2012-03-08  Bruno Haible  <bruno@clisp.org>
41682         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41683         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41684         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41685         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41686         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41687         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41688         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41690 2012-03-08  Bruno Haible  <bruno@clisp.org>
41692         remainderf: Override buggy system function on IRIX 6.5.
41693         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41694         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41695         when it exists.
41696         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41698 2012-03-08  Jim Meyering  <meyering@redhat.com>
41700         test-readtokens.c: avoid const-related compilation warnings
41701         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41703 2012-03-07  Jim Meyering  <meyering@redhat.com>
41704             Bruno Haible  <bruno@clisp.org>
41706         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41707         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41708         tests/randomd.c.
41709         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41710         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41711         tests/randoml.c.
41712         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41714 2012-03-07  Bruno Haible  <bruno@clisp.org>
41716         expm1l: Avoid compilation error on AIX.
41717         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41718         AIX 5.2..7.1.
41720 2012-03-07  Bruno Haible  <bruno@clisp.org>
41722         expm1l: Don't override undeclared system function on IRIX 6.5.
41723         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41724         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41725         it exists. Set HAVE_DECL_EXPM1L.
41726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41727         HAVE_EXPM1L.
41728         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41729         HAVE_EXPM1L.
41730         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41732 2012-03-07  Bruno Haible  <bruno@clisp.org>
41734         remainderl: Don't override undeclared system function on IRIX 6.5.
41735         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41736         HAVE_REMAINDERL.
41737         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41738         declared when it exists. Set HAVE_DECL_REMAINDERL.
41739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41740         not HAVE_REMAINDERL.
41741         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41742         HAVE_REMAINDERL.
41743         * doc/posix-functions/remainderl.texi: Mention missing declaration
41744         problem.
41746 2012-03-07  Bruno Haible  <bruno@clisp.org>
41748         rintf: Don't override undeclared system function on IRIX 6.5.
41749         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41750         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41751         exists. Set HAVE_DECL_RINTF.
41752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41753         HAVE_RINTF.
41754         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41755         HAVE_RINTF.
41756         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41758 2012-03-07  Bruno Haible  <bruno@clisp.org>
41760         roundl: Avoid compilation error on AIX.
41761         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41762         AIX 5.2..7.1.
41764 2012-03-07  Bruno Haible  <bruno@clisp.org>
41766         roundl: Don't override undeclared system function on IRIX 6.5.
41767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41768         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41769         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41770         * modules/roundl (configure.ac): For replacement code, test
41771         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41772         (Depends-on): Update conditions.
41773         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41775 2012-03-07  Bruno Haible  <bruno@clisp.org>
41777         roundf: Don't override undeclared system function on IRIX 6.5.
41778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41779         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41780         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41781         * modules/roundf (configure.ac): For replacement code, test
41782         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41783         (Depends-on): Update conditions.
41784         * modules/roundf-ieee (Depends-on): Update conditions.
41785         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41787 2012-03-07  Bruno Haible  <bruno@clisp.org>
41789         round: Don't override undeclared system function on IRIX 6.5.
41790         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41791         argument.
41792         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41793         also when it is not declared. Set HAVE_ROUND. For replacement code,
41794         test HAVE_ROUND, not HAVE_DECL_ROUND.
41795         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41796         not HAVE_DECL_ROUND.
41797         (Depends-on): Update conditions.
41798         * modules/round-ieee (Depends-on): Update conditions.
41799         * doc/posix-functions/round.texi: Mention the IRIX problem.
41801 2012-03-07  Bruno Haible  <bruno@clisp.org>
41803         copysignf: Don't override undeclared system function on IRIX 6.5.
41804         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41805         HAVE_COPYSIGNF.
41806         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41807         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41809         not HAVE_COPYSIGNF.
41810         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41811         HAVE_COPYSIGNF.
41812         * doc/posix-functions/copysignf.texi: Mention missing declaration
41813         problem.
41815 2012-03-07  Jim Meyering  <meyering@redhat.com>
41817         readtokens: add tests
41818         * modules/readtokens-tests: New file.
41819         * tests/test-readtokens.c: New file.
41821 2012-03-07  Jim Meyering  <meyering@redhat.com>
41823         quotearg: the module must now include quote.h
41824         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41825         So must the module.
41826         * modules/quotearg (Files): Add quote.h.
41828 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41830         readtokens: avoid core dumps with unusual calling patterns
41831         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41832         * lib/readtokens.c: Include limits.h.
41833         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41834         (readtoken): Don't cache the delimiters; the cache code was buggy
41835         if !delim && saved_delim, or if the new n_delim differs from the old.
41836         Also, it wasn't thread-safe.
41838 2012-03-07  Bruno Haible  <bruno@clisp.org>
41840         quote: Adhere to common module description layout.
41841         * modules/quote (Makefile.am): Add back empty section.
41843 2012-03-06  Akim Demaille  <demaille@gostai.com>
41845         quote: fuse into quotearg
41846         This patch is made for the benefit of Bison.
41847         quote does not leave the choice of the quoting style to the user.
41848         quoting_style provides poor customizability, yet quoting_options,
41849         which is very rich, is hidden inside quotearg.c.  So in order to
41850         allow quote customization, move its implementation to quotearg.c.
41851         * lib/quote.c: Remove.
41852         * modules/quote: Adjust.
41853         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41854         warning: provide all the members of literal structs.
41855         (quote_quoting_options): New.
41856         (quote, quote_n): Import implementation from quote.c.
41857         * lib/quote.h: Import the comments from quote.c.
41858         (quote_quoting_options): New.
41860 2012-03-06  Bruno Haible  <bruno@clisp.org>
41862         Tests for module 'expm1l-ieee'.
41863         * modules/expm1l-ieee-tests: New file.
41864         * tests/test-expm1l-ieee.c: New file.
41866         New module 'expm1l-ieee'.
41867         * modules/expm1l-ieee: New file.
41869         Tests for module 'expm1f-ieee'.
41870         * modules/expm1f-ieee-tests: New file.
41871         * tests/test-expm1f-ieee.c: New file.
41873         New module 'expm1f-ieee'.
41874         * modules/expm1f-ieee: New file.
41876         Tests for module 'expm1-ieee'.
41877         * modules/expm1-ieee-tests: New file.
41878         * tests/test-expm1-ieee.c: New file.
41879         * tests/test-expm1-ieee.h: New file.
41881         New module 'expm1-ieee'.
41882         * modules/expm1-ieee: New file.
41883         * m4/expm1-ieee.m4: New file.
41884         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41885         whether expm1 works with a minus zero argument. Replace it if not.
41886         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41888         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41889         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41890         (Depends-on): Update conditions.
41891         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41892         AIX problem.
41894 2012-03-06  Bruno Haible  <bruno@clisp.org>
41896         Work around expm1f bug on IRIX 6.5.
41897         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41898         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41899         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41900         not work.
41901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41902         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41903         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41904         (Depends-on): Update conditions.
41905         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41907 2012-03-06  Bruno Haible  <bruno@clisp.org>
41909         Tests for module 'expm1l'.
41910         * modules/expm1l-tests: New file.
41911         * tests/test-expm1l.c: New file.
41913         New module 'expm1l'.
41914         * lib/math.in.h (expm1l): New declaration.
41915         * lib/expm1l.c: New file.
41916         * m4/expm1l.m4: New file.
41917         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41919         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41920         * modules/expm1l: New file.
41921         * tests/test-math-c++.cc: Check the declaration of expm1l.
41922         * doc/posix-functions/expm1l.texi: Mention the new module.
41924 2012-03-06  Bruno Haible  <bruno@clisp.org>
41926         Tests for module 'expm1f'.
41927         * modules/expm1f-tests: New file.
41928         * tests/test-expm1f.c: New file.
41930         New module 'expm1f'.
41931         * lib/math.in.h (expm1f): New declaration.
41932         * lib/expm1f.c: New file.
41933         * m4/expm1f.m4: New file.
41934         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41936         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41937         * modules/expm1f: New file.
41938         * tests/test-math-c++.cc: Check the declaration of expm1f.
41939         * doc/posix-functions/expm1f.texi: Mention the new module.
41941 2012-03-06  Bruno Haible  <bruno@clisp.org>
41943         Tests for module 'expm1'.
41944         * modules/expm1-tests: New file.
41945         * tests/test-expm1.c: New file.
41946         * tests/test-expm1.h: New file.
41948         New module 'expm1'.
41949         * lib/math.in.h (expm1): New declaration.
41950         * lib/expm1.c: New file.
41951         * m4/expm1.m4: New file.
41952         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41954         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41955         * modules/expm1: New file.
41956         * tests/test-math-c++.cc: Check the declaration of expm1.
41957         * doc/posix-functions/expm1.texi: Mention the new module.
41959 2012-03-06  Bruno Haible  <bruno@clisp.org>
41961         math: Ensure declarations of math functions.
41962         * modules/acosf (Depends-on): Add 'extensions'.
41963         * modules/asinf (Depends-on): Likewise.
41964         * modules/atan2f (Depends-on): Likewise.
41965         * modules/atanf (Depends-on): Likewise.
41966         * modules/cbrt (Depends-on): Likewise.
41967         * modules/cbrtf (Depends-on): Likewise.
41968         * modules/cbrtl (Depends-on): Likewise.
41969         * modules/copysignf (Depends-on): Likewise.
41970         * modules/copysignl (Depends-on): Likewise.
41971         * modules/cosf (Depends-on): Likewise.
41972         * modules/coshf (Depends-on): Likewise.
41973         * modules/expf (Depends-on): Likewise.
41974         * modules/fabsf (Depends-on): Likewise.
41975         * modules/fabsl (Depends-on): Likewise.
41976         * modules/fmaf (Depends-on): Likewise.
41977         * modules/fmal (Depends-on): Likewise.
41978         * modules/fmodf (Depends-on): Likewise.
41979         * modules/fmodl (Depends-on): Likewise.
41980         * modules/frexpf (Depends-on): Likewise.
41981         * modules/frexpl (Depends-on): Likewise.
41982         * modules/hypot (Depends-on): Likewise.
41983         * modules/hypotf (Depends-on): Likewise.
41984         * modules/hypotl (Depends-on): Likewise.
41985         * modules/ldexpf (Depends-on): Likewise.
41986         * modules/ldexpl (Depends-on): Likewise.
41987         * modules/log10f (Depends-on): Likewise.
41988         * modules/log10l (Depends-on): Likewise.
41989         * modules/log1p (Depends-on): Likewise.
41990         * modules/logb (Depends-on): Likewise.
41991         * modules/logf (Depends-on): Likewise.
41992         * modules/modff (Depends-on): Likewise.
41993         * modules/modfl (Depends-on): Likewise.
41994         * modules/powf (Depends-on): Likewise.
41995         * modules/remainderf (Depends-on): Likewise.
41996         * modules/remainderl (Depends-on): Likewise.
41997         * modules/rintf (Depends-on): Likewise.
41998         * modules/rintl (Depends-on): Likewise.
41999         * modules/sinf (Depends-on): Likewise.
42000         * modules/sinhf (Depends-on): Likewise.
42001         * modules/sqrtf (Depends-on): Likewise.
42002         * modules/tanf (Depends-on): Likewise.
42003         * modules/tanhf (Depends-on): Likewise.
42004         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
42005         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
42006         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
42007         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
42008         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
42009         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
42010         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
42011         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
42012         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
42013         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
42014         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
42015         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
42016         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
42017         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
42018         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
42019         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
42020         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
42021         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42022         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
42023         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
42024         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
42025         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
42026         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
42027         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
42028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
42029         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
42030         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
42031         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42032         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
42033         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
42034         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42035         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
42036         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
42037         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42038         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42039         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42040         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
42041         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
42042         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
42043         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
42044         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
42046 2012-03-06  Bruno Haible  <bruno@clisp.org>
42048         math: Update module names in warnings.
42049         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
42050         tanl): Use specific module name in warn-on-use warning.
42052 2012-03-06  Bruno Haible  <bruno@clisp.org>
42054         expl: Simplify computation.
42055         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
42057 2012-03-05  Bruno Haible  <bruno@clisp.org>
42059         exp* tests: More tests.
42060         * tests/test-exp.h: New file.
42061         * tests/test-exp.c: Include <float.h> and test-exp.h.
42062         (main): Invoke test_function.
42063         * tests/test-expf.c: Include <float.h> and test-exp.h.
42064         (main): Invoke test_function.
42065         * tests/test-expl.c: Include <float.h> and test-exp.h.
42066         (main): Invoke test_function.
42067         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
42068         (Makefile.am): Add randomd.c to test_exp_SOURCES.
42069         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
42070         (Makefile.am): Add randomf.c to test_expf_SOURCES.
42071         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
42072         (Depends-on): Add 'float'.
42073         (Makefile.am): Add randoml.c to test_expl_SOURCES.
42075         expl: Fix precision of computed result.
42076         * lib/expl.c: Completely rewritten.
42077         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
42078         (Maintainer): Add me.
42079         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
42081 2012-03-05  Bruno Haible  <bruno@clisp.org>
42083         cbrt* tests: More tests.
42084         * tests/test-cbrt.h: New file.
42085         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
42086         (main): Invoke test_function.
42087         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
42088         (main): Invoke test_function.
42089         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
42090         (main): Invoke test_function.
42091         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
42092         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
42093         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
42094         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
42095         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
42096         (Depends-on): Add 'float'.
42097         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
42099 2012-03-05  Bruno Haible  <bruno@clisp.org>
42101         hypot* tests: More tests.
42102         * tests/test-hypot.h: New file, partially extracted from
42103         tests/test-hypotl.c.
42104         * tests/test-hypot.c: Include test-hypot.h.
42105         (main): Invoke test_function.
42106         * tests/test-hypotf.c: Include test-hypot.h.
42107         (main): Invoke test_function.
42108         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
42109         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
42110         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
42111         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
42112         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
42113         tests/randomf.c.
42114         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
42115         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
42116         tests/randoml.c.
42117         (Depends-on): Add 'fpucw', 'float'.
42118         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
42120 2012-03-05  Bruno Haible  <bruno@clisp.org>
42122         fpucw: Doc about FreeBSD.
42123         * lib/fpucw.h: Mention FreeBSD in comments.
42125 2012-03-04  Bruno Haible  <bruno@clisp.org>
42127         sqrt* tests: More tests.
42128         * tests/test-sqrt.h: New file.
42129         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
42130         (main): Invoke test_function.
42131         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
42132         (main): Invoke test_function.
42133         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
42134         (main): Invoke test_function.
42135         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
42136         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
42137         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
42138         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
42139         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
42140         (Depends-on): Add 'float'.
42141         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
42143 2012-03-04  Bruno Haible  <bruno@clisp.org>
42145         remainder* tests: More tests.
42146         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
42147         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
42148         (main): Invoke test_function.
42149         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
42150         (main): Invoke test_function.
42151         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
42152         (main): Invoke test_function.
42153         * modules/remainder-tests (Files): Add tests/test-remainder.h,
42154         tests/randomd.c.
42155         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
42156         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
42157         tests/randomf.c.
42158         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
42159         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
42160         tests/randoml.c.
42161         (Depends-on): Add 'float'.
42162         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
42164 2012-03-04  Bruno Haible  <bruno@clisp.org>
42166         remainder, remainderf, remainderl: Fix computation for large quotients.
42167         * lib/remainder.c: Completely rewritten.
42168         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
42169         USE_FLOAT.
42170         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
42171         USE_LONG_DOUBLE.
42172         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
42173         isnand, isinf. Remove round, fma.
42174         * modules/remainderf (Files): Add lib/remainder.c.
42175         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
42176         Remove roundf, fmaf.
42177         * modules/remainderl (Files): Add lib/remainder.c.
42178         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
42179         isinf. Remove roundl, fmal.
42180         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
42181         REMAINDER_LIBM.
42182         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
42183         REMAINDERF_LIBM.
42184         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
42185         REMAINDERL_LIBM.
42187 2012-03-04  Bruno Haible  <bruno@clisp.org>
42189         fmod* tests: More tests.
42190         * tests/test-fmod.h (my_ldexp): New function.
42191         (test_function): Reduce amount of random numbers to test. Add tests
42192         of very large quotients x / y.
42193         * tests/test-fmod.c (MAX_EXP): New macro.
42194         * tests/test-fmodf.c (MAX_EXP): Likewise.
42195         * tests/test-fmodl.c (MAX_EXP): Likewise.
42197 2012-03-04  Bruno Haible  <bruno@clisp.org>
42199         fmod, fmodl: Fix computation for large quotients x / y.
42200         * lib/fmod.c: Completely rewritten.
42201         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
42202         USE_LONG_DOUBLE.
42203         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
42204         isnand. Remove fma.
42205         * modules/fmodl (Files): Add lib/fmod.c.
42206         (Depends-on): Add float, isfinite, signbit, fabsl,
42207         frexpl, ldexpl, isnanl. Remove fma.
42208         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
42209         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
42211 2012-03-03  Bruno Haible  <bruno@clisp.org>
42213         fmod* tests: More tests.
42214         * tests/test-fmod.h: New file.
42215         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
42216         (main): Invoke test_function.
42217         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
42218         (main): Invoke test_function.
42219         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
42220         (main): Invoke test_function.
42221         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
42222         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
42223         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
42224         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
42225         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
42226         (Depends-on): Add 'float'.
42227         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
42229 2012-03-03  Bruno Haible  <bruno@clisp.org>
42231         rint* tests: More tests.
42232         * tests/test-rint.h: New file, partially extracted from
42233         tests/test-rintl.c.
42234         * tests/test-rint.c: Include test-rint.h.
42235         (main): Invoke test_function.
42236         * tests/test-rintf.c: Include test-rint.h.
42237         (main): Invoke test_function.
42238         * tests/test-rintl.c: Include test-rint.h.
42239         (main): Invoke test_function.
42240         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
42241         (Makefile.am): Add randomd.c to test_rint_SOURCES.
42242         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
42243         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
42244         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
42245         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
42247 2012-03-03  Bruno Haible  <bruno@clisp.org>
42249         modf* tests: More tests.
42250         * tests/test-modf.h: New file.
42251         * tests/test-modf.c: Include <float.h> and test-modf.h.
42252         (main): Invoke test_function.
42253         * tests/test-modff.c: Include <float.h> and test-modf.h.
42254         (main): Invoke test_function.
42255         * tests/test-modfl.c: Include <float.h> and test-modf.h.
42256         (main): Invoke test_function.
42257         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
42258         (Makefile.am): Add randomd.c to test_modf_SOURCES.
42259         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
42260         (Makefile.am): Add randomf.c to test_modff_SOURCES.
42261         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
42262         (Depends-on): Add 'float'.
42263         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
42265 2012-03-03  Bruno Haible  <bruno@clisp.org>
42267         fabs* tests: More tests.
42268         * tests/test-fabs.h: New file, partially extracted from
42269         tests/test-fabsl.c.
42270         * tests/test-fabs.c (RANDOM): New macro.
42271         * tests/test-fabsf.c (RANDOM): New macro.
42272         * tests/test-fabsl.c (RANDOM): New macro.
42273         * modules/fabs-tests (Files): Add tests/randomd.c.
42274         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
42275         * modules/fabsf-tests (Files): Add tests/randomf.c.
42276         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
42277         * modules/fabsl-tests (Files): Add tests/randoml.c.
42278         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
42280 2012-03-03  Bruno Haible  <bruno@clisp.org>
42282         ldexp* tests: More tests.
42283         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
42284         * tests/test-ldexp.c (RANDOM): New macro.
42285         * tests/test-ldexpf.c (RANDOM): New macro.
42286         * tests/test-ldexpl.c (RANDOM): New macro.
42287         * modules/ldexp-tests (Files): Add tests/randomd.c.
42288         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
42289         * modules/ldexpf-tests (Files): Add tests/randomf.c.
42290         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
42291         * modules/ldexpl-tests (Files): Add tests/randoml.c.
42292         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
42294 2012-03-03  Bruno Haible  <bruno@clisp.org>
42296         frexp* tests: More tests.
42297         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
42298         * tests/test-frexp.c (RANDOM): New macro.
42299         * tests/test-frexpf.c (RANDOM): New macro.
42300         * tests/test-frexpl.c (RANDOM): New macro.
42301         * modules/frexp-tests (Files): Add tests/randomd.c.
42302         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
42303         * modules/frexpf-tests (Files): Add tests/randomf.c.
42304         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
42305         * modules/frexpl-tests (Files): Add tests/randoml.c.
42306         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
42308 2012-03-03  Bruno Haible  <bruno@clisp.org>
42310         Support for pseudo-random numbers in tests.
42311         * tests/randomf.c: New file.
42312         * tests/randomd.c: New file.
42313         * tests/randoml.c: New file.
42314         * tests/macros.h (randomf, randomd, randoml): New declarations.
42316 2012-03-03  Bruno Haible  <bruno@clisp.org>
42318         frexp* tests: Refactor.
42319         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
42320         * tests/test-frexp.c: Include and use it.
42321         * tests/test-frexpf.c: Likewise.
42322         * tests/test-frexpl.c: Likewise.
42323         * modules/frexp-tests (Files): Add tests/test-frexp.h.
42324         * modules/frexpf-tests (Files): Likewise.
42325         * modules/frexpl-tests (Files): Likewise.
42327 2012-03-02  Jim Meyering  <meyering@redhat.com>
42329         maint: don't specify XZ_OPT=-9ev in dist-related rule
42330         Using xz's -9 option is warranted only if you have a very large
42331         tarball (see xz's documentation for the sizes vs. presets), and
42332         requires 64MiB of memory at decompression time.
42333         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
42334         Automake's default of just "-e" is fine.  Override on a
42335         per-package basis by setting XZ_OPT e.g., in cfg.mk.
42337 2012-03-01  Eric Blake  <eblake@redhat.com>
42339         maint.mk: allow announcement for non-gnulib project
42340         * maint.mk (announcement): Skip gnulib version if not used.
42342 2012-03-01  Jim Meyering  <meyering@redhat.com>
42344         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
42345         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
42346         envvar settings cannot interfere.  Otherwise, setting envvars like
42347         prohibit=foo require=bar, etc. would cause spurious test failures.
42349 2012-03-01  Eric Blake  <eblake@redhat.com>
42351         maint.mk: add per-line exclusions to prohibitions
42352         * maint.mk (_sc_search_regexp): Add $exclude parameter.
42353         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
42354         (sc_const_long_option): Use it.
42356 2012-03-01  Bruno Haible  <bruno@clisp.org>
42358         Tests for module 'expl-ieee'.
42359         * modules/expl-ieee-tests: New file.
42360         * tests/test-expl-ieee.c: New file.
42362         New module 'expl-ieee'.
42363         * modules/expl-ieee: New file.
42365         Tests for module 'exp-ieee'.
42366         * modules/exp-ieee-tests: New file.
42367         * tests/test-exp-ieee.c: New file.
42369         New module 'exp-ieee'.
42370         * modules/exp-ieee: New file.
42372         Tests for module 'expf-ieee'.
42373         * modules/expf-ieee-tests: New file.
42374         * tests/test-expf-ieee.c: New file.
42375         * tests/test-exp-ieee.h: New file.
42377         New module 'expf-ieee'.
42378         * modules/expf-ieee: New file.
42380 2012-02-29  Bruno Haible  <bruno@clisp.org>
42382         cbrtl-ieee: Work around test failure on IRIX 6.5.
42383         * m4/cbrtl-ieee.m4: New file.
42384         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
42385         test whether cbrtl works with a minus zero argument. Replace it if not.
42386         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
42387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
42388         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
42389         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
42390         (Depends-on): Update conditions.
42391         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
42392         m4/signbit.m4.
42393         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
42394         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
42395         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
42397         Tests for module 'cbrtl-ieee'.
42398         * modules/cbrtl-ieee-tests: New file.
42399         * tests/test-cbrtl-ieee.c: New file.
42401         New module 'cbrtl-ieee'.
42402         * modules/cbrtl-ieee: New file.
42404         Tests for module 'cbrt-ieee'.
42405         * modules/cbrt-ieee-tests: New file.
42406         * tests/test-cbrt-ieee.c: New file.
42408         New module 'cbrt-ieee'.
42409         * modules/cbrt-ieee: New file.
42411         Tests for module 'cbrtf-ieee'.
42412         * modules/cbrtf-ieee-tests: New file.
42413         * tests/test-cbrtf-ieee.c: New file.
42414         * tests/test-cbrt-ieee.h: New file.
42416         New module 'cbrtf-ieee'.
42417         * modules/cbrtf-ieee: New file.
42419 2012-02-29  Bruno Haible  <bruno@clisp.org>
42421         cbrtf: Work around bug in IRIX 6.5 system function.
42422         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42423         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42424         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42425         work.
42426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42427         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42428         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42429         (Depends-on): Update conditions.
42430         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42432 2012-02-29  Bruno Haible  <bruno@clisp.org>
42434         Tests for module 'cbrtl'.
42435         * modules/cbrtl-tests: New file.
42436         * tests/test-cbrtl.c: New file.
42438         New module 'cbrtl'.
42439         * lib/math.in.h (cbrtl): New declaration.
42440         * lib/cbrtl.c: New file.
42441         * m4/cbrtl.m4: New file.
42442         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42444         HAVE_DECL_CBRTL.
42445         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42446         HAVE_DECL_CBRTL.
42447         * modules/cbrtl: New file.
42448         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42449         * doc/posix-functions/cbrtl.texi: Mention the new module.
42451 2012-02-29  Bruno Haible  <bruno@clisp.org>
42453         Tests for module 'cbrtf'.
42454         * modules/cbrtf-tests: New file.
42455         * tests/test-cbrtf.c: New file.
42457         New module 'cbrtf'.
42458         * lib/math.in.h (cbrtf): New declaration.
42459         * lib/cbrtf.c: New file.
42460         * m4/cbrtf.m4: New file.
42461         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42463         HAVE_DECL_CBRTF.
42464         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42465         HAVE_DECL_CBRTF.
42466         * modules/cbrtf: New file.
42467         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42468         * doc/posix-functions/cbrtf.texi: Mention the new module.
42470 2012-02-29  Bruno Haible  <bruno@clisp.org>
42472         cbrt: Provide replacement on MSVC and Minix.
42473         * lib/math.in.h (cbrt): New declaration.
42474         * lib/cbrt.c: New file.
42475         * m4/cbrt.m4: New file.
42476         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42478         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42479         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42480         (Depends-on): Add dependencies.
42481         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42482         * tests/test-math-c++.cc: Check the declaration of cbrt.
42483         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42484         replacement.
42486 2012-02-29  Bruno Haible  <bruno@clisp.org>
42488         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42489         * m4/hypotl-ieee.m4: New file.
42490         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42491         test whether hypotl works with mixed NaN and Infinity arguments.
42492         Replace it if not.
42493         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42495         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42496         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42497         (Depends-on): Update conditions.
42498         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42499         (Depends-on): Add hypot-ieee.
42500         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42501         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42503         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42504         * m4/hypotf-ieee.m4: New file.
42505         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42506         test whether hypotf works with mixed NaN and Infinity arguments.
42507         Replace it if not.
42508         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42509         (Depends-on): Add hypot-ieee.
42510         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42511         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42513         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42514         * lib/math.in.h (hypot): New declaration.
42515         * lib/hypot.c: New file.
42516         * m4/hypot-ieee.m4: New file.
42517         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42518         whether hypot works with mixed NaN and Infinity arguments. Replace it
42519         if not.
42520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42521         REPLACE_HYPOT.
42522         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42523         * modules/hypot (Files): Add lib/hypot.c.
42524         (Depends-on): Add dependencies.
42525         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42526         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42527         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42528         * tests/test-math-c++.cc: Check the declaration of hypot.
42529         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42531         Tests for module 'hypotl-ieee'.
42532         * modules/hypotl-ieee-tests: New file.
42533         * tests/test-hypotl-ieee.c: New file.
42535         New module 'hypotl-ieee'.
42536         * modules/hypotl-ieee: New file.
42538         Tests for module 'hypot-ieee'.
42539         * modules/hypot-ieee-tests: New file.
42540         * tests/test-hypot-ieee.c: New file.
42542         New module 'hypot-ieee'.
42543         * modules/hypot-ieee: New file.
42545         Tests for module 'hypotf-ieee'.
42546         * modules/hypotf-ieee-tests: New file.
42547         * tests/test-hypotf-ieee.c: New file.
42548         * tests/test-hypot-ieee.h: New file.
42550         New module 'hypotf-ieee'.
42551         * modules/hypotf-ieee: New file.
42553 2012-02-29  Bruno Haible  <bruno@clisp.org>
42555         Remove unused variables.
42556         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42557         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42558         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42559         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42561 2012-02-29  Eric Blake  <eblake@redhat.com>
42563         termios: fix pid_t always, not just for tcgetsid
42564         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42565         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42566         just when building tcgetsid.
42568 2012-02-29  Bruno Haible  <bruno@clisp.org>
42570         Tests for module 'hypotl'.
42571         * modules/hypotl-tests: New file.
42572         * tests/test-hypotl.c: New file.
42574         New module 'hypotl'.
42575         * lib/math.in.h (hypotl): New declaration.
42576         * lib/hypotl.c: New file.
42577         * m4/hypotl.m4: New file.
42578         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42580         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42581         * modules/hypotl: New file.
42582         * tests/test-math-c++.cc: Check the hypotl declaration.
42583         * doc/posix-functions/hypotl.texi: Mention the new module.
42585 2012-02-29  Eric Blake  <eblake@redhat.com>
42587         tcgetsid: fix cygwin header bug
42588         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42590         docs: update cygwin progress
42591         * doc/posix-functions/llround.texi (llround): Added in cygwin
42592         1.7.8.
42593         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42594         * doc/glibc-functions/program_invocation_name.texi
42595         (program_invocation_name): Likewise.
42596         * doc/glibc-functions/program_invocation_short_name.texi
42597         (program_invocation_short_name): Likewise.
42598         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42599         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42600         Likewise.
42601         * doc/posix-functions/pthread_spin_destroy.texi
42602         (pthread_spin_destroy): Added in cygwin 1.7.10.
42603         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42604         Likewise.
42605         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42606         Likewise.
42607         * doc/posix-functions/pthread_spin_trylock.texi
42608         (pthread_spin_trylock): Likewise.
42609         * doc/posix-functions/pthread_spin_unlock.texi
42610         (pthread_spin_unlock): Likewise.
42611         * doc/posix-functions/pthread_setschedprio.texi
42612         (pthread_setschedprio): Likewise.
42613         * doc/posix-functions/pthread_attr_getstack.texi
42614         (pthread_attr_getstack): Likewise.
42615         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42616         (pthread_attr_getstackaddr): Likewise.
42617         * doc/glibc-functions/pthread_getattr_np.texi
42618         (pthread_getattr_np): Likewise.
42619         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42620         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42621         * doc/posix-functions/clock_settime.texi (clock_settime):
42622         Likewise.
42623         * doc/posix-functions/pthread_attr_getguardsize.texi
42624         (pthread_attr_getguardsize): Likewise.
42625         * doc/posix-functions/pthread_attr_setguardsize.texi
42626         (pthread_attr_setguardsize): Likewise.
42627         * doc/posix-functions/pthread_attr_setstack.texi
42628         (pthread_attr_setstack): Likewise.
42629         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42630         (pthread_attr_setstackaddr): Likewise.
42631         * doc/posix-functions/clock_getcpuclockid.texi
42632         (clock_getcpuclockid): Likewise.
42633         * doc/posix-functions/pthread_getcpuclockid.texi
42634         (pthread_getcpuclockid): Likewise.
42635         * doc/glibc-functions/error.texi (error): Likewise.
42636         * doc/glibc-functions/error_at_line.texi (error_at_line):
42637         Likewise.
42638         * doc/glibc-functions/error_message_count.texi
42639         (error_message_count): Likewise.
42640         * doc/glibc-functions/error_one_per_line.texi
42641         (error_one_per_line): Likewise.
42642         * doc/glibc-functions/error_print_progname.texi
42643         (error_print_progname): Likewise.
42644         * doc/posix-functions/pthread_condattr_getclock.texi
42645         (pthread_condattr_getclock): Likewise.
42646         * doc/posix-functions/pthread_condattr_setclock.texi
42647         (pthread_condattr_setclock): Likewise.
42648         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42649         Likewise.
42650         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42651         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42652         * doc/glibc-functions/get_current_dir_name.texi
42653         (get_current_dir_name): Likewise.
42654         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42655         Likewise.
42656         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42657         wrong return type.
42658         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42659         1.7.11.
42661 2012-02-29  Bruno Haible  <bruno@clisp.org>
42663         Tests for module 'hypotf'.
42664         * modules/hypotf-tests: New file.
42665         * tests/test-hypotf.c: New file.
42667         New module 'hypotf'.
42668         * lib/math.in.h (hypotf): New declaration.
42669         * lib/hypotf.c: New file.
42670         * m4/hypotf.m4: New file.
42671         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42673         REPLACE_HYPOTF.
42674         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42675         REPLACE_HYPOTF.
42676         * modules/hypotf: New file.
42677         * tests/test-math-c++.cc: Check the hypotf declaration.
42678         * doc/posix-functions/hypotf.texi: Mention the new module.
42680         hypot: Prepare for hypotf module.
42681         * m4/hypot.m4: New file.
42682         * modules/hypot (Files): Add m4/hypot.m4.
42683         (configure.ac): Invoke gl_FUNC_HYPOT.
42685 2012-02-29  Bruno Haible  <bruno@clisp.org>
42687         hypot tests: More tests.
42688         * tests/test-hypot.c: Include <float.h>.
42689         (main): Add tests about overflow and underflow.
42691 2012-02-29  Bruno Haible  <bruno@clisp.org>
42693         math code: Add comments.
42694         * lib/acosl.c: Add comment about related glibc source files.
42695         * lib/asinl.c: Likewise.
42696         * lib/atanl.c: Likewise.
42697         * lib/expl.c: Likewise.
42698         * lib/logl.c: Likewise.
42699         * lib/sincosl.c: Likewise.
42700         * lib/sinl.c: Likewise.
42701         * lib/tanl.c: Likewise.
42702         * lib/trigl.c: Likewise.
42703         * lib/cosl.c: Likewise. Fix comments.
42705 2012-02-28  Bruno Haible  <bruno@clisp.org>
42707         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42708         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42709         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42710         HUGE_VALL are defined.
42711         (numeric_equald): Renamed from numeric_equal.
42712         (numeric_equalf, numeric_equall): New functions.
42713         (main): Check also HUGE_VALF, HUGE_VALL.
42714         * modules/math-tests (Files): Add tests/macros.h.
42715         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42716         HUGE_VALL.
42718 2012-02-28  Bruno Haible  <bruno@clisp.org>
42720         doc: Move ISO C11 feature notes into POSIX chapters.
42721         * doc/posix-functions/aligned_alloc.texi: Renamed from
42722         doc/glibc-functions/aligned_alloc.texi.
42723         * doc/posix-functions/quick_exit.texi: Renamed from
42724         doc/glibc-functions/quick_exit.texi.
42725         * doc/posix-headers/uchar.texi: Renamed from
42726         doc/glibc-headers/uchar.texi.
42727         * doc/posix-functions/c16rtomb.texi: Renamed from
42728         doc/glibc-functions/c16rtomb.texi.
42729         * doc/posix-functions/c32rtomb.texi: Renamed from
42730         doc/glibc-functions/c32rtomb.texi.
42731         * doc/posix-functions/mbrtoc16.texi: Renamed from
42732         doc/glibc-functions/mbrtoc16.texi.
42733         * doc/posix-functions/mbrtoc32.texi: Renamed from
42734         doc/glibc-functions/mbrtoc32.texi.
42735         * doc/gnulib.texi: Update.
42736         (Glibc uchar.h): Remove section.
42737         Suggested by Eric Blake.
42739 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42741         stdnoreturn: port to MSVC better
42742         MSVC standard headers use __declspec(noreturn), so #define noreturn
42743         to empty on that platform.  Reported by Bruno Haible in
42744         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42745         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42746         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42748 2012-02-28  Bruno Haible  <bruno@clisp.org>
42750         doc: Mention new glibc headers and functions.
42751         * doc/glibc-headers/uchar.texi: New file.
42752         * doc/glibc-functions/aligned_alloc.texi: New file.
42753         * doc/glibc-functions/c16rtomb.texi: New file.
42754         * doc/glibc-functions/c32rtomb.texi: New file.
42755         * doc/glibc-functions/clock_adjtime.texi: New file.
42756         * doc/glibc-functions/fanotify_init.texi: New file.
42757         * doc/glibc-functions/fanotify_mark.texi: New file.
42758         * doc/glibc-functions/inet6_opt_append.texi: New file.
42759         * doc/glibc-functions/inet6_opt_find.texi: New file.
42760         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42761         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42762         * doc/glibc-functions/inet6_opt_init.texi: New file.
42763         * doc/glibc-functions/inet6_opt_next.texi: New file.
42764         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42765         * doc/glibc-functions/inet6_rth_add.texi: New file.
42766         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42767         * doc/glibc-functions/inet6_rth_init.texi: New file.
42768         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42769         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42770         * doc/glibc-functions/inet6_rth_space.texi: New file.
42771         * doc/glibc-functions/login.texi: New file.
42772         * doc/glibc-functions/mbrtoc16.texi: New file.
42773         * doc/glibc-functions/mbrtoc32.texi: New file.
42774         * doc/glibc-functions/name_to_handle_at.texi: New file.
42775         * doc/glibc-functions/ntp_gettimex.texi: New file.
42776         * doc/glibc-functions/open_by_handle_at.texi: New file.
42777         * doc/glibc-functions/prlimit.texi: New file.
42778         * doc/glibc-functions/process_vm_readv.texi: New file.
42779         * doc/glibc-functions/process_vm_writev.texi: New file.
42780         * doc/glibc-functions/recvmmsg.texi: New file.
42781         * doc/glibc-functions/scandirat.texi: New file.
42782         * doc/glibc-functions/sendmmsg.texi: New file.
42783         * doc/glibc-functions/setns.texi: New file.
42784         * doc/glibc-functions/timespec_get.texi: New file.
42785         * doc/gnulib.texi: Include them.
42786         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42787         sections.
42788         Reported by Eric Blake.
42790 2012-02-28  Bruno Haible  <bruno@clisp.org>
42792         Avoid compilation errors with MSVC option -fp:strict.
42793         * lib/floor.c: Use MSVC specific pragma fenv_access.
42794         * lib/ceil.c: Likewise.
42795         * lib/trunc.c: Likewise.
42796         * lib/round.c: Likewise.
42797         * lib/rint.c: Likewise.
42798         * lib/fma.c: Likewise.
42799         * lib/integer_length.c: Likewise.
42800         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42801         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42802         * tests/test-floor2.c: Likewise.
42803         * tests/test-floorf2.c: Likewise.
42804         * tests/test-ceil2.c: Likewise.
42805         * tests/test-ceilf2.c: Likewise.
42806         * tests/test-trunc2.c: Likewise.
42807         * tests/test-truncf2.c: Likewise.
42808         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42810 2012-02-27  Bruno Haible  <bruno@clisp.org>
42812         Tests for module 'sqrtl-ieee'.
42813         * modules/sqrtl-ieee-tests: New file.
42814         * tests/test-sqrtl-ieee.c: New file.
42816         New module 'sqrtl-ieee'.
42817         * modules/sqrtl-ieee: New file.
42819         Tests for module 'sqrt-ieee'.
42820         * modules/sqrt-ieee-tests: New file.
42821         * tests/test-sqrt-ieee.c: New file.
42823         New module 'sqrt-ieee'.
42824         * modules/sqrt-ieee: New file.
42826         Tests for module 'sqrtf-ieee'.
42827         * modules/sqrtf-ieee-tests: New file.
42828         * tests/test-sqrtf-ieee.c: New file.
42829         * tests/test-sqrt-ieee.h: New file.
42831         New module 'sqrtf-ieee'.
42832         * modules/sqrtf-ieee: New file.
42834 2012-02-27  Bruno Haible  <bruno@clisp.org>
42836         remainderl-ieee: Work around test failure on OSF/1.
42837         * m4/remainderl-ieee.m4: New file.
42838         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42839         present, test whether remainderl works with a zero second argument.
42840         Replace it if not.
42841         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42843         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42844         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42845         (Depends-on): Update conditions.
42846         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42847         (Depends-on): Add remainder-ieee.
42848         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42849         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42850         module.
42852         remainderf-ieee: Work around test failure on OSF/1.
42853         * m4/remainderf-ieee.m4: New file.
42854         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42855         present, test whether remainderf works with a zero second argument.
42856         Replace it if not.
42857         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42859         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42860         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42861         (Depends-on): Update conditions.
42862         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42863         (Depends-on): Add remainder-ieee.
42864         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42865         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42866         module.
42868         remainder-ieee: Work around test failure on OSF/1.
42869         * m4/remainder-ieee.m4: New file.
42870         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42871         present, test whether remainder works with a zero second argument.
42872         Replace it if not.
42873         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42875         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42876         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42877         (Depends-on): Update dependencies.
42878         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42879         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42880         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42882         Tests for module 'remainderl-ieee'.
42883         * modules/remainderl-ieee-tests: New file.
42884         * tests/test-remainderl-ieee.c: New file.
42886         New module 'remainderl-ieee'.
42887         * modules/remainderl-ieee: New file.
42889         Tests for module 'remainder-ieee'.
42890         * modules/remainder-ieee-tests: New file.
42891         * tests/test-remainder-ieee.c: New file.
42893         New module 'remainder-ieee'.
42894         * modules/remainder-ieee: New file.
42896         Tests for module 'remainderf-ieee'.
42897         * modules/remainderf-ieee-tests: New file.
42898         * tests/test-remainderf-ieee.c: New file.
42899         * tests/test-remainder-ieee.h: New file.
42901         New module 'remainderf-ieee'.
42902         * modules/remainderf-ieee: New file.
42904 2012-02-27  Bruno Haible  <bruno@clisp.org>
42906         modff, modfl: Fix configure syntax error.
42907         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42908         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42910 2012-02-27  Bruno Haible  <bruno@clisp.org>
42912         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42913         * m4/fmodl-ieee.m4: New file.
42914         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42915         whether fmodl works with zero arguments. Replace it if not.
42916         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42917         (Depends-on): Add fmod-ieee.
42918         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42919         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42921         fmodf-ieee: Work around test failure on OSF/1.
42922         * m4/fmodf-ieee.m4: New file.
42923         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42924         whether fmodf works with zero arguments. Replace it if not.
42925         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42927         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42928         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42929         (Depends-on): Update dependencies.
42930         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42931         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42932         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42934         fmodf-ieee: Work around test failure on MSVC 9.
42935         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42936         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42938         fmod-ieee: Work around test failures on OSF/1, mingw.
42939         * m4/fmod-ieee.m4: New file.
42940         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42941         whether fmod works with zero arguments. Replace it if not.
42942         * lib/math.in.h (fmod): New declaration.
42943         * lib/fmod.c: New file.
42944         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42946         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42947         * modules/fmod (Files): Add lib/fmod.c.
42948         (Depends-on): Add math, isinf, trunc, fma.
42949         (configure.ac): Arrange to compile lib/fmod.c if needed.
42950         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42951         m4/signbit.m4.
42952         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42953         * tests/test-math-c++.cc: Check the declaration of fmod.
42954         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42956         fmodl-ieee: Fix test failures.
42957         * lib/fmodl.c (fmodl): Treat Inf specially.
42958         * modules/fmodl (Depends-on): Add isinf.
42960         Tests for module 'fmodl-ieee'.
42961         * modules/fmodl-ieee-tests: New file.
42962         * tests/test-fmodl-ieee.c: New file.
42964         New module 'fmodl-ieee'.
42965         * modules/fmodl-ieee: New file.
42967         Tests for module 'fmod-ieee'.
42968         * modules/fmod-ieee-tests: New file.
42969         * tests/test-fmod-ieee.c: New file.
42971         New module 'fmod-ieee'.
42972         * modules/fmod-ieee: New file.
42974         Tests for module 'fmodf-ieee'.
42975         * modules/fmodf-ieee-tests: New file.
42976         * tests/test-fmodf-ieee.c: New file.
42977         * tests/test-fmod-ieee.h: New file.
42979         New module 'fmodf-ieee'.
42980         * modules/fmodf-ieee: New file.
42982 2012-02-27  Bruno Haible  <bruno@clisp.org>
42984         Tests for module 'rintl-ieee'.
42985         * modules/rintl-ieee-tests: New file.
42986         * tests/test-rintl-ieee.c: New file.
42988         New module 'rintl-ieee'.
42989         * modules/rintl-ieee: New file.
42991         Tests for module 'rint-ieee'.
42992         * modules/rint-ieee-tests: New file.
42993         * tests/test-rint-ieee.c: New file.
42995         New module 'rint-ieee'.
42996         * modules/rint-ieee: New file.
42998         Tests for module 'rintf-ieee'.
42999         * modules/rintf-ieee-tests: New file.
43000         * tests/test-rintf-ieee.c: New file.
43001         * tests/test-rint-ieee.h: New file.
43003         New module 'rintf-ieee'.
43004         * modules/rintf-ieee: New file.
43006 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43008         regex: re_search etc. should return -2 when memory exhausted
43009         This bug was uncovered when testing 'grep'.  Without the fix,
43010         re_search and friends return -1 when memory is exhausted, but -1
43011         means no match, and this causes grep to falsely report no-match
43012         instead of memory-exhaustion.  See
43013         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
43014         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
43015         trouble; this can occur if re_search_internal ran out of memory.
43017 2012-02-26  Bruno Haible  <bruno@clisp.org>
43019         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
43020         * m4/modfl-ieee.m4: New file.
43021         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
43022         whether modfl works with Inf. Replace it if not.
43023         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
43024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
43025         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
43026         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
43027         (Depends-on): Update dependencies.
43028         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
43029         m4/signbit.m4.
43030         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
43031         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
43033         modfl-ieee: Fix dependencies.
43034         * modules/modfl-ieee (Depends-on): Add modf-ieee.
43036         modfl-ieee: Fix test failures.
43037         * lib/modfl.c (modfl): Treat NaN and Inf specially.
43038         * modules/modfl (Depends-on): Add isfinite, isinf.
43040         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
43041         * m4/modff-ieee.m4: New file.
43042         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
43043         whether modff works with NaN and Inf. Replace it if not.
43044         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
43045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
43046         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
43047         * modules/modff (configure.ac): Consider REPLACE_MODFF.
43048         (Depends-on): Update dependencies.
43049         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
43050         m4/signbit.m4.
43051         (Depends-on): Add modf-ieee.
43052         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
43053         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
43055         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
43056         * m4/modf-ieee.m4: New file.
43057         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
43058         whether modf works with NaN and Inf. Replace it if not.
43059         * lib/math.in.h (modf): New declaration.
43060         * lib/modf.c: New file.
43061         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
43062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
43063         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
43064         * modules/modf (Files): Add lib/modf.c.
43065         (Depends-on): Add math, isfinite, trunc, isinf.
43066         (configure.ac): Addrange to compile lib/modf.c if needed.
43067         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
43068         m4/signbit.m4.
43069         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
43070         * tests/test-math-c++.cc: Check the declaration of modf.
43071         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
43073         Tests for module 'modfl-ieee'.
43074         * modules/modfl-ieee-tests: New file.
43075         * tests/test-modfl-ieee.c: New file.
43077         New module 'modfl-ieee'.
43078         * modules/modfl-ieee: New file.
43080         Tests for module 'modf-ieee'.
43081         * modules/modf-ieee-tests: New file.
43082         * tests/test-modf-ieee.c: New file.
43084         New module 'modf-ieee'.
43085         * modules/modf-ieee: New file.
43087         Tests for module 'modff-ieee'.
43088         * modules/modff-ieee-tests: New file.
43089         * tests/test-modff-ieee.c: New file.
43090         * tests/test-modf-ieee.h: New file.
43092         New module 'modff-ieee'.
43093         * modules/modff-ieee: New file.
43095 2012-02-26  Bruno Haible  <bruno@clisp.org>
43097         Tests for module 'fabsl-ieee'.
43098         * modules/fabsl-ieee-tests: New file.
43099         * tests/test-fabsl-ieee.c: New file.
43101         New module 'fabsl-ieee'.
43102         * modules/fabsl-ieee: New file.
43104         Tests for module 'fabs-ieee'.
43105         * modules/fabs-ieee-tests: New file.
43106         * tests/test-fabs-ieee.c: New file.
43108         New module 'fabs-ieee'.
43109         * modules/fabs-ieee: New file.
43111         Tests for module 'fabsf-ieee'.
43112         * modules/fabsf-ieee-tests: New file.
43113         * tests/test-fabsf-ieee.c: New file.
43114         * tests/test-fabs-ieee.h: New file.
43116         New module 'fabsf-ieee'.
43117         * modules/fabsf-ieee: New file.
43119 2012-02-26  Bruno Haible  <bruno@clisp.org>
43121         Tests for module 'fmal-ieee'.
43122         * modules/fmal-ieee-tests: New file.
43123         * tests/test-fmal-ieee.c: New file.
43125         New module 'fmal-ieee'.
43126         * modules/fmal-ieee: New file.
43128         Tests for module 'fma-ieee'.
43129         * modules/fma-ieee-tests: New file.
43130         * tests/test-fma-ieee.c: New file.
43132         New module 'fma-ieee'.
43133         * modules/fma-ieee: New file.
43135         Tests for module 'fmaf-ieee'.
43136         * modules/fmaf-ieee-tests: New file.
43137         * tests/test-fmaf-ieee.c: New file.
43138         * tests/test-fma-ieee.h: New file.
43140         New module 'fmaf-ieee'.
43141         * modules/fmaf-ieee: New file.
43143 2012-02-26  Bruno Haible  <bruno@clisp.org>
43145         Tests for module 'ldexpl-ieee'.
43146         * modules/ldexpl-ieee-tests: New file.
43147         * tests/test-ldexpl-ieee.c: New file.
43149         New module 'ldexpl-ieee'.
43150         * modules/ldexpl-ieee: New file.
43152         Tests for module 'ldexp-ieee'.
43153         * modules/ldexp-ieee-tests: New file.
43154         * tests/test-ldexp-ieee.c: New file.
43156         New module 'ldexp-ieee'.
43157         * modules/ldexp-ieee: New file.
43159         Tests for module 'ldexpf-ieee'.
43160         * modules/ldexpf-ieee-tests: New file.
43161         * tests/test-ldexpf-ieee.c: New file.
43162         * tests/test-ldexp-ieee.h: New file.
43164         New module 'ldexpf-ieee'.
43165         * modules/ldexpf-ieee: New file.
43167 2012-02-26  Bruno Haible  <bruno@clisp.org>
43169         Refactor frexp*-ieee tests.
43170         * tests/test-frexp-ieee.h: New file.
43171         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
43172         (main): Just call test_function.
43173         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
43174         (main): Just call test_function.
43175         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
43176         (main): Just call test_function.
43177         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
43178         * modules/frexp-ieee-tests (Files): Likewise.
43179         * modules/frexpl-ieee-tests (Files): Likewise.
43181         Tests for module 'frexpl-ieee'.
43182         * modules/frexpl-ieee-tests: New file.
43183         * tests/test-frexpl-ieee.c: New file.
43185         New module 'frexpl-ieee'.
43186         * modules/frexpl-ieee: New file.
43188         Tests for module 'frexp-ieee'.
43189         * modules/frexp-ieee-tests: New file.
43190         * tests/test-frexp-ieee.c: New file.
43192         New module 'frexp-ieee'.
43193         * modules/frexp-ieee: New file.
43195         Tests for module 'frexpf-ieee'.
43196         * modules/frexpf-ieee-tests: New file.
43197         * tests/test-frexpf-ieee.c: New file.
43199         New module 'frexpf-ieee'.
43200         * modules/frexpf-ieee: New file.
43202 2012-02-26  Bruno Haible  <bruno@clisp.org>
43204         roundl-ieee tests: More tests.
43205         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43206         (main): Add tests for [MX] shaded specification in POSIX.
43207         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43208         (Depends-on): Add isnanl-nolibm.
43210         round-ieee tests: More tests.
43211         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43212         (main): Add tests for [MX] shaded specification in POSIX.
43213         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43214         (Depends-on): Add isnand-nolibm.
43216         roundf-ieee tests: More tests.
43217         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43218         (main): Add tests for [MX] shaded specification in POSIX.
43219         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43220         (Depends-on): Add isnanf-nolibm.
43222         truncl-ieee tests: More tests.
43223         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43224         (main): Add tests for [MX] shaded specification in POSIX.
43225         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43226         (Depends-on): Add isnanl-nolibm.
43228         trunc-ieee tests: More tests.
43229         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43230         (main): Add tests for [MX] shaded specification in POSIX.
43231         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43232         (Depends-on): Add isnand-nolibm.
43234         truncf-ieee tests: More tests.
43235         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43236         (main): Add tests for [MX] shaded specification in POSIX.
43237         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43238         (Depends-on): Add isnanf-nolibm.
43240         ceill-ieee tests: More tests.
43241         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43242         (main): Add tests for [MX] shaded specification in POSIX.
43243         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43244         (Depends-on): Add isnanl-nolibm.
43246         ceil-ieee tests: More tests.
43247         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43248         (main): Add tests for [MX] shaded specification in POSIX.
43249         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43250         (Depends-on): Add isnand-nolibm.
43252         ceilf-ieee tests: More tests.
43253         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43254         (main): Add tests for [MX] shaded specification in POSIX.
43255         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43256         (Depends-on): Add isnanf-nolibm.
43258         floorl-ieee tests: More tests.
43259         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43260         (main): Add tests for [MX] shaded specification in POSIX.
43261         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43262         (Depends-on): Add isnanl-nolibm.
43264         floor-ieee tests: More tests.
43265         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43266         (main): Add tests for [MX] shaded specification in POSIX.
43267         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43268         (Depends-on): Add isnand-nolibm.
43270         floorf-ieee tests: More tests.
43271         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43272         (main): Add tests for [MX] shaded specification in POSIX.
43273         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43274         (Depends-on): Add isnanf-nolibm.
43276 2012-02-26  Bruno Haible  <bruno@clisp.org>
43278         fpieee: More comments.
43279         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
43281 2012-02-25  Bruno Haible  <bruno@clisp.org>
43283         Tests for module 'log10l'.
43284         * modules/log10l-tests: New file.
43285         * tests/test-log10l.c: New file.
43286         * tests/test-math-c++.cc: Check the declaration of log10l.
43288         New module 'log10l'.
43289         * lib/math.in.h (log10l): New declaration.
43290         * lib/log10l.c: New file.
43291         * m4/log10l.m4: New file.
43292         * modules/log10l: New file.
43293         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
43294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
43295         HAVE_DECL_LOG10L.
43296         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
43297         HAVE_DECL_LOG10L.
43298         * doc/posix-functions/log10l.texi: Mention the new module.
43300 2012-02-25  Bruno Haible  <bruno@clisp.org>
43302         fmodl, remainder*: Avoid wrong results due to rounding errors.
43303         * lib/fmodl.c (fmodl): Correct the result if it is not within the
43304         expected bounds.
43305         * lib/remainderf.c (remainderf): Likewise.
43306         * lib/remainder.c (remainder): Likewise.
43307         * lib/remainderl.c (remainderl): Likewise.
43309 2012-02-25  Bruno Haible  <bruno@clisp.org>
43311         Tests for module 'remainderl'.
43312         * modules/remainderl-tests: New file.
43313         * tests/test-remainderl.c: New file.
43314         * tests/test-math-c++.cc: Check the declaration of remainderl.
43316         New module 'remainderl'.
43317         * lib/math.in.h (remainderl): New declaration.
43318         * lib/remainderl.c: New file.
43319         * m4/remainderl.m4: New file.
43320         * modules/remainderl: New file.
43321         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
43322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
43323         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
43324         HAVE_REMAINDERL.
43325         * doc/posix-functions/remainderl.texi: Mention the new module.
43327 2012-02-25  Bruno Haible  <bruno@clisp.org>
43329         Tests for module 'remainderf'.
43330         * modules/remainderf-tests: New file.
43331         * tests/test-remainderf.c: New file.
43332         * tests/test-math-c++.cc: Check the declaration of remainderf.
43334         New module 'remainderf'.
43335         * lib/math.in.h (remainderf): New declaration.
43336         * lib/remainderf.c: New file.
43337         * m4/remainderf.m4: New file.
43338         * modules/remainderf: New file.
43339         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
43340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
43341         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
43342         HAVE_REMAINDERF.
43343         * doc/posix-functions/remainderf.texi: Mention the new module.
43345 2012-02-25  Bruno Haible  <bruno@clisp.org>
43347         remainder: Support for MSVC.
43348         * lib/math.in.h (remainder): New declaration.
43349         * lib/remainder.c: New file.
43350         * m4/remainder.m4: New file.
43351         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
43352         (Depends-on): Add math, round, fma.
43353         (configure.ac): Use results of gl_FUNC_REMAINDER.
43354         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
43355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
43356         HAVE_DECL_REMAINDER.
43357         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
43358         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
43359         * tests/test-math-c++.cc: Check the declaration of remainder.
43360         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
43361         problems are fixed.
43363 2012-02-25  Bruno Haible  <bruno@clisp.org>
43365         Tests for module 'fmodl'.
43366         * modules/fmodl-tests: New file.
43367         * tests/test-fmodl.c: New file.
43368         * tests/test-math-c++.cc: Check the declaration of fmodl.
43370         New module 'fmodl'.
43371         * lib/math.in.h (fmodl): New declaration.
43372         * lib/fmodl.c: New file.
43373         * m4/fmodl.m4: New file.
43374         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
43375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
43376         REPLACE_FMODL.
43377         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
43378         REPLACE_FMODL.
43379         * modules/fmodl: New file.
43380         * doc/posix-functions/fmodl.texi: Mention the new module.
43382 2012-02-25  Bruno Haible  <bruno@clisp.org>
43384         Tests for module 'modfl'.
43385         * modules/modfl-tests: New file.
43386         * tests/test-modfl.c: New file.
43387         * tests/test-math-c++.cc: Check the declaration of modfl.
43389         New module 'modfl'.
43390         * lib/math.in.h (modfl): New declaration.
43391         * lib/modfl.c: New file.
43392         * m4/modfl.m4: New file.
43393         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
43394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
43395         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
43396         * modules/modfl: New file.
43397         * doc/posix-functions/modfl.texi: Mention the new module.
43399 2012-02-25  Bruno Haible  <bruno@clisp.org>
43401         Tests for module 'fabsl'.
43402         * modules/fabsl-tests: New file.
43403         * tests/test-fabsl.c: New file.
43404         * tests/test-math-c++.cc: Check the declaration of fabsl.
43406         New module 'fabsl'.
43407         * lib/math.in.h (fabsl): New declaration.
43408         * lib/fabsl.c: New file.
43409         * m4/fabsl.m4: New file.
43410         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
43411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
43412         REPLACE_FABSL.
43413         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
43414         REPLACE_FABSL.
43415         * modules/fabsl: New file.
43416         * doc/posix-functions/fabsl.texi: Mention the new module.
43418 2012-02-25  Bruno Haible  <bruno@clisp.org>
43420         fabs tests: More tests.
43421         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43422         (zero): New variable.
43423         (main): Add tests for signed zero.
43424         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43426         fabsf tests: More tests.
43427         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43428         (zero): New variable.
43429         (main): Add tests for signed zero.
43430         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43432 2012-02-24  Bruno Haible  <bruno@clisp.org>
43434         atanl: Provide function definition on MSVC.
43435         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43436         function pointer.
43437         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43439 2012-02-24  Bruno Haible  <bruno@clisp.org>
43441         acosl: Provide function definition on MSVC.
43442         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43443         function pointer.
43444         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43446 2012-02-24  Bruno Haible  <bruno@clisp.org>
43448         asinl: Provide function definition on MSVC.
43449         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43450         function pointer.
43451         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43453 2012-02-24  Bruno Haible  <bruno@clisp.org>
43455         tanl: Provide function definition on MSVC.
43456         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43457         function pointer.
43458         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43460 2012-02-24  Bruno Haible  <bruno@clisp.org>
43462         cosl: Provide function definition on MSVC.
43463         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43464         function pointer.
43465         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43467 2012-02-24  Bruno Haible  <bruno@clisp.org>
43469         sinl: Provide function definition on MSVC.
43470         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43471         function pointer.
43472         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43474 2012-02-24  Bruno Haible  <bruno@clisp.org>
43476         logl: Provide function definition on MSVC.
43477         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43478         function pointer.
43479         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43481 2012-02-24  Bruno Haible  <bruno@clisp.org>
43483         expl: Provide function definition on MSVC.
43484         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43485         function pointer.
43486         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43488 2012-02-24  Bruno Haible  <bruno@clisp.org>
43490         sqrtl: Provide function definition on MSVC.
43491         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43492         a function pointer.
43493         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43495 2012-02-24  Bruno Haible  <bruno@clisp.org>
43497         ceill: Provide function definition on MSVC.
43498         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43499         used as a function pointer.
43500         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43502 2012-02-24  Bruno Haible  <bruno@clisp.org>
43504         floorl: Provide function definition on MSVC.
43505         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43506         used as a function pointer.
43507         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43509 2012-02-24  Bruno Haible  <bruno@clisp.org>
43511         ceilf: Provide function definition on MSVC.
43512         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43513         used as a function pointer.
43514         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43516 2012-02-24  Bruno Haible  <bruno@clisp.org>
43518         floorf: Provide function definition on MSVC.
43519         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43520         used as a function pointer.
43521         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43523 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43525         stdnoreturn: new module
43526         This implements a replacement for C11's <stdnoreturn.h>.
43527         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43528         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43529         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43530         * tests/test-stdnoreturn.c: New files.
43532 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43534         regex: fix false multibyte matches in some regular expressions
43535         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43536         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43537         * lib/regex_internal.c (re_string_skip_chars):
43538         Fix miscomputation of remain_len that may cause incomplete
43539         multi-byte character and false match.
43541 2012-02-24  Jim Meyering  <meyering@redhat.com>
43543         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43544         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43545         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43546         Remove now-unnecessary str''cmp obfuscation.
43547         Suggested by Akim Demaille.
43549 2012-02-24  Bruno Haible  <bruno@clisp.org>
43551         streq: Rename macro.
43552         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43553         * NEWS: Mention the change.
43554         * lib/mbrtowc.c (mbrtowc): Update.
43555         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43556         * lib/wcwidth.c (wcwidth): Update.
43557         Suggested by Akim Demaille and Jim Meyering.
43559 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43561         regex: fix typo in definition of MIN
43562         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43563         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43565 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43566             Bruno Haible  <bruno@clisp.org>
43568         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43569         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43570         entries into a stack-allocated buffer directly.
43571         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43573 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43574             Bruno Haible  <bruno@clisp.org>
43576         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43578          - There were several instances of this pattern:
43580              for (;;) {
43581                n = acl (f, GETACLCNT, 0, NULL);
43582                [ allocate an array A of size N ]
43583                if (acl (f, GETACL, n, a) == n)
43584                  break;
43585              }
43587            This loop might never terminate if some other process is constantly
43588            manipulating the file's ACL.  The loop should be rewritten to
43589            terminate.
43591          - The acl (... GETACLNT ...) call is merely an optimization; its value
43592            is merely a hint as to how big to make the array.  A better
43593            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43594            and just guess a reasonably-big size, growing the size and trying
43595            again if it's not large enough.  This guarantees termination, and
43596            saves a system call.
43598         * lib/acl-internal.h: Include <limits.h>.
43599         (MIN, SIZE_MAX): New macros.
43600         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43601         a stack-allocated buffer, and use malloc if it does not fit. Don't
43602         use GETACLCNT.
43603         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43605 2012-02-19  Bruno Haible  <bruno@clisp.org>
43607         acl: Fix endless loop on Solaris with vxfs.
43608         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43609         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43610         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43611         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43612         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43613         Reported by Bill Jones in
43614         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43616 2012-02-19  Bruno Haible  <bruno@clisp.org>
43618         acl: Fix copy-acl test failure on Solaris 11.0.
43619         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43620         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43621         that this function returns 0 in some more cases.
43623 2012-02-19  Bruno Haible  <bruno@clisp.org>
43625         acl: Update doc references.
43626         * doc/acl-resources.txt: Update links to Solaris documentation.
43628 2012-02-19  Bruno Haible  <bruno@clisp.org>
43630         Fix test failure in many locales on Solaris 11.
43631         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43632         'tr' arguments.
43633         * tests/test-pipe-filter-ii1.c (main): Likewise.
43634         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43635         expressions in the C locale.
43636         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43637         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43639 2012-02-19  Bruno Haible  <bruno@clisp.org>
43641         gnulib-tool: Improve usage message.
43642         * gnulib-tool (func_usage): Move doc of --help and --version to the
43643         section "Operation modes".
43645 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43647         README-release: make it easier to execute commands
43648         * top/README-release: break commands out on to separate lines.
43650 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43652         GNUmakefile: simplify detection of unconfigured trees
43653         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43654         whether the tree make is being run from is already configured or
43655         not.  Related simplifications.
43657 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43659         * gnulib-tool (func_usage): Document --help and --version.
43661 2012-02-11  Jim Meyering  <meyering@redhat.com>
43663         bootstrap: don't exit 0 upon gnulib-tool failure
43664         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43665         its exit status, not 0.
43667 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43669         README-release: various improvements
43670         * top/README-release: Give a command to push changes for the
43671         release.  Add "distcheck" to list of other pre-release checks.
43672         Fix instance of "make stable" which should be "make TYPE".
43674 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43676         maint: replace FSF snail-mail addresses with URLs
43677         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43678         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43679         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43680         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43681         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43682         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43683         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43684         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43685         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43686         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43687         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43688         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43689         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43690         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43691         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43692         * lib/glthread/thread.c, lib/glthread/thread.h:
43693         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43694         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43695         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43696         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43697         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43698         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43699         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43700         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43701         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43702         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43703         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43704         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43705         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43706         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43707         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43708         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43709         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43710         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43711         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43712         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43713         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43714         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43715         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43716         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43717         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43718         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43719         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43720         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43721         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43722         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43723         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43724         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43725         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43726         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43727         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43728         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43729         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43730         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43731         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43732         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43733         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43734         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43735         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43736         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43737         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43738         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43739         * tests/test-poll.c, tests/test-quotearg-simple.c:
43740         * tests/test-quotearg.c, tests/test-quotearg.h:
43741         * tests/test-round-ieee.c, tests/test-round1.c:
43742         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43743         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43744         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43745         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43746         * tests/test-strerror.c, tests/test-strerror_r.c:
43747         * tests/test-strsignal.c, tests/test-strverscmp.c:
43748         * tests/test-xmemdup0.c:
43749         Replace FSF snail mail addresses with URLs, as per GNU coding
43750         standards.  See glibc bug
43751         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43753 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43755         README-release: capitalize a word and split a line
43756         * top/README-release: Fix punctuation and spacing.
43758 2012-02-08  Akim Demaille  <demaille@gostai.com>
43760         fatal-signal: use C prototypes (with explicit void).
43761         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43762         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43764 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43766         regex: spelling fix
43767         * lib/regexec.c: spelling fix
43769         regex: rely on stdint.h for SIZE_MAX
43770         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43772 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43774         regex: merge glibc changes
43776         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43777         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43778         (init_word_char): Work even if bitset words are not exactly 32 or
43779         64 bits wide.  Don't assume there are no padding bits.
43780         * lib/regex.c [_LIBC]: Do not include <config.h>.
43781         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43782         and -Wtype-limits.
43783         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43784         needless disagreement with glibc.  All uses changed.  Define it to
43785         1 only if _GNU_SOURCE, to match glibc.
43786         (_REG_RM_NAME): Remove; no longer needed, since the names in
43787         question are now all protected by __USE_GNU.
43788         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43789         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43790         * lib/regex_internal.h (MIN): New macro.
43792         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43793         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43795         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43796         * lib/regex_internal.c (re_string_fetch_byte_case):
43797         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43798         is miscompiled, and it turns out it is because of an incorrect
43799         attribute on re_string_fetch_byte_case.  Unlike
43800         re_string_peek_byte_case, this one is really not pure, it modifies
43801         memory (increments pstr->cur_idx), and with the pure attribute GCC
43802         assumed it doesn't and it cached the presumed value of
43803         regexp->cur_idx in a variable across the
43804          for (;; ++i)
43805            {
43806              if (i >= BRACKET_NAME_BUF_SIZE)
43807                return REG_EBRACK;
43808              if (token->type == OP_OPEN_CHAR_CLASS)
43809                ch = re_string_fetch_byte_case (regexp);
43810              else
43811                ch = re_string_fetch_byte (regexp);
43812              if (re_string_eoi(regexp))
43813                return REG_EBRACK;
43814              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43815                break;
43816              elem->opr.name[i] = ch;
43817            }
43819         2011-11-29 Andreas Schwab <schwab@redhat.com>
43820         * lib/regcomp.c (build_equiv_class):
43821         Fix access after end of search string in regex matcher.
43823         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43824         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43826         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43827         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43829         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43830         * lib/regcomp.c (parse_branch, parse_sub_exp):
43831         More regex memory leak fixes and tests.
43832         (parse_sub_exp, parse_bracket_exp):
43833         Fix memory leak for some invalid regular expressions.
43835         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43836         * lib/regex_internal.c, lib/regexec.c:
43837         Fix unnecessary overallocation due to incomplete character.  When
43838         incomplete characters are found at the end of a string the code
43839         ran amok and allocated lots of memory.  Stricter limits are now in
43840         place.
43842         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43843         * lib/regex.h: Update documentation.
43845         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43846         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43848         2010-05-05 Andreas Schwab <schwab@redhat.com>
43849         * lib/regexec.c (find_collation_sequence_value):
43850         Fix lookup of collation sequence value during regexp matching.
43852         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43853         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43855         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43856         * lib/regex.h: Cleanup namespace.
43858         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43859         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43861         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43862         * lib/regex_internal.h: Prevent some declarations and definitions
43863         to be seen when used in tests.
43865         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43866         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43867         __libc_lock_* macros if not _LIBC.
43868         (struct re_dfa_t): Add lock.
43870 2012-02-07  Eric Blake  <eblake@redhat.com>
43872         maint.mk: also prohibit lower-case @var@
43873         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43874         lower case, like @top_srcdir@.
43876 2012-02-04  Eric Blake  <eblake@redhat.com>
43878         canonicalize: avoid uninitialized memory use
43879         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43880         random '/' left in dest.
43881         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43883 2012-02-04  Bruno Haible  <bruno@clisp.org>
43885         isatty: Fix test failure of ptsname_r on native Windows.
43886         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43887         and don't set errno.
43888         (isatty): Test first whether fd is valid. Set errno when returning 0.
43890 2012-02-04  Bruno Haible  <bruno@clisp.org>
43892         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43893         * tests/test-spawn-pipe-main.c: Include progname.h.
43894         (main): Invoke set_program_name.
43895         * modules/spawn-pipe-tests (Depends-on): Add progname.
43897         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43898         * tests/test-nonblocking-socket-main.c: Include progname.h.
43899         (main): Invoke set_program_name.
43900         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43902         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43903         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43904         (main): Invoke set_program_name.
43905         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43907 2012-02-04  Eric Blake  <eblake@redhat.com>
43909         canonicalize-lgpl: fix // handling
43910         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43912         canonicalize: fix // handling
43913         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43914         /// to //, since only // is special.
43916 2012-02-04  Bruno Haible  <bruno@clisp.org>
43918         ioctl: Fix test failure on native Windows.
43919         * lib/ioctl.c: Include msvc-nothrow.h.
43920         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43922 2012-02-04  Bruno Haible  <bruno@clisp.org>
43924         fsync: Avoid test failure on native Windows.
43925         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43926         read-only.
43928 2012-02-04  Bruno Haible  <bruno@clisp.org>
43930         sys_select: Avoid syntax error on OpenBSD 5.0.
43931         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43932         currently being included, just include the system's <sys/select.h>.
43934 2012-02-04  Bruno Haible  <bruno@clisp.org>
43936         sys_select: Avoid syntax error on OpenBSD 5.0.
43937         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43938         <sys/select.h>, not before.
43939         Reported by Jiri B <jirib@devio.us>.
43941 2012-02-04  Bruno Haible  <bruno@clisp.org>
43943         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43944         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43945         global variables.
43946         * tests/test-get-rusage-data.c (main): Likewise.
43947         Reported by Jim Meyering.
43949 2012-02-04  Bruno Haible  <bruno@clisp.org>
43951         stdioext: Fix last commit.
43952         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43954 2012-02-03  Bruno Haible  <bruno@clisp.org>
43956         stdioext: Add tentative support for Plan9.
43957         * lib/stdio-impl.h: Include <errno.h>.
43958         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43959         * lib/freadable.c (freadable): Likewise.
43960         * lib/fwritable.c (fwritable): Likewise.
43961         * lib/fbufmode.c (fbufmode): Likewise.
43962         * lib/freading.c (freading): Likewise.
43963         * lib/fwriting.c (fwriting): Likewise.
43964         * lib/freadptr.c (freadptr): Likewise.
43965         * lib/freadseek.c (freadptrinc): Likewise.
43966         * lib/freadahead.c (freadahead): Likewise.
43967         * lib/fpurge.c (fpurge): Likewise.
43968         * lib/fseeko.c (rpl_fseeko): Likewise.
43969         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43970         Reported by Jens Staal <staal1978@gmail.com>.
43972 2012-02-02  Jim Meyering  <meyering@redhat.com>
43974         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43975         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43976         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43977         not even to try to add the attribute.  Instead, add a pragma to suppress
43978         the suggestion/warning.
43980 2012-01-31  Karl Berry  <karl@gnu.org>
43982         setstate doc: typo.
43983         * doc/posix-functions/setstate.texi (setstate): { not (.
43985 2012-01-31  Bruno Haible  <bruno@clisp.org>
43987         popen: Make more robust on Windows.
43988         * lib/popen.c: On native Windows, use the _popen based code even if
43989         HAVE_POPEN is set.
43990         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43991         environment variable on native Windows.
43993 2012-01-30  Bruno Haible  <bruno@clisp.org>
43995         pclose: Fix typo.
43996         * lib/stdio.in.h (pclose): Fix typo in warning message.
43998 2012-01-30  Bruno Haible  <bruno@clisp.org>
44000         doc about getlogin_r, setstate.
44001         * doc/posix-functions/getlogin_r.texi: List the incompatible
44002         declaration problem under "not fixed by gnulib".
44003         * doc/posix-functions/setstate.texi: Mention incompatible declaration
44004         problem on Solaris 11 and other platforms.
44006 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
44007             Bruno Haible  <bruno@clisp.org>
44009         poll tests: Make test more robust.
44010         * tests/test-poll.c: Include macros.h.
44011         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
44012         return value of various I/O operations.
44013         * modules/poll-tests (Files): Add tests/macros.h.
44015 2012-01-30  Bruno Haible  <bruno@clisp.org>
44017         sys_stat: Fix support for mingw64 and MSVC.
44018         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
44019         header files already do it.
44020         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
44021         stat itself.
44022         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44024 2012-01-30  Bruno Haible  <bruno@clisp.org>
44026         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
44027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
44028         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
44030 2012-01-29  Bruno Haible  <bruno@clisp.org>
44032         quotearg: Fix test failure on MacOS X 10.5.
44033         * tests/test-quotearg-simple.c: Include localcharset.h.
44034         (main): If the locale encoding is not ASCII, bypass the tests of
44035         locale_quoting_style and clocale_quoting_style.
44036         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
44038 2012-01-29  Jim Meyering  <meyering@redhat.com>
44040         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
44041         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
44042         detect uses of canonicalize_file_name.
44044 2012-01-28  Bruno Haible  <bruno@clisp.org>
44046         test-framework-sh: Fix test failure with AIX 7.1 diff.
44047         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
44048         in column 1, like 'diff -c' does.
44049         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
44050         whether 'diff -u' is used. Instead, test whether the output contains
44051         some '@' character.
44053 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44055         strtoimax: eliminate need for stdint.h, inttypes.h checks
44056         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
44057         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
44058         the prerequisites for a recently-introduced strtoimax test.
44059         I guess this might cause strtoimax to be replaced when not
44060         strictly necessary on older hosts, but this shouldn't introduce
44061         any bugs and it should make Emacs 'configure' faster on typical
44062         modern hosts.  Problem discovered when importing the latest gnulib
44063         to an Emacs test version.
44064         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
44066 2012-01-28  Bruno Haible  <bruno@clisp.org>
44068         sys_time: Override 'struct timeval' on some native Windows platforms.
44069         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
44070         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
44071         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
44072         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
44073         needs to be overridden.
44074         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
44075         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
44076         * tests/test-sys_select.c: Check that the tv_sec member has the same
44077         size as a 'time_t'.
44078         * tests/test-sys_time.c: Likewise.
44079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
44080         is set, set also REPLACE_GETTIMEOFDAY.
44081         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
44082         convert the resulting 'struct timeval' before returning.
44083         * lib/select.c: Include <sys/time.h>.
44084         (select, timeval): Undefine at the right place.
44085         * modules/select (Depends-on): Add sys_time.
44086         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
44087         some Windows platforms.
44088         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44090 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44092         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
44093         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
44094         an integer.
44095         * lib/fcntl.c (dupfd): Likewise.
44096         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
44098 2012-01-28  Bruno Haible  <bruno@clisp.org>
44100         fcntl: Avoid compilation error on native Windows.
44101         * modules/fcntl (Depends-on): Add 'close'.
44103 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44105         select, poll, isatty: Avoid warnings on x86_64 mingw64.
44106         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
44107         pointer to an integer.
44108         * lib/poll.c (IsConsoleHandle): Likewise.
44109         * lib/isatty.c (IsConsoleHandle): Likewise.
44111 2012-01-28  Jim Meyering  <meyering@redhat.com>
44113         doc: clarify README-release
44114         * top/README-release: Clarify: you should make a point to have
44115         the latest stable versions of build tools in your PATH, and the
44116         reference to buildreq is solely for its list of tool names, not
44117         for its minimal-functional version numbers.
44118         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
44120         maint.mk: use more readable (yet functionally equivalent) quoting
44121         It is common to quote a single quote in a single quoted string like
44122         this:  '...'\''...'.  Unless you know the idiom, that looks like
44123         gibberish, so prefer to double-quote the string when possible.
44124         Then you can use a more readable, lone single quote: "...'..."
44125         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
44126         "don't" is more readable than the equivalent 'don'\''t'.
44127         (sc_cast_of_x_alloc_return_value): Likewise.
44128         (sc_cast_of_alloca_return_value): Likewise.
44129         (sc_makefile_path_separator_check): Similar: use ":" in '...',
44130         rather than '\'':'\''.
44132 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44134         stdalign: relax _Alignof and tighten _Alignas test
44135         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
44136         as it was too strict: alignof must divide offsetof, but it need
44137         not equal offsetof.  Inspired by Joseph S. Myers's comment
44138         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
44139         Conversely, tighten the _Alignas test a bit, as the resulting
44140         alignment must be exactly 8.
44142 2012-01-27  Bruno Haible  <bruno@clisp.org>
44144         stdalign: Document the last change.
44145         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
44147 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44149         stdalign: check that alignof and offsetof are consistent
44150         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
44151         Problem reported for gnulib by Richard W.M. Jones in
44152         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
44154 2012-01-27  Jim Meyering  <meyering@redhat.com>
44156         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
44157         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
44158         convert a sequence with gaps to the minimal containing range.
44159         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
44160         * tests/test-update-copyright.sh: Test for this.
44161         The FSF confirmed it is ok to do this, assuming there is at
44162         least one significant change per year in the affected range:
44163         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
44165 2012-01-26  Bruno Haible  <bruno@clisp.org>
44167         pipe2: refine doc about thread-safety
44168         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
44169         multithread-safety problem.
44170         * doc/glibc-functions/accept4.texi: Likewise.
44172 2012-01-26  Bruno Haible  <bruno@clisp.org>
44174         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
44175         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
44176         In the test program, include <fcntl.h>, for O_RDONLY.
44178 2012-01-26  Eric Blake  <eblake@redhat.com>
44180         pipe2: document lack of thread-safety in replacement
44181         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
44182         issue in replacement.
44183         * doc/glibc-functions/accept4.texi (accept4): Likewise.
44184         Based on a report by Eric Wong.
44186 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44187             Bruno Haible  <bruno@clisp.org>
44189         malloca: Avoid warnings on x86_64 mingw64.
44190         * lib/malloca.c: Include <stdint.h>.
44191         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
44192         * modules/malloca (Depends-on): Add stdint.
44193         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
44195 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44197         obstack: remove __STDC__ conditionals
44198         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
44199         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
44200         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
44201         m4/include_next.m4 as the only gnulib-maintained places that still
44202         refer to __STDC__.
44204 2012-01-24  Bruno Haible  <bruno@clisp.org>
44206         havelib: Modern quoting.
44207         * build-aux/config.rpath: Quote 'like this', not `like this', as per
44208         the recent change to the GNU coding standards.
44210 2012-01-24  Bruno Haible  <bruno@clisp.org>
44212         stdint: Improve support for Android.
44213         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
44214         Reported by Simon Josefsson <simon@josefsson.org>.
44216 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44218         doc: omit trailing empty lines from INSTALL etc.
44219         * doc/Makefile (INSTALL): Omit trailing empty lines.
44220         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
44221         omit trailing empty lines.  This simplifies the build procedure.
44223 2012-01-23  Jim Meyering  <meyering@redhat.com>
44225         tests: avoid spurious warnings about gl_sockets_startup
44226         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
44227         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
44228         reporting a "statement with no effect".
44229         * tests/test-accept.c (main): Mark as "(void)".
44230         * tests/test-accept4.c (main): Likewise.
44231         * tests/test-bind.c (main): Likewise.
44232         * tests/test-connect.c (main): Likewise.
44233         * tests/test-getpeername.c (main): Likewise.
44234         * tests/test-getsockname.c (main): Likewise.
44235         * tests/test-getsockopt.c (main): Likewise.
44236         * tests/test-listen.c (main): Likewise.
44237         * tests/test-recv.c (main): Likewise.
44238         * tests/test-recvfrom.c (main): Likewise.
44239         * tests/test-send.c (main): Likewise.
44240         * tests/test-sendto.c (main): Likewise.
44241         * tests/test-setsockopt.c (main): Likewise.
44242         * tests/test-shutdown.c (main): Likewise.
44244 2012-01-21  Bruno Haible  <bruno@clisp.org>
44246         locale-fr.m4: Fix for Android.
44247         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
44248         failure of the test program on Bionic libc.
44250 2012-01-21  Jim Meyering  <meyering@redhat.com>
44252         bootstrap: fail when bootstrap_post_import_hook fails
44253         Otherwise, it's far too easy to miss diagnostics emitted
44254         between gnulib-tool's output and that of running configure.
44255         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
44257 2012-01-17  Jim Meyering  <meyering@redhat.com>
44259         maint: enable sc_trailing_blank
44260         * build-aux/pmccabe.css: Remove trailing blanks.
44261         * doc/acl-cygwin.txt: Likewise.
44262         * doc/gnu-oids.texi: Likewise
44263         * cfg.mk: Enable sc_trailing_blank.
44264         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
44266 2012-01-17  Jim Meyering  <meyering@redhat.com>
44268         maint: enable sc_prohibit_openat_without_use
44269         * cfg.mk: Enable sc_prohibit_openat_without_use.
44270         Exempt lib/selinux-at.c.
44272 2012-01-17  Jim Meyering  <meyering@redhat.com>
44274         maint: enable sc_prohibit_cloexec_without_use
44275         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
44276         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
44278 2012-01-17  Jim Meyering  <meyering@redhat.com>
44280         maint: enable sc_prohibit_intprops_without_use
44281         * cfg.mk: Enable sc_prohibit_intprops_without_use
44282         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
44284 2012-01-17  Jim Meyering  <meyering@redhat.com>
44286         maint: enable sc_prohibit_hash_pjw_without_use
44287         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
44288         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
44289         to match any use of \<hash_pjw\>, i.e., not necessarily with a
44290         following " (".
44292 2012-01-17  Jim Meyering  <meyering@redhat.com>
44294         maint: enable double-word-prohibiting rule
44295         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
44296         Exempt three files.
44298 2012-01-17  Jim Meyering  <meyering@redhat.com>
44300         maint: remove empty lines at EOF, but excluding modules/*
44301         Apply syntax rules at home as well as abroad.  Most changes
44302         were induced by running this:
44303           make srcdir=. _build-aux=build-aux -f top/maint.mk \
44304             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
44305             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
44306         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
44307         Exempt modules/* and two binary files.
44308         Also exempt doc/INSTALL*, per request from Bruno Haible.
44309         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
44310         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
44311         * doc/Copyright/request-assign.future: Likewise.
44312         * doc/Copyright/request-disclaim.changes: Likewise.
44313         * doc/INSTALL: Likewise.
44314         * doc/INSTALL.ISO: Likewise.
44315         * doc/INSTALL.UTF-8: Likewise.
44316         * doc/acl-cygwin.txt: Likewise.
44317         * doc/acl-resources.txt: Likewise.
44318         * doc/fdl-1.2.texi: Likewise.
44319         * doc/fdl-1.3.texi: Likewise.
44320         * doc/fdl.texi: Likewise.
44321         * lib/argp-pin.c: Likewise.
44322         * lib/round.c: Likewise.
44323         * lib/unicase/u16-totitle.c: Likewise.
44324         * lib/unictype/block_test.c: Likewise.
44325         * lib/uninorm/canonical-decomposition.c: Likewise.
44326         * m4/README: Likewise.
44327         * m4/relocatable-lib.m4: Likewise.
44328         * tests/test-isnand-nolibm.c: Likewise.
44329         * tests/test-isnand.c: Likewise.
44330         * tests/uninorm/NormalizationTest.txt: Likewise.
44332 2012-01-17  Jim Meyering  <meyering@redhat.com>
44334         maint: add framework to run syntax-check rules against gnulib sources
44335         * cfg.mk: New file, to disable all currently-failing tests.
44336         We'll enable them one by one, as they are made to pass.
44337         * Makefile (sc_maint): New rule.
44339 2012-01-21  Bruno Haible  <bruno@clisp.org>
44341         stdint: Add support for Android.
44342         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
44343         include the system's <stdint.h>.
44344         Reported by Simon Josefsson <simon@josefsson.org>.
44346 2012-01-19  Jim Meyering  <meyering@redhat.com>
44348         bootstrap: add bootstrap_post_import_hook
44349         Bison does still need something like the gnulib_mk_hook whose
44350         invocation I had to remove along with slurp in commit 767ccd40.
44351         Technically, we could get along without it, but doing so would
44352         have required living with a warning and a mandatory post-bootstrap
44353         automake rerun.
44354         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
44355         (bootstrap_post_import_hook): New function.
44356         Invoke it after gnulib-tool --import and before autoreconf.
44358 2012-01-18  Jim Meyering  <meyering@redhat.com>
44360         gitlog-to-changelog: don't use "no_"-prefixed variable name
44361         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
44362         to enable both --cluster and --no-cluster.  Change variable name,
44363         s/\$no_cluster/$cluster/, and reverse usage to match.
44365         gitlog-to-changelog: use "||", not "or" in expressions
44366         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
44367         expressions.
44369 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
44371         gitlog-to-changelog: new option --no-cluster
44372         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
44373         clustering of adjacent commit messages.
44375 2012-01-17  Jim Meyering  <meyering@redhat.com>
44377         maint: spell file systems with two words, not one
44378         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
44379         two words, not one.
44381 2012-01-16  Jim Meyering  <meyering@redhat.com>
44383         bootstrap: add a FIXME comment to ensure we eventually remove the hack
44384         * build-aux/bootstrap (gnulib_tool_options): Add comment.
44386 2012-01-16  Eric Blake  <eblake@redhat.com>
44388         bootstrap: cater to autoconf 2.59
44389         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
44390         is not available.
44392         bootstrap: properly check for libtool
44393         * build-aux/bootstrap (libtoolize): Also run libtool when older
44394         usage is detected.
44396 2012-01-15  Bruno Haible  <bruno@clisp.org>
44398         Improve support for MSVC 9.
44399         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
44400         clashes on MSVC.
44401         * lib/fcntl.in.h: Likewise.
44402         * lib/stdlib.in.h: Likewise.
44403         * lib/sys_stat.in.h: Likewise.
44405 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
44407         gnupload: we hold the master copy of this script now
44408         For motivation and more information, see:
44409         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
44410         * build-aux/gnupload: Make it clear in the heading comments that the
44411         master copy of this file is maintained by gnulib.  Since we are at
44412         it, bump its copyright year and ...
44413         ($scriptversion): ... the date in its version.
44414         ($usage): Patches and bug reports should be sent to the gnulib list,
44415         not the automake one.
44416         * config/srclist.txt: Don't try to sync 'gnupload' from automake
44417         anymore.
44419 2012-01-15  Bruno Haible  <bruno@clisp.org>
44421         Fix module 'random'.
44422         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44423         initstate, setstate are declared.
44425 2012-01-14  Bruno Haible  <bruno@clisp.org>
44427         Tests for module 'random'.
44428         * modules/random-tests: New file.
44429         * tests/test-random.c: New file, based on tests/test-random_r.c.
44431         New module 'random'.
44432         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44433         declarations.
44434         * lib/random.c: New file, based on glibc/stdlib/random.c.
44435         * m4/random.m4: New file.
44436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44437         HAVE_RANDOM.
44438         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44439         * modules/random: New file.
44440         * config/srclist.txt: Add an entry for random.c.
44441         * doc/posix-functions/random.texi: Mention the 'random' module.
44442         * doc/posix-functions/initstate.texi: Likewise.
44443         * doc/posix-functions/setstate.texi: Likewise.
44444         * doc/posix-functions/srandom.texi: Likewise.
44446 2012-01-12  Bruno Haible  <bruno@clisp.org>
44448         random_r: Use common idioms.
44449         * lib/random_r.c: Include <stdlib.h> first.
44451         random_r: Override incompatible API on AIX, OSF/1.
44452         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44453         Override the system function if REPLACE_RANDOM_R is 1.
44454         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44455         and OSF/1, set REPLACE_RANDOM_R.
44456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44457         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44458         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44459         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44460         * doc/glibc-functions/random_r.texi: Likewise.
44461         * doc/glibc-functions/setstate_r.texi: Likewise.
44463         random_r: Support for MSVC 9.
44464         * lib/random_r.c: Include stdint.h, not inttypes.h.
44466 2012-01-12  Eric Blake  <eblake@redhat.com>
44468         inet_ntop: guard extra work by IF_LINT
44469         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44470         better code generation when not checking for warnings.
44471         Suggested by Paul Eggert and Jim Meyering.
44473         strptime: fix regression on mingw
44474         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44475         Fix regression.  Reported by Bruno Haible.
44477 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44478             Bruno Haible  <bruno@clisp.org>
44480         copy-file: add error-code-returning variant.
44481         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44482         (qcopy_file_preserving): New declaration.
44483         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44484         copy_file_preserving. Change return type to 'int'. Don't emit an error
44485         message here.
44486         (copy_file_preserving): New function.
44487         * tests/test-copy-file.c: Include <stdlib.h>.
44488         (main): Test qcopy_file_preserving if the environment variable
44489         NO_STDERR_OUTPUT is set.
44490         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44491         with NO_STDERR_OUTPUT
44492         * tests/test-copy-file-2.sh: Likewise.
44494 2012-01-10  Bruno Haible  <bruno@clisp.org>
44496         copy-file: Use 'quote' module consistently.
44497         * lib/copy-file.c (copy_file_preserving): Use quote().
44499         copy-file: Refactor.
44500         * lib/copy-file.c: Include quote.h.
44501         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44502         message here.
44503         * modules/copy-file (Depends-on): Add quote.
44505         acl: Export qcopy_acl.
44506         * lib/acl.h (qcopy_acl): New declaration.
44507         * lib/copy-acl.c (qcopy_acl): Make non-static.
44509         acl: Rename a local variable.
44510         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44512         acl: Align return values of copy_acl and qcopy_acl.
44513         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44514         maybe < -1.
44516 2012-01-11  Eric Blake  <eblake@redhat.com>
44518         strptime: silence gcc warnings
44519         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44520         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44521         Reported by Daniel P. Berrange.
44523         inet_ntop: silence gcc warning
44524         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44525         Reported by Daniel P. Berrange.
44527 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44529         getloadavg test: skip the test on GNU/Linux without /proc mounted
44530         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44531         file.  When /proc is not mounted, it always fails with ENOENT.
44532         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44533         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44535 2012-01-10  Bruno Haible  <bruno@clisp.org>
44537         regex: Avoid link error on MSVC 9.
44538         * modules/regex (Depends-on): Add wctype.
44540 2012-01-10  Bruno Haible  <bruno@clisp.org>
44542         doc: Mention --with-tests option.
44543         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44544         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44545         --with-tests.
44546         Reported by Reuben Thomas.
44548 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44550         users.txt: order package names lexicographically.
44551         * users.txt: Order package names lexicographically.
44553 2012-01-10  Jim Meyering  <meyering@redhat.com>
44555         maint.mk: fix description in comment
44556         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44558         ignore-value: remove deprecated ignore_ptr function
44559         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44560         * NEWS: Note this.
44562 2012-01-09  Jim Meyering  <meyering@redhat.com>
44564         test-init.sh: avoid a subshell
44565         * tests/test-init.sh: Remove protective subshell.
44566         Suggested by Bernhard Voelker.  While a subshell is normally
44567         required to protect against older shells (Solaris, FreeBSD) that
44568         warn about a missing program before performing redirection, the
44569         shell-selection tests performed by init.sh probably exclude any
44570         offending shell.
44572 2012-01-08  Bruno Haible  <bruno@clisp.org>
44574         setlocale tests: Avoid test failure on Solaris 11.0.
44575         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44576         variable.
44578 2012-01-08  Bruno Haible  <bruno@clisp.org>
44580         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44581         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44582         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44583         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44584         macro.
44585         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44586         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44587         * lib/spawn_faction_addopen.c: Add workaround implementation if
44588         HAVE_WORKING_POSIX_SPAWN.
44589         * modules/spawn (Makefile): Substitute
44590         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44591         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44592         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44593         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44594         (Depends-on): Update conditions.
44595         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44596         the Solaris 11 bug.
44598 2012-01-08  Bruno Haible  <bruno@clisp.org>
44600         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44601         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44602         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44603         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44604         macro.
44605         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44606         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44607         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44608         HAVE_WORKING_POSIX_SPAWN.
44609         * modules/spawn (Makefile): Substitute
44610         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44611         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44612         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44613         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44614         (Depends-on): Update conditions.
44615         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44616         the Solaris 11 bug.
44618 2012-01-08  Bruno Haible  <bruno@clisp.org>
44620         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44621         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44622         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44623         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44624         HAVE_WORKING_POSIX_SPAWN.
44625         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44626         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44627         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44628         * lib/spawn_faction_addclose.c: Add workaround implementation if
44629         HAVE_WORKING_POSIX_SPAWN.
44630         * modules/spawn (Makefile): Substitute
44631         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44632         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44633         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44634         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44635         (Depends-on): Update conditions.
44636         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44637         the Solaris 11 bug.
44639 2012-01-08  Bruno Haible  <bruno@clisp.org>
44641         doc: Update for Solaris 11.0.
44642         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44643         * m4/printf.m4: Update comments.
44645 2012-01-08  Bruno Haible  <bruno@clisp.org>
44647         mktime: Avoid compilation error on Solaris 11.
44648         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44650 2012-01-08  Bruno Haible  <bruno@clisp.org>
44652         doc: Small fix.
44653         * doc/posix-headers/nl_types.texi: Correct platforms list.
44655 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44657         Add lgpl-3.0 module.
44658         * MODULES.html.sh (Support for building documentation): Add
44659         lgpl-3.0.
44660         * modules/lgpl-3.0: New file.
44662 2012-01-08  Jim Meyering  <meyering@redhat.com>
44664         select.c: indent with spaces, not TABs
44665         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44667 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44669         quotearg: do not use grave accent for left quote
44670         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44671         locale_quoting_style.
44672         (quotearg_buffer_restyled): Fix example.
44673         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44675 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44677         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44678         Most programs do not have translation catalogs for English and much
44679         less separate catalogs for British and American English.  Drop the
44680         suggestion to translators about these two, and provide it
44681         automatically for Unicode locales.  Like most programs, even those
44682         using American English, we use single quotation marks.  This conflicts
44683         with the American typographic convention, but works better when you
44684         cite the entire error message within double quotes.  It also tries not
44685         to clash with established practice and with what non-gnulib programs
44686         will usually do.
44687         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44688         using an UTF-8 or GB-18030 locale.  The list of other locales with
44689         quotes was provided by Bruno Haible.
44690         (quotearg_buffer_restyled): Adjust instructions to translators.
44691         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44692         text, since this would be wrong when using Unicode.
44693         * modules/quotearg: Depend on c-strcaseeq.
44695 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44697         quotearg: fix Wikipedia link
44698         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44700 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44702         Fix for mingw with MSVC9.
44703         * m4/ld-version-script.m4: Check that compiler rejects version
44704         scripts with syntax errors.  Reported by Bruno Haible
44705         <bruno@clisp.org>.
44707 2012-01-06  Bruno Haible  <bruno@clisp.org>
44709         Talk about "native Windows API", not "Woe32".
44710         * lib/accept4.c: Update comments to mention native Windows.
44711         * lib/execute.c: Likewise.
44712         * lib/fatal-signal.c: Likewise.
44713         * lib/localcharset.c: Likewise.
44714         * lib/nanosleep.c: Likewise.
44715         * lib/nl_langinfo.c: Likewise.
44716         * lib/pclose.c: Likewise.
44717         * lib/pipe-filter-gi.c: Likewise.
44718         * lib/pipe-filter-ii.c: Likewise.
44719         * lib/pipe.c: Likewise.
44720         * lib/pipe2.c: Likewise.
44721         * lib/popen.c: Likewise.
44722         * lib/progreloc.c: Likewise.
44723         * lib/relocatable.c: Likewise.
44724         * lib/sigaction.c: Likewise.
44725         * lib/sigprocmask.c: Likewise.
44726         * lib/spawn-pipe.h: Likewise.
44727         * lib/spawn-pipe.c: Likewise.
44728         * lib/spawni.c: Likewise.
44729         * lib/stat-time.h: Likewise.
44730         * lib/w32spawn.h: Likewise.
44731         * tests/test-isatty.c: Likewise.
44732         * lib/config.charset: More comments.
44733         * doc/gnulib-intro.texi: Mention native Windows.
44734         * doc/posix-functions/_Exit_C99.texi: Likewise.
44735         * doc/posix-headers/fcntl.texi: Likewise.
44737 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44739         argp: Avoid crash if translator uses % characters in a translation.
44740         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44741         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44743 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44745         doc: C11 and C++11 are now official
44746         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44747         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44748         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44749         * modules/stdalign:
44750         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44752 2012-01-06  Bruno Haible  <bruno@clisp.org>
44754         uc-is-grapheme-break tests: Tweak.
44755         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44756         message.
44758 2012-01-06  Bruno Haible  <bruno@clisp.org>
44760         test-init.sh: correct the test for diff -u
44761         * tests/test-init.sh: Also redirect stdout to /dev/null.
44763 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44765         Use ', not `, for quoting output.
44766         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44767         (print_changelog_deltas, get_tool_versions, main program):
44768         * build-aux/git-version-gen:
44769         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44770         * build-aux/move-if-change (help):
44771         * build-aux/useless-if-before-free (usage, main program):
44772         * check-module (parse_module_file, usage)
44773         (find_included_lib_files, check_module):
44774         * lib/argmatch.c (main) [TEST]:
44775         * lib/argp-help.c (_help):
44776         * lib/getopt1.c (main) [TEST]:
44777         * lib/git-merge-changelog.c (usage):
44778         * lib/xstrtol-error.c (xstrtol_error):
44779         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44780         * m4/argz.m4 (gl_FUNC_ARGZ):
44781         * m4/bison.m4 (gl_BISON):
44782         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44784         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44785         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44786         * m4/gc-random.m4 (gl_GC_RANDOM):
44787         * m4/intl.m4 (gt_CHECK_DECL):
44788         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44789         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44790         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44792         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44793         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44794         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44795         * tests/test-dirname.c (main):
44796         * tests/test-getpass.c (main):
44797         * tests/test-iconvme.c (main):
44798         * tests/test-parse-datetime.c (LOG):
44799         * tests/test-xstrtoimax.sh:
44800         * tests/test-xstrtol.sh:
44801         * tests/test-xstrtoll.sh:
44802         * tests/test-xstrtoumax.sh:
44803         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44804         * top/GNUmakefile (abort-due-to-no-makefile):
44805         Quote 'like this', not `like this', as per the recent change to
44806         the GNU coding standards.
44808 2012-01-05  Bruno Haible  <bruno@clisp.org>
44810         strtoimax: Don't force a replacement on systems where intmax_t is int.
44811         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44812         'intmax_t' is not larger than 'int'.
44813         Reported by Pádraig Brady <P@draigBrady.com>.
44815 2012-01-05  Bruno Haible  <bruno@clisp.org>
44817         doc: Mention NetBSD bugs.
44818         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44819         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44821 2012-01-05  Bruno Haible  <bruno@clisp.org>
44823         strtoumax tests: Enhance tests.
44824         * tests/test-strtoumax.c (main): Add tests for large values.
44826 2012-01-05  Bruno Haible  <bruno@clisp.org>
44828         strtoimax: Work around AIX 5.1 bug.
44829         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44830         definition.
44831         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44832         Set HAVE_STRTOIMAX.
44833         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44834         REPLACE_STRTOIMAX.
44835         * modules/inttypes-incomplete (Makefile.am): Substitute
44836         REPLACE_STRTOIMAX.
44837         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44838         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44839         (Depends-on): Update conditions.
44840         * tests/test-strtoimax.c (main): Add tests for large values.
44841         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44843 2012-01-05  Bruno Haible  <bruno@clisp.org>
44845         inttypes: Modernize.
44846         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44847         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44848         (Makefile.am): Update inttypes.h rule.
44850 2012-01-05  Jim Meyering  <meyering@redhat.com>
44852         init.sh: don't waste a subshell just to redirect stderr
44853         * tests/init.sh: In testing for diff -u and diff -c, use a
44854         stderr-redirecting exec inside `...` rather than a subshell.
44856         test-init.sh: avoid failure on HP-UX 11.00
44857         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44858         resolves to diff -c or cmp.  Reported by Bruno Haible.
44860 2012-01-05  Bruno Haible  <bruno@clisp.org>
44862         Tests for module 'strtoull'.
44863         * modules/strtoull-tests: New file.
44864         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44866 2012-01-05  Bruno Haible  <bruno@clisp.org>
44868         Tests for module 'strtoll'.
44869         * modules/strtoll-tests: New file.
44870         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44872 2012-01-05  Bruno Haible  <bruno@clisp.org>
44874         Tests for module 'strtoul'.
44875         * modules/strtoul-tests: New file.
44876         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44878 2012-01-05  Bruno Haible  <bruno@clisp.org>
44880         Tests for module 'strtol'.
44881         * modules/strtol-tests: New file.
44882         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44884 2012-01-04  Jim Meyering  <meyering@redhat.com>
44886         test-init.sh: accommodate Solaris 5.10's different diff -u output
44887         * tests/test-init.sh: Also exempt @@ lines from the comparison
44888         of diff output, since Solaris 5.10 and GNU diff formats differ.
44889         Reported by Stefano Lattarini.
44891 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44893         test-posixtm: don't assume signed integer wraparound
44894         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44895         after signed integer overflow.  Inspired by (though it may not
44896         fix) Bruno Haible's bug report in
44897         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44899         Spell out "Windows 9x" and "Windows XP".
44900         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44901         "Windows 9x" and "WinXP" with "Windows XP".
44903 2012-01-04  Jim Meyering  <meyering@redhat.com>
44905         test-vc-list-files-cvs.sh: remove obsolete comment
44906         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44907         double exit.  Now that's all encapsulated via skip_ and Exit.
44909 2012-01-04  Bruno Haible  <bruno@clisp.org>
44911         Talk about "native Windows API", not "Win32".
44912         * lib/classpath.c: Update comments to mention native Windows.
44913         * lib/csharpexec.c: Likewise.
44914         * lib/dup2.c: Likewise.
44915         * lib/error.c: Likewise.
44916         * lib/fcntl.c: Likewise.
44917         * lib/filename.h: Likewise.
44918         * lib/findprog.c: Likewise.
44919         * lib/get-rusage-as.c: Likewise.
44920         * lib/get-rusage-data.c: Likewise.
44921         * lib/getpagesize.c: Likewise.
44922         * lib/javaexec.c: Likewise.
44923         * lib/msvc-inval.c: Likewise.
44924         * lib/msvc-nothrow.c: Likewise.
44925         * lib/nanosleep.c: Likewise.
44926         * lib/nonblocking.c: Likewise.
44927         * lib/printf-parse.c: Likewise.
44928         * lib/setlocale.c: Likewise.
44929         * lib/sigaction.c: Likewise.
44930         * lib/strerror_r.c: Likewise.
44931         * lib/tmpdir.c: Likewise.
44932         * lib/vasnprintf.c: Likewise.
44933         * lib/w32spawn.h: Likewise.
44934         * lib/waitpid.c: Likewise.
44935         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44936         * m4/locale-ar.m4: Likewise.
44937         * m4/locale-fr.m4: Likewise.
44938         * m4/locale-ja.m4: Likewise.
44939         * m4/locale-tr.m4: Likewise.
44940         * m4/locale-zh.m4: Likewise.
44941         * m4/printf.m4: Likewise.
44942         * tests/test-cloexec.c: Likewise.
44943         * tests/test-copy-acl.sh: Likewise.
44944         * tests/test-copy-file.sh: Likewise.
44945         * tests/test-file-has-acl.sh: Likewise.
44946         * tests/test-set-mode-acl.sh: Likewise.
44947         * tests/test-dup-safer.c: Likewise.
44948         * tests/test-dup2.c: Likewise.
44949         * tests/test-dup3.c: Likewise.
44950         * tests/test-fcntl.c: Likewise.
44951         * tests/test-nonblocking-pipe.h: Likewise.
44952         * tests/test-nonblocking-socket.h: Likewise.
44953         * tests/test-pipe.c: Likewise.
44954         * tests/test-pipe2.c: Likewise.
44955         * tests/test-spawn-pipe-child.c: Likewise.
44956         * doc/acl-resources.txt: Likewise.
44957         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44958         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44959         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44960         * lib/localcharset.c: Update comments to mention native Windows.
44961         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44962         * lib/localename.c: Likewise.
44963         * lib/progreloc.c: Likewise.
44964         * lib/relocatable.c: Likewise.
44965         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44966         (windows_compute_revents): Renamed from win32_compute_revents.
44967         (windows_compute_revents_socket): Renamed from
44968         win32_compute_revents_socket.
44969         * lib/select.c: Update comments to mention native Windows.
44970         (windows_poll_handle): Renamed from win32_poll_handle.
44971         * m4/threadlib.m4: Update comments to mention native Windows.
44972         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44973         --enable-threads=windows instead of --enable-threads=win32. Set
44974         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44975         * lib/glthread/lock.h: Update comments to mention native Windows.
44976         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44977         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44978         USE_WIN32_THREADS.
44979         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44980         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44981         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44982         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44983         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44984         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44985         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44986         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44987         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44988         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44989         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44990         * tests/test-tls.c: Likewise.
44991         Rationale:
44992         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44993         on both 32-bit and 64-bit Windows systems.
44994         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44995         line of distinction is between "native Windows" on one side and Unix/
44996         POSIX systems on the other side. More details in
44997         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44998         Suggested by Paul Eggert.
45000 2012-01-03  Bruno Haible  <bruno@clisp.org>
45002         isatty: Support for MSVC 9.
45003         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
45004         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
45005         (_isatty_nothrow): New function.
45006         (isatty): Use it instead of _isatty.
45007         (IsConsoleHandle): Add comment, from Paolo Bonzini.
45008         * lib/poll.c (IsConsoleHandle): Likewise.
45009         * lib/select.c (IsConsoleHandle): Likewise.
45010         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
45011         (gl_PREREQ_ISATTY): New macro.
45012         * modules/isatty (Depends-on): Add msvc-inval.
45013         (configure.ac): Invoke gl_PREREQ_ISATTY.
45015 2012-01-03  Jim Meyering  <meyering@redhat.com>
45017         maint.mk: remove temporary transition aid from over 1.5 years ago
45018         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
45019         purpose was to aid in the transition (avoiding silent malfunction)
45020         from that old name to the new _sc_search_regexp.  This shim was
45021         added by commit 219c504b.
45023         init.sh: do not try to accommodate compare arguments starting with "-"
45024         * tests/init.sh (compare_dev_null_): Do not try to accommodate
45025         compare arguments that start with "-".  Besides, we do not worry
45026         about this when invoking diff or cmp; why start now with sed?
45027         Using "--" to separate options from argument would trigger sed
45028         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
45029         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
45031 2012-01-02  Bruno Haible  <bruno@clisp.org>
45033         Enhance tests for module 'isatty'.
45034         * modules/isatty-tests (Depends-on): Add pipe-posix.
45035         * tests/test-isatty.c: Include <fcntl.h>.
45036         (DEV_NULL): New macro.
45037         (main): Test the resut of isatty() also on regular files, pipes, and
45038         /dev/null.
45040         New module 'isatty'.
45041         * lib/unistd.in.h (isatty): New declaration.
45042         * lib/isatty.c: New file, based on an idea of
45043         Bastien Roucariès <roucaries.bastien@gmail.com>.
45044         * m4/isatty.m4: New file.
45045         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
45046         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
45047         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
45048         REPLACE_ISATTY.
45049         * modules/isatty: New file.
45050         * doc/posix-functions/isatty.texi: Mention the new module.
45051         Suggested by Paolo Bonzini.
45053 2012-01-02  Bruno Haible  <bruno@clisp.org>
45055         canonicalize: Tweak 2011-12-29 commit.
45056         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
45057         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
45059 2012-01-02  Jim Meyering  <meyering@redhat.com>
45061         gitlog-to-changelog: describe input syntax in --help output
45062         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
45064         gitlog-to-changelog: fix typo in --help: show backslash before email @
45065         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
45066         in sources, but not in actual output.
45068 2011-12-30  Jim Meyering  <meyering@redhat.com>
45070         gitlog-to-changelog: don't malfunction when name contains %-directive
45071         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
45072         in a name string cause trouble.  E.g., with a user name of "%s",
45073         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
45075 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
45077         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
45078         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
45079         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
45080         the "  (tiny change)" notation that is appended to the standard
45081         ChangeLog "date  name  email" header line.
45083 2012-01-01  Jim Meyering  <meyering@redhat.com>
45085         test-framework-sh: init.sh: fix "make dist" failure
45086         When using gnulib-tool's --with-tests option and any module that
45087         depends on test-framework-sh, "make dist" would fail due to the
45088         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
45089         in the gltests directory, and not in the gllib/ directory.
45090         One way to work around that is to move the EXTRA_DIST += init.sh
45091         from the primary module to the -tests one:
45092         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
45093         * modules/test-framework-sh (Makefile.am): ...not here.
45094         Reported by Tom G. Christensen in
45095         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
45097         version-etc: update copyright year reported by --version
45098         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
45100 2011-12-31  Pádraig Brady  <P@draigBrady.com>
45102         canonicalize: only stat() if required
45103         * lib/canonicalize.c (canonicalize_filename_mode):
45104         Avoid calling l?stat() when both CAN_MISSING,
45105         and CAN_NOLINKS are set, as we neither need
45106         to resolve symlinks or test component existence.
45108 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
45110         doc: cover st_ino issues once; add OpenVMS etc.
45111         * doc/posix-functions/stat.texi (stat):
45112         * doc/posix-functions/lstat.texi (lstat):
45113         * doc/posix-functions/fstatat.texi (fstatat):
45114         * doc/posix-functions/fstat.texi (fstat):
45115         Move general 'struct stat' stuff to sys_stat.texi,
45116         leaving behind a pointer.
45117         * doc/posix-headers/sys_stat.texi (sys/stat.h):
45118         Merge duplicate info about 'struct stat' problems into here.
45119         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
45120         and suggest partial workarounds.
45122         same-inode: port to OpenVMS
45123         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
45124         three st_ino values.
45126 2011-12-30  Pádraig Brady  <P@draigBrady.com>
45128         canonicalize: fix references to stat() and lstat()
45129         * lib/canonicalize.c (canonicalize_filename_mode):
45130         Ensure references always resolve to a replacement
45131         function if required (even via a macro).
45133 2011-12-30  Jim Meyering  <meyering@redhat.com>
45135         gitlog-to-changelog: remove a little duplication
45136         * build-aux/gitlog-to-changelog (main): Grep @lines once,
45137         rather than twice.
45139 2011-12-29  Pádraig Brady  <P@draigBrady.com>
45141         canonicalize: add support for not resolving symlinks
45142         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
45143         indicate we don't want to follow symlinks.  Also
45144         provide CAN_MODE_MASK to aid setting these existing
45145         mutually exclusive values.
45146         * lib/canonicalize.c (canonicalize_filename_mode):
45147         Extract the flags from can_mode parameter, which
45148         are currently just used to select between stat()
45149         and lstat().  Also ensure that mutually exclusive
45150         values are flagged immediately as invalid.
45151         * tests/test-canonicalize.c: Verify symlinks are
45152         not followed, and that invalid flag combinations
45153         are diagnosed.
45155 2011-12-25  Jim Meyering  <meyering@redhat.com>
45157         gitlog-to-changelog: do not clump multi-paragraph entries
45158         Identical header lines (date,name,email+coauthors) are suppressed,
45159         thus putting all entries with those same characteristics under
45160         a single header.  However, when a log entry consists of two or
45161         more paragraphs, it may not be clear where it starts and ends.
45162         This change makes it so that such an entry is always separated
45163         from others by a header line, even when that header would
45164         otherwise be suppressed.
45165         * build-aux/gitlog-to-changelog: Implement the above.
45166         Inspired by a related request from Stefano Lattarini in
45167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
45169 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45171         announce-gen: fix `cmd' typo in diagnostic
45172         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
45173         diagnostic: a missing '$' meant that the command was not output.
45175 2011-12-23  Jim Meyering  <meyering@redhat.com>
45177         test-framework-sh: distribute init.sh
45178         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
45179         Otherwise, "make -C gnulib-tests check" (at least in grep) would
45180         fail due to the lack of init.sh.
45182         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
45183         * modules/atexit-tests: Rather than listing tests/init.sh,
45184         now that there's a module for it, simply depend on that new module.
45185         * modules/closein-tests: Likewise.
45186         * modules/exclude-tests: Likewise.
45187         * modules/getcwd-tests: Likewise.
45188         * modules/perror-tests: Likewise.
45189         * modules/pread-tests: Likewise.
45190         * modules/pwrite-tests: Likewise.
45191         * modules/vc-list-files-tests: Likewise.
45192         * modules/verify-tests: Likewise.
45193         * modules/xalloc-die-tests: Likewise.
45194         * modules/xstrtoimax-tests: Likewise.
45195         * modules/xstrtol-tests: Likewise.
45196         * modules/xstrtoll-tests: Likewise.
45197         * modules/xstrtoumax-tests: Likewise.
45198         * modules/yesno-tests: Likewise.
45200 2011-12-22  Jim Meyering  <meyering@redhat.com>
45202         test-framework-sh: add minimal tests of init.sh's compare function
45203         * modules/test-framework-sh-tests: New file.
45204         * tests/test-init.sh: New file.
45206         test-framework-sh: new module
45207         * modules/test-framework-sh: New file.
45208         * MODULES.html.sh (Support for maintaining and releasing projects):
45209         List it.
45211         init.sh: do not emit simulated diff output to stderr
45212         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
45214 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
45216         .gitignore: ignore gnulib.dvi and regex.info
45217         * doc/.gitignore:add gnulib.dvi and regex.info
45219 2011-12-22  Jim Meyering  <meyering@redhat.com>
45221         init.sh: correct previous change
45222         * tests/init.sh (compare): My previous change was wrong.
45223         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
45225         init.sh: avoid unwarranted test failure when using "set -e"
45226         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
45227         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
45228         a use like "compare exp out" would get evoke an unconditional failure.
45230 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
45232         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
45233         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
45234         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
45235         autoreconf that did not.
45236         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
45237         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
45239 2011-12-17  Jim Meyering  <meyering@redhat.com>
45241         bootstrap: remove some now-unneeded code
45242         This script arose back when gnulib-tool was young.
45243         Since then, it has seen improvements that render much of this
45244         script unnecessary.  In particular, it can now make symlinks
45245         to the files it uses.  Also, I no longer see as much value in
45246         marking files as read-only via comments.
45247         If you relied on the symlink-creation feature of the preceding
45248         version of this script, you can get most of that functionality
45249         by adding the --symlink option to the definition of
45250         gnulib_tool_option_extras in your bootstrap.conf file.
45251         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
45252         Run autopoint and libtoolize *before* gnulib-tool.
45253         After it, run an abbreviated autoreconf, rather than a loop around
45254         all tools.
45255         (slirp, bt_mark_as_generated): Remove functions.
45257 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45259         ftoastr: fix typo
45260         * lib/ftoastr.h: Fix misspelling in comment.
45262 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
45264         * top/README-release: fix punctuation.
45266 2011-12-17  Jim Meyering  <meyering@redhat.com>
45268         bootstrap: correct the recent buildreq change
45269         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
45270         had no effect.
45271         * build-aux/bootstrap (buildreq): Bracket each search term with
45272         "*...*", so that the shell "case" statement works as intended.
45273         Add comments.
45275 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
45277         build: let bootstrap resort to wget when downloading .po files
45278         * build-aux/bootstrap (download_po_files): Fallback to wget when
45279         downloading the .po files via rsync fails.  This is necessary to
45280         bootstrap from behind a strict firewall.
45282 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45284         stdint: don't assume C++11 when compiling with g++
45285         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
45286         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
45287         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
45288         work also in C++ before C++11, as that improperly inhibits
45289         generating a substitute stdint.h for that case.
45291 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45293         alloca: protect comment from gnulib-tool
45294         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
45295         that gnulib-tool doesn't think it's a license, and munge it to
45296         say "GCC version 3".
45298 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
45300         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
45301         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
45302         $(abs_top_builddir) instead of $(top_builddir).
45304 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
45306         strftime-tests: also test nanoseconds
45307         * tests/test-strftime.c (T): Add a test of %N.
45309 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45311         inttypes, stdint: add C++11 support
45312         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
45313         when including inttypes.h and stdint.h.  Support this change to
45314         the standard.
45315         * doc/posix-headers/inttypes.texi (inttypes.h):
45316         * doc/posix-headers/stdint.texi (stdint.h): Document this.
45317         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
45318         Define if not defined already, for the benefit of pre-C++11 hosts.
45319         Define the standard format macros (e.g., PRId8) always.
45320         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
45321         Likewise, if __cpluspus.  Define the standard constant and limit
45322         macros (e.g., INT8_C, INT8_MAX) always.
45323         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
45324         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
45325         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
45326         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
45327         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
45328         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
45329         Likewise.
45331 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
45333         nonblocking tests: Fix test failure on Linux/PPC.
45334         Suggested by Prerna Saxena in
45335         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
45336         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
45337         Set to 1100000.
45339 2011-12-12  Jim Meyering  <meyering@redhat.com>
45341         argmatch: don't hard-code `' when listing valid option arguments
45342         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
45343         use the quote function to add quotes.  Use fputs rather than
45344         fprintf for the format string with no format directive.
45346 2011-12-07  Eric Blake  <eblake@redhat.com>
45348         bootstrap: detect tools required by gnulib-tool
45349         * build-aux/bootstrap (buildreq): Provide minimum implicit
45350         dependencies.
45351         * DEPENDENCIES: Mention patch as a prereq.
45353 2011-12-04  Bruno Haible  <bruno@clisp.org>
45355         sethostname: Port to Windows platforms.
45356         * lib/sethostname.c: Provide an alternate implementation for Windows
45357         platforms.
45358         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
45359         (main): Skip the test if sethostname() fails with EPERM. On Windows
45360         platforms, don't check the result of gethostname().
45362 2011-12-04  Bruno Haible  <bruno@clisp.org>
45363             Jim Meyering  <meyering@redhat.com>
45365         tests: Avoid spurious error message on platforms without mktemp program.
45366         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
45368 2011-12-04  Bruno Haible  <bruno@clisp.org>
45370         sethostname: Fix documentation.
45371         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
45372         "not fixed" section.
45374 2011-12-03  Bruno Haible  <bruno@clisp.org>
45376         gnulib-tool: Verify that the License field is present and non-empty.
45377         * gnulib-tool (func_get_license_raw): New function, extracted from
45378         func_get_license.
45379         (func_get_license): Use it. Warn if the module is not a test module and
45380         has no license.
45381         Suggested by Jim Meyering.
45383 2011-12-03  Bruno Haible  <bruno@clisp.org>
45385         sethostname tests: Fix link error on mingw.
45386         * tests/test-sethostname1.c: New file, extracted from
45387         tests/test-sethostname.c.
45388         * tests/test-sethostname2.c: New file, extracted from
45389         tests/test-sethostname.c.
45390         * tests/test-sethostname.c: Remove file.
45391         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
45392         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
45393         (Depends-on): Add gethostname.
45394         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
45395         Link the latter with $(GETHOSTNAME_LIB).
45397         sethostname tests: Fix compilation error on mingw.
45398         * tests/test-sethostname.c: Don't include <sys/types.h>.
45399         (geteuid): Use a dummy value without uid_t.
45400         * modules/sethostname-tests (Depends-on): Remove sys_types.
45402         sethostname tests: Avoid a gcc warning.
45403         * tests/test-sethostname.c (main): Remove an unused variable.
45405         Tweak last commit.
45406         * modules/sethostname-tests (Files): Sort by decreasing importance.
45407         (configure.ac): Check for geteuid.
45408         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
45409         the test when there's nothing to test. Drop an unnecessary cast.
45410         Improve an error message. Verify that the final sethostname() call
45411         succeeds.
45413 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45415         Add a test suite for the sethostname module.
45416         * modules/sethostname-tests: New file.  A test program
45417         for the sethostname module.
45418         * tests/test-sethostname.c: Likewise.
45420 2011-12-03  Bruno Haible  <bruno@clisp.org>
45422         Tweak last commit.
45423         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45424         Fix preprocessor directives indentation. Fix typos.
45425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45426         * modules/unistd (Makefile): Likewise.
45428 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45430         Integrate the sethostname module into unistd.
45431         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45432         into the unistd.h header.
45433         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45434         preprocessor directives.
45435         * modules/unistd: Setup the Makefile substitutions of the
45436         SETHOSTNAME preprocessor directives.
45438 2011-12-03  Bruno Haible  <bruno@clisp.org>
45440         Tweak last commit.
45441         * lib/sethostname.c: Don't include <string.h>.
45442         (sethostname): No need to copy the argument string to the stack. Don't
45443         call clearerr. Preserve errno when fprintf failed.
45444         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45445         Don't invoke AC_REPLACE_FUNCS.
45446         * modules/sethostname (Link): Remove empty section.
45447         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45448         failure problem.
45450 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45452         New module 'sethostname'.
45453         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45454         for systems that lack it.
45455         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45456         sethostname declaration and function.
45457         * modules/sethostname: New file.  Define the sethostname module.
45459 2011-12-03  Bruno Haible  <bruno@clisp.org>
45461         Tweak last commit.
45462         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45464 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45466         Split the HOST_NAME_MAX detection into a separate m4 macro.
45467         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45468         macro so it can be used by the pending sethostname module.
45470 2011-12-03  Bruno Haible  <bruno@clisp.org>
45472         Fix module descriptions syntax.
45473         * modules/argv-iter (License): Fix syntax.
45474         * modules/di-set (License): Likewise.
45475         * modules/ino-map (License): Likewise.
45476         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45478 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45480         stdalign: port to Clang 3.0
45481         Problem reported by Simon Josefsson in
45482         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45483         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45484         which has <stdalign.h> but which does not define alignof.
45485         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45487 2011-12-01  Eric Blake  <eblake@redhat.com>
45489         mktempd: silence dd usage
45490         * build-aux/mktempd (rand_bytes): Silence dd.
45492 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45494         manywarnings: Don't mention gcc version in docstring.
45495         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45496         Jim Meyering <meyering@redhat.com>.
45498 2011-11-30  Jim Meyering  <meyering@redhat.com>
45500         hash: mark a few floating point constants with "f" suffix
45501         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45502         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45503         floating point constants with "f", since they're destined to be
45504         saved/used as "float"s.
45506 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45508         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45509         * tests/test-float.c (test_long_double): Correct and re-enable the
45510         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45512 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45514         Avoid subtracting two pointers that don't point into the same block.
45515         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45516         only pointers into the same memory block are subtracted. We cannot
45517         assume that sizeof (ptrdiff_t) == sizeof (void *).
45519 2011-11-29  Eric Blake  <eblake@redhat.com>
45521         maint.mk: add syntax check for use of compare from init.sh
45522         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45523         moved here from coreutils.
45525         manywarnings: drop -Wunsuffixed-float-constants
45526         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45527         '1.0D', which is the only way to silence this warning for 'double'.
45529 2011-11-29  Jim Meyering  <meyering@redhat.com>
45531         hash: mark compute_bucket_size with the pure attribute
45532         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45534         quotearg, propername: correct pragma guard expression
45535         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45536         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45538 2011-11-28  Jim Meyering  <meyering@redhat.com>
45540         propername: do not mark proper_name with the const attribute
45541         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45542         since it examines data pointed to by its parameter.
45543         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45544         the suggestion from -Wsuggest-attribute=const.
45546         propername: mark one more function as const
45547         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45549 2011-11-27  Jim Meyering  <meyering@redhat.com>
45551         mark functions with const and pure attributes
45553         Mark functions per suggestions from gcc-4.6 when using these options:
45554         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45555         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45556         Follow these guidelines: when possible, apply the attribute to
45557         an extern declaration, not to its definition.  Apply it to the
45558         definition only when the definition is static.
45559         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45560         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45561         * lib/base64.h (isbase64): Likewise.
45562         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45563         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45564         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45565         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45566         (c_tolower, c_toupper): Likewise.
45567         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45568         * lib/chdir-long.c (find_non_slash): Likewise.
45569         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45570         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45571         * lib/file-type.h (file_type): Likewise.
45572         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45573         * lib/filevercmp.c (verrevcmp): Likewise.
45574         * lib/freadahead.h (freadahead): Likewise.
45575         * lib/fts.c (fts_maxarglen): Likewise.
45576         * lib/hash-pjw.h (hash_pjw): Likewise.
45577         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45578         * lib/hash.c (is_prime, next_prime): Likewise.
45579         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45580         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45581         (hash_table_ok, hash_get_first, hash_string): Likewise.
45582         (compute_bucket_size): Likewise.
45583         * lib/i-ring.h (i_ring_empty): Likewise.
45584         * lib/isnan.c (isnanl): Likewise.
45585         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45586         * lib/memcasecmp.h (memcasecmp): Likewise.
45587         * lib/memchr2.h (memchr2): Likewise.
45588         * lib/memcmp2.h (memcmp2): Likewise.
45589         * lib/parse-datetime.y (lookup_zone): Likewise.
45590         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45591         [!WINDOWS_SOCKETS]: Likewise.
45592         * lib/strnlen1.h (strnlen1): Likewise.
45593         * lib/uniwidth.in.h (uc_width): Likewise.
45594         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45595         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45596         (quoting_options_from_style): Add a comment.
45597         * lib/propername.h (proper_name): Add a comment.
45599 2011-11-27  Bruno Haible  <bruno@clisp.org>
45601         Remove unused macros from !_LIBC code in glibc-borrowed files.
45602         * lib/fnmatch.c (STRCOLL): Remove macro.
45603         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45604         * lib/glob.c (__stat, __readdir64): Remove macros.
45605         * lib/tempname.c (__open64, __xstat64): Remove macros.
45606         Suggested by Paul Eggert.
45608 2011-11-27  Bruno Haible  <bruno@clisp.org>
45610         getcwd: Fix link error on MSVC 9.
45611         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45613 2011-11-27  Bruno Haible  <bruno@clisp.org>
45615         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45616         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45617         HAVE_OPENDIR is 0.
45618         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45619         HAVE_CLOSEDIR is 0.
45620         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45621         is 0.
45622         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45624 2011-11-27  Bruno Haible  <bruno@clisp.org>
45626         getcwd: Fix bug from 2011-08-17.
45627         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45628         platforms that need it.
45629         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45630         code of 4 to be a failure, not a success. This ensures that
45631         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45633 2011-11-27  Bruno Haible  <bruno@clisp.org>
45635         binary-io tests: Avoid test failure on mingw when libtool is used.
45636         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45637         Don't verify the size of t-bin-out1.tmp here.
45638         * tests/test-binary-io.sh: Verify it here.
45639         Reported by Simon Josefsson.
45641 2011-11-26  Bruno Haible  <bruno@clisp.org>
45643         Fix conflict between two instantiations of module 'unistd'.
45644         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45645         ${include_guard_prefix} also in the autoconf snippet.
45646         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45648         GNULIB_UNISTD_H_GETOPT.
45649         * modules/getopt-posix (configure.ac): Set the
45650         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45651         * modules/getopt-gnu (configure.ac): Likewise.
45652         * modules/unistd (Makefile.am): Change the substitution value of
45653         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45654         Reported by Simon Josefsson.
45656 2011-11-25  Bruno Haible  <bruno@clisp.org>
45658         pagealign_alloc: Doc and comments.
45659         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45660         module.
45661         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45663 2011-11-25  Jim Meyering  <meyering@redhat.com>
45665         test-update-copyright.sh: avoid false-positive failure
45666         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45667         around false positive failure on Cygwin/Windows.  The latter was
45668         matching erroneously-created files with names like
45669         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45671 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45673         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45674         * m4/valgrind-tests.m4: Check that the parameters that will be
45675         used works, not just a subset of them.  Reported by Bruno Haible
45676         <bruno@clisp.org>.
45678 2011-11-24  Jim Meyering  <meyering@redhat.com>
45680         test-stdalign.c: comment out long double tests
45681         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45682         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45683         error: '_Alignas' specifiers cannot reduce alignment of \
45684         'static_longdouble_alignas'.
45686 2011-11-22  Jim Meyering  <meyering@redhat.com>
45688         init.sh: make "compare /dev/null FILE" output more readable
45689         * tests/init.sh (compare_): Document the preferred order of arguments.
45690         (emit_diff_u_header_): New function.
45691         (compare_dev_null_): Emit a simulated diff, rather than just the
45692         contents of the unexpected file.  Suggestion from Bruno Haible.
45694 2011-11-21  Jim Meyering  <meyering@redhat.com>
45695             Eric Blake  <eblake@redhat.com>
45697         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45698         * tests/init.sh: Make our compare function slightly more portable.
45699         Reported by Bruno Haible in
45700         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45702 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45704         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45705         before using it, in code that ends up in config.h.
45707 2011-11-20  Bruno Haible  <bruno@clisp.org>
45709         getcwd: Work around getcwd bug on AIX 5..7.
45710         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45711         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45712         Use a different value for gl_cv_func_getcwd_path_max. Move the
45713         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45714         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45715         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45716         Define HAVE_MINIMALLY_WORKING_GETCWD.
45717         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45718         where it is not even minimally working, that is, on AIX.
45719         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45720         m4/getcwd-path-max.m4.
45721         (main): Update exit code computation.
45722         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45723         getcwd does not handle long file names.
45725 2011-11-20  Bruno Haible  <bruno@clisp.org>
45727         getcwd: Fix bug from 2009-09-10.
45728         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45729         like "no".
45731 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45733         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45735 2011-11-20  Bruno Haible  <bruno@clisp.org>
45737         fma tests: Avoid shadowing local variables.
45738         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45739         expected.
45741 2011-11-20  Bruno Haible  <bruno@clisp.org>
45743         copysignf tests: Fix.
45744         * tests/test-copysignf.c: Fix signature check.
45746 2011-11-20  Bruno Haible  <bruno@clisp.org>
45748         fma: Remove unused code.
45749         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45750         unused macros.
45752 2011-11-20  Bruno Haible  <bruno@clisp.org>
45754         sethostname: Fix doc about AIX.
45755         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45756         sethostname; it has it.
45758         sethostname: Mention more portability problems.
45759         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45760         problem.
45761         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45763 2011-11-19  Bruno Haible  <bruno@clisp.org>
45765         Depend on module fcntl-h when AT_FDCWD is used.
45766         * modules/utimens (Depends-on): Add fcntl-h.
45767         * modules/areadlinkat (Depends-on): Likewise.
45768         * modules/areadlinkat-with-size (Depends-on): Likewise.
45769         * modules/faccessat (Depends-on): Likewise.
45770         * modules/fchmodat (Depends-on): Likewise.
45771         * modules/fchownat (Depends-on): Likewise.
45772         * modules/getcwd (Depends-on): Likewise.
45773         * modules/mkdirat (Depends-on): Likewise.
45774         * modules/mkfifoat (Depends-on): Likewise.
45775         * modules/readlinkat (Depends-on): Likewise.
45776         * modules/symlinkat (Depends-on): Likewise.
45777         * modules/dup2-tests (Depends-on): Likewise.
45778         * modules/fdutimensat-tests (Depends-on): Likewise.
45779         * modules/futimens-tests (Depends-on): Likewise.
45781 2011-11-19  Bruno Haible  <bruno@clisp.org>
45783         euidaccess: Update a comment.
45784         * lib/euidaccess.c: Update comment about platforms with faccessat.
45786 2011-11-19  Bruno Haible  <bruno@clisp.org>
45788         openat: Fix file list.
45789         * modules/openat (Files): Remove lib/at-func.c.
45791 2011-11-19  Bruno Haible  <bruno@clisp.org>
45793         fstatat: Simplify.
45794         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45795         gnulib should define rpl_fstatat, there is a
45796         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45798 2011-11-19  Bruno Haible  <bruno@clisp.org>
45800         Ensure 'inline' can be used in tests/test-utimens-common.h.
45801         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45802         * modules/futimens-tests (configure.ac): Likewise.
45803         * modules/utimens-tests (configure.ac): Likewise.
45804         * modules/utimensat-tests (configure.ac): Likewise.
45806 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45808         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45809         not hash_insert0.
45810         (hash_insert_if_absent): Doc fix.
45812 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45814         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45816 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45818         test-getcwd: disambiguate exit status
45819         * tests/test-getcwd.c (test_long_name): Return 0..7.
45820         (main): Exit with an unambiguous exit status.  The old
45821         code yielded a mysterious mixture of two failure codes.
45823         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45824         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45825         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45826         rpl_fstatat or fstatat.  This should fix the other problem
45827         reported by Kai Habel in
45828         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45829         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45830         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45831         and I reproduced it on a Solaris 8 host we still have in production.
45833 2011-11-18  Jim Meyering  <meyering@redhat.com>
45835         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45836         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45837         Add a sentence to the comment.
45838         (hash_insert0): New function that simply calls hash_insert_if_absent.
45839         * lib/hash.h (hash_insert_if_absent): Declare it.
45840         (hash_insert0): Add deprecation attribute.
45841         (_GL_ATTRIBUTE_DEPRECATED): Define.
45842         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45843         not hash_insert0.
45844         * NEWS: Mention it, even though it's not really an incompatible change.
45846 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45848         openat: avoid compilation failure due to lack of <errno.h> inclusion
45849         * lib/openat.c: Include <errno.h>.
45851 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45853         * modules/getcwd (Depends-on): Add fdopendir.
45854         This fixes one of the two problems reported by Kai Habel in
45855         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45857         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45858         stdalign problem reported by Ian Beckwith in
45859         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45860         * modules/crypto/gc-arcfour (Depends-on):
45861         Depend conditionally on crypto/arcfour.
45862         * modules/crypto/gc-arctwo (Depends-on):
45863         Depend conditionally on crypto/arctwo.
45864         * modules/crypto/gc-des (Depends-on):
45865         Depend conditionally on crypto/des.
45866         * modules/crypto/gc-hmac-md5 (Depends-on):
45867         Depend conditionally on crypto/hmac-md5.
45868         * modules/crypto/gc-hmac-sha1 (Depends-on):
45869         Depend conditionally on crypto/hmac-sha1.
45870         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45871         * modules/crypto/gc-md4 (Depends-on):
45872         Depend conditionally on crypto/md4.
45873         * modules/crypto/gc-md5 (Depends-on):
45874         Depend conditionally on crypto/md5.
45875         * modules/crypto/gc-rijndael (Depends-on):
45876         Depend conditionally on crypto/rijndael.
45877         * modules/crypto/gc-sha1 (Depends-on):
45878         Depend conditionally on crypto/sha1.
45879         * modules/crypto/gc-arcfour:
45880         * modules/crypto/gc-arctwo:
45881         * modules/crypto/gc-des:
45882         * modules/crypto/gc-hmac-md5:
45883         * modules/crypto/gc-hmac-sha1:
45884         * modules/crypto/gc-md2:
45885         * modules/crypto/gc-md4:
45886         * modules/crypto/gc-md5:
45887         * modules/crypto/gc-rijndael:
45888         * modules/crypto/gc-sha1:
45889         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45890         now that the conditional dependencies do the work for us.
45892 2011-11-17  Jim Meyering  <meyering@redhat.com>
45894         tests: factor st_ctime-comparison out of two headers
45895         * tests/test-utimens-common.h (ctime_compare): Define.
45896         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45897         * tests/test-lutimens.h (test_lutimens): Likewise.
45898         * tests/test-utimens.h (test_utimens): Likewise.
45900         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45901         Invoke the test program via an init.sh-using wrapper.
45902         * tests/test-getcwd.sh: New file.
45903         * modules/getcwd-tests (Files): Add it.
45904         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45906 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45908         gitlog-to-changelog: support multi-author commits.
45909         The FSF cares about keeping track of all authors of patches to its
45910         projects, but Git doesn't provide obvious support for multi-author
45911         changesets. Consensus seems to be forming around the use of extra
45912         Signed-off-by inspired lines in the log message formatted as
45913         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45914         multi-author commits between version control systems.
45915         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45916         log message and output in standard ChangeLog multi-author format.
45917         Reported by Peter Rosin <peda@lysator.liu.se>
45919 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45920             Bruno Haible  <bruno@clisp.org>
45922         Fix some modules' file list.
45923         * modules/fstatat (Files): Add m4/lstat.m4.
45924         * modules/openat (Files): Likewise.
45925         * modules/unlinkat (Files): Likewise.
45927 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45929         maint.mk: fix tight-scope.mk generation in VPATH builds.
45930         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45931         reference with $(srcdir) so that the file is found correctly even
45932         when running `make syntax-check' in a VPATH build.
45934 2011-11-13  Bruno Haible  <bruno@clisp.org>
45935             Jim Meyering  <meyering@redhat.com>
45937         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45938         * tests/init.sh (compare): Remove "No differences encountered" or
45939         synonymous output from the 'diff' program.
45941 2011-11-13  Bruno Haible  <bruno@clisp.org>
45943         Makefile: Tweak indentation.
45944         * Makefile: Use tab as first character in every line that contains rule
45945         commands.
45947 2011-11-13  Bruno Haible  <bruno@clisp.org>
45949         Syntax check for copyright statements.
45950         * check-copyright: New file.
45951         * Makefile (sc_check_copyright): New rule.
45953 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45955         * build-aux/git-version-gen: Add --prefix to configure the tag
45956         match string.
45958 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45960         * build-aux/git-version-gen: Add --help and --version.
45962 2011-11-12  Jim Meyering  <meyering@redhat.com>
45964         revamp the other test-exclude?.sh scripts to use init.sh, too
45965         * tests/test-exclude1.sh: Use init.sh.
45966         * tests/test-exclude2.sh: Likewise.
45967         * tests/test-exclude3.sh: Likewise.
45968         * tests/test-exclude4.sh: Likewise.
45969         * tests/test-exclude5.sh: Likewise.
45970         * tests/test-exclude6.sh: Likewise.
45971         * tests/test-exclude7.sh: Likewise.
45972         * tests/test-exclude8.sh: Likewise.
45973         * modules/exclude-tests (Files): List init.sh.
45975         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45976         These shell scripts ignored failure of the binary test-exclude,
45977         so making the latter return 77 didn't cause them to be skipped.
45978         * tests/test-exclude5.sh: Exit with test-exclude's error status
45979         when that program fails.  Revamp to use init.sh.
45980         * tests/test-exclude2.sh: Likewise.
45982         test-exclude: fix a typo
45983         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45985 2011-11-11  Bruno Haible  <bruno@clisp.org>
45987         obstack: Fix compilation error on MSVC 9.
45988         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45990 2011-11-11  Jim Meyering  <meyering@redhat.com>
45992         test-exclude: skip tests rather than failing on deficient systems
45993         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45994         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45995         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45996         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45998 2011-11-10  Bruno Haible  <bruno@clisp.org>
46000         ptsname_r test: Avoid gcc warning on glibc systems.
46001         * tests/test-ptsname_r.c (null_ptr): New function.
46002         (test_errors): Use it.
46004 2011-11-10  Bruno Haible  <bruno@clisp.org>
46006         ptsname_r: Avoid compilation error on OSF/1 5.1.
46007         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
46008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
46009         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
46010         function is not declared or incompatibly declared.
46011         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
46012         * modules/ptsname_r (Depends-on, configure.ac): Update.
46013         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
46015 2011-11-10  Bruno Haible  <bruno@clisp.org>
46017         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
46018         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
46019         When cross-compiling, guess yes on all platforms except AIX.
46020         Reported by Ludovic Courtès <ludo@gnu.org>.
46022 2011-11-09  Bruno Haible  <bruno@clisp.org>
46024         ptsname_r tests: Fix bugs.
46025         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
46026         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
46028 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46030         fstatat: work with cross-compilation
46031         Problem reported by Ludovic Courtès in
46032         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
46033         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
46034         "cross-compiling" and assume the bug is present.  Replace
46035         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
46036         an inverted sense, to be more conservative about our assumptions.
46037         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
46039 2011-11-09  Bruno Haible  <bruno@clisp.org>
46041         Improve MODULES.html output.
46042         * modules/mkfifoat (Description): Use the word "function".
46043         * modules/readlinkat (Description): Likewise.
46044         * modules/symlinkat (Description): Likewise.
46046 2011-11-09  Eric Blake  <eblake@redhat.com>
46048         ptsname_r-tests: new test module
46049         * modules/ptsname_r-tests: New module.
46050         * tests/test-ptsname_r.c: New file.
46052         ptsname_r: new module
46053         * modules/ptsname_r: New module.
46054         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
46055         * lib/ptsname.c (__ptsname_r): Split...
46056         * lib/ptsname_r.c: ...into new file.
46057         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46058         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
46059         * modules/stdlib (Makefile.am): Substitute witnesses.
46060         * lib/stdlib.in.h (ptsname_r): Declare it.
46061         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
46062         * MODULES.html.sh (Misc): Likewise.
46063         * modules/ptsname (Depends-on): Alter dependency.
46064         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
46066 2011-11-09  Jim Meyering  <meyering@redhat.com>
46068         announce-gen: be more concise when there's only one URL+tarball
46069         * build-aux/announce-gen (get_tool_versions): When you distribute
46070         only one type of tarball, combine the first two "Here are..."
46071         sections and make the key-checking grammar independent of
46072         how many tarballs there are.
46074 2011-11-09  Eric Blake  <eblake@redhat.com>
46076         openpty: provide a stub on mingw
46077         * lib/pty.in.h (includes): Provide forward declarations.
46078         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
46080         raise: fix mingw handling of SIGPIPE
46081         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
46083 2011-11-08  Bruno Haible  <bruno@clisp.org>
46085         More conditional dependencies.
46086         * modules/faccessat (Depends-on): Add conditions.
46087         * modules/fchmodat (Depends-on): Likewise.
46088         * modules/fchownat (Depends-on): Likewise.
46089         * modules/fstatat (Depends-on): Likewise.
46090         * modules/mkfifoat (Depends-on): Likewise.
46091         * modules/readlinkat (Depends-on): Likewise.
46092         * modules/symlinkat (Depends-on): Likewise.
46093         * modules/unlinkat (Depends-on): Likewise.
46094         * modules/utimensat (Depends-on): Likewise.
46095         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
46096         * modules/linkat (Depends-on): Refine the conditions.
46097         * modules/renameat (Depends-on): Likewise.
46099 2011-11-08  Bruno Haible  <bruno@clisp.org>
46101         faccessat: Move AC_LIBOBJ invocation to module description.
46102         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
46103         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
46104         invocation from here...
46105         * modules/faccessat (configure.ac): ... to here. Invoke
46106         gl_PREREQ_FACCESSAT.
46108 2011-11-08  Bruno Haible  <bruno@clisp.org>
46110         faccessat: Simplify autoconf macro.
46111         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
46112         gl_FUNC_EUIDACCESS.
46114 2011-11-08  Bruno Haible  <bruno@clisp.org>
46116         renameat: Fix dependencies.
46117         * modules/renameat (Depends-on): Add stdbool.
46119 2011-11-08  Bruno Haible  <bruno@clisp.org>
46121         mkfifoat: Fix module description.
46122         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
46123         not gl_UNISTD_MODULE_INDICATOR.
46125 2011-11-08  Bruno Haible  <bruno@clisp.org>
46127         fstatat: Remove unused dependency.
46128         * modules/fstatat (Depends-on): Remove fstat.
46130 2011-11-08  Simon Josefsson  <simon@josefsson.org>
46132         GNUmakefile: behave when Makefile is missing.
46133         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
46135 2011-11-08  Bruno Haible  <bruno@clisp.org>
46137         openat: Conditionalize dependencies.
46138         * lib/openat.c: Reduce the scope of some #includes.
46139         * modules/openat (Depends-on): Add conditions.
46141 2011-11-07  Jim Meyering  <meyering@redhat.com>
46143         maint.mk: extract GPG key ID without using a temporary file
46144         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
46145         without using a temporary file.  Based on a suggestion from Werner Koch
46146         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
46148 2011-11-07  Eric Blake  <eblake@redhat.com>
46150         grantpt: fix typo
46151         * lib/stdlib.in.h (grantpt): Check correct function.
46153         maint.mk: silence new syntax check
46154         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
46156 2011-11-06  Bruno Haible  <bruno@clisp.org>
46158         Doc about floating-point and math API.
46159         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
46160         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
46162 2011-11-06  Bruno Haible  <bruno@clisp.org>
46164         stdalign tests: Skip the test when compiled by Sun C.
46165         * tests/test-stdalign.c (main): Skip the test on Sun C.
46167 2011-11-06  Bruno Haible  <bruno@clisp.org>
46169         ansi-c++-opt: Complete the 2011-06-05 change.
46170         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
46171         does not support namespaces, set the variable to "no", not to ":".
46173 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46175         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
46177 2011-11-06  Bruno Haible  <bruno@clisp.org>
46179         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
46180         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
46181         (minus_zerol) [HP-UX]: New macro.
46182         (unary_minus) [HP-UX]: New function.
46183         (copysignl) [HP-UX]: Use unary_minus function.
46185 2011-11-06  Bruno Haible  <bruno@clisp.org>
46187         ldexp, ldexpf, ldexpl: Enhance tests.
46188         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
46189         and tests/test-ldexpl.c.
46190         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
46191         LDEXP, MIN_EXP, MAX_EXP): New macros.
46192         Include test-ldexp.h.
46193         (main): Just call test_function.
46194         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
46195         infinity.h, nan.h.
46196         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46197         MAX_EXP): New macros.
46198         Include test-ldexp.h.
46199         (x, y): Remove variables.
46200         (main): Just call test_function.
46201         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
46202         infinity.h, nan.h.
46203         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46204         MAX_EXP): New macros.
46205         Include test-ldexp.h.
46206         (x, y): Remove variables.
46207         (main): Just call test_function.
46208         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
46209         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
46210         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46211         (Depends-on): Add isnand-nolibm, signbit, float.
46212         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
46213         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46214         (Depends-on): Add isnanf-nolibm, signbit, float.
46216 2011-11-06  Bruno Haible  <bruno@clisp.org>
46218         math tests: Cosmetics.
46219         * tests/test-math-c++.cc: Reorder declarations.
46221 2011-11-05  Bruno Haible  <bruno@clisp.org>
46223         fma*: Simplify test.
46224         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
46225         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
46227         Tests for module 'fmal'.
46228         * modules/fmal-tests: New file.
46229         * tests/test-fmal1.c: New file.
46230         * tests/test-fmal2.c: New file.
46232         New module 'fmal'.
46233         * lib/math.in.h (fmal): New declaration.
46234         * lib/fmal.c: New file.
46235         * m4/fmal.m4: New file.
46236         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
46237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
46238         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
46239         REPLACE_FMAL.
46240         * modules/fmal: New file.
46241         * doc/posix-functions/fmal.texi: Mention the new module and the various
46242         bugs.
46244         Tests for module 'fmaf'.
46245         * modules/fmaf-tests: New file.
46246         * tests/test-fmaf1.c: New file.
46247         * tests/test-fmaf2.c: New file.
46249         New module 'fmaf'.
46250         * lib/math.in.h (fmaf): New declaration.
46251         * lib/fmaf.c: New file.
46252         * m4/fmaf.m4: New file.
46253         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
46254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
46255         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
46256         REPLACE_FMAF.
46257         * modules/fmaf: New file.
46258         * doc/posix-functions/fmaf.texi: Mention the new module and the various
46259         bugs.
46261         Tests for module 'fma'.
46262         * modules/fma-tests: New file.
46263         * tests/test-fma1.c: New file.
46264         * tests/test-fma1.h: New file.
46265         * tests/test-fma2.c: New file.
46266         * tests/test-fma2.h: New file.
46268         New module 'fma'.
46269         * lib/math.in.h (fma): New declaration.
46270         * lib/fma.c: New file.
46271         * m4/fma.m4: New file.
46272         * m4/fegetround.m4: New file.
46273         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
46274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
46275         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
46276         REPLACE_FMA.
46277         * modules/fma: New file.
46278         * doc/posix-functions/fma.texi: Mention the new module and the various
46279         bugs.
46281         Extend gl_MATHFUNC.
46282         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
46283         Support 'void' as argument type.
46284         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
46286 2011-11-05  Jim Meyering  <meyering@redhat.com>
46288         maint.mk: also prohibit inclusion of dirent.h without use
46289         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
46291 2011-11-05  Bruno Haible  <bruno@clisp.org>
46293         ldexpl tests: Avoid test failure on MSVC 9.
46294         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
46295         value. Needed in order to enforce the conversion from a value greater
46296         than LDBL_MAX to Infinity.
46298 2011-11-05  Bruno Haible  <bruno@clisp.org>
46300         New modules 'at-internal', 'openat-h', split off from module 'openat'.
46301         * modules/at-internal: New file, extracted from modules/openat.
46302         * modules/openat-h: New file.
46303         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
46304         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
46305         * modules/openat (Description): Add reference to POSIX function.
46306         (Files): Remove lib/openat.h, lib/openat-proc.c.
46307         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
46308         intprops, unistd.
46309         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
46310         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
46311         gl_FCNTL_MODULE_INDICATOR.
46312         (Include): Remove unistd.h, openat.h.
46313         * modules/areadlinkat (Files): Add lib/at-func.c.
46314         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46315         openat-die, openat-h, save-cwd.
46316         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
46317         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46318         openat-die, openat-h, save-cwd, unistd.
46319         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
46320         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46321         openat-h, save-cwd. Remove fcntl-h, openat.
46322         * modules/fchmodat (Files): Remove lib/openat.h.
46323         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46324         openat, stdbool, unistd.
46325         * modules/fchownat (Files): Remove lib/openat.h.
46326         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46327         openat, stdbool, sys_stat.
46328         * modules/fdopendir (Files): Remove lib/openat-priv.h,
46329         lib/openat-proc.c.
46330         (Depends-on): Add at-internal.
46331         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
46332         * modules/fstatat (Files): Remove lib/openat.h.
46333         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46334         stdbool, unistd.
46335         * modules/fts (Depends-on): Add openat-h.
46336         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
46337         openat.
46338         * modules/mkdirat (Files): Remove lib/openat.h.
46339         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46340         openat, stdbool, sys_stat.
46341         * modules/mkfifoat (Files): Add lib/at-func.c.
46342         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46343         openat-h, save-cwd. Remove fcntl-h, openat.
46344         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46345         * modules/readlinkat (Files): Add lib/at-func.c.
46346         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46347         openat-h, save-cwd. Remove fcntl-h, openat.
46348         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
46349         openat.
46350         * modules/selinux-at (Files): Add lib/at-func.c.
46351         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46352         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
46353         * modules/symlinkat (Files): Add lib/at-func.c.
46354         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46355         openat-h, save-cwd. Remove fcntl-h, openat.
46356         * modules/unlinkat (Files): Remove lib/openat.h.
46357         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46358         stdbool.
46359         * modules/utimensat (Files): Add lib/at-func.c.
46360         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
46361         openat-die, openat-h, save-cwd.
46362         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
46363         * modules/fdutimensat-tests (Depends-on): Add openat.
46364         * modules/fstatat-tests (Depends-on): Add openat-h.
46365         * modules/readlinkat-tests (Depends-on): Add openat.
46366         * modules/symlinkat-tests (Depends-on): Add openat.
46368 2011-11-05  Bruno Haible  <bruno@clisp.org>
46370         openat: Include <stdbool.h>.
46371         * lib/openat.c: Include <stdbool.h>.
46373 2011-11-04  Bruno Haible  <bruno@clisp.org>
46375         fchownat, renameat, unlinkat: Fix dependencies.
46376         * modules/fchownat (Depends-on): Add fstatat.
46377         * modules/renameat (Depends-on): Likewise.
46378         * modules/unlinkat (Depends-on): Likewise.
46380 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
46382         openat: remove direct dependency on dirent
46383         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
46384         and hasn't been needed ever since fdopendir was split into its own
46385         module on 2009-08-31.
46386         * modules/openat (Depends-on): Remove dirent.
46388 2011-11-04  Bruno Haible  <bruno@clisp.org>
46390         renameat: Optimize code size.
46391         * modules/renameat (configure.ac): Don't compile at-func2.c if
46392         REPLACE_RENAMEAT is 1.
46394 2011-11-04  Bruno Haible  <bruno@clisp.org>
46396         openat tests: Fix file list.
46397         * modules/openat-tests (Files): Add tests/test-open.h.
46399 2011-11-04  Bruno Haible  <bruno@clisp.org>
46401         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
46402         * modules/fchmodat (Depends-on): Add openat-die.
46403         * modules/fchownat (Depends-on): Likewise.
46404         * modules/linkat (Depends-on): Likewise.
46405         * modules/renameat (Depends-on): Likewise.
46406         * modules/openat (Depends-on): Add dirent.
46408 2011-11-04  Jim Meyering  <meyering@redhat.com>
46410         at-func*.c: fix comments
46411         * lib/at-func2.c: Correct/improve first-line comment.
46412         * lib/at-func.c: Correct grammar in first-line comment.
46414 2011-11-04  Bruno Haible  <bruno@clisp.org>
46416         New module 'mkdirat', split off from module 'openat'.
46417         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
46418         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
46419         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
46420         * modules/mkdirat: New file, extracted from modules/openat.
46421         * modules/openat (Files): Remove lib/mkdirat.c.
46422         (Depends-on): Remove mkdir.
46423         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46424         (Include): Remove <sys/stat.h>.
46425         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46426         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46427         tests/test-mkdir.h.
46428         (Depends-on): Remove ignore-value.
46429         (Makefile.am): Remove rules for test-mkdirat.
46430         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46431         of module 'openat'.
46432         * NEWS: Mention the change.
46434 2011-11-04  Bruno Haible  <bruno@clisp.org>
46436         closedir: Avoid warning on mingw.
46437         * lib/closedir.c: Include <unistd.h>.
46439 2011-11-04  Bruno Haible  <bruno@clisp.org>
46441         New module 'fstatat', split off from module 'openat'.
46442         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46443         defined.
46444         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46445         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46446         gl_FUNC_FSTATAT.
46447         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46448         * modules/fstatat: New file, extracted from modules/openat.
46449         * modules/openat (Files): Remove lib/fstatat.c.
46450         (Depends-on): Remove lstat.
46451         (configure.ac): Remove AC_LIBOBJ of fstatat.
46452         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46453         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46454         tests/test-lstat.h, tests/test-stat.h.
46455         (Depends-on): Remove getcwd-lgpl.
46456         (Makefile.am): Remove rules for test-fstatat.
46457         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46458         of module 'openat'.
46459         * NEWS: Mention the change.
46460         * modules/getcwd (Depends-on): Add fstatat.
46461         * modules/linkat (Depends-on): Likewise.
46462         * modules/mkfifoat-tests (Depends-on): Likewise.
46463         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46465 2011-11-03  Bruno Haible  <bruno@clisp.org>
46467         New module 'unlinkat', split off from module 'openat'.
46468         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46469         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46470         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46471         * modules/unlinkat: New file, extracted from modules/openat. Correct
46472         the dependency conditions.
46473         * modules/openat (Files): Remove lib/unlinkat.c.
46474         (Depends-on): Remove rmdir, unlink.
46475         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46476         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46477         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46478         tests/test-rmdir.h, tests/test-unlink.h.
46479         (Depends-on): Remove unlinkdir.
46480         (Makefile.am): Remove rules for test-unlinkat.
46481         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46482         of module 'openat'.
46483         * NEWS: Mention the change.
46484         * modules/linkat-tests (Depends-on): Add unlinkat.
46485         * modules/mkfifoat-tests (Depends-on): Likewise.
46486         * modules/readlinkat-tests (Depends-on): Likewise.
46488 2011-11-02  Bruno Haible  <bruno@clisp.org>
46490         New module 'fchmodat', split off from module 'openat'.
46491         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46492         defined.
46493         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46494         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46495         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46496         * modules/fchmodat: New file, extracted from modules/openat.
46497         * modules/openat (Files): Remove lib/fchmodat.c.
46498         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46499         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46500         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46501         (Makefile.am): Remove rules for test-fchmodat.
46502         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46503         of module 'openat'.
46504         * NEWS: Mention the change.
46506 2011-11-02  Jim Meyering  <meyering@redhat.com>
46508         putenv: indent #definition of "environ" to placate cppi
46509         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46511         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46512         Git logs are often treated as immutable, because editing them
46513         changes the SHA1 checksums of all descendants.  Thus, errors in
46514         git logs tend to stay there forever.  However, when we generate
46515         a ChangeLog file -- typically for distribution -- from that git log,
46516         we can actually make corrections in the generated file.  The key
46517         lies in recording in machine-readable/applicable form the desired
46518         corrections.  See --help for description and an example.
46519         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46520         (usage): Describe it; alphabetize option descriptions.
46521         (main): Honor the new option, carefully.
46523 2011-11-01  Jim Meyering  <meyering@redhat.com>
46525         gitlog-to-changelog: avoid an infloop
46526         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46527         that ends up being empty.
46529 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46531         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46532         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46533         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46534         contains (possibly-quoted) backslashes.  This should avoid
46535         all-too-common shell bugs if COMPLICATED contains backslashes in
46536         the "wrong" places.  Reported by David Evans in
46537         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46538         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46539         because we want ASCII ranges.  Is there some reason we don't use
46540         the C locale everywhere in this script?
46541         (func_module, top level): Avoid unwanted pathname expansion when
46542         $repo_url_prefix or $repo_url_suffix_repl contain shell
46543         metacharacters like '?' and '*'.
46545 2011-11-01  Bruno Haible  <bruno@clisp.org>
46547         fchownat: Improve description.
46548         * modules/fchownat (Description): Add link to function.
46550 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46552         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46553         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46554         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46555         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46557 2011-11-01  Bruno Haible  <bruno@clisp.org>
46559         alignof: Avoid collision with stdalign module.
46560         * lib/alignof.h (alignof): Remove macro.
46561         * NEWS: Mention the change.
46562         Reported by Paul Eggert.
46564 2011-11-01  Bruno Haible  <bruno@clisp.org>
46566         New module 'fchownat', split off from module 'openat'.
46567         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46568         defined.
46569         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46570         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46571         invoke gl_FUNC_FCHOWNAT.
46572         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46573         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46574         * modules/fchownat: New file, extracted from modules/openat.
46575         * modules/openat (Files): Remove lib/fchownat.c.
46576         (Depends-on): Remove lchown.
46577         (configure.ac): Remove AC_LIBOBJ of fchownat.
46578         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46579         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46580         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46581         (Depends-on): Remove mgetgroups, usleep, stat-time.
46582         (configure.ac): Remove test for getegid.
46583         (Makefile.am): Remove rules for test-fchownat.
46584         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46585         of module 'openat'.
46586         * NEWS: Mention the change.
46588 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46590         stdalign: port better to MSVC and to Sun C 5.11
46591         This fixes some of the problems reported by Bruno Haible in
46592         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46593         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46594         shortcomings of MSVC and of Sun C 5.11.
46595         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46596         around __declspec arg.
46597         * modules/stdalign-tests (Files): Add tests/macros.h.
46598         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46599         Include macros.h, for ASSERT.
46600         (DECLARE_ALIGNED): Remove.
46601         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46602         to catch bug), and to 1 if not (simplifies the rest of the code).
46603         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46604         (CHECK_AUTO): Remove.
46605         (CHECK_ALIGNED): Check only the alignment of the static vars,
46606         since auto var alignment isn't supported by Sun C 5.11.
46607         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46608         ASSERT failures are easier to diagnose.
46610 2011-10-31  Bruno Haible  <bruno@clisp.org>
46612         doc about some IRIX 5.3 problems.
46613         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46614         on IRIX 5.3.
46615         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46616         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46617         5.3.
46618         * doc/posix-functions/grantpt.texi: Likewise.
46619         * doc/posix-functions/unlockpt.texi: Likewise.
46620         * doc/posix-functions/lgamma.texi: Likewise.
46621         * doc/posix-functions/nextafter.texi: Likewise.
46622         * doc/posix-functions/remainder.texi: Likewise.
46623         * doc/posix-functions/select.texi: Mention misplaced declaration on
46624         IRIX 5.3.
46625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46627 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46629         gitlog-to-changelog: fix git-log invocation.
46630         git-log mishandles date strings before 1970-01-01 UTC, and there is
46631         no use to specify --since=1970-01-01 by default anyway.
46632         * build-aux/gitlog-to-changelog: By default, when no --since option
46633         was given, do not specify explicit --since option to git-log.
46635 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46637         gitlog-to-changelog: new option --append-dot.
46638         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46639         first non-blank line of each commit message terminated with a dot.
46641 2011-10-30  Bruno Haible  <bruno@clisp.org>
46643         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46644         * lib/ffsl.h: Include <config.h>.
46645         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46647 2011-10-30  Jim Meyering  <meyering@redhat.com>
46649         GNUmakefile: reenable "make syntax-check" for most projects
46650         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46651         build-aux variable", "syntax-check" would do nothing but succeed with
46652         the "No version control files detected..." diagnostic (unless you
46653         happened to override _build-aux via cfg.mk).
46654         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46655         to precede inclusion of maint.mk.  Otherwise, these variables would
46656         be used undefined in any project that does not override the default.
46658 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46660         gitlog-to-changelog: treat a message with only blank lines as empty.
46661         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46662         trailing blank lines before the code that issues a warning about an
46663         empty commit message.
46665 2011-10-30  Jim Meyering  <meyering@redhat.com>
46667         test-parse-datetime.c: avoid new DST-related false positive test failure
46668         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46669         based on the time/date we'll convert, not the current time.
46670         Otherwise, the moment we cross a DST boundary like today's in
46671         Europe, (CEST to CET), that offset ends up being one hour off.
46673 2011-10-27  Bruno Haible  <bruno@clisp.org>
46675         fstat: Tweak documentation.
46676         * modules/fstat (Description): More precise description.
46678 2011-10-27  Bruno Haible  <bruno@clisp.org>
46680         Update documentation regarding 'largefile' module.
46681         * doc/posix-functions/fstat.texi: Tweak wording.
46682         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46683         problems with huge directories and/or small ino_t types.
46684         * doc/posix-functions/readdir.texi: Likewise.
46685         * doc/posix-functions/rewinddir.texi: Likewise.
46687 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46689         maint.mk: don't maintain a second build-aux variable.
46690         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46691         depends on GNUmakefile, which already maintains a cfg.mk
46692         overridable $(_build-aux) for projects with a non-standard
46693         build-aux directory location, although without the $(srcdir)
46694         prefix.  Use that variable consistently instead of introducing a
46695         second one.  Adjust all call sites.
46697 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46699         Add stdalign module and use it in other modules.
46700         This is based on a previous proposal by Bruno Haible
46701         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46703         stdalign: new module
46704         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46705         * modules/stdalign: New files.
46706         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46707         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46709         stdalign-tests: new module
46710         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46712         argp: use stdalign
46713         * lib/argp-parse.c: Include <stdalign.h>.
46714         (alignof): Remove.
46715         * modules/argp (Depends-on): Add stdalign.
46717         crypto libraries: use stdalign
46718         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46719         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46720         Do not include <stdlib.h> twice, in md4.c.
46721         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46722         because we are accessing a pointer's bit-pattern, not a size.
46723         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46724         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46725         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46726         * modules/crypto/sha512: Likewise.
46728         sys_socket: use stdalign, not alignof
46729         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46730         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46732 2011-10-27  Bruno Haible  <bruno@clisp.org>
46734         raise test: Avoid a test failure on Linux/MIPS.
46735         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46736         because 99 is a valid signal on Linux/MIPS.
46738 2011-10-27  Bruno Haible  <bruno@clisp.org>
46740         nonblocking tests: Fix test failure on Linux/MIPS.
46741         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46742         Set to 270000.
46744 2011-10-27  Bruno Haible  <bruno@clisp.org>
46746         utimensat: Work around problem on Linux/hppa.
46747         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46748         values.
46749         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46751 2011-10-25  Jim Meyering  <meyering@redhat.com>
46753         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46754         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46755         after symbols like NULL, size_t, etc.
46756         Reported by Alfred M. Szmidt.
46758         maint.mk: exempt ENODATA from a syntax-check rule
46759         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46760         from the sc_prohibit_always-defined_macros syntax-check rule.
46761         Add a comment.  See this for more details:
46762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46764 2011-10-23  Jim Meyering  <meyering@redhat.com>
46766         fts: close parent dir FD before returning from post-traversal fts_read
46767         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46768         unlink A, even though an FD open on A remained.  This is suboptimal
46769         (holding a file descriptor open longer than needed), but otherwise not
46770         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46771         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46772         that represents a real problem: it causes the removal of A to fail
46773         with e.g., "rm: cannot remove `A': Device or resource busy"
46775         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46776         directory file descriptors.  After completing the final, FTS_DP,
46777         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46778         cache, but then proceeded to add a new FD to it via the subsequent
46779         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46780         final file descriptor would be closed only via fts_close's call to
46781         fd_ring_clear.  Now, it is usually closed earlier, via the final
46782         FTS_DP-returning fts_read call.
46783         * lib/fts.c (restore_initial_cwd): New function, converted from
46784         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46785         Update callers.
46786         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46787         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46789 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46790             Bruno Haible  <bruno@clisp.org>
46791             Jim Meyering  <jim@meyering.net>
46793         readme-release: improve safety of release prep instructions.
46794         * README-release: Don't git pull all branches when only master
46795         is needed for the release process.
46796         Run make maintainer-clean before changing trees and merging.
46797         Don't try to run ./configure right after git pull in case files
46798         that influence the bootstrap process have changed, move the
46799         ./configure step to after running ./bootstrap.
46800         Don't bootstrap "one last time"... it's the first time!
46802 2011-10-22  Bruno Haible  <bruno@clisp.org>
46804         errno, strerror-override: Support for MSVC 10.
46805         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46806         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46807         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46808         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46809         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46810         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46811         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46812         Assign values compatible with MSVC 10.
46813         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46814         New macros.
46815         (GNULIB_defined_EWINSOCK): New macro.
46816         * lib/strerror-override.c (strerror_override): Update accordingly.
46817         * lib/strerror-override.h: Likewise.
46818         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46819         longer equal to the corresponding errno value.
46820         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46822 2011-10-22  Bruno Haible  <bruno@clisp.org>
46824         perror: Recognize when test program crashes.
46825         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46826         strerror, set gl_cv_func_perror_works to no.
46827         Reported by Daniel Richard G. <skunk@iskunk.org>.
46829         perror: Fix indentation.
46830         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46832 2011-10-22  Bruno Haible  <bruno@clisp.org>
46834         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46835         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46836         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46837         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46838         functions, not as a macro.
46839         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46840         macros.
46841         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46842         absence of macro.
46843         Suggested by Eric Blake.
46844         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46846 2011-10-21  Bruno Haible  <bruno@clisp.org>
46848         relocatable-prog-wrapper: Don't leave object files behind.
46849         * build-aux/install-reloc: Re-synchronize list of .o files to be
46850         removed with list of compilation units.
46852 2011-10-20  Bruno Haible  <bruno@clisp.org>
46854         openpty, posix_openpt: Remove code duplication.
46855         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46856         * lib/openpty.c: Include <stdlib.h>.
46857         (openpty): Use posix_openpt on all platforms except IRIX.
46858         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46860 2011-10-20  Bruno Haible  <bruno@clisp.org>
46862         unlockpt: Detect invalid argument.
46863         * lib/unlockpt.c: Include <fcntl.h>.
46864         (unlockpt): Check whether fd is valid, using fcntl().
46865         * modules/unlockpt (Depends-on): Add fcntl-h.
46867 2011-10-20  Bruno Haible  <bruno@clisp.org>
46869         openpty: Avoid compilation error on AIX 6.1.
46870         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46872 2011-10-20  Bruno Haible  <bruno@clisp.org>
46874         posix_openpt: Support for OpenBSD.
46875         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46876         (posix_openpt) [OpenBSD]: New code.
46877         * lib/grantpt.c: Include <fcntl.h>.
46878         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46879         * modules/grantpt (Depends-on): Add fcntl-h.
46881 2011-10-20  Bruno Haible  <bruno@clisp.org>
46883         posix_openpt test: Coding style.
46884         * tests/test-posix_openpt.c: Use GNU coding style.
46886 2011-10-20  Bruno Haible  <bruno@clisp.org>
46888         grantpt: Support --avoid=pt_chown.
46889         * modules/grantpt (Files): Add lib/pty-private.h.
46891 2011-10-20  Bruno Haible  <bruno@clisp.org>
46893         posix_openpt: Fix autoconf macro.
46894         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46895         unneeded check for _getpty.
46897 2011-10-20  Bruno Haible  <bruno@clisp.org>
46899         openpty: Update comments.
46900         * lib/openpty.c: Add comments about Minix.
46902 2011-10-19  Eric Blake  <eblake@redhat.com>
46904         openpty: relax license
46905         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46907         pt_chown: use configmake to simplify build
46908         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46910         ptsname and others: relax license
46911         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46912         * modules/unlockpt (License): Likewise.
46913         * modules/pt_chown (License): Likewise.
46914         * modules/ptsname (License): Likewise.
46915         * modules/ttyname_r (License): Likewise.
46917 2011-10-19  Jim Meyering  <meyering@redhat.com>
46919         posix_openpt: remove spurious #endif
46920         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46922 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46924         maint.mk: Respect $(build_aux) in web-manual rule.
46925         * top/maint.mk (web-manual): Find gen-announce script in user's
46926         $(build_aux) directory instead of hard-coding 'build-aux'.
46928 2011-10-19  Bruno Haible  <bruno@clisp.org>
46930         posix_openpt: Fix compilation error.
46931         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46932         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46933         Mention the openpty module as an alternative.
46935 2011-10-19  Bruno Haible  <bruno@clisp.org>
46937         Support for old NeXTstep 3.3 frexp().
46938         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46939         execution time of the test to 5 seconds.
46940         Reported by Daniel Richard G. <skunk@iskunk.org>.
46942 2011-10-19  Bruno Haible  <bruno@clisp.org>
46944         Support for old NeXTstep 3.3 sed.
46945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46946         part, use /.../, not \|...|. Escape periods in the header file name.
46947         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46948         Reported by Daniel Richard G. <skunk@iskunk.org>.
46950 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46952         Support for old NeXTstep 3.3 gcc.
46953         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46954         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46955         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46956         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46957         * lib/regex.h (_Restrict_arr_): Likewise.
46958         * lib/regex_internal.h (re_token_t): Likewise.
46959         * lib/regexec.c (check_node_accept_bytes): Likewise.
46960         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46962 2011-10-18  Eric Blake  <eblake@redhat.com>
46964         posix_openpt: new module
46965         * modules/posix_openpt: New module.
46966         * m4/posix_openpt.m4: New file.
46967         * lib/posix_openpt.c: Likewise.
46968         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46969         (gl_STDLIB_H_DEFAULTS): Set defaults.
46970         * modules/stdlib (Makefile.am): Substitute macros.
46971         * lib/stdlib.in.h (posix_openpt): Declare.
46972         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46973         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46974         * modules/posix_openpt-tests: New test module.
46975         * tests/test-posix_openpt.c: New test.
46977 2011-10-15  Bruno Haible  <bruno@clisp.org>
46979         xstrtoll: Fix compilation failure.
46980         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46981         from lib/strtol.c.
46982         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46983         some platforms.
46984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46986 2011-10-15  Bruno Haible  <bruno@clisp.org>
46988         vasnprintf: Optimize bit search operation.
46989         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46991         gl_DOUBLE_EXPONENT_LOCATION.
46992         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46993         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46994         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46995         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46996         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46997         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46998         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46999         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47000         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
47002 2011-10-15  Bruno Haible  <bruno@clisp.org>
47004         vasnprintf: Fix comments.
47005         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
47007 2011-10-14  Bruno Haible  <bruno@clisp.org>
47009         Tests for module 'integer_length_ll'.
47010         * modules/integer_length_ll-tests: New file.
47011         * tests/test-integer_length_ll.c: New file.
47013         New module 'integer_length_ll'.
47014         * lib/integer_length_ll.c: New file.
47015         * modules/integer_length_ll: New file.
47017 2011-10-14  Bruno Haible  <bruno@clisp.org>
47019         Tests for module 'integer_length_l'.
47020         * modules/integer_length_l-tests: New file.
47021         * tests/test-integer_length_l.c: New file.
47023         New module 'integer_length_l'.
47024         * lib/integer_length_l.c: New file.
47025         * modules/integer_length_l: New file.
47027 2011-10-14  Bruno Haible  <bruno@clisp.org>
47029         Tests for module 'integer_length'.
47030         * modules/integer_length-tests: New file.
47031         * tests/test-integer_length.c: New file.
47033         New module 'integer_length'.
47034         * lib/integer_length.h: New file.
47035         * lib/integer_length.c: New file.
47036         * modules/integer_length: New file.
47038 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47040         popen: Fix dependency conditions.
47041         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
47043 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47045         perror: Fix autoconf test.
47046         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
47047         <stdlib.h> and <string.h>.
47049 2011-10-14  Bruno Haible  <bruno@clisp.org>
47051         ffsl: Optimize on 64-bit platforms.
47052         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
47053         unrolling.
47055 2011-10-13  Bruno Haible  <bruno@clisp.org>
47057         ffsl: Optimize on 32-bit platforms.
47058         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
47059         use ffs() without a loop.
47061         ffsl, ffsll: Optimize for GCC.
47062         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
47063         * lib/ffsl.c (GCC_BUILTIN): New macro.
47064         * lib/ffsll.c (GCC_BUILTIN): Likewise.
47066 2011-10-13  Bruno Haible  <bruno@clisp.org>
47068         ffs, bcopy, memset: Support symbol renaming via config.h.
47069         * lib/ffs.c: Include <config.h>.
47070         * lib/bcopy.c: Likewise.
47071         * lib/memset.c: Likewise.
47073 2011-10-10  Bruno Haible  <bruno@clisp.org>
47075         atanl: Simplify for platforms where 'long double' == 'double'.
47076         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47077         alternative implementation.
47078         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47079         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47080         * modules/atanl (Depends-on): Add atan. Update conditions.
47082 2011-10-10  Bruno Haible  <bruno@clisp.org>
47084         acosl: Simplify for platforms where 'long double' == 'double'.
47085         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47086         alternative implementation.
47087         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47088         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47089         * modules/acosl (Depends-on): Add acos. Update conditions.
47091 2011-10-10  Bruno Haible  <bruno@clisp.org>
47093         asinl: Simplify for platforms where 'long double' == 'double'.
47094         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47095         alternative implementation.
47096         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47097         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47098         * modules/asinl (Depends-on): Add asin. Update conditions.
47100 2011-10-10  Bruno Haible  <bruno@clisp.org>
47102         tanl: Simplify for platforms where 'long double' == 'double'.
47103         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47104         implementation.
47105         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47106         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47107         * modules/tanl (Depends-on): Add tan. Update conditions.
47108         (configure.ac): Don't compile trigl.c if
47109         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47111 2011-10-10  Bruno Haible  <bruno@clisp.org>
47113         cosl: Simplify for platforms where 'long double' == 'double'.
47114         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47115         implementation.
47116         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47117         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47118         * modules/cosl (Depends-on): Add cos. Update conditions.
47119         (configure.ac): Don't compile sincosl.c and trigl.c if
47120         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47122 2011-10-10  Bruno Haible  <bruno@clisp.org>
47124         sinl: Simplify for platforms where 'long double' == 'double'.
47125         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47126         implementation.
47127         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47128         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47129         * modules/sinl (Depends-on): Add sin. Update conditions.
47130         (configure.ac): Don't compile sincosl.c and trigl.c if
47131         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47133 2011-10-10  Bruno Haible  <bruno@clisp.org>
47135         logl: Simplify for platforms where 'long double' == 'double'.
47136         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47137         implementation.
47138         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47139         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47140         * modules/logl (Depends-on): Add log. Update conditions.
47142 2011-10-10  Bruno Haible  <bruno@clisp.org>
47144         expl: Simplify for platforms where 'long double' == 'double'.
47145         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47146         implementation.
47147         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47148         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47149         * modules/expl (Depends-on): Add exp. Update conditions.
47151 2011-10-10  Bruno Haible  <bruno@clisp.org>
47153         sqrtl: Simplify for platforms where 'long double' == 'double'.
47154         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47155         alternative implementation.
47156         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47157         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47158         * modules/sqrtl (Depends-on): Update conditions.
47160 2011-10-10  Bruno Haible  <bruno@clisp.org>
47162         ldexpl: Simplify for platforms where 'long double' == 'double'.
47163         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47164         alternative implementation.
47165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47166         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47167         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
47169 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
47171         ffsll: set correct witness
47172         * modules/ffsll (configure.ac): Fix typo.
47174 2011-10-10  Bruno Haible  <bruno@clisp.org>
47176         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
47177         * lib/printf-frexpl.c: Include <config.h>.
47178         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47179         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
47180         second time.
47181         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
47182         gl_LONG_DOUBLE_VS_DOUBLE.
47183         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
47184         conditions.
47186 2011-10-10  Bruno Haible  <bruno@clisp.org>
47188         frexpl: Simplify for platforms where 'long double' == 'double'.
47189         * lib/frexpl.c: Include <config.h>.
47190         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47191         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47192         time.
47193         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47194         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47195         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
47196         * modules/frexpl (Depends-on): Add frexp. Update conditions.
47197         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
47198         conditions.
47200 2011-10-10  Jim Meyering  <meyering@redhat.com>
47202         test-renameat: don't leave behind a temporary file
47203         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
47204           ERROR: files left in build directory after distclean:
47205           ./gltests/test-renameat.too
47206           make[1]: *** [distcleancheck] Error 1
47207         Reported by Tom G. Christensen.
47209 2011-10-09  Bruno Haible  <bruno@clisp.org>
47211         rint: Determine RINT_LIBM correctly on AIX 7.
47212         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
47213         directly, not only through a function pointer. Also accept an optional
47214         4th argument with extra code.
47215         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
47216         rintf() call by gcc when optimizing.
47218         mathfunc.m4: Refactor.
47219         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
47220         m4 variable.
47222 2011-10-09  Bruno Haible  <bruno@clisp.org>
47224         rintl: Simplify for platforms where 'long double' == 'double'.
47225         * lib/rintl.c: Include <config.h>.
47226         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47227         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47228         time.
47229         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47230         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47231         * modules/rintl (Depends-on): Add rint. Update conditions.
47233 2011-10-09  Bruno Haible  <bruno@clisp.org>
47235         roundl: Simplify for platforms where 'long double' == 'double'.
47236         * lib/roundl.c: Include <config.h>.
47237         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47238         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47239         time.
47240         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47241         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47242         * modules/roundl (Depends-on): Add round. Update conditions.
47244 2011-10-09  Bruno Haible  <bruno@clisp.org>
47246         truncl: Simplify for platforms where 'long double' == 'double'.
47247         * lib/truncl.c: Include <config.h>.
47248         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47249         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47250         time.
47251         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47252         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47253         * modules/truncl (Depends-on): Add trunc. Update conditions.
47255 2011-10-09  Bruno Haible  <bruno@clisp.org>
47257         ceill: Simplify for platforms where 'long double' == 'double'.
47258         * lib/ceill.c: Include <config.h>.
47259         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47260         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47261         time.
47262         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47263         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47264         * modules/ceill (Depends-on): Add ceil. Update conditions.
47266 2011-10-09  Bruno Haible  <bruno@clisp.org>
47268         floorl: Simplify for platforms where 'long double' == 'double'.
47269         * lib/floorl.c: Include <config.h>.
47270         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47271         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47272         time.
47273         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47274         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47275         * modules/floorl (Depends-on): Add floor. Update conditions.
47277 2011-10-09  Bruno Haible  <bruno@clisp.org>
47279         rint: Fix ordering constraints.
47280         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
47281         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
47282         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
47284 2011-10-09  Bruno Haible  <bruno@clisp.org>
47286         copysignl: Simplify for platforms where 'long double' == 'double'.
47287         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47288         alternative.
47289         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47290         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47291         * modules/copysignl (Depends-on): Add copysign. Update conditions.
47293 2011-10-09  Bruno Haible  <bruno@clisp.org>
47295         Tests for module 'rintl'.
47296         * modules/rintl-tests: New file.
47297         * tests/test-rintl.c: New file.
47299         New module 'rintl'.
47300         * lib/math.in.h (rintl): New declaration.
47301         * lib/rintl.c: New file.
47302         * m4/rintl.m4: New file.
47303         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
47304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
47305         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
47306         * modules/rintl: New file.
47307         * tests/test-math-c++.cc: Check the declaration of rintl.
47308         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47309         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
47310         * doc/posix-functions/rintl.texi: Mention the new module.
47312 2011-10-09  Bruno Haible  <bruno@clisp.org>
47314         Tests for module 'rintf'.
47315         * modules/rintf-tests: New file.
47316         * tests/test-rintf.c: New file.
47318         New module 'rintf'.
47319         * lib/math.in.h (rintf): New declaration.
47320         * lib/rintf.c: New file.
47321         * m4/rintf.m4: New file.
47322         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
47323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
47324         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
47325         * modules/rintf: New file.
47326         * tests/test-math-c++.cc: Check the declaration of rintf.
47327         * doc/posix-functions/rintf.texi: Mention the new module.
47329 2011-10-09  Bruno Haible  <bruno@clisp.org>
47331         rint: Support for MSVC.
47332         * lib/math.in.h (rint): New declaration.
47333         * lib/rint.c: New file.
47334         * m4/rint.m4: New file.
47335         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
47336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
47337         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
47338         * modules/rint (Description): Fix.
47339         (Files): Add lib/rint.c, m4/rint.m4.
47340         (Depends-on): Add math.
47341         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
47342         gl_MATH_MODULE_INDICATOR.
47343         * tests/test-math-c++.cc: Check the declaration of rint.
47344         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47345         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
47346         * doc/posix-functions/rint.texi: Mention the replacement provided by
47347         the module.
47349         rint tests: More tests.
47350         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
47351         minus-zero.h, infinity.h, nan.h.
47352         (main): Skip the test if the current rounding mode is not standard. Add
47353         tests for negative numbers, minus zero, infinity, NaN.
47354         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
47355         tests/nan.h.
47356         (Depends-on): Add isnand-nolibm.
47358 2011-10-09  Bruno Haible  <bruno@clisp.org>
47360         Tests for module 'copysignl'.
47361         * modules/copysignl-tests: New file.
47362         * tests/test-copysignl.c: New file.
47364         New module 'copysignl'.
47365         * lib/math.in.h (copysignl): New declaration.
47366         * lib/copysignl.c: New file.
47367         * m4/copysignl.m4: New file.
47368         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
47369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
47370         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
47371         HAVE_COPYSIGNL.
47372         * modules/copysignl: New file.
47373         * tests/test-math-c++.cc: Check the declaration of copysignl.
47374         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47375         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
47376         * doc/posix-functions/copysignl.texi: Mention the new module.
47378 2011-10-09  Bruno Haible  <bruno@clisp.org>
47380         Tests for module 'copysignf'.
47381         * modules/copysignf-tests: New file.
47382         * tests/test-copysignf.c: New file.
47384         New module 'copysignf'.
47385         * lib/math.in.h (copysignf): New declaration.
47386         * lib/copysignf.c: New file.
47387         * m4/copysignf.m4: New file.
47388         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
47389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
47390         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
47391         HAVE_COPYSIGNF.
47392         * modules/copysignf: New file.
47393         * tests/test-math-c++.cc: Check the declaration of copysignf.
47394         * doc/posix-functions/copysignf.texi: Mention the new module.
47396 2011-10-09  Bruno Haible  <bruno@clisp.org>
47398         Ensure that HAVE_* variables are set to 1 before they are set to 0.
47399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
47400         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
47401         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47402         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
47403         gl_SIGNAL_H_DEFAULTS.
47405 2011-10-09  Bruno Haible  <bruno@clisp.org>
47407         poll: Make macro safer.
47408         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
47409         ac_cv_header_poll_h is not set.
47411 2011-10-09  Bruno Haible  <bruno@clisp.org>
47413         copysign: Provide replacement.
47414         * lib/math.in.h (copysign): New declaration.
47415         * lib/copysign.c: New file.
47416         * m4/copysign.m4: New file.
47417         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
47418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
47419         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
47420         HAVE_COPYSIGN.
47421         * modules/copysign (Description): Clarify.
47422         (Files): Add lib/copysign.c, m4/copysign.m4.
47423         (Depends-on): Add math, signbit.
47424         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47425         gl_MATH_MODULE_INDICATOR.
47426         * tests/test-math-c++.cc: Check the declaration of copysign.
47427         * doc/posix-functions/copysign.texi: Mention the effects of the module
47428         on Minix and MSVC.
47430 2011-10-09  Bruno Haible  <bruno@clisp.org>
47432         isinf: Ensure macro on AIX 5.1.
47433         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47434         macro.
47435         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47437 2011-10-09  Bruno Haible  <bruno@clisp.org>
47439         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47440         * modules/snprintf-posix-tests (configure.ac): Require
47441         gl_LONG_DOUBLE_VS_DOUBLE.
47442         * modules/sprintf-posix-tests (configure.ac): Likewise.
47443         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47444         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47445         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47446         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47447         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47448         tests on platforms where 'long double' is the same as 'double'.
47449         * tests/test-sprintf-posix.h (test_function): Likewise.
47450         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47451         * tests/test-vasprintf-posix.c (test_function): Likewise.
47453         *printf: Fix for platforms where 'long double' == 'double'.
47454         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47455         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47456         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47457         * modules/fprintf-posix (Files): Likewise.
47458         * modules/obstack-printf-posix (Files): Likewise.
47459         * modules/snprintf-posix (Files): Likewise.
47460         * modules/sprintf-posix (Files): Likewise.
47461         * modules/vasnprintf (Files): Likewise.
47462         * modules/vasnprintf-posix (Files): Likewise.
47463         * modules/vasprintf-posix (Files): Likewise.
47464         * modules/vdprintf-posix (Files): Likewise.
47465         * modules/vfprintf-posix (Files): Likewise.
47466         * modules/vsnprintf-posix (Files): Likewise.
47467         * modules/vsprintf-posix (Files): Likewise.
47468         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47469         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47470         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47471         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47472         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47473         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47474         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47476         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47477         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47478         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47479         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47480         'long double'.
47481         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47483         isinf: Fix for platforms where 'long double' == 'double'.
47484         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47485         Don't blindly assume 80-bit 'long double'.
47487         isfinite: Fix for platforms where 'long double' == 'double'.
47488         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47489         Don't blindly assume 80-bit 'long double'.
47491         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47492         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47493         * modules/isfinite-tests (configure.ac): Require
47494         gl_LONG_DOUBLE_VS_DOUBLE.
47495         * modules/isinf-tests (configure.ac): Likewise.
47496         * modules/isnan-tests (configure.ac): Likewise.
47497         * modules/isnanl-tests (configure.ac): Likewise.
47498         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47499         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47500         tests on platforms where 'long double' is the same as 'double'.
47501         * tests/test-isinf.c (test_isinfl): Likewise.
47502         * tests/test-isnan.c (test_long_double): Likewise.
47503         * tests/test-isnanl.h (main): Likewise.
47505 2011-10-08  Bruno Haible  <bruno@clisp.org>
47507         Tests for module 'tanhf'.
47508         * modules/tanhf-tests: New file.
47509         * tests/test-tanhf.c: New file.
47511         New module 'tanhf'.
47512         * lib/math.in.h (tanhf): New declaration.
47513         * lib/tanhf.c: New file.
47514         * m4/tanhf.m4: New file.
47515         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47517         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47518         * modules/tanhf: New file.
47519         * tests/test-math-c++.cc: Check the declaration of tanhf.
47520         * doc/posix-functions/tanhf.texi: Mention the new module.
47522         tanh: Use a .m4 file.
47523         * m4/tanh.m4: New file.
47524         * modules/tanh (Files): Add it.
47525         (configure.ac): Just invoke gl_FUNC_TANH.
47527 2011-10-08  Bruno Haible  <bruno@clisp.org>
47529         Tests for module 'coshf'.
47530         * modules/coshf-tests: New file.
47531         * tests/test-coshf.c: New file.
47533         New module 'coshf'.
47534         * lib/math.in.h (coshf): New declaration.
47535         * lib/coshf.c: New file.
47536         * m4/coshf.m4: New file.
47537         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47539         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47540         * modules/coshf: New file.
47541         * tests/test-math-c++.cc: Check the declaration of coshf.
47542         * doc/posix-functions/coshf.texi: Mention the new module.
47544         cosh: Use a .m4 file.
47545         * m4/cosh.m4: New file.
47546         * modules/cosh (Files): Add it.
47547         (configure.ac): Just invoke gl_FUNC_COSH.
47549 2011-10-08  Bruno Haible  <bruno@clisp.org>
47551         Tests for module 'sinhf'.
47552         * modules/sinhf-tests: New file.
47553         * tests/test-sinhf.c: New file.
47555         New module 'sinhf'.
47556         * lib/math.in.h (sinhf): New declaration.
47557         * lib/sinhf.c: New file.
47558         * m4/sinhf.m4: New file.
47559         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47561         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47562         * modules/sinhf: New file.
47563         * tests/test-math-c++.cc: Check the declaration of sinhf.
47564         * doc/posix-functions/sinhf.texi: Mention the new module.
47566         sinh: Use a .m4 file.
47567         * m4/sinh.m4: New file.
47568         * modules/sinh (Files): Add it.
47569         (configure.ac): Just invoke gl_FUNC_SINH.
47571 2011-10-08  Bruno Haible  <bruno@clisp.org>
47573         Tests for module 'atan2f'.
47574         * modules/atan2f-tests: New file.
47575         * tests/test-atan2f.c: New file.
47577         New module 'atan2f'.
47578         * lib/math.in.h (atan2f): New declaration.
47579         * lib/atan2f.c: New file.
47580         * m4/atan2f.m4: New file.
47581         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47583         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47584         * modules/atan2f: New file.
47585         * tests/test-math-c++.cc: Check the declaration of atan2f.
47586         * doc/posix-functions/atan2f.texi: Mention the new module.
47588         atan2: Use a .m4 file.
47589         * m4/atan2.m4: New file.
47590         * modules/atan2 (Files): Add it.
47591         (configure.ac): Just invoke gl_FUNC_ATAN2.
47593 2011-10-08  Bruno Haible  <bruno@clisp.org>
47595         Tests for module 'atanf'.
47596         * modules/atanf-tests: New file.
47597         * tests/test-atanf.c: New file.
47599         New module 'atanf'.
47600         * lib/math.in.h (atanf): New declaration.
47601         * lib/atanf.c: New file.
47602         * m4/atanf.m4: New file.
47603         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47605         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47606         * modules/atanf: New file.
47607         * tests/test-math-c++.cc: Check the declaration of atanf.
47608         * doc/posix-functions/atanf.texi: Mention the new module.
47610         atan: Use a .m4 file.
47611         * m4/atan.m4: New file.
47612         * modules/atan (Files): Add it.
47613         (configure.ac): Just invoke gl_FUNC_ATAN.
47615 2011-10-08  Bruno Haible  <bruno@clisp.org>
47617         Tests for module 'acosf'.
47618         * modules/acosf-tests: New file.
47619         * tests/test-acosf.c: New file.
47621         New module 'acosf'.
47622         * lib/math.in.h (acosf): New declaration.
47623         * lib/acosf.c: New file.
47624         * m4/acosf.m4: New file.
47625         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47627         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47628         * modules/acosf: New file.
47629         * tests/test-math-c++.cc: Check the declaration of acosf.
47630         * doc/posix-functions/acosf.texi: Mention the new module.
47632         acos: Use a .m4 file.
47633         * m4/acos.m4: New file.
47634         * modules/acos (Files): Add it.
47635         (configure.ac): Just invoke gl_FUNC_ACOS.
47637 2011-10-08  Bruno Haible  <bruno@clisp.org>
47639         Tests for module 'asinf'.
47640         * modules/asinf-tests: New file.
47641         * tests/test-asinf.c: New file.
47643         New module 'asinf'.
47644         * lib/math.in.h (asinf): New declaration.
47645         * lib/asinf.c: New file.
47646         * m4/asinf.m4: New file.
47647         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47649         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47650         * modules/asinf: New file.
47651         * tests/test-math-c++.cc: Check the declaration of asinf.
47652         * doc/posix-functions/asinf.texi: Mention the new module.
47654         asin: Use a .m4 file.
47655         * m4/asin.m4: New file.
47656         * modules/asin (Files): Add it.
47657         (configure.ac): Just invoke gl_FUNC_ASIN.
47659 2011-10-08  Bruno Haible  <bruno@clisp.org>
47661         Tests for module 'tanf'.
47662         * modules/tanf-tests: New file.
47663         * tests/test-tanf.c: New file.
47665         New module 'tanf'.
47666         * lib/math.in.h (tanf): New declaration.
47667         * lib/tanf.c: New file.
47668         * m4/tanf.m4: New file.
47669         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47671         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47672         * modules/tanf: New file.
47673         * tests/test-math-c++.cc: Check the declaration of tanf.
47674         * doc/posix-functions/tanf.texi: Mention the new module.
47676         tan: Use a .m4 file.
47677         * m4/tan.m4: New file.
47678         * modules/tan (Files): Add it.
47679         (configure.ac): Just invoke gl_FUNC_TAN.
47681 2011-10-08  Bruno Haible  <bruno@clisp.org>
47683         Tests for module 'cosf'.
47684         * modules/cosf-tests: New file.
47685         * tests/test-cosf.c: New file.
47687         New module 'cosf'.
47688         * lib/math.in.h (cosf): New declaration.
47689         * lib/cosf.c: New file.
47690         * m4/cosf.m4: New file.
47691         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47693         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47694         * modules/cosf: New file.
47695         * tests/test-math-c++.cc: Check the declaration of cosf.
47696         * doc/posix-functions/cosf.texi: Mention the new module.
47698         cos: Use a .m4 file.
47699         * m4/cos.m4: New file.
47700         * modules/cos (Files): Add it.
47701         (configure.ac): Just invoke gl_FUNC_COS.
47703 2011-10-08  Bruno Haible  <bruno@clisp.org>
47705         Tests for module 'sinf'.
47706         * modules/sinf-tests: New file.
47707         * tests/test-sinf.c: New file.
47709         New module 'sinf'.
47710         * lib/math.in.h (sinf): New declaration.
47711         * lib/sinf.c: New file.
47712         * m4/sinf.m4: New file.
47713         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47715         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47716         * modules/sinf: New file.
47717         * tests/test-math-c++.cc: Check the declaration of sinf.
47718         * doc/posix-functions/sinf.texi: Mention the new module.
47720         sin: Use a .m4 file.
47721         * m4/sin.m4: New file.
47722         * modules/sin (Files): Add it.
47723         (configure.ac): Just invoke gl_FUNC_SIN.
47725 2011-10-08  Bruno Haible  <bruno@clisp.org>
47727         Tests for module 'powf'.
47728         * modules/powf-tests: New file.
47729         * tests/test-powf.c: New file.
47731         New module 'powf'.
47732         * lib/math.in.h (powf): New declaration.
47733         * lib/powf.c: New file.
47734         * m4/powf.m4: New file.
47735         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47737         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47738         * modules/powf: New file.
47739         * tests/test-math-c++.cc: Check the declaration of powf.
47740         * doc/posix-functions/powf.texi: Mention the new module.
47742         pow: Use a .m4 file.
47743         * m4/pow.m4: New file.
47744         * modules/pow (Files): Add it.
47745         (configure.ac): Just invoke gl_FUNC_POW.
47747 2011-10-08  Bruno Haible  <bruno@clisp.org>
47749         Tests for module 'log10f'.
47750         * modules/log10f-tests: New file.
47751         * tests/test-log10f.c: New file.
47753         New module 'log10f'.
47754         * lib/math.in.h (log10f): New declaration.
47755         * lib/log10f.c: New file.
47756         * m4/log10f.m4: New file.
47757         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47759         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47760         * modules/log10f: New file.
47761         * tests/test-math-c++.cc: Check the declaration of log10f.
47762         * doc/posix-functions/log10f.texi: Mention the new module.
47764         log10: Use a .m4 file.
47765         * m4/log10.m4: New file.
47766         * modules/log10 (Files): Add it.
47767         (configure.ac): Just invoke gl_FUNC_LOG10.
47769 2011-10-08  Bruno Haible  <bruno@clisp.org>
47771         Tests for module 'logf'.
47772         * modules/logf-tests: New file.
47773         * tests/test-logf.c: New file.
47775         New module 'logf'.
47776         * lib/math.in.h (logf): New declaration.
47777         * lib/logf.c: New file.
47778         * m4/logf.m4: New file.
47779         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47781         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47782         * modules/logf: New file.
47783         * tests/test-math-c++.cc: Check the declaration of logf.
47784         * doc/posix-functions/logf.texi: Mention the new module.
47786         log: Use a .m4 file.
47787         * m4/log.m4: New file.
47788         * modules/log (Files): Add it.
47789         (configure.ac): Just invoke gl_FUNC_LOG.
47791 2011-10-08  Bruno Haible  <bruno@clisp.org>
47793         Tests for module 'expf'.
47794         * modules/expf-tests: New file.
47795         * tests/test-expf.c: New file.
47797         New module 'expf'.
47798         * lib/math.in.h (expf): New declaration.
47799         * lib/expf.c: New file.
47800         * m4/expf.m4: New file.
47801         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47803         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47804         * modules/expf: New file.
47805         * tests/test-math-c++.cc: Check the declaration of expf.
47806         * doc/posix-functions/expf.texi: Mention the new module.
47808         exp: Use a .m4 file.
47809         * m4/exp.m4: New file.
47810         * modules/exp (Files): Add it.
47811         (configure.ac): Just invoke gl_FUNC_EXP.
47813 2011-10-08  Bruno Haible  <bruno@clisp.org>
47815         Tests for module 'sqrtf'.
47816         * modules/sqrtf-tests: New file.
47817         * tests/test-sqrtf.c: New file.
47819         New module 'sqrtf'.
47820         * lib/math.in.h (sqrtf): New declaration.
47821         * lib/sqrtf.c: New file.
47822         * m4/sqrtf.m4: New file.
47823         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47825         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47826         * modules/sqrtf: New file.
47827         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47828         * doc/posix-functions/sqrtf.texi: Mention the new module.
47830 2011-10-08  Bruno Haible  <bruno@clisp.org>
47832         Tests: Avoid link failures w.r.t. libintl.
47833         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47834         $(LIBINTL).
47835         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47836         $(LIBINTL).
47837         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47838         against $(LIBINTL).
47839         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47840         $(LIBINTL).
47841         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47842         $(LIBINTL).
47843         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47845 2011-10-08  Bruno Haible  <bruno@clisp.org>
47847         pow tests: Defeat compiler optimizations.
47848         * tests/test-pow.c (main): Assign arguments to x and y before use.
47850 2011-10-08  Bruno Haible  <bruno@clisp.org>
47852         gnulib-tool: Improve last commit.
47853         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47854         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47855         ignore dependencies that are not among the modules list.
47857 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47859         gnulib-tool: don't follow dependencies to avoided modules
47860         This fixes a bug that is related to the previous one.
47861         * gnulib-tool (func_modules_transitive_closure)
47862         (func_emit_autoconf_snippets):
47863         Check whether a dependency is acceptable before using it.
47864         (--extract-dependencies): Report an error if --avoid is also used,
47865         since this combination of options is not yet supported.
47867         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47868         Problem reported by Peter Dyballa in
47869         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47870         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47871         when echoing "$condition".
47873 2011-10-07  Bruno Haible  <bruno@clisp.org>
47875         Fix documentation about math functions on MacOS X.
47876         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47877         MacOS X 10.5.
47878         * doc/posix-functions/fdim.texi: Likewise.
47879         * doc/posix-functions/feclearexcept.texi: Likewise.
47880         * doc/posix-functions/fegetenv.texi: Likewise.
47881         * doc/posix-functions/fegetround.texi: Likewise.
47882         * doc/posix-functions/feholdexcept.texi: Likewise.
47883         * doc/posix-functions/feraiseexcept.texi: Likewise.
47884         * doc/posix-functions/fesetenv.texi: Likewise.
47885         * doc/posix-functions/fesetround.texi: Likewise.
47886         * doc/posix-functions/fetestexcept.texi: Likewise.
47887         * doc/posix-functions/feupdateenv.texi: Likewise.
47888         * doc/posix-functions/fmax.texi: Likewise.
47889         * doc/posix-functions/fmin.texi: Likewise.
47890         * doc/posix-functions/log2.texi: Likewise.
47891         * doc/posix-functions/modff.texi: Likewise.
47892         * doc/posix-functions/nan.texi: Likewise.
47893         * doc/posix-functions/nanf.texi: Likewise.
47894         * doc/posix-functions/nextafterf.texi: Likewise.
47895         * doc/posix-functions/remquo.texi: Likewise.
47897 2011-10-07  Bruno Haible  <bruno@clisp.org>
47899         modff: Drop assumption about library that defines modff.
47900         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47901         AC_CHECK_FUNCS.
47902         * modules/modff (Files): Add m4/mathfunc.m4.
47904 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47906         raise tests: Avoid a GCC warning.
47907         * tests/test-raise.c (handler): Use _Noreturn.
47909 2011-10-07  Bruno Haible  <bruno@clisp.org>
47911         Tests for module 'ldexpf'.
47912         * modules/ldexpf-tests: New file.
47913         * tests/test-ldexpf.c: New file.
47915         New module 'ldexpf'.
47916         * lib/math.in.h (ldexpf): New declaration.
47917         * lib/ldexpf.c: New file.
47918         * m4/ldexpf.m4: New file.
47919         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47921         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47922         * modules/ldexpf: New file.
47923         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47924         * doc/posix-functions/ldexpf.texi: Mention the new module.
47926 2011-10-06  Bruno Haible  <bruno@clisp.org>
47928         frexpf: Work around problems on IRIX and mingw.
47929         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47931         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47932         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47933         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47934         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47935         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47937 2011-10-06  Bruno Haible  <bruno@clisp.org>
47939         fabsf: Drop assumption about library that defines fabsf.
47940         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47941         AC_CHECK_FUNCS.
47942         * modules/fabsf (Files): Add m4/mathfunc.m4.
47944 2011-10-06  Bruno Haible  <bruno@clisp.org>
47946         frexpf: Drop assumption about library that defines frexpf.
47947         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47948         'int *', 'float *', 'long double *', 'float', 'long double'.
47949         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47950         AC_CHECK_FUNCS.
47951         * modules/frexpf (Files): Add m4/mathfunc.m4.
47953         Tests for module 'frexpf'.
47954         * modules/frexpf-tests: New file.
47955         * tests/test-frexpf.c: New file.
47957         New module 'frexpf'.
47958         * lib/math.in.h (frexpf): New declaration.
47959         * lib/frexpf.c: New file.
47960         * m4/frexpf.m4: New file.
47961         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47963         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47964         * modules/frexpf: New file.
47965         * tests/test-math-c++.cc: Check the declaration of frexpf.
47966         * doc/posix-functions/frexpf.texi: Mention the new module.
47968 2011-10-06  Bruno Haible  <bruno@clisp.org>
47970         math: Sort function declarations of math.in.h.
47971         * lib/math.in.h (frexp, logb): Move declarations.
47973 2011-10-05  Bruno Haible  <bruno@clisp.org>
47975         Tests for module 'modff'.
47976         * modules/modff-tests: New file.
47977         * tests/test-modff.c: New file.
47979         New module 'modff'.
47980         * lib/math.in.h (modff): New declaration.
47981         * lib/modff.c: New file.
47982         * m4/modff.m4: New file.
47983         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47985         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47986         * modules/modff: New file.
47987         * tests/test-math-c++.cc: Check the declaration of modff.
47988         * doc/posix-functions/modff.texi: Mention the new module.
47990         modf tests: Make test sharper.
47991         * tests/test-modf.c (main): Strengthen upper bound.
47993         modf: Use a .m4 file.
47994         * m4/modf.m4: New file.
47995         * modules/modf (Files): Add it.
47996         (configure.ac): Just invoke gl_FUNC_MODF.
47998 2011-10-05  Bruno Haible  <bruno@clisp.org>
48000         Tests for module 'fmodf'.
48001         * modules/fmodf-tests: New file.
48002         * tests/test-fmodf.c: New file.
48004         New module 'fmodf'.
48005         * lib/math.in.h (fmodf): New declaration.
48006         * lib/fmodf.c: New file.
48007         * m4/fmodf.m4: New file.
48008         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
48009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
48010         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
48011         * modules/fmodf: New file.
48012         * tests/test-math-c++.cc: Check the declaration of fmodf.
48013         * doc/posix-functions/fmodf.texi: Mention the new module.
48015         fmod: Use a .m4 file.
48016         * m4/fmod.m4: New file.
48017         * modules/fmod (Files): Add it.
48018         (configure.ac): Just invoke gl_FUNC_FMOD.
48020 2011-10-05  Bruno Haible  <bruno@clisp.org>
48022         Tests for module 'fabsf'.
48023         * modules/fabsf-tests: New file.
48024         * tests/test-fabsf.c: New file.
48026         New module 'fabsf'.
48027         * lib/math.in.h (fabsf): New declaration.
48028         * lib/fabsf.c: New file.
48029         * m4/fabsf.m4: New file.
48030         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
48031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
48032         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
48033         * modules/fabsf: New file.
48034         * tests/test-math-c++.cc: Check the declaration of fabsf.
48035         * doc/posix-functions/fabsf.texi: Mention the new module.
48037         fabs: Use a .m4 file.
48038         * m4/fabs.m4: New file.
48039         * modules/fabs (Files): Add it.
48040         (configure.ac): Just invoke gl_FUNC_FABS.
48042 2011-10-05  Jim Meyering  <meyering@redhat.com>
48044         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
48045         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
48046         ls -lL regression introduced in coreutils-8.12, it does so at the
48047         cost of an additional stat call in the common case.  Besides, now
48048         that the kernel change that prompted commit 95f7c57f has been reverted
48049         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
48050         we have no use for commit 95f7c57f, "file-has-acl: use
48051         acl_extended_file_nofollow if available".
48053 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
48055         file-has-acl: revert unintended change in behavior of ls -L
48056         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
48057         derived from...
48058         (file_has_acl): ...code here.  Call it.
48059         This problem was introduced with 2011-07-22 commit 95f7c57f,
48060         "file-has-acl: use acl_extended_file_nofollow if available".
48061         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
48063 2011-10-03  Bruno Haible  <bruno@clisp.org>
48065         poll: Avoid link errors on MSVC.
48066         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
48067         * modules/poll (Depends-on): Add sockets.
48068         (Link): New section.
48069         * NEWS: Mention the change.
48070         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
48071         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
48072         $(LIB_POLL) instead of $(LIBSOCKET).
48074 2011-10-03  Bruno Haible  <bruno@clisp.org>
48076         sys_select tests: Fix link error on MSVC 9.
48077         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
48078         with $(LIB_SELECT) instead of $(LIBSOCKET).
48080 2011-10-03  Bruno Haible  <bruno@clisp.org>
48082         sys_select: Fix compilation error on mingw.
48083         * lib/sys_select.in.h: On native Windows, include <io.h>.
48085 2011-10-03  Bruno Haible  <bruno@clisp.org>
48087         wmemset: Support for MSVC.
48088         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
48089         whether wmemset() exists.
48091 2011-10-03  Bruno Haible  <bruno@clisp.org>
48093         wmemmove: Support for MSVC.
48094         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
48095         whether wmemmove() exists.
48097 2011-10-03  Bruno Haible  <bruno@clisp.org>
48099         wmemcpy: Support for MSVC.
48100         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
48101         whether wmemcpy() exists.
48103 2011-10-03  Bruno Haible  <bruno@clisp.org>
48105         wmemcmp: Support for MSVC.
48106         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
48107         whether wmemcmp() exists.
48109 2011-10-03  Bruno Haible  <bruno@clisp.org>
48111         wmemchr: Support for MSVC.
48112         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
48113         whether wmemchr() exists.
48115 2011-10-03  Bruno Haible  <bruno@clisp.org>
48117         glthread/*, strsignal: Support for MSVC.
48118         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
48119         including <winsock.h> on MSVC 9.
48120         * lib/glthread/lock.h: Likewise.
48121         * lib/glthread/thread.h: Likewise.
48122         * lib/glthread/tls.h: Likewise.
48123         * lib/glthread/yield.h: Likewise.
48124         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
48125         if HAVE_UNISTD_H is false.
48126         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
48128 2011-10-03  Bruno Haible  <bruno@clisp.org>
48130         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
48131         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
48132         Set to 100000.
48134 2011-10-03  Bruno Haible  <bruno@clisp.org>
48136         acl: Fix specification.
48137         * lib/file-has-acl.c (file_has_acl): Fix specification.
48139 2011-10-03  Bruno Haible  <bruno@clisp.org>
48141         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
48142         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
48143         (compute_curr_prefix, shared_library_fullname,
48144         find_shared_library_fullname, get_shared_library_fullname, relocate):
48145         Use it together with PIC && INSTALLDIR.
48146         Reported by <jojelino@gmail.com>
48147         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
48149 2011-10-01  Jim Meyering  <meyering@redhat.com>
48151         maint.mk: adjust a release-related rule not to require use of gzip
48152         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
48153         Instead, check each file in $(DIST_ARCHIVES).  This is better for
48154         projects that build only .tar.xz files.  Also fix an erroneous test.
48156         test-linkat: don't leave behind a temporary file
48157         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
48158         Otherwise, coreutils' "make distcheck" would fail with this:
48159           Only in /c/cu/tests/torture/coreutils/test/\
48160             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
48161           make[2]: *** [my-distcheck] Error 1
48163         float, math: add omitted file
48164         * lib/itold.c: Add file, required for yesterday's float change.
48166 2011-10-01  Bruno Haible  <bruno@clisp.org>
48168         isinf: Fix for OpenBSD/x86.
48169         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
48170         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
48171         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
48173 2011-10-01  Bruno Haible  <bruno@clisp.org>
48175         isfinite: Fix syntax error in configure test.
48176         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
48178         isfinite: Fix typo.
48179         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
48180         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
48182 2011-10-01  Bruno Haible  <bruno@clisp.org>
48184         nonblocking tests: Fix test failure on Linux/IA-64.
48185         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
48186         Set to 270000.
48188 2011-10-01  Bruno Haible  <bruno@clisp.org>
48190         mkfifoat tests: Fix a test failure on mingw.
48191         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
48192         with error ENOSYS.
48194 2011-09-30  Bruno Haible  <bruno@clisp.org>
48196         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
48197         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
48198         'long double'. Set REPLACE_ITOLD.
48199         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
48200         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
48201         * lib/itold.c: New file.
48202         * modules/float (Files): Add lib/itold.c.
48203         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
48204         (Makefile.am): Substitute REPLACE_ITOLD.
48205         * modules/math (Depends-on): Add float.
48206         (Makefile.am): Substitute REPLACE_ITOLD.
48207         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
48208         * doc/posix-headers/math.texi: Likewise.
48209         * doc/posix-functions/logl.texi: Likewise.
48211 2011-09-30  Bruno Haible  <bruno@clisp.org>
48213         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
48214         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
48215         Set to 140000.
48217 2011-09-30  Bruno Haible  <bruno@clisp.org>
48219         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
48220         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
48221         invocation, say "right after AC_PROG_CC_STDC", not "right after
48222         AC_PROG_CC".
48223         Reported by Gary V. Vaughan <gary@gnu.org>.
48225 2011-09-30  Bruno Haible  <bruno@clisp.org>
48227         Centralize C99 requirement.
48228         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
48229         * modules/stdarg (configure.ac-early): Invoke it instead of
48230         AC_PROG_CC_STDC.
48231         Reported by Gary V. Vaughan and Paul Eggert.
48233 2011-09-29  Bruno Haible  <bruno@clisp.org>
48235         float: Fix LDBL_MAX value on Linux/PowerPC.
48236         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
48237         on Linux/PowerPC.
48238         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
48239         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
48240         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
48241         platform.
48242         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
48244 2011-09-29  Bruno Haible  <bruno@clisp.org>
48246         doc: Improve doc about gl_EARLY.
48247         * doc/gnulib-tool.texi (Initial import): Mention where to place an
48248         AC_PROG_CC_STDC invocation.
48249         Reported by Gary V. Vaughan <gary@gnu.org>.
48251 2011-09-28  Bruno Haible  <bruno@clisp.org>
48253         fgetc, fputc, fread, fwrite tests: Fix link error.
48254         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
48255         on non-MSVC platforms.
48256         * tests/test-fputc.c (main): Likewise.
48257         * tests/test-fread.c (main): Likewise.
48258         * tests/test-fwrite.c (main): Likewise.
48259         Reported by Jim Meyering.
48261 2011-09-27  Bruno Haible  <bruno@clisp.org>
48263         fputc, fwrite tests: Avoid test failure on MSVC.
48264         * tests/test-fgetc.c: Include msvc-inval.h.
48265         (main): Invoke gl_msvc_inval_ensure_handler.
48266         * tests/test-fputc.c: Include msvc-inval.h.
48267         (main): Invoke gl_msvc_inval_ensure_handler.
48268         * tests/test-fread.c: Include msvc-inval.h.
48269         (main): Invoke gl_msvc_inval_ensure_handler.
48270         * tests/test-fwrite.c: Include msvc-inval.h.
48271         (main): Invoke gl_msvc_inval_ensure_handler.
48272         * modules/fgetc-tests (Depends-on): Add msvc-inval.
48273         * modules/fputc-tests (Depends-on): Likewise.
48274         * modules/fread-tests (Depends-on): Likewise.
48275         * modules/fwrite-tests (Depends-on): Likewise.
48277 2011-09-27  Bruno Haible  <bruno@clisp.org>
48279         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
48280         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
48281         (raise): Remove older, duplicated declaration.
48282         (_gl_raise_SIGPIPE): New declaration.
48283         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
48284         (rpl_raise): Remove function.
48285         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
48286         a gnulib-defined SIGPIPE here.
48287         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
48288         'sigprocmask' has detected missing signal-blocking and the module
48289         'sigpipe' is enabled.
48290         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48292 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
48294         base64-tests: avoid memory leak
48295         * tests/test-base64.c (main): Plug memory leak.
48297         base32: new module
48298         * modules/base32: New module.
48299         * lib/base32.c: New file.
48300         * lib/base32.h: Likewise.
48301         * m4/base32.m4: Likewise.
48302         * modules/base32-tests: New test.
48303         * tests/test-base32.c: Likewise.
48304         * MODULES.html.sh (Misc): Mention it.
48306 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48308         gnulib: use more-standard license notice wording
48309         * gnulib-tool (func_emit_copyright_notice): When emitting a
48310         license notice into a file, use the standard wording as suggested
48311         by the current information for GNU maintainers, except say "file"
48312         rather than "program".  The new wording gives a license version
48313         number, which addresses an issue raised by Glenn Morris in
48314         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
48315         * m4/onceonly.m4: Use that same wording here, too.
48317         dup2: minor simplification
48318         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
48319         as lib/dup2.c no longer uses 'inline'.
48321 2011-09-25  Bruno Haible  <bruno@clisp.org>
48323         strings: Fix compilation error on MSVC.
48324         * lib/strings.in.h: Include <stddef.h> for size_t.
48326 2011-09-25  Bruno Haible  <bruno@clisp.org>
48328         fflush et al.: Document limitation on MSVC.
48329         * doc/posix-functions/fflush.texi: Document possible crash in handling
48330         mode other than DEFAULT_HANDLING.
48331         * doc/posix-functions/fgetc.texi: Likewise.
48332         * doc/posix-functions/fputc.texi: Likewise.
48333         * doc/posix-functions/fread.texi: Likewise.
48334         * doc/posix-functions/fwrite.texi: Likewise.
48336 2011-09-25  Bruno Haible  <bruno@clisp.org>
48338         msvc-inval: Allow three invalid parameter handling modes.
48339         * lib/msvc-inval.h: Don't include <stdlib.h> here.
48340         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
48341         macros.
48342         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
48343         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
48344         SANE_LIBRARY_HANDLING as a no-op.
48345         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
48346         <stdlib.h>.
48347         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
48349 2011-09-25  Bruno Haible  <bruno@clisp.org>
48351         msvc-inval: Make handler multithread-safe.
48352         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
48353         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
48354         declarations.
48355         (gl_msvc_inval_current): New declaration.
48356         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48357         Operate on the structure returned by gl_msvc_inval_current().
48358         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
48359         Remove varaiables.
48360         (tls_index, tls_initialized): New variables.
48361         (not_per_thread): New variable.
48362         (gl_msvc_inval_current): New function.
48363         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
48364         returned by gl_msvc_inval_current().
48366 2011-09-25  Bruno Haible  <bruno@clisp.org>
48368         msvc-inval: Install handler globally.
48369         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
48370         !_MSC_VER.
48371         (gl_msvc_invalid_parameter_handler): Remove declaration.
48372         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48373         declarations.
48374         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48375         Install the handler globally, don't uninstall it.
48376         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
48377         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
48378         currently valid, call RaiseException instead.
48379         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
48380         for !_MSC_VER.
48382 2011-09-25  Bruno Haible  <bruno@clisp.org>
48384         strerror_r-posix: Fix for MSVC 9.
48385         * lib/strerror_r.c (local_snprintf): New function.
48386         (snprintf): Define to local_snprintf, not to _snprintf.
48388 2011-09-25  Bruno Haible  <bruno@clisp.org>
48390         ftruncate: Support for MSVC 9.
48391         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
48392         (chsize_nothrow): New function.
48393         (chsize): Redefine as a macro.
48394         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
48395         * modules/ftruncate (Depends-on): Add msvc-inval.
48397 2011-09-25  Bruno Haible  <bruno@clisp.org>
48399         New module 'fstat'.
48400         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
48401         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
48402         * lib/fchdir.c (rpl_fstat): Remove function.
48403         * m4/fstat.m4: New file.
48404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
48405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
48406         declared.
48407         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
48408         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
48409         * modules/fstat: New file.
48410         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
48411         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
48412         is set.
48413         * doc/posix-functions/fstat.texi: Mention the new module and the
48414         problem on MSVC.
48415         * NEWS: Mention the change.
48416         * modules/acl (Depends-on): Add fstat.
48417         * modules/chdir-safer (Depends-on): Likewise.
48418         * modules/chown (Depends-on): Likewise.
48419         * modules/copy-file (Depends-on): Likewise.
48420         * modules/fchdir (Depends-on): Likewise.
48421         * modules/fdopendir (Depends-on): Likewise.
48422         * modules/fopen (Depends-on): Likewise.
48423         * modules/fts (Depends-on): Likewise.
48424         * modules/getcwd (Depends-on): Likewise.
48425         * modules/isapipe (Depends-on): Likewise.
48426         * modules/linkat (Depends-on): Likewise.
48427         * modules/lseek (Depends-on): Likewise.
48428         * modules/mkdir-p (Depends-on): Likewise.
48429         * modules/open (Depends-on): Likewise.
48430         * modules/openat (Depends-on): Likewise.
48431         * modules/read-file (Depends-on): Likewise.
48432         * modules/renameat (Depends-on): Likewise.
48433         * modules/utimens (Depends-on): Likewise.
48435 2011-09-25  Bruno Haible  <bruno@clisp.org>
48437         linkat: Fix compilation on MSVC 9.
48438         * lib/linkat.c: Don't include <stdint.h>.
48440 2011-09-25  Bruno Haible  <bruno@clisp.org>
48442         fclose: Support for MSVC 9.
48443         * lib/fclose.c: Include msvc-inval.h.
48444         (fclose_nothrow): New function.
48445         (rpl_fclose): Use it.
48446         * modules/fclose (Depends-on): Add msvc-inval.
48447         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48449 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48451         dup2: minor simplifications
48452         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48453         that it's a performance win.
48454         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48455         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48457 2011-09-24  Jim Meyering  <meyering@redhat.com>
48459         test-futimens: avoid a warning from gcc -Wshadow
48460         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48461         to avoid a shadowing warning.
48463 2011-09-24  Bruno Haible  <bruno@clisp.org>
48465         fdopen: Support for MSVC 9.
48466         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48467         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48468         * lib/fdopen.c: Include msvc-inval.h.
48469         (fdopen_nothrow): New function.
48470         (rpl_fdopen): Use it.
48471         * modules/fdopen (Depends-on): Add msvc-inval.
48472         * modules/fclose-tests (Depends-on): Add fdopen.
48473         * modules/fflush-tests (Depends-on): Likewise.
48474         * modules/fgetc-tests (Depends-on): Likewise.
48475         * modules/fputc-tests (Depends-on): Likewise.
48476         * modules/fread-tests (Depends-on): Likewise.
48477         * modules/freopen-tests (Depends-on): Likewise.
48478         * modules/fseeko-tests (Depends-on): Likewise.
48479         * modules/ftello-tests (Depends-on): Likewise.
48480         * modules/fwrite-tests  (Depends-on): Likewise.
48481         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48483 2011-09-24  Bruno Haible  <bruno@clisp.org>
48485         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48486         * modules/fgetc-tests (Depends-on): Add unistd.
48487         * modules/fputc-tests (Depends-on): Likewise.
48488         * modules/fread-tests (Depends-on): Likewise.
48489         * modules/fwrite-tests (Depends-on): Likewise.
48491 2011-09-24  Bruno Haible  <bruno@clisp.org>
48493         dup: Simplify autoconf test.
48494         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48495         on gl_MSVC_INVAL's result.
48497 2011-09-24  Bruno Haible  <bruno@clisp.org>
48499         Tests for function fwrite().
48500         * modules/fwrite-tests: New file.
48501         * tests/test-fwrite.c: New file.
48502         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48504         Tests for function fread().
48505         * modules/fread-tests: New file.
48506         * tests/test-fread.c: New file.
48507         * modules/stdio-tests (Depends-on): Add fread-tests.
48509         Activate fputc tests.
48510         * modules/stdio-tests (Depends-on): Add fputc-tests.
48512         Enhance fgetc, fputc tests.
48513         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48514         * tests/test-fputc.c (main): Likewise.
48516 2011-09-24  Bruno Haible  <bruno@clisp.org>
48518         write: Support for MSVC 9.
48519         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48520         is not 1.
48521         * lib/write.c (write_nothrow): New function.
48522         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48523         not 1. Use write_nothrow.
48524         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48525         invalid parameter handler.
48526         (gl_PREREQ_WRITE): New macro.
48527         * modules/write (Depends-on): Add msvc-inval.
48528         (configure.ac): Invoke gl_PREREQ_WRITE.
48529         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48531 2011-09-24  Bruno Haible  <bruno@clisp.org>
48533         read: Fix last commit.
48534         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48536 2011-09-24  Bruno Haible  <bruno@clisp.org>
48538         dup2: Fix last commit.
48539         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48540         (rpl_dup2): Disable fcntl workaround on native Windows.
48542         sigprocmask: Make code safer.
48543         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48544         section that changes macro definitions for this compilation unit.
48546 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48548         dup2: clarify by coalescing Windows-specific material
48549         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48550         "msvc-nothrow.h"' to the Windows-specific section, so that the
48551         Emacs source need not contain these include files.
48552         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48553         Windows-specific fixes into this function rather than just the
48554         nothrow fix, as this shortens and clarifies the code.  Always
48555         define as a function, as that's a bit cleaner than having it be
48556         sometimes a function and sometimes a macro.
48557         (rpl_dup2): Move the Windows-specific stuff out of here and into
48558         ms_windows_dup2.  Don't protect the Haiku-related fix with
48559         "#if !defined __linux__", as the same code also works around
48560         a Linux kernel bug, and it doesn't add any system calls on any
48561         platform.  Add comment about FreeBSD 6.1.
48563         sigprocmask: move #include directive
48564         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48565         Windows-specific section, so that the Emacs source need not
48566         contain msvc-inval.h.
48568 2011-09-23  Bruno Haible  <bruno@clisp.org>
48570         read: Support for MSVC 9.
48571         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48572         is not 1.
48573         * lib/read.c (read_nothrow): New function.
48574         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48575         read_nothrow.
48576         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48577         invalid parameter handler.
48578         (gl_PREREQ_READ): New macro.
48579         * modules/read (Depends-on): Add msvc-inval.
48580         (configure.ac): Invoke gl_PREREQ_READ.
48581         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48583 2011-09-23  Bruno Haible  <bruno@clisp.org>
48585         close: Support for MSVC 9.
48586         * lib/close.c: Include <errno.h>, msvc-inval.h.
48587         (close_nothrow): New function.
48588         (rpl_close): Use it.
48589         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48590         invalid parameter handler.
48591         * modules/close (Depends-on): Add msvc-inval.
48592         * modules/dup2-tests (Depends-on): Add close.
48593         * modules/dup3-tests (Depends-on): Likewise.
48594         * modules/fcntl-tests (Depends-on): Likewise.
48595         * modules/spawn-pipe-tests (Depends-on): Likewise.
48596         * modules/unistd-safer-tests (Depends-on): Likewise.
48597         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48599 2011-09-23  Bruno Haible  <bruno@clisp.org>
48601         New module 'dup'.
48602         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48603         Allow replacement.
48604         * lib/dup.c: New file.
48605         * lib/fchdir.c (rpl_dup): Remove function.
48606         * m4/dup.m4: New file.
48607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48608         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48609         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48610         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48611         * modules/dup: New file.
48612         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48613         'dup' module is in use.
48614         * modules/fdopendir (Depends-on): Add dup.
48615         * modules/fdutimensat-tests (Depends-on): Likewise.
48616         * modules/fts (Depends-on): Likewise.
48617         * modules/futimens-tests (Depends-on): Likewise.
48618         * modules/posix_spawnp-tests (Depends-on): Likewise.
48619         * modules/unistd-safer-tests (Depends-on): Likewise.
48620         * modules/utimens-tests (Depends-on): Likewise.
48621         * doc/posix-functions/dup.texi: Mention the new module and the problem
48622         on MSVC.
48624 2011-09-23  Bruno Haible  <bruno@clisp.org>
48626         getdtablesize: Support for MSVC 9.
48627         * lib/getdtablesize.c: Include msvc-inval.h.
48628         (_setmaxstdio_nothrow): New function.
48629         (_setmaxstdio): Redefine it.
48630         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48631         * modules/getdtablesize (Depends-on): Add msvc-inval.
48632         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48634 2011-09-23  Bruno Haible  <bruno@clisp.org>
48636         signal-h: Rename from signal.
48637         * modules/signal-h: Renamed from modules/signal.
48638         * modules/pthread_sigmask (Depends-on): Update.
48639         * modules/raise (Depends-on): Likewise.
48640         * modules/sigaction (Depends-on): Likewise.
48641         * modules/sigpipe (Depends-on): Likewise.
48642         * modules/sigprocmask (Depends-on): Likewise.
48643         * modules/sys_select (Depends-on): Likewise.
48644         * modules/signal-h-tests: Renamed from modules/signal-tests.
48645         (Files, Depends-on, Makefile.am): Update.
48646         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48647         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48648         (Files, Makefile.am): Update.
48649         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48650         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48651         * modules/signal: New placeholder file.
48652         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48653         * doc/posix-headers/signal.texi: Update.
48654         * NEWS: Mention the change.
48656 2011-09-23  Bruno Haible  <bruno@clisp.org>
48658         sigprocmask: Avoid crashes through signal() on MSVC 9.
48659         * lib/sigprocmask.c: Include msvc-inval.h.
48660         (signal_nothrow): New function.
48661         (signal): Redefine it.
48662         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48663         * modules/sigprocmask (Depends-on): Add msvc-inval.
48664         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48666 2011-09-23  Bruno Haible  <bruno@clisp.org>
48668         Tests for module 'raise'.
48669         * modules/raise-tests: New file.
48670         * tests/test-raise.c: New file.
48672         raise: Support for MSVC.
48673         * lib/signal.in.h (raise): New declaration.
48674         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48675         for native Windows platforms.
48676         * m4/raise.m4: New file.
48677         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48678         HAVE_RAISE, REPLACE_RAISE.
48679         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48680         REPLACE_RAISE.
48681         * modules/raise (Status, Notice): Remove fields.
48682         (Files): Add m4/raise.m4.
48683         (Depends-on): Add signal, msvc-inval.
48684         (configure.ac): Use the common idioms.
48685         (Maintainer): Add me.
48686         * tests/test-signal-c++.cc: Check the signature of raise.
48687         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48689 2011-09-23  Bruno Haible  <bruno@clisp.org>
48691         pipe2: Fix compilation on pre-C99 compilers.
48692         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48694 2011-09-23  Bruno Haible  <bruno@clisp.org>
48696         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48697         * lib/msvc-nothrow.h: New file.
48698         * lib/msvc-nothrow.c: New file.
48699         * m4/msvc-nothrow.m4: New file.
48700         * modules/msvc-nothrow: New file.
48701         * lib/dup2.c: Include msvc-nothrow.h.
48702         (rpl_dup2): No need to protect _get_osfhandle call here.
48703         * lib/accept4.c: Include msvc-nothrow.h.
48704         * lib/error.c: Likewise.
48705         * lib/fcntl.c: Likewise.
48706         * lib/lseek.c: Likewise.
48707         * lib/nonblocking.c: Likewise.
48708         * lib/poll.c: Likewise.
48709         * lib/read.c: Likewise.
48710         * lib/select.c: Likewise.
48711         * lib/sockets.h: Likewise.
48712         * lib/sockets.c: Likewise.
48713         * lib/stdio-read.c: Likewise.
48714         * lib/stdio-write.c: Likewise.
48715         * lib/write.c: Likewise.
48716         * lib/w32sock.h: Likewise.
48717         * lib/w32spawn.h: Likewise.
48718         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48719         * lib/fsync.c: Likewise.
48720         * lib/isapipe.c: Likewise.
48721         * modules/dup2 (Depends-on): Add msvc-nothrow.
48722         * modules/accept4 (Depends-on): Likewise.
48723         * modules/error (Depends-on): Likewise.
48724         * modules/fcntl (Depends-on): Likewise.
48725         * modules/lseek (Depends-on): Likewise.
48726         * modules/nonblocking (Depends-on): Likewise.
48727         * modules/poll (Depends-on): Likewise.
48728         * modules/read (Depends-on): Likewise.
48729         * modules/select (Depends-on): Likewise.
48730         * modules/sockets (Depends-on): Likewise.
48731         * modules/sigpipe (Depends-on): Likewise.
48732         * modules/write (Depends-on): Likewise.
48733         * modules/accept (Depends-on): Likewise.
48734         * modules/bind (Depends-on): Likewise.
48735         * modules/connect (Depends-on): Likewise.
48736         * modules/gethostname (Depends-on): Likewise.
48737         * modules/getpeername (Depends-on): Likewise.
48738         * modules/getsockname (Depends-on): Likewise.
48739         * modules/getsockopt (Depends-on): Likewise.
48740         * modules/ioctl (Depends-on): Likewise.
48741         * modules/listen (Depends-on): Likewise.
48742         * modules/recv (Depends-on): Likewise.
48743         * modules/recvfrom (Depends-on): Likewise.
48744         * modules/send (Depends-on): Likewise.
48745         * modules/sendto (Depends-on): Likewise.
48746         * modules/setsockopt (Depends-on): Likewise.
48747         * modules/shutdown (Depends-on): Likewise.
48748         * modules/socket (Depends-on): Likewise.
48749         * modules/execute (Depends-on): Likewise.
48750         * modules/spawn-pipe (Depends-on): Likewise.
48751         * modules/flock (Depends-on): Likewise.
48752         * modules/fsync (Depends-on): Likewise.
48753         * modules/isapipe (Depends-on): Likewise.
48754         * tests/test-cloexec.c: Include msvc-nothrow.h.
48755         * tests/test-dup-safer.c: Likewise.
48756         * tests/test-dup2.c: Likewise.
48757         * tests/test-dup3.c: Likewise.
48758         * tests/test-fcntl.c: Likewise.
48759         * tests/test-pipe.c: Likewise.
48760         * tests/test-pipe2.c: Likewise.
48761         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48762         * modules/unistd-safer-tests (Depends-on): Likewise.
48763         * modules/dup2-tests (Depends-on): Likewise.
48764         * modules/dup3-tests (Depends-on): Likewise.
48765         * modules/fcntl-tests (Depends-on): Likewise.
48766         * modules/pipe-posix-tests (Depends-on): Likewise.
48767         * modules/pipe2-tests (Depends-on): Likewise.
48769 2011-09-23  Bruno Haible  <bruno@clisp.org>
48771         dup2: Make code more maintainable.
48772         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48773         (rpl_dup2): Use it.
48774         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48775         * modules/dup2 (configure.ac): Invoke it.
48776         Reported by Paul Eggert.
48778 2011-09-23  Bruno Haible  <bruno@clisp.org>
48780         msvc-inval: Fix compilation error.
48781         * lib/msvc-inval.h: Include <excpt.h>.
48783 2011-09-23  Bruno Haible  <bruno@clisp.org>
48785         mkdir: Tweak for MSVC 9.
48786         * lib/sys_stat.in.h: Update comments.
48787         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48789         Tests for module 'chdir'.
48790         * modules/chdir-tests: New file.
48791         * tests/test-chdir.c: New file.
48793         New module 'chdir'.
48794         * modules/chdir: New file.
48795         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48796         (chdir): New declaration.
48797         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48798         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48799         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48800         * tests/test-unistd-c++.cc: Check signature of chdir.
48801         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48802         * modules/chdir-long (Depends-on): Add chdir.
48803         * modules/fchdir (Depends-on): Likewise.
48804         * modules/rename (Depends-on): Likewise.
48805         * modules/savewd (Depends-on): Likewise.
48807         rmdir: Support for mingw, MSVC 9.
48808         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48809         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48811         getcwd: Tweak for MSVC 9.
48812         * lib/unistd.in.h: Update comments.
48813         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48815 2011-09-22  Bruno Haible  <bruno@clisp.org>
48817         strerror_r-posix: Avoid a link error on MSVC.
48818         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48819         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48821 2011-09-22  Bruno Haible  <bruno@clisp.org>
48823         select: Avoid link errors on MSVC.
48824         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48825         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48826         * modules/pselect (Link): Likewise.
48827         * NEWS: Mention the change.
48828         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48829         test-select-stdin against $(LIB_SELECT).
48830         * modules/pselect-tests (Makefile.am): Link test-pselect against
48831         $(LIB_SELECT).
48833 2011-09-22  Bruno Haible  <bruno@clisp.org>
48835         select: Avoid compilation error on MSVC.
48836         * lib/select.c: Don't include <stdbool.h>.
48838 2011-09-21  Bruno Haible  <bruno@clisp.org>
48840         Consolidate all uses of PATH_MAX in *.m4 files.
48841         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48842         macros.
48843         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48844         and gl_PATHMAX_SNIPPET.
48845         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48846         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48847         * modules/chdir-long (Files): Add m4/pathmax.m4.
48848         * modules/getcwd (Files): Likewise.
48850 2011-09-21  Bruno Haible  <bruno@clisp.org>
48852         ftruncate: Un-deprecate, concentrate on Win32 support.
48853         * modules/ftruncate (Status, Notice): Remove sections.
48854         (Depends-on): Add largefile.
48855         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48856         non-mingw platforms.
48857         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48858         include <io.h>.
48859         * modules/perror-tests (Depends-on): Add ftruncate.
48860         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48861         'ftruncate' module.
48863 2011-09-21  Bruno Haible  <bruno@clisp.org>
48865         Add dependencies to new dirent related modules.
48866         * modules/opendir (Depends-on): Add closedir.
48867         * modules/getcwd (Depends-on): Add opendir, closedir.
48868         * modules/dirent-safer-tests (Depends-on): Likewise.
48869         * modules/fdopendir-tests (Depends-on): Likewise.
48870         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48871         * modules/renameat-tests (Depends-on): Likewise.
48873 2011-09-21  Bruno Haible  <bruno@clisp.org>
48875         opendir: Avoid compilation error on mingw.
48876         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48877         * modules/opendir (Depends-on): Add unistd.
48879 2011-09-21  Bruno Haible  <bruno@clisp.org>
48881         ftruncate tests: Avoid a test failure on mingw.
48882         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48884 2011-09-21  Bruno Haible  <bruno@clisp.org>
48886         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48887         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48888         native Windows.
48890 2011-09-21  Bruno Haible  <bruno@clisp.org>
48892         New module 'fdopen'.
48893         * lib/stdio.in.h (fdopen): New declaration.
48894         * lib/fdopen.c: New file.
48895         * m4/fdopen.m4: New file.
48896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48897         REPLACE_FDOPEN.
48898         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48899         REPLACE_FDOPEN.
48900         * modules/fdopen: New file.
48901         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48902         * tests/test-stdio-c++.cc: Check signature of fdopen.
48903         * doc/posix-functions/fdopen.texi: Mention the new module.
48905 2011-09-21  Bruno Haible  <bruno@clisp.org>
48907         unlockpt tests: Avoid test failure on NetBSD 5.1.
48908         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48909         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48911 2011-09-21  Bruno Haible  <bruno@clisp.org>
48913         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48914         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48915         * tests/test-getlogin_r.c (main): Likewise.
48917 2011-09-20  Bruno Haible  <bruno@clisp.org>
48919         time tests: Don't require pid_t.
48920         * doc/posix-headers/time.texi: Revert last change.
48921         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48922         * tests/test-time.c: Comment out the check for pid_t.
48924 2011-09-20  Bruno Haible  <bruno@clisp.org>
48926         fsync tests: Avoid a test failure on mingw.
48927         * tests/test-fsync.c (main): Allow a failure with EIO.
48929 2011-09-20  Bruno Haible  <bruno@clisp.org>
48931         euidaccess: Update comments.
48932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48934 2011-09-20  Bruno Haible  <bruno@clisp.org>
48936         Ensure EBADF returns for socket functions on mingw.
48937         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48938         descriptor is invalid.
48939         * lib/bind.c (rpl_bind): Likewise.
48940         * lib/connect.c (rpl_connect): Likewise.
48941         * lib/getpeername.c (rpl_getpeername): Likewise.
48942         * lib/getsockname.c (rpl_getsockname): Likewise.
48943         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48944         * lib/listen.c (rpl_listen): Likewise.
48945         * lib/recv.c (rpl_recv): Likewise.
48946         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48947         * lib/send.c (rpl_send): Likewise.
48948         * lib/sendto.c (rpl_sendto): Likewise.
48949         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48950         * lib/shutdown.c (rpl_shutdown): Likewise.
48952 2011-09-20  Bruno Haible  <bruno@clisp.org>
48954         select tests: EBADF tests.
48955         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48956         test_bad_fd): New functions.
48957         (test_function): Invoke also test_bad_fd.
48959 2011-09-20  Bruno Haible  <bruno@clisp.org>
48961         Tests for module 'posix_spawn_file_actions_addopen.
48962         * modules/posix_spawn_file_actions_addopen-tests: New file.
48963         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48965         Tests for module 'posix_spawn_file_actions_adddup2'.
48966         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48967         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48969         Tests for module 'posix_spawn_file_actions_addclose'.
48970         * modules/posix_spawn_file_actions_addclose-tests: New file.
48971         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48973 2011-09-20  Bruno Haible  <bruno@clisp.org>
48975         Tests for module 'unlockpt'.
48976         * modules/unlockpt-tests: New file.
48977         * tests/test-unlockpt.c: New file.
48978         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48980         Tests for module 'grantpt'.
48981         * modules/grantpt-tests: New file.
48982         * tests/test-grantpt.c: New file.
48983         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48985 2011-09-20  Bruno Haible  <bruno@clisp.org>
48987         freopen tests: EBADF tests.
48988         * tests/test-freopen.c: Include errno.h, unistd.h.
48989         (main): Add tests for EBADF, commented out for the moment.
48991         fclose tests: EBADF tests.
48992         * tests/test-fclose.c (main): Add tests for EBADF.
48994         fflush tests: EBADF tests.
48995         * tests/test-fflush.c: Include errno.h, macros.h.
48996         (main): Add tests for EBADF.
48998         ftello tests: EBADF tests.
48999         * tests/test-ftello4.sh: New file.
49000         * tests/test-ftello4.c: New file.
49001         * modules/ftello-tests (Files): Add them.
49002         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
49004         fseeko tests: EBADF tests.
49005         * tests/test-fseeko4.sh: New file.
49006         * tests/test-fseeko4.c: New file.
49007         * modules/fseeko-tests (Files): Add them.
49008         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
49010         Tests for function fputc().
49011         * modules/fputc-tests: New file.
49012         * tests/test-fputc.c: New file.
49013         * modules/stdio-tests (Depends-on): Add fputc-tests.
49015         Tests for function fgetc().
49016         * modules/fgetc-tests: New file.
49017         * tests/test-fgetc.c: New file.
49018         * modules/stdio-tests (Depends-on): Add fgetc-tests.
49020         Tests for function fdopen().
49021         * modules/fdopen-tests: New file.
49022         * tests/test-fdopen.c: New file.
49023         * modules/stdio-tests (Depends-on): Add fdopen-tests.
49025         Tests for module 'vdprintf'.
49026         * modules/vdprintf-tests: New file.
49027         * tests/test-vdprintf.c: New file.
49029         Tests for module 'dprintf'.
49030         * modules/dprintf-tests: New file.
49031         * tests/test-dprintf.c: New file.
49033 2011-09-20  Bruno Haible  <bruno@clisp.org>
49035         Tests for module 'ioctl'.
49036         * modules/ioctl-tests: New file.
49037         * tests/test-ioctl.c: New file.
49039 2011-09-20  Bruno Haible  <bruno@clisp.org>
49041         fcntl tests: EBADF tests.
49042         * tests/test-fcntl.c (main): Add more tests for EBADF.
49044 2011-09-20  Bruno Haible  <bruno@clisp.org>
49046         utimensat tests: EBADF tests.
49047         * tests/test-utimensat.c (main): Add tests for EBADF.
49049         renameat tests: EBADF tests.
49050         * tests/test-renameat.c (main): Add tests for EBADF.
49052         mkfifoat tests: EBADF tests.
49053         * tests/test-mkfifoat.c (main): Add tests for EBADF.
49055         readlinkat tests: EBADF tests.
49056         * tests/test-readlinkat.c (main): Add tests for EBADF.
49058         symlinkat tests: EBADF tests.
49059         * tests/test-symlinkat.c (main): Add tests for EBADF.
49061         linkat tests: EBADF tests.
49062         * tests/test-linkat.c (main): Add tests for EBADF.
49064         Tests for module 'faccessat'.
49065         * modules/faccessat-tests: New file.
49066         * tests/test-faccessat.c: New file.
49068         fdopendir tests: EBADF tests.
49069         * tests/test-fdopendir.c (main): Add more tests for EBADF.
49071         openat tests: EBADF tests.
49072         * tests/test-fchownat.c (main): Add tests for EBADF.
49073         * tests/test-fstatat.c (main): Likewise.
49074         * tests/test-mkdirat.c (main): Likewise.
49075         * tests/test-openat.c (main): Likewise.
49076         * tests/test-unlinkat.c (main): Likewise.
49077         * tests/test-fchmodat.c: New file.
49078         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
49079         (Makefile.am): Also run 'test-fchmodat'.
49081 2011-09-20  Bruno Haible  <bruno@clisp.org>
49083         utimens, futimens, fdutimensat tests: EBADF tests.
49084         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
49086         Tests for function fstat().
49087         * modules/fstat-tests: New file.
49088         * tests/test-fstat.c: New file.
49089         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
49091 2011-09-20  Bruno Haible  <bruno@clisp.org>
49093         test-ttyname_r tests: EBADF tests.
49094         * tests/test-ttyname_r.c (main): Add tests for EBADF.
49096         Tests for module 'isatty'.
49097         * modules/isatty-tests: New file.
49098         * tests/test-isatty.c: New file.
49100         Tests for module 'write'.
49101         * modules/write-tests: New file.
49102         * tests/test-write.c: New file.
49104         Tests for module 'read'.
49105         * modules/read-tests: New file.
49106         * tests/test-read.c: New file.
49108         pwrite tests: EBADF tests.
49109         * tests/test-pwrite.c (main): Add tests for EBADF.
49111         pread tests: EBADF tests.
49112         * tests/test-pread.c (main): Add tests for EBADF.
49114         lseek tests: EBADF tests.
49115         * tests/test-lseek.c (main): Add more tests for EBADF.
49117         Tests for module 'ftruncate'.
49118         * modules/ftruncate-tests: New file.
49119         * tests/test-ftruncate.sh: New file.
49120         * tests/test-ftruncate.c: New file.
49122         fsync tests: EBADF tests.
49123         * tests/test-fsync.c (main): Add more tests for EBADF.
49125         fdatasync tests: EBADF tests.
49126         * tests/test-fdatasync.c (main): Add more tests for EBADF.
49128         Tests for module 'fchown'.
49129         * modules/fchown-tests: New file.
49130         * tests/test-fchown.c: New file.
49132         Tests for module 'fchmod'.
49133         * modules/fchmod-tests: New file.
49134         * tests/test-fchmod.c: New file.
49136         fchdir tests: EBADF tests.
49137         * tests/test-fchdir.c (main): Add more tests for EBADF.
49139         dup2 tests: EBADF tests.
49140         * tests/test-dup2.c (main): Add more tests for EBADF.
49142         Tests for module 'dup'.
49143         * modules/dup-tests: New file.
49144         * tests/test-dup.c: New file.
49146         Tests for module 'close'.
49147         * modules/close-tests: New file.
49148         * tests/test-close.c: New file.
49150 2011-09-20  Bruno Haible  <bruno@clisp.org>
49152         Tests for module 'shutdown'.
49153         * modules/shutdown-tests: New file.
49154         * tests/test-shutdown.c: New file.
49156         Tests for module 'setsockopt'.
49157         * modules/setsockopt-tests: New file.
49158         * tests/test-setsockopt.c: New file.
49160         Tests for module 'sendto'.
49161         * modules/sendto-tests: New file.
49162         * tests/test-sendto.c: New file.
49164         Tests for module 'send'.
49165         * modules/send-tests: New file.
49166         * tests/test-send.c: New file.
49168         Tests for module 'recvfrom'.
49169         * modules/recvfrom-tests: New file.
49170         * tests/test-recvfrom.c: New file.
49172         Tests for module 'recv'.
49173         * modules/recv-tests: New file.
49174         * tests/test-recv.c: New file.
49176         Tests for module 'listen'.
49177         * modules/listen-tests: New file.
49178         * tests/test-listen.c: New file.
49180         Tests for module 'getsockopt'.
49181         * modules/getsockopt-tests: New file.
49182         * tests/test-getsockopt.c: New file.
49184         Tests for module 'getsockname'.
49185         * modules/getsockname-tests: New file.
49186         * tests/test-getsockname.c: New file.
49188         Tests for module 'getpeername'.
49189         * modules/getpeername-tests: New file.
49190         * tests/test-getpeername.c: New file.
49192         Tests for module 'connect'.
49193         * modules/connect-tests: New file.
49194         * tests/test-connect.c: New file.
49196         Tests for module 'bind'.
49197         * modules/bind-tests: New file.
49198         * tests/test-bind.c: New file.
49200         accept4 tests: Fix for native Windows.
49201         * tests/test-accept4.c: Include sockets.h.
49202         (main): Invoke gl_sockets_startup.
49203         * modules/accept4-tests (Depends-on): Add sockets.
49205         accept tests: Fix for native Windows.
49206         * tests/test-accept.c: Include sockets.h.
49207         (main): Invoke gl_sockets_startup.
49208         * modules/accept-tests (Depends-on): Add sockets.
49210 2011-09-19  Bruno Haible  <bruno@clisp.org>
49212         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
49213         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
49214         do...while(0).
49215         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
49216         Suggested by Paul Eggert.
49218 2011-09-19  Bruno Haible  <bruno@clisp.org>
49220         sched: Ensure pid_t is defined.
49221         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
49222         not define pid_t.
49223         * lib/sched.in.h: Include <sys/types.h>.
49224         * doc/posix-headers/sched.texi: Mention the pid_t problem.
49225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49227 2011-09-19  Bruno Haible  <bruno@clisp.org>
49229         msvc-inval: Ensure the entire expansion is a single statement.
49230         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
49231         of braces.
49233 2011-09-19  Jim Meyering  <meyering@redhat.com>
49235         tests: use printf, not echo in init.sh's warn_ function
49236         * tests/init.sh (warn_): Use printf, not echo.  The latter would
49237         misbehave when given strings containing a backslash or starting
49238         with e.g., -n.  James Youngman suggested setting IFS.
49240 2011-09-19  Eric Blake  <eblake@redhat.com>
49242         futimens: enhance test
49243         * tests/test-futimens.h (test_futimens): Also check for EBADF on
49244         closed non-negative fd.
49246         date: accept 'hence' as opposite of 'ago'
49247         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
49248         * tests/test-parse-datetime.c (main): Enhance test.
49249         Suggested by Jesse Wilson.
49251 2011-09-19  Jim Meyering  <meyering@redhat.com>
49253         getcwd: don't fail in a deep directory on a system without openat
49254         Before this change, getcwd would fail when called from a directory
49255         of depth PATH_MAX / 3 or greater.  That was due to the fact that
49256         the non-openat implementation used "..", "../..", "../../..", etc.
49257         to access ancestor directories.  With too many, that string would
49258         be longer than PATH_MAX.
49259         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
49260         using gnulib's openat replacement.
49261         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
49262         we're using the replacement function.
49264 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
49266         maint.mk: avoid warnings from perl about missing files
49267         * top/maint.mk (def_sym_regex): Ignore files listed in
49268         $(gl_other_headers_) that do not exist, say because a project
49269         does not use a corresponding module.
49271 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49273         stat: use pathmax.h only if needed
49274         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
49275         This is better for Emacs, which does not have a mingw port and
49276         therefore can avoid the pathmax module.
49278         utimens: remove dependency on dup2
49279         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
49280         to work around the Linux kernel bug.
49281         * modules/utimens (Depends-on): Remove dup2.
49283 2011-09-18  Bruno Haible  <bruno@clisp.org>
49285         inet_ntop, inet_pton: Look for it also in libresolv.
49286         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
49287         libnsl, search for it in libresolv.
49288         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49289         Needed on Solaris 7.
49291 2011-09-18  Bruno Haible  <bruno@clisp.org>
49293         accept, accept4 tests: Avoid link error on Solaris.
49294         * modules/accept-tests (Makefile.am): Link test-accept against
49295         $(LIBSOCKET).
49296         * modules/accept4-tests (Makefile.am): Link test-accept4 against
49297         $(LIBSOCKET).
49299         accept4: Avoid link error on Solaris.
49300         * modules/accept4 (Link): New section.
49302         socket functions: Avoid link errors on Solaris.
49303         * modules/accept (Depends-on): Add socketlib.
49304         (Link): New section.
49305         * modules/bind (Depends-on): Add socketlib.
49306         (Link): New section.
49307         * modules/connect (Depends-on): Add socketlib.
49308         (Link): New section.
49309         * modules/getpeername (Depends-on): Add socketlib.
49310         (Link): New section.
49311         * modules/getsockname (Depends-on): Add socketlib.
49312         (Link): New section.
49313         * modules/getsockopt (Depends-on): Add socketlib.
49314         (Link): New section.
49315         * modules/listen (Depends-on): Add socketlib.
49316         (Link): New section.
49317         * modules/recv (Depends-on): Add socketlib.
49318         (Link): New section.
49319         * modules/recvfrom (Depends-on): Add socketlib.
49320         (Link): New section.
49321         * modules/send (Depends-on): Add socketlib.
49322         (Link): New section.
49323         * modules/sendto (Depends-on): Add socketlib.
49324         (Link): New section.
49325         * modules/setsockopt (Depends-on): Add socketlib.
49326         (Link): New section.
49327         * modules/shutdown (Depends-on): Add socketlib.
49328         (Link): New section.
49329         * modules/socket (Depends-on): Add socketlib.
49330         (Link): New section.
49332 2011-09-18  Bruno Haible  <bruno@clisp.org>
49334         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
49335         * tests/test-ptsname.c (main): Terminate the test if it takes longer
49336         than 5 seconds.
49337         * modules/ptsname-tests (configure.ac): Test for alarm.
49339 2011-09-18  Bruno Haible  <bruno@clisp.org>
49341         posix_spawn_file_actions_add*: Fix module dependencies.
49342         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
49343         posix_spawn_file_actions_init.
49344         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
49345         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
49347 2011-09-18  Bruno Haible  <bruno@clisp.org>
49349         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
49350         * tests/test-rename.h (test_rename): Allow error code EEXIST.
49351         * tests/test-renameat.c (main): Likewise.
49353 2011-09-18  Bruno Haible  <bruno@clisp.org>
49355         Tests for module 'accept4'.
49356         * modules/accept4-tests: New file.
49357         * tests/test-accept4.c: New file.
49359 2011-09-18  Bruno Haible  <bruno@clisp.org>
49361         Tests for module 'accept'.
49362         * modules/accept-tests: New file.
49363         * tests/test-accept.c: New file.
49365 2011-09-18  Bruno Haible  <bruno@clisp.org>
49367         dup2: Support for MSVC.
49368         * lib/dup2.c: Include msvc-inval.h.
49369         (rpl_dup2): Handle invalid parameter notifications during dup2 and
49370         _get_osfhandle calls.
49371         * modules/dup2 (Depends-on): Add msvc-inval.
49372         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
49374         New module 'msvc-inval'.
49375         * lib/msvc-inval.h: New file.
49376         * lib/msvc-inval.c: New file.
49377         * m4/msvc-inval.m4: New file.
49378         * modules/msvc-inval: New file.
49380 2011-09-17  Bruno Haible  <bruno@clisp.org>
49382         Tests for module 'pclose'.
49383         * modules/pclose-tests: New file.
49385         New module 'pclose'.
49386         * lib/stdio.in.h (pclose): New declaration.
49387         * lib/pclose.c: New file.
49388         * m4/pclose.m4: New file.
49389         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
49390         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
49391         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
49392         * modules/pclose: New file.
49393         * modules/popen-tests (Depends-on): Add pclose.
49394         * modules/popen-safer-tests (Depends-on): Likewise.
49395         * doc/posix-functions/pclose.texi: Mention the new module.
49397 2011-09-17  Bruno Haible  <bruno@clisp.org>
49399         popen: Support for MSVC.
49400         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49401         * lib/popen.c (popen): Provide alternate definition for native Windows.
49402         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
49403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
49404         * modules/popen (Depends-on, configure.ac): Update condition.
49405         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
49406         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
49407         fixed.
49409 2011-09-17  Bruno Haible  <bruno@clisp.org>
49411         isnanl, isnand, isnanf: Work around MSVC bug.
49412         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
49414 2011-09-17  Bruno Haible  <bruno@clisp.org>
49416         sys_socket tests: Fix recent mistake.
49417         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
49419 2011-09-17  Bruno Haible  <bruno@clisp.org>
49421         putenv: Support for MSVC.
49422         * modules/putenv (Depends-on): Add environ.
49423         * lib/putenv.c (environ): Disable declaration.
49424         * lib/unistd.in.h: Update comment.
49426 2011-09-17  Bruno Haible  <bruno@clisp.org>
49428         math: Avoid macro redefinition warnings on MSVC.
49429         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49430         Undefine before redefining.
49432 2011-09-17  Bruno Haible  <bruno@clisp.org>
49434         doc: Mention functions which are declared as macros.
49435         * doc/posix-functions/*[fl].texi: Mention that some functions are
49436         defined as macros with arguments only.
49438 2011-09-17  Bruno Haible  <bruno@clisp.org>
49440         Add dependencies to new dirent related modules.
49441         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49442         * modules/fts (Depends-on): Likewise.
49443         * modules/glob (Depends-on): Likewise.
49444         * modules/savedir (Depends-on): Likewise.
49445         * modules/scandir (Depends-on): Likewise.
49446         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49447         * modules/fdopendir (Depends-on): Add opendir.
49449 2011-09-17  Bruno Haible  <bruno@clisp.org>
49451         inet_pton: Support for MSVC on Windows Vista or newer.
49452         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49453         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49454         HAVE_DECL_INET_PTON is defined.
49455         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49456         On platforms with <winsock2.h>, test whether inet_pton is declared in
49457         <ws2tcpip.h>. If so, arrange to replace it.
49458         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49459         REPLACE_INET_PTON.
49460         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49461         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49462         (Depends-on, configure.ac): Update condition.
49463         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49465 2011-09-17  Bruno Haible  <bruno@clisp.org>
49467         inet_ntop: Support for MSVC on Windows Vista or newer.
49468         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49469         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49470         HAVE_DECL_INET_NTOP is defined.
49471         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49472         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49473         <ws2tcpip.h>. If so, arrange to replace it.
49474         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49475         REPLACE_INET_NTOP.
49476         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49477         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49478         (Depends-on, configure.ac): Update condition.
49479         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49481 2011-09-16  Eric Blake  <eblake@redhat.com>
49483         test-fsync: yet another enhancement
49484         * tests/test-fsync.c (main): Also test behavior on read-only text
49485         file.
49487 2011-09-16  Bruno Haible  <bruno@clisp.org>
49489         Enhance fsync, fdatasync tests.
49490         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49491         * tests/test-fdatasync.c (main): Likewise.
49493 2011-09-16  Bruno Haible  <bruno@clisp.org>
49495         Support for MSVC compiler: Ensure mode_t gets defined.
49496         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49497         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49499         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49500         * tests/test-fcntl-h.c: Check that mode_t is defined.
49501         * tests/test-sys_stat.c: Likewise.
49502         * tests/test-sys_types.c: Likewise.
49503         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49504         * doc/posix-headers/sys_stat.texi: Likewise.
49505         * doc/posix-headers/sys_types.texi: Likewise.
49507 2011-09-16  Bruno Haible  <bruno@clisp.org>
49509         sys_stat: Support for MSVC.
49510         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49511         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49512         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49513         MSVC.
49515 2011-09-16  Bruno Haible  <bruno@clisp.org>
49517         Support for MSVC compiler: Ensure off_t gets defined.
49518         * lib/unistd.in.h: Include <sys/types.h>.
49519         * tests/test-fcntl-h.c: Check that off_t is defined.
49520         * tests/test-sys_stat.c: Likewise.
49521         * tests/test-sys_types.c: Likewise.
49523 2011-09-16  Eric Blake  <eblake@redhat.com>
49525         fdatasync: port to Solaris
49526         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49527         * modules/fdatasync (Link): Document it.
49528         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49530         fdatasync: port to MacOS X 10.7
49531         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49532         declared.
49533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49534         * modules/unistd (Makefile.am): Substitute it.
49535         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49536         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49538         fdatasync: minor improvements
49539         * modules/fdatasync (Depends-on): Add condition for fsync.
49540         * lib/fdatasync.c (fdatasync): Add comment.
49541         * tests/test-unistd-c++.cc: Test fdatasync.
49543         unistd: update refs to newer POSIX
49544         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49545         Suggested by Bruno Haible.
49547         fdatasync: new module
49548         * modules/fsync (Description): Document difference to fdatasync.
49549         * modules/fdatasync: New module.
49550         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49551         * lib/fdatasync.c (fdatasync): Likewise.
49552         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49553         defaults.
49554         * modules/unistd (Makefile.am): Set witnesses.
49555         * lib/unistd.in.h (fdatasync): Declare.
49556         * MODULES.html.sh: Document it.
49557         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49558         * modules/fdatasync-tests: New test.
49559         * tests/test-fdatasync.c: Likewise.
49561 2011-09-16  Eric Blake  <eblake@redhat.com>
49563         test-fsync: enhance tests
49564         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49565         * tests/test-fsync.c (main): Enhance test.
49567 2011-09-15  Bruno Haible  <bruno@clisp.org>
49569         Support for MSVC compiler: Ensure ssize_t gets defined.
49570         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49571         * doc/posix-headers/stdio.texi: Likewise.
49572         * modules/stdio (Depends-on): Add ssize_t.
49573         * modules/sys_socket (Depends-on): Likewise.
49574         * modules/sys_types (Depends-on): Likewise.
49575         * modules/sys_uio (Depends-on): Likewise.
49576         * modules/unistd (Depends-on): Likewise.
49577         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49578         * tests/test-sys_types.c: Check that ssize_t is defined.
49580 2011-09-14  Bruno Haible  <bruno@clisp.org>
49582         Avoid using #, the m4 comment starter character, near brackets.
49583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49584         delimiter character in sed expressions.
49585         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49586         Suggested by Eric Blake.
49588         Properly quote AC_CHECK_DECLS' 4th argument.
49589         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49590         argument.
49591         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49592         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49593         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49594         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49595         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49596         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49598         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49599         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49600         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49601         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49602         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49603         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49604         * m4/isinf.m4 (gl_ISINF): Likewise.
49605         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49606         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49607         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49608         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49611         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49612         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49613         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49614         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49615         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49618         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49620         Reported by Eric Blake.
49622         Properly quote AC_CHECK_DECL's 4th argument.
49623         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49624         argument.
49625         * m4/argp.m4 (gl_ARGP): Likewise.
49626         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49627         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49628         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49629         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49630         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49631         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49632         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49633         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49635         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49636         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49637         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49638         Reported by Eric Blake.
49640 2011-09-14  Eric Blake  <eblake@redhat.com>
49642         opendir: avoid compile warning
49643         * lib/opendir.c (includes): Always include errno.h.
49644         Reported by Tatsuro MATSUOKA.
49646 2011-09-14  Jim Meyering  <meyering@redhat.com>
49648         maint.mk: sc_tight_scope: propagate failure from sub-make
49649         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49650         Reported by Martin von Gagern.
49652 2011-09-13  Bruno Haible  <bruno@clisp.org>
49654         tempname: Support for MSVC.
49655         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49656         MSVC.
49657         * modules/tempname (Depends-on): Add fcntl-h.
49659 2011-09-13  Bruno Haible  <bruno@clisp.org>
49661         sys_time: Support for MSVC.
49662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49663         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49664         include <winsock2.h>.
49665         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49666         function declarations that collide with POSIX.
49667         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49668         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49670 2011-09-13  Bruno Haible  <bruno@clisp.org>
49672         stat: Support for MSVC.
49673         * lib/stat.c: Include pathmax.h.
49674         * modules/stat (Depends-on): Add pathmax.
49676         pathmax: Support for native Windows.
49677         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49679 2011-09-12  Bruno Haible  <bruno@clisp.org>
49681         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49682         * lib/dirent.in.h (struct dirent): New type.
49683         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49684         DT_WHT): New macros.
49685         (DIR): New type.
49686         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49687         (readdir, rewinddir): New declarations.
49688         * lib/dirent-private.h: New file.
49689         * lib/opendir.c: New file.
49690         * lib/readdir.c: New file.
49691         * lib/rewinddir.c: New file.
49692         * lib/closedir.c: New file.
49693         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49694         * m4/opendir.m4: New file.
49695         * m4/readdir.m4: New file.
49696         * m4/rewinddir.m4: New file.
49697         * m4/closedir.m4: New file.
49698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49699         REPLACE_CLOSEDIR here.
49700         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49701         readdir, rewinddir are declared.
49702         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49703         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49704         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49705         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49706         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49707         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49708         * modules/opendir: New file.
49709         * modules/readdir: New file.
49710         * modules/rewinddir: New file.
49711         * modules/closedir: New file.
49712         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49713         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49714         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49715         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49716         * NEWS: Mention the 'fchdir' change.
49718 2011-09-11  Bruno Haible  <bruno@clisp.org>
49720         asm-underscore.m4: Support for MSVC.
49721         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49722         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49724 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49726         Doc about crypt functions.
49727         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49728         needing for _GNU_SOURCE to get crypt.
49729         * doc/posix-functions/encrypt.texi: Likewise.
49730         * doc/posix-functions/setkey.texi: Likewise.
49732 2011-09-11  Bruno Haible  <bruno@clisp.org>
49734         doc: Update regarding MSVC 9.
49735         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49736         tested".
49737         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49738         * doc/posix-headers/*.texi: Likewise.
49739         * doc/pastposix-functions/*.texi: Likewise.
49740         * doc/glibc-functions/*.texi: Likewise.
49741         * doc/glibc-headers/*.texi: Likewise.
49743 2011-09-11  Bruno Haible  <bruno@clisp.org>
49745         unistd et al.: Don't assume <unistd.h> exists.
49746         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49747         does not exist.
49748         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49749         exist. But include <stdlib.h>.
49750         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49751         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49752         symlink() does not exist.
49753         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49754         include <io.h> instead.
49755         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49756         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49757         include <direct.h> instead.
49758         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49760         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49761         <io.h> instead.
49762         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49763         correctly if the system does not have hard links.
49764         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49765         <direct.h> instead.
49766         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49767         it when looking for function declarations.
49768         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49769         <direct.h> and <io.h> instead.
49770         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49772 2011-09-11  Bruno Haible  <bruno@clisp.org>
49774         strcase: Support for MSVC.
49775         * modules/strcase (Status, Notice): Remove obsoletion mark.
49776         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49777         * doc/posix-functions/strncasecmp.texi: Likewise.
49779         strings: Don't assume <strings.h> exists.
49780         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49781         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49782         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49783         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49785 2011-09-11  Bruno Haible  <bruno@clisp.org>
49787         dirent: Don't assume <dirent.h> exists.
49788         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49789         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49790         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49791         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49793 2011-09-11  Bruno Haible  <bruno@clisp.org>
49795         Fix wint_t on MSVC.
49796         * lib/wchar.in.h (wint_t): On MSVC, override it.
49797         * lib/wctype.in.h (wint_t): Likewise.
49798         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49799         MSVC.
49800         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49801         * doc/posix-headers/wctype.texi: Likewise.
49803 2011-09-11  Bruno Haible  <bruno@clisp.org>
49805         sys_types: Fix typo.
49806         * lib/sys_types.in.h: Fix typo in comment.
49807         Reported by Paul Eggert.
49809         Support for MSVC compiler: Ensure size_t gets defined.
49810         * modules/strings (Depends-on): Add 'sys_types'.
49811         * modules/sys_uio (Depends-on): Likewise.
49812         * lib/sys_uio.in.h: Update comment.
49814         C++ tests for module 'sys_types'.
49815         * modules/sys_types-c++-tests: New file.
49816         * tests/test-sys_types-c++.cc: New file.
49818         Tests for module 'sys_types'.
49819         * modules/sys_types-tests: New file.
49820         * tests/test-sys_types.c: New file.
49822         New module 'sys_types'.
49823         * lib/sys_types.in.h: New file.
49824         * m4/sys_types_h.m4: New file.
49825         * modules/sys_types: New file.
49826         * doc/posix-headers/sys_types.texi: Mention the new module and the
49827         size_t problem on MSVC 9.
49829 2011-09-11  Bruno Haible  <bruno@clisp.org>
49831         Support for MSVC compiler: Avoid division by a literal 0.
49832         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49833         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49834         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49835         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49836         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49837         * tests/infinity.h: New file.
49838         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49839         on MSVC.
49840         * tests/test-ceilf1.c: Include infinity.h.
49841         (main): Use Infinityf.
49842         * tests/test-ceil1.c: Include infinity.h.
49843         (main): Use Infinityd.
49844         * tests/test-ceill.c: Include infinity.h.
49845         (main): Use Infinityl.
49846         * tests/test-dprintf-posix.c: Include infinity.h.
49847         (test_function): Use Infinityd.
49848         * tests/test-floorf1.c: Include infinity.h.
49849         (main): Use Infinityf.
49850         * tests/test-floor1.c: Include infinity.h.
49851         (main): Use Infinityd.
49852         * tests/test-floorl.c: Include infinity.h.
49853         (main): Use Infinityl.
49854         * tests/test-fprintf-posix.c: Include infinity.h.
49855         (test_function): Use Infinityd.
49856         * tests/test-frexp.c: Include infinity.h.
49857         (main): Use Infinityd.
49858         * tests/test-frexpl.c: Include infinity.h.
49859         (main): Use Infinityl.
49860         * tests/test-isfinite.c: Include infinity.h.
49861         (test_isfinitef): Use Infinityf.
49862         (test_isfinited): Use Infinityd.
49863         (test_isfinitel): Use Infinityl.
49864         * tests/test-isinf.c: Include infinity.h.
49865         (test_isinff): Use Infinityf.
49866         (test_isinfd): Use Infinityd.
49867         (test_isinfl): Use Infinityl.
49868         * tests/test-isnan.c: Include infinity.h.
49869         (test_float): Use Infinityf.
49870         (test_double): Use Infinityd.
49871         (test_long_double): Use Infinityl.
49872         * tests/test-isnanf.h: Include infinity.h.
49873         (main): Use Infinityf.
49874         * tests/test-isnand.h: Include infinity.h.
49875         (main): Use Infinityd.
49876         * tests/test-isnanl.h: Include infinity.h.
49877         (main): Use Infinityl.
49878         * tests/test-ldexpl.c: Include infinity.h.
49879         (main): Use Infinityl.
49880         * tests/test-printf-posix.h: Include infinity.h.
49881         (test_function): Use Infinityd.
49882         * tests/test-roundf1.c: Include infinity.h.
49883         (main): Use Infinityf.
49884         * tests/test-round1.c: Include infinity.h.
49885         (main): Use Infinityd.
49886         * tests/test-roundl.c: Include infinity.h.
49887         (main): Use Infinityl.
49888         * tests/test-signbit.c: Include infinity.h.
49889         (test_signbitf): Use Infinityf.
49890         (test_signbitd): Use Infinityd.
49891         (test_signbitl): Use Infinityl.
49892         * tests/test-snprintf-posix.h: Include infinity.h.
49893         (test_function): Use Infinityd, Infinityl.
49894         * tests/test-sprintf-posix.h: Include infinity.h.
49895         (test_function): Use Infinityd, Infinityl.
49896         * tests/test-truncf1.c: Include infinity.h.
49897         (main): Use Infinityf.
49898         * tests/test-trunc1.c: Include infinity.h.
49899         (main): Use Infinityd.
49900         * tests/test-truncl.c: Include infinity.h.
49901         (main): Use Infinityl.
49902         * tests/test-vasnprintf-posix.c: Include infinity.h.
49903         (test_function): Use Infinityd, Infinityl.
49904         * tests/test-vasprintf-posix.c: Include infinity.h.
49905         (test_function): Use Infinityd, Infinityl.
49906         * modules/ceilf-tests (Files): Add tests/infinity.h.
49907         * modules/ceil-tests (Files): Likewise.
49908         * modules/ceill-tests (Files): Likewise.
49909         * modules/dprintf-posix-tests (Files): Likewise.
49910         * modules/floorf-tests (Files): Likewise.
49911         * modules/floor-tests (Files): Likewise.
49912         * modules/floorl-tests (Files): Likewise.
49913         * modules/fprintf-posix-tests (Files): Likewise.
49914         * modules/frexp-tests (Files): Likewise.
49915         * modules/frexp-nolibm-tests (Files): Likewise.
49916         * modules/frexpl-tests (Files): Likewise.
49917         * modules/frexpl-nolibm-tests (Files): Likewise.
49918         * modules/isfinite-tests (Files): Likewise.
49919         * modules/isinf-tests (Files): Likewise.
49920         * modules/isnan-tests (Files): Likewise.
49921         * modules/isnanf-tests (Files): Likewise.
49922         * modules/isnanf-nolibm-tests (Files): Likewise.
49923         * modules/isnand-tests (Files): Likewise.
49924         * modules/isnand-nolibm-tests (Files): Likewise.
49925         * modules/isnanl-tests (Files): Likewise.
49926         * modules/isnanl-nolibm-tests (Files): Likewise.
49927         * modules/ldexpl-tests (Files): Likewise.
49928         * modules/printf-posix-tests (Files): Likewise.
49929         * modules/roundf-tests (Files): Likewise.
49930         * modules/round-tests (Files): Likewise.
49931         * modules/roundl-tests (Files): Likewise.
49932         * modules/signbit-tests (Files): Likewise.
49933         * modules/snprintf-posix-tests (Files): Likewise.
49934         * modules/sprintf-posix-tests (Files): Likewise.
49935         * modules/truncf-tests (Files): Likewise.
49936         * modules/trunc-tests (Files): Likewise.
49937         * modules/truncl-tests (Files): Likewise.
49938         * modules/vasnprintf-posix-tests (Files): Likewise.
49939         * modules/vasprintf-posix-tests (Files): Likewise.
49940         * modules/vdprintf-posix-tests (Files): Likewise.
49941         * modules/vfprintf-posix-tests (Files): Likewise.
49942         * modules/vprintf-posix-tests (Files): Likewise.
49943         * modules/vsnprintf-posix-tests (Files): Likewise.
49944         * modules/vsprintf-posix-tests (Files): Likewise.
49945         * modules/xprintf-posix-tests (Files): Likewise.
49947 2011-09-11  Bruno Haible  <bruno@clisp.org>
49949         Ensure pid_t gets defined.
49950         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49951         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49952         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49953         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49954         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49955         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49956         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49957         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49958         * tests/test-fcntl-h.c: Check that pid_t is defined.
49959         * tests/test-sched.c: Likewise.
49960         * tests/test-termios.c: Likewise.
49961         * tests/test-time.c: Likewise.
49962         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49963         * doc/posix-headers/signal.texi: Likewise.
49964         * doc/posix-headers/sys_types.texi: Likewise.
49965         * doc/posix-headers/time.texi: Likewise.
49967 2011-09-11  Bruno Haible  <bruno@clisp.org>
49969         acl: Fix compilation on Solaris 10 (older version).
49970         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49971         of ACE_EVERYONE.
49972         * lib/set-mode-acl.c (qset_acl): Likewise.
49973         Reported by Christian Jullien <eligis@orange.fr>.
49975 2011-09-10  Bruno Haible  <bruno@clisp.org>
49977         iconv, unsetenv: Add support for MSVC compiler.
49978         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49979         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49981 2011-09-10  Bruno Haible  <bruno@clisp.org>
49983         *printf: Add support for MSVC compiler.
49984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49985         handles the exception caused by the %n directive. When cross-compiling,
49986         guess no on native Windows.
49987         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49988         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49989         emulate it through vsnprintf.
49990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49991         * doc/posix-functions/dprintf.texi: Update documentation regarding
49992         MSVC 9.
49993         * doc/posix-functions/fprintf.texi: Likewise.
49994         * doc/posix-functions/printf.texi: Likewise.
49995         * doc/posix-functions/snprintf.texi: Likewise.
49996         * doc/posix-functions/sprintf.texi: Likewise.
49997         * doc/posix-functions/swprintf.texi: Likewise.
49998         * doc/posix-functions/vdprintf.texi: Likewise.
49999         * doc/posix-functions/vfprintf.texi: Likewise.
50000         * doc/posix-functions/vprintf.texi: Likewise.
50001         * doc/posix-functions/vsnprintf.texi: Likewise.
50002         * doc/posix-functions/vsprintf.texi: Likewise.
50003         * doc/glibc-functions/asprintf.texi: Likewise.
50004         * doc/glibc-functions/obstack_printf.texi: Likewise.
50005         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50006         * doc/glibc-functions/vasprintf.texi: Likewise.
50008 2011-09-10  Bruno Haible  <bruno@clisp.org>
50010         nocrash: Add support for native Windows.
50011         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
50013 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
50014             Bruno Haible  <bruno@clisp.org>
50016         absolute-header, include-next: Add support for MSVC compiler.
50017         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
50018         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
50019         directory separator in #line directives.
50020         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
50021         recognize also backslash as directory separator in #line directives.
50023 2011-09-08  Jim Meyering  <meyering@redhat.com>
50025         maint.mk: mark the post-release commit log with "maint: " prefix
50026         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
50027         one-line commit-log summary.
50029 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
50030             Bruno Haible  <bruno@clisp.org>
50032         Doc about crypt functions.
50033         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
50034         systems.
50035         * doc/posix-functions/encrypt.texi: Likewise.
50036         * doc/posix-functions/setkey.texi: Likewise.
50038 2011-09-08  Simon Josefsson  <simon@josefsson.org>
50040         * lib/gc.h: Fix copyright header.
50042 2011-09-07  Bruno Haible  <bruno@clisp.org>
50044         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
50045         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
50046         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
50048 2011-09-07  Bruno Haible  <bruno@clisp.org>
50050         openat: Work around compilation error with OSF/1 5.1 DTK cc.
50051         * lib/fopen.c: Use different syntax for include of <stdio.h>.
50052         * lib/freopen.c: Likewise.
50053         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
50054         * lib/lstat.c: Likewise.
50055         * lib/stat.c: Likewise.
50056         * lib/open.c: Use different syntax for include of <fcntl.h>.
50057         * lib/openat.c: Include fcntl.h again, explicitly.
50059 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
50061         parse-datetime: document the newly accepted format
50062         * doc/parse-datetime.texi (Combined date and time of day items):
50063         New section.
50065 2011-09-06  Bruno Haible  <bruno@clisp.org>
50067         acl: Fix a test failure on newer Solaris 10 with ZFS.
50068         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
50069         ENOSYS as no ACL.
50070         Reported by Jim Meyering.
50072 2011-09-06  Bruno Haible  <bruno@clisp.org>
50074         acl: Update for AIX >= 5.3 with NFS.
50075         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
50076         ENOSYS as no ACL.
50078         acl: Fix a test failure on AIX >= 5.3 with NFS.
50079         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
50080         as no ACL.
50082 2011-09-06  Bruno Haible  <bruno@clisp.org>
50084         acl: Fix a test failure on IRIX 6.5 with NFS.
50085         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
50086         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
50087         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
50088         * lib/copy-acl.c (qcopy_acl): Likewise.
50090 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50092         openat: port to AIX 7.1 with large files
50093         AIX 7.1 does a "#define openat open64at" if large files are in use,
50094         so we can't simply #undef openat.  Use the orig_openat trick (similar
50095         to orig_open in lib/open.c) to work around the problem.  Problem
50096         reported by Kevin Brott for GNU tar, in the thread containing
50097         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
50098         * lib/openat.c (__need_system_fcntl_h): Define first.
50099         Include <fcntl.h> and <sys/types.h> before undefining.
50100         (orig_openat) [HAVE_OPENAT]: New inline function.
50101         (openat) [HAVE_OPENAT]: Do not undef.
50102         (rpl_openat): Use orig_openat, not openat.
50104 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
50105             Bruno Haible  <bruno@clisp.org>
50107         acl: Avoid errors on NonStop Kernel.
50108         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
50109         ENOTSUP errors.
50111 2011-09-05  Bruno Haible  <bruno@clisp.org>
50113         acl: Clean up Solaris code.
50114         * lib/acl-internal.h: Remove no-op #if.
50115         * lib/file-has-acl.c: Likewise.
50116         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
50117         * lib/copy-acl.c (qcopy_acl): Likewise.
50119 2011-09-05  Bruno Haible  <bruno@clisp.org>
50121         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
50122         binaries built on the original Solaris 10.
50123         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
50124         trivial.
50126 2011-09-05  Bruno Haible  <bruno@clisp.org>
50128         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50129         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
50130         10.
50131         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
50132         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
50133         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
50134         instead of acl_get, facl_get, acl_set, facl_set.
50136 2011-09-05  Bruno Haible  <bruno@clisp.org>
50138         copy-file: Try unit tests on more file systems.
50139         * tests/test-copy-file-1.sh: New file.
50140         * tests/test-copy-file-2.sh: New file.
50141         * modules/copy-file-tests (Files): Add them.
50142         (Makefile.am): Add them to TESTS.
50144         acl: Try unit tests on more file systems.
50145         * tests/test-file-has-acl-1.sh: New file.
50146         * tests/test-file-has-acl-2.sh: New file.
50147         * tests/test-set-mode-acl-1.sh: New file.
50148         * tests/test-set-mode-acl-2.sh: New file.
50149         * tests/test-copy-acl-1.sh: New file.
50150         * tests/test-copy-acl-2.sh: New file.
50151         * modules/acl-tests (Files): Add them.
50152         (Makefile.am): Add them to TESTS.
50154 2011-09-04  Bruno Haible  <bruno@clisp.org>
50156         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50157         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
50158         10.
50159         (OLD_ALLOW, OLD_DENY): New macros.
50160         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
50161         ACE_ACCESS_ALLOWED_ACE_TYPE.
50162         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
50163         ACE_ACCESS_DENIED_ACE_TYPE.
50164         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
50165         (NEW_ACE_EXECUTE): Fix value.
50166         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
50167         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
50168         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
50169         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
50170         NEW_ACE_SYNCHRONIZE): New macros.
50171         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
50172         instead of acl_fromtext, acl_set, facl_set.
50173         Fixes a coreutils/tests/cp/perm failure.
50175 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
50177         openat: test for fstatat (..., 0) bug
50178         Further testing with tar suggests that fstatat (..., 0)
50179         does not work in general, on AIX 7.1; see
50180         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
50181         So, give up entirely on AIX 7.1's fstatat, and fall back on our
50182         replacement fstatat (which is what older AIX releases were using
50183         anyway).
50184         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
50185         use is now changed to orig_fstatat.  This was probably the right
50186         thing to do anyway.
50187         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
50188         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
50189         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
50190         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
50191         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
50192         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
50193         if the bug is found.
50195         openat: test for fstatat (AT_FDCWD, ..., 0) bug
50196         This tests for another fstatat bug on AIX 7.1:
50197         fstatat (AT_FDCWD, ..., 0) does not work.  See
50198         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
50199         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
50200         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
50201         (rpl_fstatat): Adjust so that it works around either (or both)
50202         bugs if present.
50203         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
50205 2011-09-03  Karl Berry  <karl@gnu.org>
50207         * doc/regex.texi (Character Class Operators): Avoid literal ":"
50208         in index entries.
50210 2011-09-02  Bruno Haible  <bruno@clisp.org>
50212         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
50213         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
50214         values of AR, ARFLAGS, RANLIB.
50215         Reported by John W. Eaton <jwe@gnu.org> for Octave.
50217 2011-09-02  Bruno Haible  <bruno@clisp.org>
50219         Find 'ar' program that fits with --host argument.
50220         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
50222 2011-09-02  Bruno Haible  <bruno@clisp.org>
50224         tests: init.sh: Support any non-GNU diff.
50225         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
50226         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
50227         Solaris 8.
50229 2011-09-02  Bruno Haible  <bruno@clisp.org>
50231         tests: init.sh: work also with any non-GNU diff that supports -u
50232         * tests/init.sh: Relax check for diff -u support.
50233         Rather than checking for GNU diff via --version, simply check
50234         for support for -u itself.  Useful at least on OpenBSD 4.9,
50235         AIX 7.1, IRIX 6.5, and Solaris 10.
50237 2011-09-01  Bruno Haible  <bruno@clisp.org>
50239         strtoimax, strtoumax: Document problem on HP-UX 11.
50240         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
50241         * doc/posix-functions/strtoumax.texi: Likewise.
50243 2011-09-01  Bruno Haible  <bruno@clisp.org>
50245         strtoumax: Avoid link error on OSF/1 with DTK cc.
50246         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
50247         defined as a function.
50248         * modules/strtoumax (Depends-on, configure.ac): Test only whether
50249         strtoumax is defined, not whether it is declared.
50251 2011-09-01  Bruno Haible  <bruno@clisp.org>
50253         strtoimax: Avoid link error on OSF/1 with DTK cc.
50254         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
50255         defined as a function.
50256         * modules/strtoimax (Depends-on, configure.ac): Test only whether
50257         strtoimax is defined, not whether it is declared.
50259 2011-09-01  Bruno Haible  <bruno@clisp.org>
50261         imaxdiv: Avoid link error on OSF/1 with DTK cc.
50262         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
50263         as a function.
50264         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
50265         whether it is declared.
50267 2011-09-01  Bruno Haible  <bruno@clisp.org>
50269         imaxabs: Avoid link error on OSF/1 with DTK cc.
50270         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
50271         as a function.
50272         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
50273         whether it is declared.
50275 2011-09-01  Bruno Haible  <bruno@clisp.org>
50277         Tests for module 'strtoumax'.
50278         * modules/strtoumax-tests: New file.
50279         * tests/test-strtoumax.c: New file.
50281         Tests for module 'strtoimax'.
50282         * modules/strtoimax-tests: New file.
50283         * tests/test-strtoimax.c: New file.
50285         Tests for module 'imaxdiv'.
50286         * modules/imaxdiv-tests: New file.
50287         * tests/test-imaxdiv.c: New file.
50289         Tests for module 'imaxabs'.
50290         * modules/imaxabs-tests: New file.
50291         * tests/test-imaxabs.c: New file.
50293 2011-09-01  Bruno Haible  <bruno@clisp.org>
50295         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
50296         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
50297         pthread_create.
50299 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50301         openat: work around AIX 7.1 fstatat issue
50302         This should fix the problem that was not properly fixed
50303         in the previous change, dated 2011-08-30.
50304         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
50305         __need_system_stat_h defined.
50306         (orig_fstatat) [HAVE_FSTATAT]: New function.
50307         (rpl_fstatat): Go back to the old way of doing things,
50308         except call orig_fstatat instead of fstatat.
50309         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
50310         Remove unnecessary check whether fstatat fills in st_size etc.
50312 2011-09-01  Bruno Haible  <bruno@clisp.org>
50314         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
50315         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
50316         just include the system's header.
50318 2011-08-31  Jim Meyering  <meyering@redhat.com>
50320         tests: avoid spurious assertion failure in test-float.c on ppc64
50321         * tests/test-float.c (test_long_double): Comment out an assertion,
50322         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
50323         with gcc-4.4.4.
50325         maint: indent with spaces, not TABs
50326         I need to get in the habit of running gnulib's "make check".
50327         Both of these would have been caught.
50328         * m4/largefile.m4: Indent with spaces, not TABs.
50329         * lib/parse-datetime.y (iso_8601_time): Likewise.
50330         Spotted by Pádraig Brady.
50332         test-parse-datetime.c: accommodate a relatively strict gcc warning
50333         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
50334         to avoid a warning from gcc's -Werror=missing-declarations.
50335         Insert a few spaces-before-funcall-parenthesis.
50337 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
50339         parse-datetime: accept ISO 8601 date and time rep with "T" separator
50340         The parser now accepts ISO 8601 date-time strings with "T" as the
50341         separator.  It has long parsed dates like "2004-02-29 16:21:42"
50342         with a space between the date and time strings.  Now it also parses
50343         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
50344         variants like "2004-02-29T16:21:42.333-07:00"
50345         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
50346         of day representation using the 'T' separator character.
50347         * doc/parse-datetime.texi (General date syntax): replace use of
50348         deprecated --iso-8601 option with --rfc-3339 in example of date
50349         command output formats that can be parsed.
50350         * tests/test-parse-datetime.c (tm_diff): New function, taken from
50351         lib/parse-datetime.y.
50352         (gmt_offset): New function.
50353         (main): Add additional test cases to validate ISO8601 extended
50354         date and time of day parsing.
50356 2011-08-31  Bruno Haible  <bruno@clisp.org>
50358         freopen: Documentation.
50359         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
50360         name.
50361         Reported by Claudio Bley <claudio.bley@gmail.com>.
50363 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
50365         freopen: Don't crash if the filename argument is NULL.
50366         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
50367         NULL.
50369 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50371         openat: work around AIX 7.1 fstatat bug
50372         Problem reported by Kevin Brott for GNU tar, in the thread containing
50373         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
50374         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
50375         FSTATAT_ST_SIZE_ETC_BROKEN.
50376         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
50377         rpl_fstatat.
50378         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
50379         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
50380         AC_CHECK_FUNCS_ONCE for fstatat.
50381         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
50382         fchmodat, mkdirat, openat and unlinkat.
50384 2011-08-30  Bruno Haible  <bruno@clisp.org>
50386         Avoid endless recursions if config.h includes some header files.
50387         * lib/fopen.c (__need_FILE): Define already before including config.h.
50388         * lib/freopen.c (__need_FILE): Likewise.
50389         * lib/open.c (__need_system_fcntl_h): Likewise.
50390         * lib/stat.c (__need_system_sys_stat_h): Likewise.
50391         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
50392         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
50394 2011-08-25  Karl Berry  <karl@gnu.org>
50396         * config/srclist.txt (ylwrap): new try.
50397         * build-aux/ylwrap: new file.
50399 2011-08-23  Bruno Haible  <bruno@clisp.org>
50401         tmpdir: Use a good default directory on native Windows.
50402         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
50403         (P_tmpdir): Default to _P_tmpdir on native Windows.
50404         (path_search): On native Windows, try the value returned by GetTempPath
50405         before trying P_tmpdir.
50406         * modules/tmpdir (Depends-on): Add pathmax.
50407         Suggested by John Darrington <john@darrington.wattle.id.au>.
50409 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
50411         doc: fix typo in README-release
50412         * top/README-release: Capitalize first word of a sentence.
50414 2011-08-19  Jim Meyering  <meyering@redhat.com>
50416         fts: do not exhaust memory when processing million-entry directories
50417         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
50418         directory would require about 256*N bytes of memory.  Thus, it was
50419         easy to construct a directory too large to be processed by any of
50420         those tools.  With this change, fts' maximum memory utilization is
50421         now limited to around 30MB.
50422         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50423         (fts_read): When we've processed the final entry (i.e., when
50424         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50425         using the parent entry to read any remaining entries.  Dispatch
50426         depending on what fts_build returns:
50427         - NULL+stop, aka failure: stop
50428         - NULL otherwise: move up in the dir hierarchy
50429         - non-NULL: handle this new entry
50430         (fts_build): Declare and use new local, continue_readdir.
50431         Prepare to be called from fts_read, when the entries
50432         from a partially-read directory have just been exhausted.
50433         In that case, we'll skip the opendir and instead use the parent's
50434         fts_dirp and derive dir_fd from that.
50435         Finally, in the readdir loop, if we read max_entries entries,
50436         exit the loop ensuring *not* to call closedir.  This is required
50437         so that fts_dirp can be reused on a subsequent call.
50438         Prompted by Ben England's report of memory exhaustion in find
50439         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50441         maint: fts: move decl of `dp' down into while loop; split a long line
50442         * lib/fts.c (fts_build): No semantic change.
50444         fts: add/use new struct member, fts_dirp
50445         We are about to use this to manage any directory with
50446         too many entries to read all of them into memory at once.
50447         To do that, we'll need to save the DIR* pointer in each
50448         affected FTSENT struct.
50449         * lib/fts_.h: Include <dirent.h>.
50450         (struct FTSENT) [fts_dirp]: New member.
50451         * lib/fts.c (closedir_and_clear): Define.
50452         Use it in place of closedir so that we are sure to
50453         clear the new fts_dirp member when done with it.
50454         (fts_alloc): Initialize the new member.
50455         (fts_lfree): Free, if needed.
50457         maint: fts: give __opendir2 a new parameter and rename
50458         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50459         than surreptitiously using sole caller's "dir_fd".
50460         (fts_opendir): Rename from __opendir2.
50462         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50463         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50465         maint: fts.c: correct off-by-one indentation
50466         * lib/fts.c (fts_build): Correct indentation, change style
50467         of a couple of block comments, and bracing style.
50469         maint: fts.c: move __opendir2 #define "up" out of function body
50470         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50472         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50473         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50474         out for a long time and besides was useful only on BSD systems.
50476 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50478         regex: port to Stratus OpenVOS
50479         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50480         define to empty, rather than attempting nonportable optimizations.
50481         Problem reported by Paul Green in:
50482         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50483         and fix suggested by Eric Blake in:
50484         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50486 2011-08-17  Eric Blake  <eblake@redhat.com>
50488         getcwd: fix test failures on mingw
50489         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50490         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50491         test if long directory cannot be created, and allow mingw errno.
50493         getcwd-lgpl: fix m4 to match relaxed test for BSD
50494         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50495         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50496         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50497         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50498         signature problem.
50500         getcwd: fix compilation on mingw64
50501         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50502         getcwd.
50503         Reported by Marc-André Lureau.
50505         pipe2: silence compiler warning
50506         * lib/pipe2.c (pipe2): Hide label if it is not used.
50508 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50510         relocatable-prog: fix link error
50511         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50512         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50513         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50514         into modules/relocatable-lib without noticing that
50515         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50516         also needs to build relocatable.c.
50518 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50520         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50522         shell code: it contained a 'break' that was not in a loop.
50523         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50524         via a shell-language loop; this may have been true in old Autoconf
50525         versions, but it's not true in Autoconf 2.68.  I found this bug
50526         when testing coreutils git on Solaris 8, whose shell complains
50527         about the syntax error.
50529 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50531         * lib/base64.c: Fix comment to reference RFC 4648.
50532         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50533         <gvtulder@gmail.com>.
50535 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50537         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50539         po/Makefile.in.in: fix make -q problem
50540         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50541         rule, since there's no file named 'check-macro-version' and its
50542         use as a file breaks make -q.
50543         (all): Don't depend on check-macro-version.
50544         (CHECK_MACRO_VERSION): New macro.
50545         (stamp-po): Use it.
50547         configmake: fix make -q problem
50548         * modules/configmake (configmake.h): Update configmake.h's time stamp
50549         even if the file does not change.  Otherwise, 'make -q' fails.
50550         Problem reported by Simon Josefsson in
50551         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50553 2011-08-11  Jim Meyering  <meyering@redhat.com>
50555         git-version-gen: correct the advice in a comment
50556         * build-aux/git-version-gen: Correct comment.
50557         Don't recommend to list .tarball-version in .gitignore.
50559 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50561         base64: fix off-by-one buffer size bug
50562         Problem and (trivial) fix reported by Gijs van Tulder in
50563         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50564         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50565         * tests/test-base64.c (main): Catch the bug.
50567 2011-08-10  Eric Blake  <eblake@redhat.com>
50569         closein: correct comments
50570         * lib/closein.c (close_stdin): Improve comments.
50572 2011-08-09  Bruno Haible  <bruno@clisp.org>
50574         More tests for 'fseeko'.
50575         * tests/test-fseeko3.c: New file, from Eric Blake.
50576         * tests/test-fseeko3.sh: New file.
50577         * modules/fseeko-tests (Files): Add them.
50578         (TESTS): Add test-fseeko3.sh.
50579         (check_PROGRAMS): Add test-fseeko3.
50581 2011-08-09  Eric Blake  <eblake@redhat.com>
50583         fseeko: remove unneeded hack
50584         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50586         fseeko: fix bug on glibc
50587         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50588         Reported by John W. Eaton.
50590 2011-08-08  Bruno Haible  <bruno@clisp.org>
50592         unictype/base: Fix interoperability with preinstalled libunistring.
50593         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50594         Reported by Simon Josefsson.
50596 2011-08-08  Bruno Haible  <bruno@clisp.org>
50598         iswblank: Detect declaration correctly.
50599         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50600         AC_CHECK_DECLS invocation.
50602 2011-08-08  Bruno Haible  <bruno@clisp.org>
50604         tcgetsid: Detect declaration correctly.
50605         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50606         AC_CHECK_DECLS invocation.
50607         Reported by Simon Josefsson.
50609 2011-08-08  Eric Blake  <eblake@redhat.com>
50611         largefile: fix typo that regressed large file support
50612         * modules/largefile (configure.ac-early): Fix section name.
50614 2011-08-06  Karl Berry  <karl@gnu.org>
50616         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50617         a separate module.
50619 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50621         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50622         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50623         get prototype for free.
50625 2011-08-04  Bruno Haible  <bruno@clisp.org>
50627         Tests for module 'pathmax'.
50628         * modules/pathmax-tests: New file.
50629         * tests/test-pathmax.c: New file.
50631         canonicalize-lgpl: Support larger filenames on the Hurd.
50632         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50633         Reported by Paul Eggert.
50635         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50636         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50637         * lib/chdir-long.h: Include pathmax.h.
50638         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50639         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50640         (PATH_MAX): Remove code that is done by pathmax.h.
50641         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50642         * lib/tmpfile.c: Add a comment.
50643         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50644         * modules/chdir-long (Depends-on): Add pathmax.
50645         * modules/getcwd (Depends-on): Add pathmax.
50646         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50647         is not defined.
50648         * doc/posix-headers/limits.texi: Mention the pathmax module.
50649         * NEWS: Mention the change.
50651 2011-08-02  Bruno Haible  <bruno@clisp.org>
50653         pthread_sigmask: Actually use results of gl_THREADLIB.
50654         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50655         gl_THREADLIB, not gl_[]THREADLIB.
50656         Reported by Eric Blake.
50658 2011-08-02  Jim Meyering  <meyering@redhat.com>
50660         maint.mk: relax the default _gl_TS_function_match regexp
50661         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50662         space between function name and "(" in an "extern" declaration.
50663         That would fail to match a decl with no space there: extern void foo();
50665 2011-07-31  Iain Nicol  <iain@thenicols.net>
50667         git-version-gen: document that EXTRA_DIST must include .version
50668         * build-aux/git-version-gen: In the how-to-use comment, document
50669         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50670         will fail when run from an unpacked distribution tarball.
50672 2011-08-01  Bruno Haible  <bruno@clisp.org>
50674         wctype-h: Fix last change.
50675         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50676         REPLACE_TOWLOWER to 0.
50677         Reported by Sam Steingold <sds@gnu.org>.
50679 2011-07-31  Bruno Haible  <bruno@clisp.org>
50681         frexpl: Update autoconf test.
50682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50683         according to changes of 2011-06-20.
50685 2011-07-31  Bruno Haible  <bruno@clisp.org>
50687         sys_utsname: Add support for Minix.
50688         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50689         <sys/utsname.h>.
50690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50691         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50693 2011-07-31  Bruno Haible  <bruno@clisp.org>
50695         strings: Add support for Minix.
50696         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50697         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50698         * doc/posix-headers/strings.texi: Document the Minix problem.
50700 2011-07-31  Bruno Haible  <bruno@clisp.org>
50702         wctype-h: Add support for Minix.
50703         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50704         REPLACE_TOWLOWER.
50705         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50706         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50707         REPLACE_ISWCNTRL.
50709 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50711         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50712         This is a performance improvement for 64-bit hosts: it causes the
50713         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50715 2011-07-31  Bruno Haible  <bruno@clisp.org>
50717         stdioext: Add support for Minix.
50718         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50719         * lib/fpurge.c (fpurge): Likewise.
50720         * lib/freadahead.c (freadahead): Likewise.
50721         * lib/freadable.c (freadable): Likewise.
50722         * lib/freading.c (freading): Likewise.
50723         * lib/freadptr.c (freadptr): Likewise.
50724         * lib/freadseek.c (freadptrinc): Likewise.
50725         * lib/fseeko.c (rpl_fseeko): Likewise.
50726         * lib/fseterr.c (fseterr): Likewise.
50727         * lib/fwritable.c (fwritable): Likewise.
50728         * lib/fwriting.c (fwriting): Likewise.
50729         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50730         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50732 2011-07-31  Bruno Haible  <bruno@clisp.org>
50734         errno: Port to Minix.
50735         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50736         ECONNABORTED are defined.
50737         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50738         GNULIB_defined_ECONNABORTED): New macros.
50739         * lib/strerror-override.h (strerror_override): Test also
50740         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50741         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50742         ECONNABORTED.
50743         * doc/posix-headers/errno.texi: Mention the Minix problem.
50745 2011-07-31  Bruno Haible  <bruno@clisp.org>
50747         Work around declaration collisions on Minix.
50748         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50749         defined, set REPLACE_MBSINIT.
50750         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50751         defined, set REPLACE_MBRTOWC.
50752         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50753         set REPLACE_MBRLEN.
50754         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50755         defined, set REPLACE_MBSRTOWCS.
50756         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50757         defined, set REPLACE_WCRTOMB.
50758         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50759         defined, set REPLACE_WCSRTOMBS.
50761 2011-07-31  Bruno Haible  <bruno@clisp.org>
50763         Add support for Minix with ACK compiler.
50764         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50765         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50766         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50768 2011-07-31  Bruno Haible  <bruno@clisp.org>
50770         Documentation about Minix.
50771         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50772         * doc/glibc-headers/*.texi: Likewise.
50773         * doc/posix-functions/*.texi: Likewise.
50774         * doc/glibc-functions/*.texi: Likewise.
50776 2011-07-31  Bruno Haible  <bruno@clisp.org>
50778         snippet/warn-on-use: Fix indentation.
50779         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50781 2011-07-25  Jim Meyering  <meyering@redhat.com>
50783         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50784         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50785         commands.
50787 2011-07-27  Jim Meyering  <meyering@redhat.com>
50789         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50790         * top/maint.mk (gl_extract_significant_defines_): Now that
50791         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50792         gnulib/lib/signal.in.h, and now that we recommend to
50793         define-if-undefined those two symbols in application code,
50794         we must filter them out of the "significant" list.
50795         This avoids a "make syntax-check" failure in coreutils.
50797 2011-07-26  Eric Blake  <eblake@redhat.com>
50799         warnings: add comments about previous patch
50800         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50801         * m4/include_next.m4: Likewise.
50802         * m4/warn-on-use.m4: Likewise.
50803         * m4/warnings.m4: Likewise, and simplify use.
50804         Suggested by Stefano Lattarini.
50806         include-next, warnings: support older autoconf
50807         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50808         AS_VAR_PUSHDEF in a way that works with older autoconf.
50809         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50810         Reported by Daniel P. Berrange.
50812 2011-07-25  Bruno Haible  <bruno@clisp.org>
50814         fseek, ftell: Fix doc.
50815         * doc/posix-functions/fseek.texi: Reword statement about
50816         AC_SYS_LARGEFILE.
50817         * doc/posix-functions/ftell.texi: Likewise.
50819 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50820             Bruno Haible  <bruno@clisp.org>
50822         Add dependencies to the 'largefile' module.
50823         * modules/fopen (Depends-on): Add 'largefile'.
50824         * modules/freopen (Depends-on): Likewise.
50825         * modules/fseeko (Depends-on): Likewise.
50826         * modules/ftello (Depends-on): Likewise.
50827         * modules/glob (Depends-on): Likewise.
50828         * modules/lseek (Depends-on): Likewise.
50829         * modules/lstat (Depends-on): Likewise.
50830         * modules/mkostemp (Depends-on): Likewise.
50831         * modules/mkostemps (Depends-on): Likewise.
50832         * modules/mkstemp (Depends-on): Likewise.
50833         * modules/mkstemps (Depends-on): Likewise.
50834         * modules/open (Depends-on): Likewise.
50835         * modules/openat (Depends-on): Likewise.
50836         * modules/pread (Depends-on): Likewise.
50837         * modules/pwrite (Depends-on): Likewise.
50838         * modules/scandir (Depends-on): Likewise.
50839         * modules/stat (Depends-on): Likewise.
50840         * modules/tmpfile (Depends-on): Likewise.
50841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50842         since the containing module now depends on the largefile module.
50843         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50844         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50845         off_t is fixed by gnulib.
50846         * doc/posix-functions/freopen.texi: Likewise.
50847         * doc/posix-functions/fseeko.texi: Likewise.
50848         * doc/posix-functions/fstatat.texi: Likewise.
50849         * doc/posix-functions/ftello.texi: Likewise.
50850         * doc/posix-functions/glob.texi: Likewise.
50851         * doc/posix-functions/lseek.texi: Likewise.
50852         * doc/posix-functions/lstat.texi: Likewise.
50853         * doc/posix-functions/mkstemp.texi: Likewise.
50854         * doc/posix-functions/open.texi: Likewise.
50855         * doc/posix-functions/openat.texi: Likewise.
50856         * doc/posix-functions/pread.texi: Likewise.
50857         * doc/posix-functions/pwrite.texi: Likewise.
50858         * doc/posix-functions/scandir.texi: Likewise.
50859         * doc/posix-functions/stat.texi: Likewise.
50860         * doc/posix-functions/tmpfile.texi: Likewise.
50861         * doc/glibc-functions/mkostemp.texi: Likewise.
50862         * doc/glibc-functions/mkostemps.texi: Likewise.
50863         * doc/glibc-functions/mkstemps.texi: Likewise.
50865 2011-07-25  Bruno Haible  <bruno@clisp.org>
50867         fcntl: Move AC_LIBOBJ invocation to module description.
50868         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50869         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50871         fcntl: Remove call-in from fchdir.m4.
50872         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50875         dup3: Remove potential call-in from fchdir.m4.
50876         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50879         dup2: Move AC_LIBOBJ invocation to module description.
50880         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50881         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50882         Don't invoke AC_LIBOBJ.
50883         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50885         dup2: Remove call-in from fchdir.m4.
50886         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50889         fclose: Move AC_LIBOBJ invocation to module description.
50890         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50891         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50892         to 1.
50893         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50895         fclose: Remove call-in from close.m4.
50896         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50897         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50899         close: Move AC_LIBOBJ invocation to module description.
50900         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50901         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50902         1.
50903         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50905         close: Remove call-in from fchdir.m4.
50906         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50909         open: Move AC_LIBOBJ invocation to module description.
50910         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50911         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50912         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50914         open: Remove call-in from fchdir.m4.
50915         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50918         fchdir: Start to remove gl_REPLACE_* idiom.
50919         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50920         (gl_FUNC_FCHDIR): Invoke it.
50922 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50924         * lib/ftell.c (ftell): Comment out cast.
50926         close: use gl_REPLACE_FCLOSE only if defined
50927         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50928         is defined.  The close module doesn't depend on the fclose module
50929         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50930         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50931         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50933 2011-07-24  Jim Meyering  <meyering@redhat.com>
50935         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50936         * tests/test-select.h (test_function): Declare as "static".
50938 2011-07-24  Bruno Haible  <bruno@clisp.org>
50940         doc: Mention the effects of AC_SYS_LARGEFILE.
50941         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50942         on this function.
50943         * doc/posix-functions/aio_error.texi: Likewise.
50944         * doc/posix-functions/aio_fsync.texi: Likewise.
50945         * doc/posix-functions/aio_read.texi: Likewise.
50946         * doc/posix-functions/aio_return.texi: Likewise.
50947         * doc/posix-functions/aio_suspend.texi: Likewise.
50948         * doc/posix-functions/aio_write.texi: Likewise.
50949         * doc/posix-functions/fgetpos.texi: Likewise.
50950         * doc/posix-functions/fopen.texi: Likewise.
50951         * doc/posix-functions/freopen.texi: Likewise.
50952         * doc/posix-functions/fsetpos.texi: Likewise.
50953         * doc/posix-functions/fstatvfs.texi: Likewise.
50954         * doc/posix-functions/ftruncate.texi: Likewise.
50955         * doc/posix-functions/ftw.texi: Likewise.
50956         * doc/posix-functions/getrlimit.texi: Likewise.
50957         * doc/posix-functions/glob.texi: Likewise.
50958         * doc/posix-functions/lio_listio.texi: Likewise.
50959         * doc/posix-functions/lockf.texi: Likewise.
50960         * doc/posix-functions/mkstemp.texi: Likewise.
50961         * doc/posix-functions/mmap.texi: Likewise.
50962         * doc/posix-functions/nftw.texi: Likewise.
50963         * doc/posix-functions/openat.texi: Likewise.
50964         * doc/posix-functions/opendir.texi: Likewise.
50965         * doc/posix-functions/posix_fadvise.texi: Likewise.
50966         * doc/posix-functions/posix_fallocate.texi: Likewise.
50967         * doc/posix-functions/pread.texi: Likewise.
50968         * doc/posix-functions/pwrite.texi: Likewise.
50969         * doc/posix-functions/readdir.texi: Likewise.
50970         * doc/posix-functions/readdir_r.texi: Likewise.
50971         * doc/posix-functions/rewinddir.texi: Likewise.
50972         * doc/posix-functions/scandir.texi: Likewise.
50973         * doc/posix-functions/seekdir.texi: Likewise.
50974         * doc/posix-functions/setrlimit.texi: Likewise.
50975         * doc/posix-functions/statvfs.texi: Likewise.
50976         * doc/posix-functions/telldir.texi: Likewise.
50977         * doc/posix-functions/tmpfile.texi: Likewise.
50978         * doc/posix-functions/truncate.texi: Likewise.
50979         * doc/glibc-functions/fallocate.texi: Likewise.
50980         * doc/glibc-functions/fstatfs.texi: Likewise.
50981         * doc/glibc-functions/fts_children.texi: Likewise.
50982         * doc/glibc-functions/fts_read.texi: Likewise.
50983         * doc/glibc-functions/getdirentries.texi: Likewise.
50984         * doc/glibc-functions/mkostemp.texi: Likewise.
50985         * doc/glibc-functions/mkostemps.texi: Likewise.
50986         * doc/glibc-functions/mkstemps.texi: Likewise.
50987         * doc/glibc-functions/preadv.texi: Likewise.
50988         * doc/glibc-functions/pwritev.texi: Likewise.
50989         * doc/glibc-functions/sendfile.texi: Likewise.
50990         * doc/glibc-functions/statfs.texi: Likewise.
50992 2011-07-24  Bruno Haible  <bruno@clisp.org>
50994         doc: Fix typo.
50995         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50997 2011-07-24  Bruno Haible  <bruno@clisp.org>
50999         doc: Mention fsusage.
51000         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
51002 2011-07-24  Bruno Haible  <bruno@clisp.org>
51004         doc: Mention new glibc headers and functions.
51005         * doc/glibc-headers/gshadow.texi: New file.
51006         * doc/glibc-functions/endsgent.texi: New file.
51007         * doc/glibc-functions/fgetsgent.texi: New file.
51008         * doc/glibc-functions/fgetsgent_r.texi: New file.
51009         * doc/glibc-functions/getsgent.texi: New file.
51010         * doc/glibc-functions/getsgent_r.texi: New file.
51011         * doc/glibc-functions/getsgnam.texi: New file.
51012         * doc/glibc-functions/getsgnam_r.texi: New file.
51013         * doc/glibc-functions/putsgent.texi: New file.
51014         * doc/glibc-functions/setsgent.texi: New file.
51015         * doc/glibc-functions/sgetsgent.texi: New file.
51016         * doc/glibc-functions/sgetsgent_r.texi: New file.
51017         * doc/glibc-functions/malloc_info.texi: New file.
51018         * doc/glibc-functions/preadv.texi: New file.
51019         * doc/glibc-functions/pwritev.texi: New file.
51020         * doc/glibc-functions/register_printf_modifier.texi: New file.
51021         * doc/glibc-functions/register_printf_specifier.texi: New file.
51022         * doc/glibc-functions/register_printf_type.texi: New file.
51023         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
51024         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
51025         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
51026         * doc/glibc-functions/pthread_getname_np.texi: New file.
51027         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
51028         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
51029         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
51030         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
51031         * doc/glibc-functions/pthread_setname_np.texi: New file.
51032         * doc/glibc-functions/pthread_sigqueue.texi: New file.
51033         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
51034         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
51035         * doc/glibc-functions/qsort_r.texi: New file.
51036         * doc/glibc-functions/quick_exit.texi: New file.
51037         * doc/glibc-functions/syncfs.texi: New file.
51038         * doc/gnulib.texi: Include them.
51039         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
51040         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
51041         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
51042         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
51043         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
51044         * doc/glibc-functions/execvpe.texi: Likewise.
51046 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51048         ftell: don't include <unistd.h>
51049         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
51050         guaranteed to define off_t, and the ftell module depends on the
51051         stdio module.
51053         ftell: do not assume wraparound signed arithmetic
51054         * lib/ftell.c: Include <limits.h>.
51055         (ftell): Don't assume wraparound signed arithmetic.
51057 2011-07-24  Bruno Haible  <bruno@clisp.org>
51059         close: No longer depend on module 'fclose'.
51060         * modules/close (Depends-on): Remove fclose.
51061         * NEWS: Mention the change.
51062         Suggested by Sam Steingold <sds@gnu.org>.
51064 2011-07-24  Bruno Haible  <bruno@clisp.org>
51066         fsusage: Enable large volume support on AIX >= 5.2.
51067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
51068         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
51069         instead of STAT_STATVFS.
51070         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
51072         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
51073         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
51074         f_blocks field only on MacOS X.
51076         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
51077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
51078         * modules/fsusage (Depends-on): Add largefile.
51080 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51082         * README: Modernize discussion of signed integers.
51083         Assuming overflow wraparound is no longer safe.
51084         Mention ones' complement and signed magnitude.
51086 2011-07-22  Bruno Haible  <bruno@clisp.org>
51088         select tests, pselect tests: Refactor.
51089         * tests/test-select.h: New file, extracted from tests/test-select.c.
51090         (select_fn): New type.
51091         (test, do_select, do_select_nowait, do_select_wait, test_tty,
51092         test_connect_first, test_accept_first, test_pair, test_socket_pair,
51093         test_pipe): Add my_select argument.
51094         (test_function): Renamed from main. Add my_select argument.
51095         * tests/test-select.c: Move most code to tests/test-select.h. Include
51096         test-select.h.
51097         * modules/select-tests (Files): Add tests/test-select.h.
51098         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
51099         (my_select, main): New functions.
51100         * modules/pselect-tests (Files): Add tests/test-select.h,
51101         tests/macros.h, tests/signature.h.
51102         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
51103         (configure.ac): Check for <sys/wait.h>.
51105 2011-07-22  Bruno Haible  <bruno@clisp.org>
51107         sys_select tests: Check the signature of FD_*.
51108         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
51109         signature tests from here...
51110         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
51111         here.
51112         * modules/sys_select-tests (Files): Add tests/signature.h.
51114 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51116         largefile: new module, replacing large-inode
51117         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
51118         * MODULES.html.sh: Add largefile, remove large-inode.
51119         * modules/largefile, m4/largefile.m4: New files.
51120         * modules/large-inode, m4/large-inode.m4: Remove.
51122         fsusage: port to MacOS X 10.7 with 4 TiB file systems
51123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
51124         implementations that use only 32 bits to count blocks.
51125         On typical hosts with 1024-byte blocks, this fails with file
51126         systems as small as 4 TiB.  Problem reported by Herb Wartens
51127         <http://debbugs.gnu.org/9140> and this should also fix a similar
51128         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
51130         large-inode: New module
51131         * MODULES.html.sh: Add it.
51132         * modules/large-inode, m4/large-inode.m4: New files.
51134         extensions: Enable extensions on MacOS X 10.5 and later.
51135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
51137 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
51139         file-has-acl: use acl_extended_file_nofollow if available
51140         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
51141         (acl_extended_file): New macro.
51142         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
51143         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
51145 2011-07-21  Bruno Haible  <bruno@clisp.org>
51147         Declare system functions in a way that works with C++.
51148         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
51149         declare fdopendir as extern "C".
51150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
51151         declare frexpl as extern "C".
51152         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
51153         declare gai_strerror as extern "C".
51154         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
51155         programs, declare gai_strerror as extern "C".
51156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
51157         declare getlogin_r as extern "C".
51158         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
51159         as extern "C".
51160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
51161         declare ldexpl as extern "C".
51162         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
51163         as extern "C".
51164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
51165         program, declare getmntinfo as extern "C".
51166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
51167         stpncpy as extern "C".
51168         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
51169         program, declare __xpg_strerror_r as extern "C".
51170         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
51171         strndup as extern "C".
51172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
51173         declare memset and bzero as extern "C".
51174         Reported by Sam Steingold <sds@gnu.org>.
51176 2011-07-12  Jim Meyering  <meyering@redhat.com>
51178         maint.mk: prohibit inclusion of "verify.h" without use
51179         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
51181 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51183         timer-time: A new module to check for timer_settime()
51184         * m4/timer_time.m4: Check for the posix function.
51185         * modules/timer-time: Add the new module.
51186         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
51187         Mention it.
51189 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
51190             Bruno Haible  <bruno@clisp.org>
51192         pthread_sigmask: assume POSIX threads if --avoid=threadlib
51193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
51194         not defined, assume POSIX threads and look for pthread_sigmask in
51195         $LIBS, without changing $CPPFLAGS.
51197 2011-07-19  Bruno Haible  <bruno@clisp.org>
51199         strstr: Update cross-compilation guess.
51200         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
51201         CPUs, guess no, in view of glibc
51202         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
51203         Suggested by Eric Blake. Reported by Reuben Thomas.
51205 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51207         getopt-gnu: suppress core dumps from detection code
51208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
51209         to suppress core dumps that may well occur on glibc systems.
51210         * modules/getopt-gnu: Depend on nocrash.
51212 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51214         pthread_sigmask: ensure usleep is declared
51215         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
51216         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
51218 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51220         doc: Document NonStop portability issues.
51221         * doc/posix-functions/sigaction.texi (sigaction):
51222         * doc/posix-headers/signal.texi (signal.h):
51223         Document NonStop.  See Joachim Schmitz in
51224         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
51226 2011-07-15  Bruno Haible  <bruno@clisp.org>
51228         ffsl, ffsll: Avoid unportable behaviour.
51229         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
51231 2011-07-15  Bruno Haible  <bruno@clisp.org>
51233         ffs: More tests.
51234         * tests/test-ffs.c (NBITS): New macro.
51235         (main): Add more tests.
51236         * tests/test-ffsl.c (NBITS): New macro.
51237         (main): Add more tests.
51238         * tests/test-ffsll.c (NBITS): New macro.
51239         (main): Add more tests.
51241 2011-07-15  Eric Blake  <eblake@redhat.com>
51243         ffsl, ffsll: new modules
51244         * modules/ffsl: New file.
51245         * modules/ffsll: Likewise.
51246         * m4/ffsl.m4: Likewise.
51247         * m4/ffsll.m4: Likewise.
51248         * lib/ffsl.c: Likewise.
51249         * lib/ffsl.h: Likewise.
51250         * lib/ffsll.c: Likewise.
51251         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
51252         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
51253         * modules/string (Makefile.am): Substitute witnesses.
51254         * lib/strings.in.h (ffsl, ffsll): Declare.
51255         * modules/ffsl-tests: New test file.
51256         * modules/ffsll-tests: Likewise.
51257         * tests/test-ffsl.c: Likewise.
51258         * tests/test-ffsll.c: Likewise.
51259         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51260         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
51261         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
51263         ffs: fix m4 prerequisite
51264         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
51266         ffs: avoid undefined behavior
51267         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
51268         * tests/test-ffs.c (naive, main): Avoid signed shifts.
51269         Reported by Bruno Haible.
51271 2011-07-12  Bruno Haible  <bruno@clisp.org>
51273         pthread_sigmask: Rely on module 'threadlib'.
51274         * modules/pthread_sigmask (Depends-on): Add threadlib.
51275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
51276         is defined.
51278 2011-07-12  Bruno Haible  <bruno@clisp.org>
51280         regex: Depend on module 'strcase'.
51281         * modules/regex (Depends-on): Add strcase, for strcasecmp().
51283 2011-07-12  Jim Meyering  <meyering@redhat.com>
51285         warn-on-use: fix typo in file name
51286         * modules/snippet/warn-on-use (Files): Correct file name:
51287         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
51289 2011-07-12  Bruno Haible  <bruno@clisp.org>
51291         strings: Document module.
51292         * doc/posix-headers/strings.texi: Mention module 'strings'.
51294 2011-07-12  Bruno Haible  <bruno@clisp.org>
51296         Rename module '_Noreturn' to 'snippet/_Noreturn'.
51297         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
51298         (Files, Makefile.am): Update.
51299         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
51300         * modules/stdlib (Depends-on): Update.
51302 2011-07-12  Bruno Haible  <bruno@clisp.org>
51304         * NEWS: Mention the changes.
51306         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
51307         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
51308         (Files, Makefile.am): Update.
51309         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
51310         * modules/arpa_inet (Depends-on): Update.
51311         * modules/ctype (Depends-on): Update.
51312         * modules/dirent (Depends-on): Update.
51313         * modules/fcntl-h (Depends-on): Update.
51314         * modules/glob (Depends-on): Update.
51315         * modules/iconv-h (Depends-on): Update.
51316         * modules/inttypes-incomplete (Depends-on): Update.
51317         * modules/langinfo (Depends-on): Update.
51318         * modules/locale (Depends-on): Update.
51319         * modules/math (Depends-on): Update.
51320         * modules/netdb (Depends-on): Update.
51321         * modules/poll-h (Depends-on): Update.
51322         * modules/pty (Depends-on): Update.
51323         * modules/search (Depends-on): Update.
51324         * modules/signal (Depends-on): Update.
51325         * modules/spawn (Depends-on): Update.
51326         * modules/stdio (Depends-on): Update.
51327         * modules/stdlib (Depends-on): Update.
51328         * modules/string (Depends-on): Update.
51329         * modules/strings (Depends-on): Update.
51330         * modules/sys_file (Depends-on): Update.
51331         * modules/sys_ioctl (Depends-on): Update.
51332         * modules/sys_select (Depends-on): Update.
51333         * modules/sys_socket (Depends-on): Update.
51334         * modules/sys_stat (Depends-on): Update.
51335         * modules/sys_time (Depends-on): Update.
51336         * modules/sys_times (Depends-on): Update.
51337         * modules/sys_utsname (Depends-on): Update.
51338         * modules/sys_wait (Depends-on): Update.
51339         * modules/termios (Depends-on): Update.
51340         * modules/time (Depends-on): Update.
51341         * modules/unistd (Depends-on): Update.
51342         * modules/wchar (Depends-on): Update.
51343         * modules/wctype-h (Depends-on): Update.
51344         * MODULES.html.sh (Support for building libraries and executables):
51345         Update.
51347         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
51348         * modules/snippet/unused-parameter: Renamed from
51349         modules/unused-parameter.
51350         (Files, Makefile.am): Update.
51351         * build-aux/snippet/unused-parameter.h: Renamed from
51352         build-aux/unused-parameter.h.
51353         * modules/selinux-h (Depends-on): Update.
51354         * modules/unistr/base (Depends-on): Update.
51355         * MODULES.html.sh (Core language properties): Update.
51357         Rename module 'link-warning' to 'snippet/link-warning'.
51358         * modules/snippet/link-warning: Renamed from modules/link-warning.
51359         (Files, Makefile.am): Update.
51360         * build-aux/snippet/link-warning.h: Renamed from
51361         build-aux/link-warning.h.
51362         * MODULES.html.sh (Support for building libraries and executables):
51363         Update.
51365         Rename module 'c++defs' to 'snippet/c++defs'.
51366         * modules/snippet/c++defs: Renamed from modules/c++defs.
51367         (Files, Makefile.am): Update.
51368         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
51369         * modules/arpa_inet (Depends-on): Update.
51370         * modules/ctype (Depends-on): Update.
51371         * modules/dirent (Depends-on): Update.
51372         * modules/fcntl-h (Depends-on): Update.
51373         * modules/glob (Depends-on): Update.
51374         * modules/iconv-h (Depends-on): Update.
51375         * modules/langinfo (Depends-on): Update.
51376         * modules/locale (Depends-on): Update.
51377         * modules/math (Depends-on): Update.
51378         * modules/netdb (Depends-on): Update.
51379         * modules/poll-h (Depends-on): Update.
51380         * modules/pty (Depends-on): Update.
51381         * modules/search (Depends-on): Update.
51382         * modules/signal (Depends-on): Update.
51383         * modules/spawn (Depends-on): Update.
51384         * modules/stdio (Depends-on): Update.
51385         * modules/stdlib (Depends-on): Update.
51386         * modules/string (Depends-on): Update.
51387         * modules/strings (Depends-on): Update.
51388         * modules/sys_ioctl (Depends-on): Update.
51389         * modules/sys_select (Depends-on): Update.
51390         * modules/sys_socket (Depends-on): Update.
51391         * modules/sys_stat (Depends-on): Update.
51392         * modules/sys_time (Depends-on): Update.
51393         * modules/sys_wait (Depends-on): Update.
51394         * modules/termios (Depends-on): Update.
51395         * modules/time (Depends-on): Update.
51396         * modules/unistd (Depends-on): Update.
51397         * modules/wchar (Depends-on): Update.
51398         * modules/wctype-h (Depends-on): Update.
51400         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
51401         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
51402         (Files, Makefile.am): Update.
51403         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
51404         * modules/argv-iter (Depends-on): Update.
51405         * modules/arpa_inet (Depends-on): Update.
51406         * modules/dirent (Depends-on): Update.
51407         * modules/fcntl-h (Depends-on): Update.
51408         * modules/fnmatch (Depends-on): Update.
51409         * modules/getopt-posix (Depends-on): Update.
51410         * modules/glob (Depends-on): Update.
51411         * modules/iconv-h (Depends-on): Update.
51412         * modules/inttypes-incomplete (Depends-on): Update.
51413         * modules/locale (Depends-on): Update.
51414         * modules/math (Depends-on): Update.
51415         * modules/netdb (Depends-on): Update.
51416         * modules/search (Depends-on): Update.
51417         * modules/signal (Depends-on): Update.
51418         * modules/spawn (Depends-on): Update.
51419         * modules/stdio (Depends-on): Update.
51420         * modules/stdlib (Depends-on): Update.
51421         * modules/string (Depends-on): Update.
51422         * modules/strings (Depends-on): Update.
51423         * modules/sys_socket (Depends-on): Update.
51424         * modules/sys_stat (Depends-on): Update.
51425         * modules/sys_time (Depends-on): Update.
51426         * modules/sys_times (Depends-on): Update.
51427         * modules/sys_utsname (Depends-on): Update.
51428         * modules/time (Depends-on): Update.
51429         * modules/unistd (Depends-on): Update.
51430         * modules/wchar (Depends-on): Update.
51431         * MODULES.html.sh (Support for building libraries and executables):
51432         Update.
51434 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51436         Improvements on _Noreturn and related modules.
51438         modules/_Exit-tests: test _Noreturn too
51439         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51440         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51441         (main): Use them.
51443         stdnoreturn, stdnoreturn-tests: remove modules
51444         They're not needed here and a bit premature for use elsewhere.  See
51445         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51446         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51447         * tests/test-stdnoreturn.c: Remove files.
51448         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51449         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51450         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51451         and using noreturn.
51452         * modules/openat, modules/sigpipe-die, modules/xalloc:
51453         * modules/xmemdup0, modules/xstrtol:
51454         Remove dependency on stdnoreturn.
51456         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51457         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51458         Reparenthesize to avoid GCC warning.
51459         Support Microsoft's syntax.
51460         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51462         _Noreturn-tests: remove module
51463         * modules/_Noreturn-tests: Remove.
51464         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51465         * tests/test-_Noreturn.c: Remove.
51466         * tests/test-stdnoreturn.c: Merge from the old
51467         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51469 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51471         _Noreturn, stdnoreturn, and related modules.
51473         * top/maint.mk: Adjust to new noreturn support.
51474         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51475         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51477         xalloc: use stdnoreturn.h
51478         * lib/xalloc.h: Include <stdnoreturn.h>.
51479         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51480         * modules/xalloc (Depends-on): Add stdnoreturn.
51482         xstrtol: use stdnoreturn.h
51483         * lib/xstrtol.h: Include <stdnoreturn.h>.
51484         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51485         * modules/xstrtol (Depends-on): Add stdnoreturn.
51487         xmemdup0: use stdnoreturn.h
51488         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51489         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51490         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51492         sigpipe-die: use stdnoreturn.h
51493         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51494         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51495         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51497         openat: use stdnoreturn.h
51498         * lib/openat.h: Include <stdnoreturn.h>.
51499         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51500         * modules/openat (Depends-on): Add stdnoreturn.
51502         * lib/openat-die.c (openat_save_fail): Modernize comment.
51504         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51506         * lib/glthread/thread.h: Modernize comment.
51508         obstack: use _Noreturn
51509         * lib/obstack.c (__attribute__): Remove macro.
51510         (print_and_abort): Use _Noreturn.
51512         c-stack: use _Noreturn
51513         * lib/c-stack.c (die, overflow_handler, segv_handler):
51514         Use _Noreturn rather than __attribute__((noreturn)).
51516         argmatch-tests, exclude_tests: use _Noreturn
51517         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51518         Remove.
51519         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51521         stdlib: use _Noreturn
51522         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51523         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51524         * modules/stdlib (Depends-on): Add _Noreturn.
51525         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51527         stdnoreturn-tests: new module
51528         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51530         stdnoreturn: new module
51531         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51532         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51534         _Noreturn-tests: new module
51535         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51537         _Noreturn: new module
51538         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51539         New section, mentioning it.
51540         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51544 2011-07-11  Eric Blake  <eblake@redhat.com>
51546         ffs: new module
51547         * modules/ffs: New file.
51548         * m4/ffs.m4: Likewise.
51549         * lib/ffs.c: Likewise.
51550         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51551         * modules/strings (Makefile.am): Substitute witness.
51552         (Depends-on): Add c++defs.
51553         * lib/strings.in.h (ffs): Declare.
51554         * modules/ffs-tests: New test file.
51555         * tests/test-ffs.c: Test new module.
51556         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51557         * doc/posix-functions/ffs.texi (ffs): Likewise.
51559         regex: avoid compiler warning
51560         * lib/regex.c (includes): Include <strings.h>, for use of
51561         strcasecmp in regcomp.c.
51562         Reported by Joachim Schmitz.
51564 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51566         stdint: respect system's intmax_t if INTMAX_MAX
51567         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51568         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51569         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51570         long but int64_t is long long, and where we will clash with the
51571         system intmax_t if we override it.  See
51572         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51573         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51574         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51575         similarly for UINTMAX_C.
51577 2011-07-08  Bruno Haible  <bruno@clisp.org>
51579         pthread_sigmask tests: Avoid a compiler warning.
51580         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51581         non-zero.
51583         sigprocmask tests: A better way to avoid a compiler warning.
51584         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51585         (main): Complain if system() returns non-zero.
51586         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51588 2011-07-08  Bruno Haible  <bruno@clisp.org>
51590         pthread_sigmask: Work around IRIX bug.
51591         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51592         bug.
51593         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51594         there may be unblocked pending signals.
51595         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51597 2011-07-08  Bruno Haible  <bruno@clisp.org>
51599         pthread_sigmask: Work around Cygwin bug.
51600         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51601         bug.
51602         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51603         the system's pthread_sigmask function.
51604         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51606 2011-07-08  Bruno Haible  <bruno@clisp.org>
51608         pthread_sigmask: Work around bug in single-threaded implementation.
51609         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51610         FreeBSD, HP-UX, Solaris bug.
51611         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51612         * lib/pthread_sigmask.c: Include <stddef.h>.
51613         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51614         the system's pthread_sigmask function.
51615         * modules/pthread_sigmask (configure.ac): Invoke
51616         gl_PREREQ_PTHREAD_SIGMASK.
51617         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51618         HP-UX, Solaris.
51620 2011-07-08  Eric Blake  <eblake@redhat.com>
51622         test-sigprocmask: avoid compiler warning
51623         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51624         * tests/test-sigprocmask.c (main): Use it to silence warning.
51625         Reported by Jim Meyering.
51627         test-snprintf: avoid compiler warning
51628         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51629         * tests/test-vsnprintf.c (main): Likewise.
51630         Reported by Jim Meyering.
51632 2011-07-08  Bruno Haible  <bruno@clisp.org>
51634         Tests for module 'pthread_sigmask'.
51635         * modules/pthread_sigmask-tests: New file.
51636         * tests/test-pthread_sigmask1.c: New file, based on
51637         tests/test-sigprocmask.c.
51638         * tests/test-pthread_sigmask2.c: New file.
51640 2011-07-08  Jim Meyering  <meyering@redhat.com>
51642         test-getopt.h: avoid warning about an unused variable
51643         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51645 2011-07-07  Jim Meyering  <meyering@redhat.com>
51647         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51648         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51649         now that it no longer contains leading TABs.
51650         Remove unused "url=FIXME" statement.
51652 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51654         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51655         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51656         When gl_THREADLIB is not in use, assume that the POSIX sematics
51657         are desired.  This is better for Emacs, which uses POSIX semantics
51658         on GNUish and/or POSIXish platforms, and does not use threads at
51659         all otherwise.
51661         pthread_sigmask: fix typo when testing for libraries
51662         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51663         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51665 2011-07-08  Eric Blake  <eblake@redhat.com>
51667         fts: introduce FTS_NOATIME
51668         * lib/fts_.h (FTS_NOATIME): New bit flag.
51669         (FTS_OPTIONMASK): Adjust.
51670         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51671         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51673 2011-07-08  Bruno Haible  <bruno@clisp.org>
51675         Tests for module 'thread'.
51676         * modules/thread-tests: New file.
51677         * tests/test-thread_self.c: New file.
51678         * tests/test-thread_create.cc: New file.
51680 2011-07-08  Bruno Haible  <bruno@clisp.org>
51682         thread: Avoid gcc warnings when using gl_thread_self().
51683         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51684         'void *'.
51685         (gl_thread_self_pointer): Update.
51687 2011-07-07  Bruno Haible  <bruno@clisp.org>
51689         signal-c++-tests: Check declaration of pthread_sigmask.
51690         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51691         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51692         $(LIB_PTHREAD_SIGMASK).
51694 2011-07-07  Bruno Haible  <bruno@clisp.org>
51696         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51697         * lib/signal.in.h (pthread_sigmask): Override if
51698         REPLACE_PTHREAD_SIGMASK is 1.
51699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51700         REPLACE_PTHREAD_SIGMASK.
51701         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51702         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51703         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51704         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51705         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51707 2011-07-07  Bruno Haible  <bruno@clisp.org>
51709         pthread_sigmask: Ensure declaration in <signal.h>.
51710         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51711         include <pthread.h>.
51712         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51713         problem.
51715 2011-07-07  Bruno Haible  <bruno@clisp.org>
51717         pthread_sigmask: Document the module.
51718         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51720 2011-07-07  Bruno Haible  <bruno@clisp.org>
51722         pthread_sigmask: Follow gnulib conventions.
51723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51724         gl_PTHREAD_SIGMASK.
51725         * modules/pthread_sigmask (configure.ac): Update.
51727 2011-07-07  Bruno Haible  <bruno@clisp.org>
51729         pthread_sigmask: Make declaration C++ safe.
51730         * lib/signal.in.h: In two special conditions, just do an #include_next.
51731         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51732         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51733         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51734         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51735         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51736         not REPLACE_PTHREAD_MASK.
51737         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51738         not REPLACE_PTHREAD_MASK.
51739         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51741 2011-07-07  Bruno Haible  <bruno@clisp.org>
51743         pthread_sigmask: Fix return value.
51744         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51745         * lib/pthread_sigmask.c: New file.
51746         * modules/pthread_sigmask (Files): Add it.
51747         (configure.ac): Invoke AC_LIBOBJ.
51749 2011-07-07  Eric Blake  <eblake@redhat.com>
51751         getopt: more portable argv creation
51752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51753         const, use char arrays rather than strings.
51754         Suggested by Paul Eggert.
51756 2011-07-07  Bruno Haible  <bruno@clisp.org>
51758         Tests for module 'sigprocmask'.
51759         * modules/sigprocmask-tests: New file.
51760         * tests/test-sigprocmask.c: New file.
51762 2011-07-07  Bruno Haible  <bruno@clisp.org>
51764         float tests: Tweak.
51765         * tests/test-float.c (main): Tweak skip message.
51767 2011-07-07  Eric Blake  <eblake@redhat.com>
51769         getopt: avoid compiler warning during configure
51770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51771         assigning string literals to non-const pointer.
51773         getopt-gnu: avoid crash in glibc getopt
51774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51775         * tests/test-getopt.h (test_getopt): Enhance test.
51776         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51777         * doc/posix-functions/getopt.texi (getopt): Document it.
51778         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51779         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51780         Likewise.
51782 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51784         getopt: handle W; without long options in getopt [BZ #12922]
51785         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51786         but no long options are defined, just return 'W'.
51788 2011-07-07  Bruno Haible  <bruno@clisp.org>
51790         Avoid literal tabs.
51791         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51792         variable containing a tab instead of a literal tab.
51793         Reported by Jim Meyering.
51795 2011-07-07  Bruno Haible  <bruno@clisp.org>
51797         Comments.
51798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51800 2011-07-06  Bruno Haible  <bruno@clisp.org>
51802         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51803         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51804         <winsock2.h>.
51805         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51806         lib/sys_socket.in.h.
51807         (close, gethostname): Hide declarations from <winsock2.h>.
51808         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51809         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51810         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51811         (select): Don't override if gnulib's <sys/select.h> was already
51812         included.
51813         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51814         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51815         setsockopt, shutdown, select): Tweak indentation.
51817 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51819         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51820         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51821         in an application that does not use the sys_select module.
51823 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51825         poll: do not return 0 on timeout=-1
51826         * lib/poll.c: Loop with yield if no events occurred.
51828 2011-07-06  Eric Blake  <eblake@redhat.com>
51830         pthread_sigmask: always replace when not using pthread
51831         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51832         replacement when using some threading other than pthread.  Fix
51833         logic bug.
51835 2011-07-06  Bruno Haible  <bruno@clisp.org>
51837         Comments.
51838         * m4/printf.m4: Update comments about mingw.
51840 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51842         sys_select: define sigset_t more portably
51843         * lib/sys_select.in.h: Always include <sys/types.h>, since
51844         we now need sigset_t and mingw defines it there.
51845         Include <signal.h> before split inclusion guard, to avoid
51846         mishaps on Solaris, whose <signal.h> eventually includes us.
51847         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51848         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51849         which come from ...
51850         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51851         gl_CHECK_TYPE_SIGSET_T.
51852         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51853         does the real work.
51854         * modules/sys_select (Depends-on): Add 'signal'.
51856         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51857         Suggested by Bruno Haible.
51859         pselect: Use pthread_sigmask, not sigprocmask.
51860         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51861         multithreaded apps better than sigprocmask does.
51862         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51863         sigprocmask directly.
51865 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51867         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51868         Don't #undef,  since we don't need any underlying pselect.
51869         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51870         (Depends-on): Add select.
51871         (Link): Add $(LIBSOCKET).
51872         These changes suggested by Bruno Haible.
51874         pselect: document better
51875         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51876         * doc/posix-functions/pselect.texi (pselect): Document new module.
51878         pthread_sigmask: new module
51879         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51880         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51881         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51882         This is done only as a macro; I don't know how well that'll
51883         work for C++.  Move <sys/types.h> include before the include_next,
51884         to avoid mishap on Solaris.
51885         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51886         * modules/signal (Makefile.am): Substitute the check's results.
51887         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51889         test-pselect: new module
51890         * modules/pselect-tests, tests/test-pselect.c: New files.
51891         * tests/test-select.c, tests/test-sys_select-c++.cc:
51892         If TEST_PSELECT is defined, test pselect instead of testing select.
51894         * tests/test-sys_select.c (sigset_t): Test for it, too.
51895         Suggested by Bruno Haible.
51897 2011-07-05  Eric Blake  <eblake@redhat.com>
51899         snprintf: guarantee %1$d, for libintl
51900         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51901         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51902         * doc/posix-functions/snprintf.texi (snprintf): Update.
51903         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51904         * tests/test-snprintf.c (main): Enhance test.
51905         * tests/test-vsnprintf.c (main): Likewise.
51907 2011-07-05  Jim Meyering  <meyering@redhat.com>
51909         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51910         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51911         per Bruno's request, to accommodate this idiom (no space after "#")
51912         even when the function is inside an #if block:
51913         char *
51914         gets (char *s)
51915         #undef gets
51916         {
51917           ...
51918         }
51920 2011-07-04  Jim Meyering  <meyering@redhat.com>
51922         maint: indent with spaces, not TABs, and add a rule to check this
51923         * tests/test-userspec.c: Indent with spaces, not TABs.
51924         * tests/test-argp.c: Likewise.
51925         * tests/test-c-stack2.sh: Likewise.
51926         * tests/test-parse-duration.sh: Likewise
51927         * m4/strtod.m4: Likewise.
51928         * m4/alloca.m4: Likewise.
51929         * m4/pselect.m4: Likewise.
51930         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51932 2011-07-03  Jim Meyering  <meyering@redhat.com>
51934         maint.mk: correct omissions in prohibit_argmatch_without_use check
51935         This rule would mistakenly report that argmatch.h is included without
51936         use even when both the argmatch and invalid_arg macro were used.
51937         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51938         of argmatch and invalid_arg.
51940 2011-07-03  Bruno Haible  <bruno@clisp.org>
51942         Comments about EINTR.
51943         * lib/safe-read.h: Explain the purpose of this module.
51944         * lib/safe-write.h: Likewise.
51945         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51946         module.
51947         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51948         module.
51949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51951 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51953         xnanosleep: Rewrite to use new dtotimespec module.
51954         It has the conversion code that used to be in xnanosleep.
51955         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51956         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51957         (TIME_T_MAX): Remove.
51958         (xnanosleep): Rewrite in terms of dtotimespec.
51959         * modules/xnanosleep (Depends-on): Add dtotimespec.
51960         Remove intprops, stdbool.
51962         timespec-add, timespec-sub: new modules
51963         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51964         * lib/timespec-add.c, lib/timespec-sub.c:
51965         * modules/timespec-add, modules/timespec-sub: New files.
51967         dtotimespec: new module
51968         * lib/timespec.h (dtotimespec): New decl.
51969         * lib/dtotimespec.c, modules/dtotimespec: New files.
51971         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51973         pselect: new module
51974         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51975         (pselect): New decls.
51976         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51977         since the standard pselect decl uses 'restrict'.
51978         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51979         HAVE_PSELECT, REPLACE_PSELECT.
51980         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51981         HAVE_PSELECT, REPLACE_PSELECT.
51982         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51984         sys_select: don't depend on sys_socket
51985         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51986         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51987         This fix works on GNU and GNU-like platforms, but has not been tested
51988         on native Windows.
51989         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51991         gl_HEADER_SYS_SOCKET.
51992         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51993         gl_PREREQ_SYS_H_WINSOCK2.
51995 2011-06-29  Eric Blake  <eblake@redhat.com>
51997         pipe2: fix C89 compile problem
51998         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51999         Reported by Bruno Haible.
52001         pipe, pipe2: don't corrupt fd on error
52002         * lib/pipe.c (pipe): Leave fd unchanged on error.
52003         * lib/pipe2.c (pipe2): Likewise.
52004         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
52005         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52007 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
52009         mmap-anon: do not use regular expressions inadvertently
52010         * m4/mmap-anon.m4: Remove trailing period from strings sought
52011         in the output.
52013 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
52015         nanosleep: fix integer overflow problem
52016         * lib/nanosleep.c (my_usleep): Don't assume signed integer
52017         arithmetic wraps around on overflow.
52019         nanosleep: simplify carrying
52020         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
52021         first call to the underyling nanosleep, not for the last one.
52022         This doesn't fix any bugs, but it simplifies the computation of
52023         the remaining delay.  Found while auditing integer overflow issues.
52025         dup2: remove test for existence of fcntl
52026         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
52027         "#if HAVE_FCNTL", in the configure-time test program.
52028         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
52029         and therefore speeds up "configure" a bit.  Found while
52030         adding the dup2 module to Emacs.
52032 2011-06-24  Eric Blake  <eblake@redhat.com>
52034         maint.mk: enhance useless header checks
52035         * top/maint.mk (_sc_header_without_use): Check both include
52036         styles.
52037         (sc_prohibit_assert_without_use)
52038         (sc_prohibit_close_stream_without_use)
52039         (sc_prohibit_getopt_without_use)
52040         (sc_prohibit_quotearg_without_use)
52041         (sc_prohibit_quote_without_use)
52042         (sc_prohibit_long_options_without_use)
52043         (sc_prohibit_inttostr_without_use)
52044         (sc_prohibit_ignore_value_without_use)
52045         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
52046         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
52047         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
52048         (sc_prohibit_hash_pjw_without_use)
52049         (sc_prohibit_safe_read_without_use)
52050         (sc_prohibit_argmatch_without_use)
52051         (sc_prohibit_canonicalize_without_use)
52052         (sc_prohibit_root_dev_ino_without_use)
52053         (sc_prohibit_openat_without_use)
52054         (sc_prohibit_c_ctype_without_use)
52055         (sc_prohibit_signal_without_use)
52056         (sc_prohibit_stdio--_without_use)
52057         (sc_prohibit_stdio-safer_without_use)
52058         (sc_prohibit_strings_without_use)
52059         (sc_prohibit_intprops_without_use)
52060         (sc_prohibit_stddef_without_use)
52061         (sc_prohibit_xfreopen_without_use): Update clients.
52063 2011-06-24  Jim Meyering  <meyering@redhat.com>
52065         syntax-check: keep one maint.mk rule in sync with its header
52066         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
52067         of the bug Eric has just fixed, with today's commit 25e4c2ec.
52068         I prefer to avoid temporary files here, so use <(...), but that
52069         is not supported by /bin/sh, so...
52070         (SHELL): Define to /bin/bash.
52072 2011-06-24  Eric Blake  <eblake@redhat.com>
52074         maint.mk: update sc_prohibit_intprops_without_use
52075         * top/maint.mk (_intprops_names): Match recent changes.
52077 2011-06-24  Bruno Haible  <bruno@clisp.org>
52079         strerror-override: No-op tweak.
52080         * lib/strerror-override.h (strerror_override): Reorder conditions,
52081         for consistency with lib/strerror-override.c.
52083 2011-06-23  Eric Blake  <eblake@redhat.com>
52085         maint.mk: test further PATH_MAX issues
52086         * top/maint.mk (sc_prohibit_path_max_array): Rename...
52087         (sc_prohibit_path_max_allocation): ...and also test alloca.
52088         Suggested by Jim Meyering.
52090 2011-06-22  Eric Blake  <eblake@redhat.com>
52092         maint.mk: add syntax-check to avoid char[PATH_MAX]
52093         * top/maint.mk (sc_prohibit_path_max_array): New rule.
52095         stat: be robust to PATH_MAX definition
52096         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
52097         * modules/stat (Depends-on): Add verify.
52099         link: work around IRIX bug
52100         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
52101         * lib/link.c (rpl_link): Work around it.
52102         * tests/test-link.h (test_link): Enhance test.
52103         * doc/posix-functions/link.texi (link): Document the bug.
52105         getopt: silence clang warning
52106         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
52107         dereference.
52108         Reported by Gustavo Martin Domato.
52110 2011-06-22  Jim Meyering  <meyering@redhat.com>
52112         bootstrap: do not insert a blank line into each .gitignore file
52113         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
52115 2011-06-21  Eric Blake  <eblake@redhat.com>
52117         perror: test for output mismatch
52118         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
52119         perror on IRIX.
52121         strerror_r: fix OpenBSD behavior on out-of-range
52122         * lib/strerror_r.c (strerror_r): Always use maximal string.
52123         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52125         strerror_r: fix OpenBSD behavior on 0
52126         * lib/strerror-override.c (strerror_override): Also override 0
52127         when needed.
52128         * lib/strerror-override.h (strerror_override): Likewise.
52129         * lib/strerror.c (strerror): Simplify, now that 0 override is done
52130         earlier.
52131         * lib/strerror_r.c (strerror_r): Likewise.
52132         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
52133         behavior...
52134         (gl_FUNC_STRERROR_0): ...into new macro.
52135         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
52136         is overridden.
52137         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
52138         * modules/strerror-override (Files): Add strerror.m4.
52139         (configure.ac): Also provide override for 0 when needed.
52140         * doc/posix-functions/strerror.texi (strerror): Document this.
52141         * doc/posix-functions/perror.texi (perror): Likewise.
52143         perror: adjust array size
52144         * modules/perror (Depends-on): Add strerror-override.
52145         * lib/perror.c (perror): Use it to avoid magic number.
52147         strerror-override: reduce size
52148         * lib/strerror-override.c (strerror_override): Use fewer lines.
52150 2011-06-20  Bruno Haible  <bruno@clisp.org>
52152         pathmax: Ensure correct value for PATH_MAX on HP-UX.
52153         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
52155 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52157         alloca: port to compilers that can optimize like GCC 4.6.0
52158         * lib/alloca.c (find_stack_direction): New signature, taken from
52159         Autoconf git.  This works with GCC 4.6.0.  This code should never
52160         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
52161         be used with other compilers that optimize as well as GCC 4.6.0 does.
52162         (alloca): Adjust to new signature.
52163         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
52164         New macro, which patches Autoconf in a similar way.
52166         c-stack: stop worrying about stack direction
52167         * lib/c-stack.c (find_stack_direction): Remove.
52168         (segv_handler): Don't worry about stack direction growth, as it's
52169         too much of a pain to configure this correctly, given how compilers
52170         are optimizing-away our stack-growth detection code.  Instead, assume
52171         that any access to just before or just after the stack is OK.
52172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52173         Don't require AC_FUNC_ALLOCA; no longer needed.
52175 2011-06-20  Eric Blake  <eblake@redhat.com>
52177         test-stat: don't allocate PATH_MAX bytes
52178         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
52179         PATH_MAX-sized buffer.
52180         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
52181         * modules/stat-tests (Depends-on): Likewise.
52182         * tests/test-fstatat.c (includes): Drop pathmax.h.
52183         * tests/test-stat.c (includes): Likewise.
52184         Reported by Bruno Haible.
52186 2011-06-20  Bruno Haible  <bruno@clisp.org>
52188         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
52189         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
52190         * lib/float.c: New file.
52191         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
52192         REPLACE_FLOAT_LDBL.
52193         * modules/float (Files): Add lib/float.c.
52194         (configure.ac): Invoke AC_LIBOBJ.
52195         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
52197 2011-06-20  Bruno Haible  <bruno@clisp.org>
52199         Tests for module 'float'.
52200         * modules/float-tests: New file.
52201         * tests/test-float.c: New file.
52203 2011-06-19  Bruno Haible  <bruno@clisp.org>
52205         isinf: Coding style.
52206         * lib/isinf.c: Use GNU coding style.
52208 2011-06-19  Bruno Haible  <bruno@clisp.org>
52210         linkat test: Avoid test failure on AIX 7.1.
52211         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
52212         * tests/test-link.h (test_link): Likewise.
52214 2011-06-19  Bruno Haible  <bruno@clisp.org>
52216         pread test: Avoid test failure on OpenBSD 4.9.
52217         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
52219 2011-06-19  Bruno Haible  <bruno@clisp.org>
52221         sprintf-posix: Fix test failure on AIX 7.1.
52222         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
52223         * doc/posix-functions/dprintf.texi: Mention limited precision problem
52224         on AIX.
52225         * doc/posix-functions/fprintf.texi: Likewise.
52226         * doc/posix-functions/printf.texi: Likewise.
52227         * doc/posix-functions/snprintf.texi: Likewise.
52228         * doc/posix-functions/sprintf.texi: Likewise.
52229         * doc/posix-functions/vdprintf.texi: Likewise.
52230         * doc/posix-functions/vfprintf.texi: Likewise.
52231         * doc/posix-functions/vprintf.texi: Likewise.
52232         * doc/posix-functions/vsnprintf.texi: Likewise.
52233         * doc/posix-functions/vsprintf.texi: Likewise.
52235 2011-06-19  Bruno Haible  <bruno@clisp.org>
52237         roundl-ieee: Fix test failure on AIX 7.1.
52238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
52239         * doc/posix-functions/roundl.texi: Mention problem with negative
52240         arguments.
52242 2011-06-19  Bruno Haible  <bruno@clisp.org>
52244         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52245         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
52246         * doc/posix-functions/round.texi: Mention problem with negative
52247         arguments.
52248         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
52250 2011-06-19  Bruno Haible  <bruno@clisp.org>
52252         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52253         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
52254         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
52255         * doc/posix-functions/roundf.texi: Mention problem with negative
52256         arguments.
52257         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
52259 2011-06-19  Bruno Haible  <bruno@clisp.org>
52261         ceilf-ieee: Work around bug on MacOS X 10.5.
52262         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
52264         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
52265         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
52266         IEEE compliant, avoid compiler optimizations.
52267         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
52268         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52269         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
52270         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
52271         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
52272         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
52273         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
52275         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
52276         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
52278 2011-06-19  Bruno Haible  <bruno@clisp.org>
52280         ceilf-ieee: Work around bug on AIX 7.1.
52281         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
52282         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
52284 2011-06-19  Bruno Haible  <bruno@clisp.org>
52286         ceil-ieee: Work around bug on AIX 7.1.
52287         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
52288         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
52290 2011-06-18  Bruno Haible  <bruno@clisp.org>
52292         fsync test: Avoid test failure on MacOS X and AIX.
52293         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
52294         EINVAL.
52296 2011-06-18  Bruno Haible  <bruno@clisp.org>
52298         openat, fdopendir tests: Fix link errors.
52299         * modules/openat-tests (Depends-on): Add progname.
52300         * modules/fdopendir-tests (Depends-on): Likewise.
52301         * tests/test-fchownat.c: Include progname.h.
52302         (main): Call set_program_name.
52303         * tests/test-fstatat.c: Include progname.h.
52304         (main): Call set_program_name.
52305         * tests/test-mkdirat.c: Include progname.h.
52306         (main): Call set_program_name.
52307         * tests/test-openat.c: Include progname.h.
52308         (main): Call set_program_name.
52309         * tests/test-unlinkat.c: Include progname.h.
52310         (main): Call set_program_name.
52311         * tests/test-fdopendir.c: Include progname.h.
52312         (main): Call set_program_name.
52314 2011-06-18  Bruno Haible  <bruno@clisp.org>
52316         Doc update.
52317         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
52318         HP-UX.
52319         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
52321 2011-06-18  Bruno Haible  <bruno@clisp.org>
52323         getcwd tests: Avoid compilation error on HP-UX 11.31.
52324         * modules/getcwd-tests (Depends-on): Add pathmax.
52325         * tests/test-getcwd.c: Include pathmax.h.
52327 2011-06-18  Bruno Haible  <bruno@clisp.org>
52329         isfinite, isinf: Fix link error on AIX 6 and 7.
52330         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
52331         needed, also test the macro with a 'float' argument.
52332         * m4/isinf.m4 (gl_ISINF): Likewise.
52334 2011-06-18  Bruno Haible  <bruno@clisp.org>
52336         getloadavg: Don't clobber LIBS. Regression from previous commit.
52337         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
52338         AC_CHECK_LIB from here...
52339         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
52340         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
52341         gl_func_getloadavg_done.
52342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52344 2011-06-18  Bruno Haible  <bruno@clisp.org>
52346         clean-temp: Improve documentation.
52347         * lib/clean-temp.h: Explain better how to use this module.
52348         Reported by John Darrington <john@darrington.wattle.id.au>.
52350 2011-06-17  Bruno Haible  <bruno@clisp.org>
52352         pread, pwrite: Avoid cc warning on AIX.
52353         * lib/unistd.in.h (pread): Undefine before defining as a macro.
52354         (pwrite): Likewise.
52356 2011-06-17  Bruno Haible  <bruno@clisp.org>
52358         spawn-pipe tests: Fix link error.
52359         * tests/test-spawn-pipe-child.c: Undefine fprintf.
52360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52362 2011-06-17  Bruno Haible  <bruno@clisp.org>
52364         Tests: Remove unnecessary dependency.
52365         * modules/canonicalize-tests (Depends-on): Remove progname.
52366         * modules/chown-tests (Depends-on): Likewise.
52367         * modules/dirname-tests (Depends-on): Likewise.
52368         * modules/fdopendir-tests (Depends-on): Likewise.
52369         * modules/fdutimensat-tests (Depends-on): Likewise.
52370         * modules/hash-tests (Depends-on): Likewise.
52371         * modules/lchown-tests (Depends-on): Likewise.
52372         * modules/linkat-tests (Depends-on): Likewise.
52373         * modules/renameat-tests (Depends-on): Likewise.
52374         * modules/spawn-pipe-tests (Depends-on): Likewise.
52375         * modules/utimensat-tests (Depends-on): Likewise.
52377 2011-06-17  Bruno Haible  <bruno@clisp.org>
52379         spawn-pipe tests: Fix link error.
52380         * tests/test-spawn-pipe-child.c: Undefine fflush.
52382 2011-06-17  Bruno Haible  <bruno@clisp.org>
52384         Fix tests link errors.
52385         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
52386         * modules/chown-tests (Makefile.am): Don't link test-chown with
52387         LIBINTL.
52388         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
52389         LIBINTL.
52390         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
52391         LIBINTL.
52392         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
52393         LIBINTL.
52395 2011-06-16  Bruno Haible  <bruno@clisp.org>
52397         crypto/gc-sha1: Fix recent regression.
52398         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
52399         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
52401         crypto/gc-md5: Fix recent regression.
52402         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
52404         crypto/gc-md4: Fix recent regression.
52405         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
52406         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
52408         crypto/gc-arctwo: Fix recent regression.
52409         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
52410         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
52412         crypto/gc-rijndael: Fix recent regression.
52413         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
52414         (configure.ac): Invoke AC_LIBOBJ here.
52415         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
52416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52418         crypto/gc-hmac-sha1: Fix recent regression.
52419         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
52420         (configure.ac): Invoke AC_LIBOBJ here.
52421         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52424         crypto/gc-hmac-md5: Fix recent regression.
52425         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52426         (configure.ac): Invoke AC_LIBOBJ here.
52427         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52430         crypto/gc-des: Fix recent regression.
52431         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52432         (configure.ac): Invoke AC_LIBOBJ here.
52433         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52436         crypto/gc-arcfour: Fix recent regression.
52437         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52438         (configure.ac): Invoke AC_LIBOBJ here.
52439         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52442 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52444         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52445         After the 2011-05-21 change, this macro requires
52446         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52447         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52449 2011-06-16  Bruno Haible  <bruno@clisp.org>
52451         fprintftime: Move AC_LIBOBJ invocations to module description.
52452         * m4/fprintftime.m4: Remove file.
52453         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52454         (configure.ac): Remove gl_FPRINTFTIME call.
52455         (Makefile.am): Augment lib_SOURCES.
52456         Reported by Jim Meyering.
52458 2011-06-16  Bruno Haible  <bruno@clisp.org>
52460         tmpfile-safer: Finish 2011-05-23 commit.
52461         * m4/stdio-safer.m4: Really remove file.
52462         Reported by Jim Meyering.
52464 2011-06-16  Bruno Haible  <bruno@clisp.org>
52466         syntax-check: Fix typo.
52467         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52468         printf-posix.m4.
52469         Reported by Jim Meyering.
52471 2011-06-13  Jim Meyering  <meyering@redhat.com>
52473         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52474         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52476 2011-05-23  Bruno Haible  <bruno@clisp.org>
52478         yesno: Move AC_LIBOBJ invocations to module description.
52479         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52480         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52482 2011-05-23  Bruno Haible  <bruno@clisp.org>
52484         xstrtol: Move AC_LIBOBJ invocations to module description.
52485         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52486         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52488 2011-05-23  Bruno Haible  <bruno@clisp.org>
52490         xstrtold: Move AC_LIBOBJ invocations to module description.
52491         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52492         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52494 2011-05-23  Bruno Haible  <bruno@clisp.org>
52496         xstrtod: Move AC_LIBOBJ invocations to module description.
52497         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52498         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52500 2011-05-23  Bruno Haible  <bruno@clisp.org>
52502         xnanosleep: Move AC_LIBOBJ invocations to module description.
52503         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52504         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52506 2011-05-23  Bruno Haible  <bruno@clisp.org>
52508         xgetcwd: Move AC_LIBOBJ invocations to module description.
52509         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52510         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52512 2011-05-23  Bruno Haible  <bruno@clisp.org>
52514         xalloc: Move AC_LIBOBJ invocations to module description.
52515         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52516         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52518 2011-05-23  Bruno Haible  <bruno@clisp.org>
52520         write-any-file: Move AC_LIBOBJ invocations to module description.
52521         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52522         invocation.
52523         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52525 2011-05-23  Bruno Haible  <bruno@clisp.org>
52527         utimens: Move AC_LIBOBJ invocations to module description.
52528         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52529         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52531 2011-05-23  Bruno Haible  <bruno@clisp.org>
52533         utimecmp: Move AC_LIBOBJ invocations to module description.
52534         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52535         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52537 2011-05-23  Bruno Haible  <bruno@clisp.org>
52539         userspec: Move AC_LIBOBJ invocations to module description.
52540         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52541         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52543 2011-05-23  Bruno Haible  <bruno@clisp.org>
52545         unlinkdir: Move AC_LIBOBJ invocations to module description.
52546         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52547         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52549 2011-05-23  Bruno Haible  <bruno@clisp.org>
52551         unistd-safer: Move AC_LIBOBJ invocations to module description.
52552         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52553         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52555 2011-05-23  Bruno Haible  <bruno@clisp.org>
52557         tempname: Move AC_LIBOBJ invocations to module description.
52558         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52559         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52561 2011-05-23  Bruno Haible  <bruno@clisp.org>
52563         strftime: Move AC_LIBOBJ invocations to module description.
52564         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52565         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52567 2011-05-23  Bruno Haible  <bruno@clisp.org>
52569         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52570         * m4/stdlib-safer.m4: Remove file.
52571         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52572         (configure.ac): Remove gl_STDLIB_SAFER call.
52573         (Makefile.am): Augment lib_SOURCES.
52575 2011-05-23  Bruno Haible  <bruno@clisp.org>
52577         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52578         * m4/stdio-safer.m4: Remove file.
52579         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52580         (configure.ac): Remove gl_TMPFILE_SAFER call.
52581         (Makefile.am): Augment lib_SOURCES.
52583 2011-05-23  Bruno Haible  <bruno@clisp.org>
52585         popen-safer: Move AC_LIBOBJ invocations to module description.
52586         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52587         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52588         (configure.ac): Remove gl_POPEN_SAFER call.
52589         (Makefile.am): Augment lib_SOURCES.
52591 2011-05-23  Bruno Haible  <bruno@clisp.org>
52593         freopen-safer: Move AC_LIBOBJ invocations to module description.
52594         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52595         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52596         (configure.ac): Remove gl_FREOPEN_SAFER call.
52597         (Makefile.am): Augment lib_SOURCES.
52599 2011-05-23  Bruno Haible  <bruno@clisp.org>
52601         fopen-safer: Move AC_LIBOBJ invocations to module description.
52602         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52603         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52604         (configure.ac): Remove gl_FOPEN_SAFER call.
52605         (Makefile.am): Augment lib_SOURCES.
52607 2011-05-23  Bruno Haible  <bruno@clisp.org>
52609         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52610         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52611         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52613 2011-05-23  Bruno Haible  <bruno@clisp.org>
52615         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52616         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52617         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52619 2011-05-23  Bruno Haible  <bruno@clisp.org>
52621         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52622         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52623         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52625 2011-05-23  Bruno Haible  <bruno@clisp.org>
52627         settime: Move AC_LIBOBJ invocations to module description.
52628         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52629         * modules/settime (Makefile.am): Augment lib_SOURCES.
52631 2011-05-23  Bruno Haible  <bruno@clisp.org>
52633         savedir: Move AC_LIBOBJ invocations to module description.
52634         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52635         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52637 2011-05-23  Bruno Haible  <bruno@clisp.org>
52639         save-cwd: Move AC_LIBOBJ invocations to module description.
52640         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52641         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52643 2011-05-23  Bruno Haible  <bruno@clisp.org>
52645         same: Move AC_LIBOBJ invocations to module description.
52646         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52647         * modules/same (Makefile.am): Augment lib_SOURCES.
52649 2011-05-23  Bruno Haible  <bruno@clisp.org>
52651         safe-write: Move AC_LIBOBJ invocations to module description.
52652         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52653         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52654         instead of gl_SAFE_WRITE.
52655         (Makefile.am): Augment lib_SOURCES.
52657 2011-05-23  Bruno Haible  <bruno@clisp.org>
52659         safe-read: Move AC_LIBOBJ invocations to module description.
52660         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52661         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52662         of gl_SAFE_READ.
52663         (Makefile.am): Augment lib_SOURCES.
52665 2011-05-23  Bruno Haible  <bruno@clisp.org>
52667         safe-alloc: Move AC_LIBOBJ invocations to module description.
52668         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52669         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52671 2011-05-23  Bruno Haible  <bruno@clisp.org>
52673         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52674         * m4/rijndael.m4: Remove file.
52675         * modules/crypto/rijndael (Files): Remove it.
52676         (configure.ac): Remove gl_RIJNDAEL call.
52677         (Makefile.am): Augment lib_SOURCES.
52679 2011-05-23  Bruno Haible  <bruno@clisp.org>
52681         readtokens: Move AC_LIBOBJ invocations to module description.
52682         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52683         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52685 2011-05-23  Bruno Haible  <bruno@clisp.org>
52687         read-file: Move AC_LIBOBJ invocations to module description.
52688         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52689         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52690         of gl_FUNC_READ_FILE.
52691         (Makefile.am): Augment lib_SOURCES.
52693 2011-05-23  Bruno Haible  <bruno@clisp.org>
52695         quotearg: Move AC_LIBOBJ invocations to module description.
52696         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52697         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52699 2011-05-23  Bruno Haible  <bruno@clisp.org>
52701         quote: Move AC_LIBOBJ invocations to module description.
52702         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52703         * modules/quote (Makefile.am): Augment lib_SOURCES.
52705 2011-05-23  Bruno Haible  <bruno@clisp.org>
52707         posixver: Move AC_LIBOBJ invocations to module description.
52708         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52709         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52711 2011-05-23  Bruno Haible  <bruno@clisp.org>
52713         posixtm: Move AC_LIBOBJ invocations to module description.
52714         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52715         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52717 2011-05-23  Bruno Haible  <bruno@clisp.org>
52719         physmem: Move AC_LIBOBJ invocations to module description.
52720         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52721         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52723 2011-05-23  Bruno Haible  <bruno@clisp.org>
52725         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52726         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52727         invocation.
52728         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52730 2011-05-23  Bruno Haible  <bruno@clisp.org>
52732         mpsort: Move AC_LIBOBJ invocations to module description.
52733         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52734         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52736 2011-05-23  Bruno Haible  <bruno@clisp.org>
52738         modechange: Move AC_LIBOBJ invocations to module description.
52739         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52740         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52742 2011-05-23  Bruno Haible  <bruno@clisp.org>
52744         mkdir-p: Move AC_LIBOBJ invocations to module description.
52745         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52746         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52748 2011-05-23  Bruno Haible  <bruno@clisp.org>
52750         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52751         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52752         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52754 2011-05-23  Bruno Haible  <bruno@clisp.org>
52756         mgetgroups: Move AC_LIBOBJ invocations to module description.
52757         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52758         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52760 2011-05-23  Bruno Haible  <bruno@clisp.org>
52762         memxor: Move AC_LIBOBJ invocations to module description.
52763         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52764         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52766 2011-05-23  Bruno Haible  <bruno@clisp.org>
52768         memcoll: Move AC_LIBOBJ invocations to module description.
52769         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52770         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52772 2011-05-23  Bruno Haible  <bruno@clisp.org>
52774         memcasecmp: Move AC_LIBOBJ invocations to module description.
52775         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52776         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52778 2011-05-23  Bruno Haible  <bruno@clisp.org>
52780         crypto/md5: Move AC_LIBOBJ invocations to module description.
52781         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52782         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52784 2011-05-23  Bruno Haible  <bruno@clisp.org>
52786         crypto/md4: Move AC_LIBOBJ invocations to module description.
52787         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52788         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52790 2011-05-23  Bruno Haible  <bruno@clisp.org>
52792         crypto/md2: Move AC_LIBOBJ invocations to module description.
52793         * m4/md2.m4: Remove file.
52794         * modules/crypto/md2 (Files): Remove it.
52795         (configure.ac): Remove gl_MD2 call.
52796         (Makefile.am): Augment lib_SOURCES.
52798 2011-05-23  Bruno Haible  <bruno@clisp.org>
52800         long-options: Move AC_LIBOBJ invocations to module description.
52801         * m4/long-options.m4: Remove file.
52802         * modules/long-options (Files): Remove it.
52803         (configure.ac): Remove gl_LONG_OPTIONS call.
52804         (Makefile.am): Augment lib_SOURCES.
52806 2011-05-23  Bruno Haible  <bruno@clisp.org>
52808         i-ring: Move AC_LIBOBJ invocations to module description.
52809         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52810         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52812 2011-05-23  Bruno Haible  <bruno@clisp.org>
52814         idcache: Move AC_LIBOBJ invocations to module description.
52815         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52816         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52818 2011-05-23  Bruno Haible  <bruno@clisp.org>
52820         human: Move AC_LIBOBJ invocations to module description.
52821         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52822         * modules/human (Makefile.am): Augment lib_SOURCES.
52824 2011-05-23  Bruno Haible  <bruno@clisp.org>
52826         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52827         * m4/hmac-sha1.m4: Remove file.
52828         * modules/crypto/hmac-sha1 (Files): Remove it.
52829         (configure.ac): Remove gl_HMAC_SHA1 call.
52830         (Makefile.am): Augment lib_SOURCES.
52832 2011-05-23  Bruno Haible  <bruno@clisp.org>
52834         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52835         * m4/hmac-md5.m4: Remove file.
52836         * modules/crypto/hmac-md5 (Files): Remove it.
52837         (configure.ac): Remove gl_HMAC_MD5 call.
52838         (Makefile.am): Augment lib_SOURCES.
52840 2011-05-23  Bruno Haible  <bruno@clisp.org>
52842         hash: Move AC_LIBOBJ invocations to module description.
52843         * m4/hash.m4: Remove file.
52844         * modules/hash (Files): Remove it.
52845         (configure.ac): Remove gl_HASH call.
52846         (Makefile.am): Augment lib_SOURCES.
52848 2011-05-23  Bruno Haible  <bruno@clisp.org>
52850         hard-locale: Move AC_LIBOBJ invocations to module description.
52851         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52852         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52854 2011-05-23  Bruno Haible  <bruno@clisp.org>
52856         getugroups: Move AC_LIBOBJ invocations to module description.
52857         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52858         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52860 2011-05-23  Bruno Haible  <bruno@clisp.org>
52862         gettime: Move AC_LIBOBJ invocations to module description.
52863         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52864         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52866 2011-05-23  Bruno Haible  <bruno@clisp.org>
52868         getndelim2: Move AC_LIBOBJ invocations to module description.
52869         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52870         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52872 2011-05-23  Bruno Haible  <bruno@clisp.org>
52874         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52875         * m4/gc-pbkdf2-sha1.m4: Remove file.
52876         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52877         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52878         (Makefile.am): Augment lib_SOURCES.
52880 2011-05-23  Bruno Haible  <bruno@clisp.org>
52882         fts: Move AC_LIBOBJ invocations to module description.
52883         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52884         * modules/fts (configure.ac): ... to here.
52886 2011-05-23  Bruno Haible  <bruno@clisp.org>
52888         file-type: Move AC_LIBOBJ invocations to module description.
52889         * m4/file-type.m4: Remove file.
52890         * modules/file-type (Files): Remove it.
52891         (configure.ac): Remove gl_FILE_TYPE call.
52892         (Makefile.am): Augment lib_SOURCES.
52894 2011-05-23  Bruno Haible  <bruno@clisp.org>
52896         filenamecat*: Respect rules for use of AC_LIBOBJ.
52897         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52898         Remove AC_LIBOBJ invocation.
52899         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52900         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52902 2011-05-23  Bruno Haible  <bruno@clisp.org>
52904         filemode: Move AC_LIBOBJ invocations to module description.
52905         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52906         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52908 2011-05-23  Bruno Haible  <bruno@clisp.org>
52910         openat-safer: Move AC_LIBOBJ invocations to module description.
52911         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52912         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52914 2011-05-23  Bruno Haible  <bruno@clisp.org>
52916         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52917         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52918         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52920 2011-05-23  Bruno Haible  <bruno@clisp.org>
52922         exclude: Move AC_LIBOBJ invocations to module description.
52923         * m4/exclude.m4: Remove file.
52924         * modules/exclude (Files): Remove it.
52925         (configure.ac): Remove gl_EXCLUDE call.
52926         (Makefile.am): Augment lib_SOURCES.
52928 2011-05-23  Bruno Haible  <bruno@clisp.org>
52930         dirname*: Respect rules for use of AC_LIBOBJ.
52931         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52932         invocations.
52933         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52934         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52936 2011-05-23  Bruno Haible  <bruno@clisp.org>
52938         dirent-safer: Move AC_LIBOBJ invocations to module description.
52939         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52940         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52942 2011-05-23  Bruno Haible  <bruno@clisp.org>
52944         crypto/des: Move AC_LIBOBJ invocations to module description.
52945         * m4/des.m4: Remove file.
52946         * modules/crypto/des (Files): Remove it.
52947         (configure.ac): Remove gl_DES call.
52948         (Makefile.am): Augment lib_SOURCES.
52950 2011-05-23  Bruno Haible  <bruno@clisp.org>
52952         cycle-check: Move AC_LIBOBJ invocations to module description.
52953         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52954         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52956 2011-05-23  Bruno Haible  <bruno@clisp.org>
52958         c-strtold: Move AC_LIBOBJ invocations to module description.
52959         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52960         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52962 2011-05-23  Bruno Haible  <bruno@clisp.org>
52964         c-strtod: Move AC_LIBOBJ invocations to module description.
52965         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52966         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52968 2011-05-23  Bruno Haible  <bruno@clisp.org>
52970         crc: Move AC_LIBOBJ invocations to module description.
52971         * m4/crc.m4: Remove file.
52972         * modules/crc (Files): Remove it.
52973         (configure.ac): Remove gl_CRC call.
52974         (Makefile.am): Augment lib_SOURCES.
52976 2011-05-23  Bruno Haible  <bruno@clisp.org>
52978         close-stream: Move AC_LIBOBJ invocations to module description.
52979         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52980         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52982 2011-05-23  Bruno Haible  <bruno@clisp.org>
52984         closeout: Move AC_LIBOBJ invocations to module description.
52985         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52986         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52988 2011-05-23  Bruno Haible  <bruno@clisp.org>
52990         closein: Move AC_LIBOBJ invocations to module description.
52991         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52992         * modules/closein (Makefile.am): Augment lib_SOURCES.
52994 2011-05-23  Bruno Haible  <bruno@clisp.org>
52996         cloexec: Move AC_LIBOBJ invocations to module description.
52997         * m4/cloexec.m4: Remove file.
52998         * modules/cloexec (Files): Remove it.
52999         (configure.ac): Remove gl_CLOEXEC call.
53000         (Makefile.am): Augment lib_SOURCES.
53002 2011-05-23  Bruno Haible  <bruno@clisp.org>
53004         check-version: Move AC_LIBOBJ invocations to module description.
53005         * m4/check-version.m4: Remove file.
53006         * modules/check-version (Files): Remove it.
53007         (configure.ac): Remove gl_CHECK_VERSION call.
53008         (Makefile.am): Augment lib_SOURCES.
53010 2011-05-23  Bruno Haible  <bruno@clisp.org>
53012         chdir-safer: Move AC_LIBOBJ invocations to module description.
53013         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
53014         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
53016 2011-05-23  Bruno Haible  <bruno@clisp.org>
53018         canonicalize: Move AC_LIBOBJ invocations to module description.
53019         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
53020         AC_LIBOBJ invocation.
53021         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
53023 2011-05-23  Bruno Haible  <bruno@clisp.org>
53025         canon-host: Move AC_LIBOBJ invocations to module description.
53026         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
53027         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
53028         instead of gl_CANON_HOST.
53029         (Makefile.am): Augment lib_SOURCES.
53031 2011-05-23  Bruno Haible  <bruno@clisp.org>
53033         backupfile: Move AC_LIBOBJ invocations to module description.
53034         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
53035         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
53037 2011-05-23  Bruno Haible  <bruno@clisp.org>
53039         argmatch: Move AC_LIBOBJ invocations to module description.
53040         * m4/argmatch.m4: Remove file.
53041         * modules/argmatch (Files): Remove it.
53042         (configure.ac): Remove gl_ARGMATCH call.
53043         (Makefile.am): Augment lib_SOURCES.
53045 2011-05-23  Bruno Haible  <bruno@clisp.org>
53047         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
53048         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
53049         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
53051 2011-05-23  Bruno Haible  <bruno@clisp.org>
53053         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
53054         * m4/arcfour.m4: Remove file.
53055         * modules/crypto/arcfour (Files): Remove it.
53056         (configure.ac): Remove gl_ARCFOUR call.
53057         (Makefile.am): Augment lib_SOURCES.
53059 2011-05-22  Bruno Haible  <bruno@clisp.org>
53061         write: Move AC_LIBOBJ invocations to module description.
53062         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
53063         * modules/write (configure.ac): ... to here.
53065 2011-05-22  Bruno Haible  <bruno@clisp.org>
53067         wmemset: Move AC_LIBOBJ invocations to module description.
53068         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
53069         here...
53070         * modules/wmemset (configure.ac): ... to here.
53072 2011-05-22  Bruno Haible  <bruno@clisp.org>
53074         wmemmove: Move AC_LIBOBJ invocations to module description.
53075         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
53076         here...
53077         * modules/wmemmove (configure.ac): ... to here.
53079 2011-05-22  Bruno Haible  <bruno@clisp.org>
53081         wmemcpy: Move AC_LIBOBJ invocations to module description.
53082         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
53083         here...
53084         * modules/wmemcpy (configure.ac): ... to here.
53086 2011-05-22  Bruno Haible  <bruno@clisp.org>
53088         wmemcmp: Move AC_LIBOBJ invocations to module description.
53089         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
53090         here...
53091         * modules/wmemcmp (configure.ac): ... to here.
53093 2011-05-22  Bruno Haible  <bruno@clisp.org>
53095         wmemchr: Move AC_LIBOBJ invocations to module description.
53096         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
53097         here...
53098         * modules/wmemchr (configure.ac): ... to here.
53100 2011-05-22  Bruno Haible  <bruno@clisp.org>
53102         wcswidth: Move AC_LIBOBJ invocations to module description.
53103         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
53104         here...
53105         * modules/wcswidth (configure.ac): ... to here.
53107 2011-05-22  Bruno Haible  <bruno@clisp.org>
53109         wcwidth: Respect rules for use of AC_LIBOBJ.
53110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
53111         invocation from here...
53112         * modules/wcwidth (configure.ac): ... to here.
53113         (Depends-on): Update conditions.
53115 2011-05-22  Bruno Haible  <bruno@clisp.org>
53117         wctype: Move AC_LIBOBJ invocations to module description.
53118         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
53119         invocation from here...
53120         * modules/wctype (configure.ac): ... to here.
53121         (Depends-on): Update conditions.
53123 2011-05-22  Bruno Haible  <bruno@clisp.org>
53125         wctrans: Move AC_LIBOBJ invocations to module description.
53126         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
53127         invocation from here...
53128         * modules/wctrans (configure.ac): ... to here.
53130 2011-05-22  Bruno Haible  <bruno@clisp.org>
53132         wctomb: Move AC_LIBOBJ invocations to module description.
53133         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
53134         invocations from here...
53135         * modules/wctomb (configure.ac): ... to here.
53137 2011-05-22  Bruno Haible  <bruno@clisp.org>
53139         wctob: Move AC_LIBOBJ invocations to module description.
53140         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
53141         gl_PREREQ_WCTOB invocations from here...
53142         * modules/wctob (configure.ac): ... to here.
53143         (Depends-on): Update conditions.
53145 2011-05-22  Bruno Haible  <bruno@clisp.org>
53147         wcsxfrm: Move AC_LIBOBJ invocations to module description.
53148         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
53149         here...
53150         * modules/wcsxfrm (configure.ac): ... to here.
53152 2011-05-22  Bruno Haible  <bruno@clisp.org>
53154         wcstok: Move AC_LIBOBJ invocations to module description.
53155         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
53156         * modules/wcstok (configure.ac): ... to here.
53158 2011-05-22  Bruno Haible  <bruno@clisp.org>
53160         wcsstr: Move AC_LIBOBJ invocations to module description.
53161         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
53162         * modules/wcsstr (configure.ac): ... to here.
53164 2011-05-22  Bruno Haible  <bruno@clisp.org>
53166         wcsspn: Move AC_LIBOBJ invocations to module description.
53167         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
53168         * modules/wcsspn (configure.ac): ... to here.
53170 2011-05-22  Bruno Haible  <bruno@clisp.org>
53172         wcsrtombs: Move AC_LIBOBJ invocations to module description.
53173         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
53174         gl_PREREQ_WCSRTOMBS invocations from here...
53175         * modules/wcsrtombs (configure.ac): ... to here.
53177 2011-05-22  Bruno Haible  <bruno@clisp.org>
53179         wcsrchr: Move AC_LIBOBJ invocations to module description.
53180         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
53181         here...
53182         * modules/wcsrchr (configure.ac): ... to here.
53184 2011-05-22  Bruno Haible  <bruno@clisp.org>
53186         wcspbrk: Move AC_LIBOBJ invocations to module description.
53187         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
53188         here...
53189         * modules/wcspbrk (configure.ac): ... to here.
53191 2011-05-22  Bruno Haible  <bruno@clisp.org>
53193         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
53194         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
53195         gl_PREREQ_WCSNRTOMBS invocations from here...
53196         * modules/wcsnrtombs (configure.ac): ... to here.
53198 2011-05-22  Bruno Haible  <bruno@clisp.org>
53200         wcsnlen: Move AC_LIBOBJ invocations to module description.
53201         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
53202         here...
53203         * modules/wcsnlen (configure.ac): ... to here.
53205 2011-05-22  Bruno Haible  <bruno@clisp.org>
53207         wcsncpy: Move AC_LIBOBJ invocations to module description.
53208         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
53209         here...
53210         * modules/wcsncpy (configure.ac): ... to here.
53212 2011-05-22  Bruno Haible  <bruno@clisp.org>
53214         wcsncmp: Move AC_LIBOBJ invocations to module description.
53215         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
53216         here...
53217         * modules/wcsncmp (configure.ac): ... to here.
53219 2011-05-22  Bruno Haible  <bruno@clisp.org>
53221         wcsncat: Move AC_LIBOBJ invocations to module description.
53222         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
53223         here...
53224         * modules/wcsncat (configure.ac): ... to here.
53226 2011-05-22  Bruno Haible  <bruno@clisp.org>
53228         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
53229         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
53230         from here...
53231         * modules/wcsncasecmp (configure.ac): ... to here.
53233 2011-05-22  Bruno Haible  <bruno@clisp.org>
53235         wcslen: Move AC_LIBOBJ invocations to module description.
53236         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
53237         * modules/wcslen (configure.ac): ... to here.
53239 2011-05-22  Bruno Haible  <bruno@clisp.org>
53241         wcsdup: Move AC_LIBOBJ invocations to module description.
53242         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
53243         * modules/wcsdup (configure.ac): ... to here.
53245 2011-05-22  Bruno Haible  <bruno@clisp.org>
53247         wcscspn: Move AC_LIBOBJ invocations to module description.
53248         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
53249         here...
53250         * modules/wcscspn (configure.ac): ... to here.
53252 2011-05-22  Bruno Haible  <bruno@clisp.org>
53254         wcscpy: Move AC_LIBOBJ invocations to module description.
53255         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
53256         * modules/wcscpy (configure.ac): ... to here.
53258 2011-05-22  Bruno Haible  <bruno@clisp.org>
53260         wcscoll: Move AC_LIBOBJ invocations to module description.
53261         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
53262         here...
53263         * modules/wcscoll (configure.ac): ... to here.
53265 2011-05-22  Bruno Haible  <bruno@clisp.org>
53267         wcscmp: Move AC_LIBOBJ invocations to module description.
53268         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
53269         * modules/wcscmp (configure.ac): ... to here.
53271 2011-05-22  Bruno Haible  <bruno@clisp.org>
53273         wcschr: Move AC_LIBOBJ invocations to module description.
53274         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
53275         * modules/wcschr (configure.ac): ... to here.
53277 2011-05-22  Bruno Haible  <bruno@clisp.org>
53279         wcscat: Move AC_LIBOBJ invocations to module description.
53280         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
53281         * modules/wcscat (configure.ac): ... to here.
53283 2011-05-22  Bruno Haible  <bruno@clisp.org>
53285         wcscasecmp: Move AC_LIBOBJ invocations to module description.
53286         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
53287         here...
53288         * modules/wcscasecmp (configure.ac): ... to here.
53290 2011-05-22  Bruno Haible  <bruno@clisp.org>
53292         wcrtomb: Move AC_LIBOBJ invocations to module description.
53293         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
53294         invocations from here...
53295         * modules/wcrtomb (configure.ac): ... to here.
53297 2011-05-22  Bruno Haible  <bruno@clisp.org>
53299         wcpncpy: Move AC_LIBOBJ invocations to module description.
53300         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
53301         here...
53302         * modules/wcpncpy (configure.ac): ... to here.
53304 2011-05-22  Bruno Haible  <bruno@clisp.org>
53306         wcpcpy: Move AC_LIBOBJ invocations to module description.
53307         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
53308         * modules/wcpcpy (configure.ac): ... to here.
53310 2011-05-22  Bruno Haible  <bruno@clisp.org>
53312         waitpid: Move AC_LIBOBJ invocations to module description.
53313         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
53314         invocation from here...
53315         * modules/waitpid (configure.ac): ... to here.
53317 2011-05-22  Bruno Haible  <bruno@clisp.org>
53319         utimensat: Move AC_LIBOBJ invocations to module description.
53320         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
53321         here...
53322         * modules/utimensat (configure.ac): ... to here.
53324 2011-05-22  Bruno Haible  <bruno@clisp.org>
53326         usleep: Move AC_LIBOBJ invocations to module description.
53327         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
53328         here...
53329         * modules/usleep (configure.ac): ... to here.
53331 2011-05-22  Bruno Haible  <bruno@clisp.org>
53333         unlockpt: Move AC_LIBOBJ invocations to module description.
53334         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
53335         gl_PREREQ_UNLOCKPT invocations from here...
53336         * modules/unlockpt (configure.ac): ... to here.
53338 2011-05-22  Bruno Haible  <bruno@clisp.org>
53340         unlink: Respect rules for use of AC_LIBOBJ.
53341         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
53342         * modules/unlink (configure.ac): ... to here.
53344 2011-05-22  Bruno Haible  <bruno@clisp.org>
53346         uname: Move AC_LIBOBJ invocations to module description.
53347         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
53348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
53349         here...
53350         * modules/uname (configure.ac): ... to here.
53352 2011-05-22  Bruno Haible  <bruno@clisp.org>
53354         ttyname_r: Move AC_LIBOBJ invocations to module description.
53355         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
53356         gl_PREREQ_TTYNAME_R invocations from here...
53357         * modules/ttyname_r (configure.ac): ... to here.
53359 2011-05-22  Bruno Haible  <bruno@clisp.org>
53361         tsearch: Move AC_LIBOBJ invocations to module description.
53362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
53363         invocations from here...
53364         * modules/tsearch (configure.ac): ... to here.
53366 2011-05-22  Bruno Haible  <bruno@clisp.org>
53368         towctrans: Move AC_LIBOBJ invocations to module description.
53369         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
53370         AC_LIBOBJ invocation from here...
53371         * modules/towctrans (configure.ac): ... to here.
53373 2011-05-22  Bruno Haible  <bruno@clisp.org>
53375         tmpfile: Move AC_LIBOBJ invocations to module description.
53376         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
53377         invocations from here...
53378         * modules/tmpfile (configure.ac): ... to here.
53380 2011-05-22  Bruno Haible  <bruno@clisp.org>
53382         times: Move AC_LIBOBJ invocations to module description.
53383         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
53384         * modules/times (configure.ac): ... to here.
53386 2011-05-22  Bruno Haible  <bruno@clisp.org>
53388         time_r: Move AC_LIBOBJ invocations to module description.
53389         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
53390         invocations from here...
53391         * modules/time_r (configure.ac): ... to here.
53393 2011-05-22  Bruno Haible  <bruno@clisp.org>
53395         timegm: Move AC_LIBOBJ invocations to module description.
53396         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
53397         invocations from here...
53398         * modules/timegm (configure.ac): ... to here.
53400 2011-05-22  Bruno Haible  <bruno@clisp.org>
53402         tcgetsid: Move AC_LIBOBJ invocations to module description.
53403         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
53404         and gl_PREREQ_TCGETSID invocations from here...
53405         * modules/tcgetsid (configure.ac): ... to here.
53406         (Depends-on): Update conditions.
53408 2011-05-22  Bruno Haible  <bruno@clisp.org>
53410         symlinkat: Move AC_LIBOBJ invocations to module description.
53411         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
53412         here...
53413         * modules/symlinkat (configure.ac): ... to here.
53415 2011-05-22  Bruno Haible  <bruno@clisp.org>
53417         symlink: Move AC_LIBOBJ invocations to module description.
53418         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
53419         here...
53420         * modules/symlink (configure.ac): ... to here.
53422 2011-05-22  Bruno Haible  <bruno@clisp.org>
53424         strverscmp: Move AC_LIBOBJ invocations to module description.
53425         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53426         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53427         from here...
53428         * modules/strverscmp (configure.ac): ... to here.
53430 2011-05-22  Bruno Haible  <bruno@clisp.org>
53432         strtok_r: Move AC_LIBOBJ invocations to module description.
53433         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53434         and gl_PREREQ_STRTOK_R invocations from here...
53435         * modules/strtok_r (configure.ac): ... to here.
53436         (Depends-on): Update conditions.
53438 2011-05-22  Bruno Haible  <bruno@clisp.org>
53440         strtoumax: Move AC_LIBOBJ invocations to module description.
53441         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53442         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53443         from here...
53444         * modules/strtoumax (configure.ac): ... to here.
53446 2011-05-22  Bruno Haible  <bruno@clisp.org>
53448         strtoimax: Move AC_LIBOBJ invocations to module description.
53449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53451         from here...
53452         * modules/strtoimax (configure.ac): ... to here.
53454 2011-05-22  Bruno Haible  <bruno@clisp.org>
53456         strtoull: Move AC_LIBOBJ invocations to module description.
53457         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53458         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53459         from here...
53460         * modules/strtoull (configure.ac): ... to here.
53462 2011-05-22  Bruno Haible  <bruno@clisp.org>
53464         strtoll: Move AC_LIBOBJ invocations to module description.
53465         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53466         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53467         here...
53468         * modules/strtoll (configure.ac): ... to here.
53470 2011-05-22  Bruno Haible  <bruno@clisp.org>
53472         strtoul: Move AC_LIBOBJ invocations to module description.
53473         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53474         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53475         * modules/strtoul (configure.ac): ... to here.
53477 2011-05-22  Bruno Haible  <bruno@clisp.org>
53479         strtol: Move AC_LIBOBJ invocations to module description.
53480         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53481         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53482         * modules/strtol (configure.ac): ... to here.
53484 2011-05-22  Bruno Haible  <bruno@clisp.org>
53486         strtod: Move AC_LIBOBJ invocations to module description.
53487         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53488         invocations from here...
53489         * modules/strtod (configure.ac): ... to here.
53491 2011-05-22  Bruno Haible  <bruno@clisp.org>
53493         strstr*: Move AC_LIBOBJ invocations to module description.
53494         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53495         invocations from here...
53496         * modules/strstr-simple (configure.ac): ... to here.
53497         * modules/strstr (configure.ac): ... and here.
53499 2011-05-22  Bruno Haible  <bruno@clisp.org>
53501         strsignal: Move AC_LIBOBJ invocations to module description.
53502         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53503         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53504         * modules/strsignal (configure.ac): ... to here.
53505         (Depends-on): Update conditions.
53507 2011-05-22  Bruno Haible  <bruno@clisp.org>
53509         strsep: Move AC_LIBOBJ invocations to module description.
53510         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53511         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53512         here...
53513         * modules/strsep (configure.ac): ... to here.
53515 2011-05-22  Bruno Haible  <bruno@clisp.org>
53517         strptime: Move AC_LIBOBJ invocations to module description.
53518         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53519         gl_PREREQ_STRPTIME invocations from here...
53520         * modules/strptime (configure.ac): ... to here.
53522 2011-05-22  Bruno Haible  <bruno@clisp.org>
53524         strpbrk: Move AC_LIBOBJ invocations to module description.
53525         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53527         here...
53528         * modules/strpbrk (configure.ac): ... to here.
53530 2011-05-22  Bruno Haible  <bruno@clisp.org>
53532         strnlen: Move AC_LIBOBJ invocations to module description.
53533         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53534         invocations from here...
53535         * modules/strnlen (configure.ac): ... to here.
53537 2011-05-22  Bruno Haible  <bruno@clisp.org>
53539         strndup: Move AC_LIBOBJ invocations to module description.
53540         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53541         invocations from here...
53542         * modules/strndup (configure.ac): ... to here.
53543         (Depends-on): Update conditions.
53545 2011-05-22  Bruno Haible  <bruno@clisp.org>
53547         strncat: Move AC_LIBOBJ invocations to module description.
53548         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53549         invocations from here...
53550         * modules/strncat (configure.ac): ... to here.
53552 2011-05-22  Bruno Haible  <bruno@clisp.org>
53554         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53555         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53556         invocations from here...
53557         * modules/strdup (configure.ac): ... to here.
53558         * modules/strdup-posix (configure.ac): ... and here.
53560 2011-05-22  Bruno Haible  <bruno@clisp.org>
53562         strcspn: Move AC_LIBOBJ invocations to module description.
53563         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53564         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53565         here...
53566         * modules/strcspn (configure.ac): ... to here.
53568 2011-05-22  Bruno Haible  <bruno@clisp.org>
53570         strchrnul: Move AC_LIBOBJ invocations to module description.
53571         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53572         gl_PREREQ_STRCHRNUL invocations from here...
53573         * modules/strchrnul (configure.ac): ... to here.
53575 2011-05-22  Bruno Haible  <bruno@clisp.org>
53577         strcasestr*: Move AC_LIBOBJ invocations to module description.
53578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53579         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53580         * modules/strcasestr-simple (configure.ac): ... to here.
53581         * modules/strcasestr (configure.ac): ... and here.
53583 2011-05-22  Bruno Haible  <bruno@clisp.org>
53585         strcase: Move AC_LIBOBJ invocations to module description.
53586         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53587         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53588         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53589         gl_PREREQ_STRNCASECMP invocations from here...
53590         * modules/strcase (configure.ac): ... to here.
53592 2011-05-22  Bruno Haible  <bruno@clisp.org>
53594         stpncpy: Move AC_LIBOBJ invocations to module description.
53595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53596         here...
53597         * modules/stpncpy (configure.ac): ... to here.
53599 2011-05-22  Bruno Haible  <bruno@clisp.org>
53601         stpcpy: Move AC_LIBOBJ invocations to module description.
53602         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53604         here...
53605         * modules/stpcpy (configure.ac): ... to here.
53607 2011-05-21  Bruno Haible  <bruno@clisp.org>
53609         stat: Move AC_LIBOBJ invocations to module description.
53610         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53611         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53612         here...
53613         * modules/stat (configure.ac): ... to here.
53615 2011-05-21  Bruno Haible  <bruno@clisp.org>
53617         sleep: Move AC_LIBOBJ invocations to module description.
53618         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53619         * modules/sleep (configure.ac): ... to here.
53621 2011-05-21  Bruno Haible  <bruno@clisp.org>
53623         signbit: Move AC_LIBOBJ invocations to module description.
53624         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53625         * modules/signbit (configure.ac): ... to here.
53627 2011-05-21  Bruno Haible  <bruno@clisp.org>
53629         sigprocmask: Move AC_LIBOBJ invocations to module description.
53630         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53631         gl_PREREQ_SIGPROMASK invocations from here...
53632         * modules/sigprocmask (configure.ac): ... to here.
53634 2011-05-21  Bruno Haible  <bruno@clisp.org>
53636         sigaction: Move AC_LIBOBJ invocations to module description.
53637         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53638         gl_PREREQ_SIGACTION invocations from here...
53639         * modules/sigaction (configure.ac): ... to here.
53641 2011-05-21  Bruno Haible  <bruno@clisp.org>
53643         sig2str: Move AC_LIBOBJ invocations to module description.
53644         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53646         here...
53647         * modules/sig2str (configure.ac): ... to here.
53649 2011-05-21  Bruno Haible  <bruno@clisp.org>
53651         setlocale: Move AC_LIBOBJ invocations to module description.
53652         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53653         gl_PREREQ_SETLOCALE invocations from here...
53654         * modules/setlocale (configure.ac): ... to here.
53656 2011-05-21  Bruno Haible  <bruno@clisp.org>
53658         unsetenv: Move AC_LIBOBJ invocations to module description.
53659         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53660         and gl_PREREQ_UNSETENV invocations from here...
53661         * modules/unsetenv (configure.ac): ... to here.
53662         (Depends-on): Update.
53664 2011-05-21  Bruno Haible  <bruno@clisp.org>
53666         setenv: Move AC_LIBOBJ invocations to module description.
53667         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53668         here...
53669         * modules/setenv (configure.ac): ... to here.
53671 2011-05-21  Bruno Haible  <bruno@clisp.org>
53673         selinux-h: Move AC_LIBOBJ invocations to module description.
53674         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53675         AC_LIBOBJ invocation from here...
53676         * modules/selinux-h (configure.ac): ... to here.
53678 2011-05-21  Bruno Haible  <bruno@clisp.org>
53680         select: Respect rules for use of AC_LIBOBJ.
53681         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53682         here...
53683         * modules/select (configure.ac): ... to here.
53685 2011-05-21  Bruno Haible  <bruno@clisp.org>
53687         scandir: Move AC_LIBOBJ invocations to module description.
53688         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53689         invocations from here...
53690         * modules/scandir (configure.ac): ... to here.
53692 2011-05-21  Bruno Haible  <bruno@clisp.org>
53694         rpmatch: Move AC_LIBOBJ invocations to module description.
53695         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53697         here...
53698         * modules/rpmatch (configure.ac): ... to here.
53700 2011-05-21  Bruno Haible  <bruno@clisp.org>
53702         rmdir: Respect rules for use of AC_LIBOBJ.
53703         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53704         * modules/rmdir (configure.ac): ... to here.
53706 2011-05-21  Bruno Haible  <bruno@clisp.org>
53708         renameat: Move AC_LIBOBJ invocations to module description.
53709         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53710         here...
53711         * modules/renameat (configure.ac): ... to here.
53713 2011-05-21  Bruno Haible  <bruno@clisp.org>
53715         rename: Respect rules for use of AC_LIBOBJ.
53716         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53717         here...
53718         * modules/rename (configure.ac): ... to here.
53720 2011-05-21  Bruno Haible  <bruno@clisp.org>
53722         remove: Move AC_LIBOBJ invocations to module description.
53723         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53724         here...
53725         * modules/remove (configure.ac): ... to here.
53727 2011-05-21  Bruno Haible  <bruno@clisp.org>
53729         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53730         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53731         macro.
53732         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53733         * modules/relocatable-lib (configure.ac): ... to here.
53734         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53735         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53737 2011-05-21  Bruno Haible  <bruno@clisp.org>
53739         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53740         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53741         here...
53742         * modules/relocatable-prog (configure.ac): ... to here.
53744 2011-05-21  Bruno Haible  <bruno@clisp.org>
53746         regex: Move AC_LIBOBJ invocations to module description.
53747         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53748         invocations from here...
53749         * modules/regex (configure.ac): ... to here.
53751 2011-05-21  Bruno Haible  <bruno@clisp.org>
53753         realloc-*: Move AC_LIBOBJ invocations to module description.
53754         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53755         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53756         AC_LIBOBJ invocations from here...
53757         * modules/realloc-gnu (configure.ac): ... to here.
53758         * modules/realloc-posix (configure.ac): ... and here.
53760 2011-05-21  Bruno Haible  <bruno@clisp.org>
53762         readutmp: Move AC_LIBOBJ invocations to module description.
53763         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53764         * modules/readutmp (configure.ac): ... to here.
53766 2011-05-21  Bruno Haible  <bruno@clisp.org>
53768         readlinkat: Move AC_LIBOBJ invocations to module description.
53769         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53770         here...
53771         * modules/readlinkat (configure.ac): ... to here.
53773 2011-05-21  Bruno Haible  <bruno@clisp.org>
53775         readlink: Move AC_LIBOBJ invocations to module description.
53776         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53777         gl_PREREQ_READLINK invocations from here...
53778         * modules/readlink (configure.ac): ... to here.
53780 2011-05-21  Bruno Haible  <bruno@clisp.org>
53782         readline: Move AC_LIBOBJ invocations to module description.
53783         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53784         gl_PREREQ_READLINE invocations from here...
53785         * modules/readline (configure.ac): ... to here.
53787 2011-05-21  Bruno Haible  <bruno@clisp.org>
53789         read: Move AC_LIBOBJ invocations to module description.
53790         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53791         * modules/read (configure.ac): ... to here.
53793 2011-05-21  Bruno Haible  <bruno@clisp.org>
53795         rawmemchr: Move AC_LIBOBJ invocations to module description.
53796         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53798         from here...
53799         * modules/rawmemchr (configure.ac): ... to here.
53801 2011-05-21  Bruno Haible  <bruno@clisp.org>
53803         random_r: Move AC_LIBOBJ invocations to module description.
53804         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53805         gl_PREREQ_RANDOM_R invocations from here...
53806         * modules/random_r (configure.ac): ... to here.
53808 2011-05-21  Bruno Haible  <bruno@clisp.org>
53810         pwrite: Move AC_LIBOBJ invocations to module description.
53811         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53812         * modules/pwrite (configure.ac): ... to here.
53814 2011-05-21  Bruno Haible  <bruno@clisp.org>
53816         putenv: Move AC_LIBOBJ invocations to module description.
53817         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53818         * modules/putenv (configure.ac): ... to here.
53820 2011-05-21  Bruno Haible  <bruno@clisp.org>
53822         login_tty: Move AC_LIBOBJ invocations to module description.
53823         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53824         * modules/login_tty (configure.ac): ... to here.
53826 2011-05-21  Bruno Haible  <bruno@clisp.org>
53828         openpty: Move AC_LIBOBJ invocations to module description.
53829         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53830         * modules/openpty (configure.ac): ... to here.
53832 2011-05-21  Bruno Haible  <bruno@clisp.org>
53834         forkpty: Move AC_LIBOBJ invocations to module description.
53835         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53836         * modules/forkpty (configure.ac): ... to here.
53838 2011-05-21  Bruno Haible  <bruno@clisp.org>
53840         ptsname: Move AC_LIBOBJ invocations to module description.
53841         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53842         invocations from here...
53843         * modules/ptsname (configure.ac): ... to here.
53845 2011-05-21  Bruno Haible  <bruno@clisp.org>
53847         pread: Move AC_LIBOBJ invocations to module description.
53848         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53849         * modules/pread (configure.ac): ... to here.
53851 2011-05-21  Bruno Haible  <bruno@clisp.org>
53853         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53854         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53855         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53856         * modules/posix_spawn (configure.ac): ... to here.
53857         * modules/posix_spawnp (configure.ac): ... and here.
53859 2011-05-21  Bruno Haible  <bruno@clisp.org>
53861         popen: Move AC_LIBOBJ invocations to module description.
53862         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53863         invocations from here...
53864         * modules/popen (configure.ac): ... to here.
53866 2011-05-21  Bruno Haible  <bruno@clisp.org>
53868         poll: Move AC_LIBOBJ invocations to module description.
53869         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53870         invocations from here...
53871         * modules/poll (configure.ac): ... to here.
53873 2011-05-21  Bruno Haible  <bruno@clisp.org>
53875         pipe-posix: Move AC_LIBOBJ invocations to module description.
53876         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53877         * modules/pipe-posix (configure.ac): ... to here.
53879 2011-05-21  Bruno Haible  <bruno@clisp.org>
53881         openat: Respect rules for use of AC_LIBOBJ.
53882         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53883         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53884         * modules/openat (configure.ac): ... to here.
53886 2011-05-21  Bruno Haible  <bruno@clisp.org>
53888         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53889         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53890         invocation from here...
53891         * modules/obstack-printf (configure.ac): ... to here.
53892         * modules/obstack-printf-posix (configure.ac): ... and here.
53894 2011-05-21  Bruno Haible  <bruno@clisp.org>
53896         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53898         from here...
53899         * modules/nl_langinfo (configure.ac): ... to here.
53901 2011-05-21  Bruno Haible  <bruno@clisp.org>
53903         nanosleep: Move AC_LIBOBJ invocations to module description.
53904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53905         gl_PREREQ_NANOSLEEP invocations from here...
53906         * modules/nanosleep (configure.ac): ... to here.
53908 2011-05-21  Bruno Haible  <bruno@clisp.org>
53910         mountlist: Move AC_LIBOBJ invocations to module description.
53911         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53912         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53913         * modules/mountlist (configure.ac): ... to here.
53915 2011-05-21  Bruno Haible  <bruno@clisp.org>
53917         mktime: Respect rules for use of AC_LIBOBJ.
53918         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53919         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53920         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53921         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53922         * modules/mktime (configure.ac): ... to here.
53923         * modules/mktime-internal (configure.ac): ... and here.
53924         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53926 2011-05-21  Bruno Haible  <bruno@clisp.org>
53928         mkstemps: Move AC_LIBOBJ invocations to module description.
53929         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53930         here...
53931         * modules/mkstemps (configure.ac): ... to here.
53933 2011-05-21  Bruno Haible  <bruno@clisp.org>
53935         mkstemp: Move AC_LIBOBJ invocations to module description.
53936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53937         gl_PREREQ_MKSTEMP invocations from here...
53938         * modules/mkstemp (configure.ac): ... to here.
53940 2011-05-21  Bruno Haible  <bruno@clisp.org>
53942         mkostemps: Move AC_LIBOBJ invocations to module description.
53943         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53944         here...
53945         * modules/mkostemps (configure.ac): ... to here.
53947 2011-05-21  Bruno Haible  <bruno@clisp.org>
53949         mkostemp: Move AC_LIBOBJ invocations to module description.
53950         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53951         gl_PREREQ_MKOSTEMP invocations from here...
53952         * modules/mkostemp (configure.ac): ... to here.
53954 2011-05-21  Bruno Haible  <bruno@clisp.org>
53956         mknod: Move AC_LIBOBJ invocations to module description.
53957         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53958         * modules/mknod (configure.ac): ... to here.
53960 2011-05-21  Bruno Haible  <bruno@clisp.org>
53962         mkfifoat: Move AC_LIBOBJ invocations to module description.
53963         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53964         here...
53965         * modules/mkfifoat (configure.ac): ... to here.
53967 2011-05-21  Bruno Haible  <bruno@clisp.org>
53969         mkfifo: Respect rules for use of AC_LIBOBJ.
53970         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53971         here...
53972         * modules/mkfifo (configure.ac): ... to here.
53974 2011-05-21  Bruno Haible  <bruno@clisp.org>
53976         mkdtemp: Move AC_LIBOBJ invocations to module description.
53977         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53978         invocations from here...
53979         * modules/mkdtemp (configure.ac): ... to here.
53981 2011-05-21  Bruno Haible  <bruno@clisp.org>
53983         mkdir: Move AC_LIBOBJ invocations to module description.
53984         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53985         * modules/mkdir (configure.ac): ... to here.
53987 2011-05-21  Bruno Haible  <bruno@clisp.org>
53989         memset: Move AC_LIBOBJ invocations to module description.
53990         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53992         here...
53993         * modules/memset (configure.ac): ... to here.
53995 2011-05-21  Bruno Haible  <bruno@clisp.org>
53997         memrchr: Move AC_LIBOBJ invocations to module description.
53998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
54000         here...
54001         * modules/memrchr (configure.ac): ... to here.
54003 2011-05-21  Bruno Haible  <bruno@clisp.org>
54005         mempcpy: Move AC_LIBOBJ invocations to module description.
54006         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
54007         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
54008         here...
54009         * modules/mempcpy (configure.ac): ... to here.
54011 2011-05-21  Bruno Haible  <bruno@clisp.org>
54013         memmove: Move AC_LIBOBJ invocations to module description.
54014         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
54015         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
54016         here...
54017         * modules/memmove (configure.ac): ... to here.
54019 2011-05-21  Bruno Haible  <bruno@clisp.org>
54021         memmem*: Move AC_LIBOBJ invocations to module description.
54022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
54023         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
54024         here...
54025         (gl_FUNC_MEMMEM): ... and here...
54026         * modules/memmem-simple (configure.ac): ... to here.
54027         * modules/memmem (configure.ac): ... and here.
54029 2011-05-21  Bruno Haible  <bruno@clisp.org>
54031         memcpy: Move AC_LIBOBJ invocations to module description.
54032         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
54033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
54034         here...
54035         * modules/memcpy (configure.ac): ... to here.
54037 2011-05-21  Bruno Haible  <bruno@clisp.org>
54039         memcmp: Simplify autoconf macro.
54040         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
54041         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
54042         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
54044 2011-05-21  Bruno Haible  <bruno@clisp.org>
54046         memcmp: Move AC_LIBOBJ invocations to module description.
54047         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
54048         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
54049         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
54050         * modules/memcmp (configure.ac): ... to here.
54051         (Depends-on): Update conditions.
54053 2011-05-21  Bruno Haible  <bruno@clisp.org>
54055         memchr: Respect rules for use of AC_LIBOBJ.
54056         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
54057         invocations from here...
54058         * modules/memchr (configure.ac): ... to here.
54060 2011-05-21  Bruno Haible  <bruno@clisp.org>
54062         mbtowc: Move AC_LIBOBJ invocations to module description.
54063         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
54064         invocations from here...
54065         * modules/mbtowc (configure.ac): ... to here.
54067 2011-05-21  Bruno Haible  <bruno@clisp.org>
54069         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
54070         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
54071         gl_PREREQ_MBSRTOWCS invocations from here...
54072         * modules/mbsrtowcs (configure.ac): ... to here.
54074 2011-05-21  Bruno Haible  <bruno@clisp.org>
54076         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
54077         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
54078         gl_PREREQ_MBSNRTOWCS invocations from here...
54079         * modules/mbsnrtowcs (configure.ac): ... to here.
54081 2011-05-21  Bruno Haible  <bruno@clisp.org>
54083         mbsinit: Move AC_LIBOBJ invocations to module description.
54084         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
54085         invocations from here...
54086         * modules/mbsinit (configure.ac): ... to here.
54088 2011-05-21  Bruno Haible  <bruno@clisp.org>
54090         mbrlen: Move AC_LIBOBJ invocations to module description.
54091         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
54092         invocations from here...
54093         * modules/mbrlen (configure.ac): ... to here.
54095 2011-05-21  Bruno Haible  <bruno@clisp.org>
54097         mbrtowc: Respect rules for use of AC_LIBOBJ.
54098         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
54099         invocations from here...
54100         * modules/mbrtowc (configure.ac): ... to here.
54102 2011-05-21  Bruno Haible  <bruno@clisp.org>
54104         malloc-*: Move AC_LIBOBJ invocations to module description.
54105         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
54106         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
54107         AC_LIBOBJ invocations from here...
54108         * modules/malloc-gnu (configure.ac): ... to here.
54109         * modules/malloc-posix (configure.ac): ... and here.
54111 2011-05-21  Bruno Haible  <bruno@clisp.org>
54113         lstat, openat: Respect rules for use of AC_LIBOBJ.
54114         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
54115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
54116         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
54117         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
54118         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
54119         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
54120         here.
54121         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
54123 2011-05-21  Bruno Haible  <bruno@clisp.org>
54125         lseek: Move AC_LIBOBJ invocations to module description.
54126         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
54127         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54128         * modules/lseek (configure.ac): ... to here.
54130 2011-05-21  Bruno Haible  <bruno@clisp.org>
54132         linkat: Move AC_LIBOBJ invocations to module description.
54133         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
54134         here...
54135         * modules/linkat (configure.ac): ... to here.
54137 2011-05-21  Bruno Haible  <bruno@clisp.org>
54139         link: Respect rules for use of AC_LIBOBJ.
54140         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
54141         * modules/link (configure.ac): ... to here.
54143 2011-05-21  Bruno Haible  <bruno@clisp.org>
54145         lchown: Move AC_LIBOBJ invocations to module description.
54146         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54147         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54148         * modules/lchown (configure.ac): ... to here.
54150 2011-05-21  Bruno Haible  <bruno@clisp.org>
54152         iswctype: Move AC_LIBOBJ invocations to module description.
54153         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
54154         here...
54155         * modules/iswctype (configure.ac): ... to here.
54157 2011-05-21  Bruno Haible  <bruno@clisp.org>
54159         iswblank: Move AC_LIBOBJ invocations to module description.
54160         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
54161         here...
54162         * modules/iswblank (configure.ac): ... to here.
54164 2011-05-21  Bruno Haible  <bruno@clisp.org>
54166         atanl: Move AC_LIBOBJ invocations to module description.
54167         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
54168         * modules/atanl (configure.ac): ... to here.
54170 2011-05-21  Bruno Haible  <bruno@clisp.org>
54172         acosl: Move AC_LIBOBJ invocations to module description.
54173         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
54174         * modules/acosl (configure.ac): ... to here.
54176 2011-05-21  Bruno Haible  <bruno@clisp.org>
54178         asinl: Respect rules for use of AC_LIBOBJ.
54179         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
54180         * modules/asinl (configure.ac): ... to here.
54182 2011-05-21  Bruno Haible  <bruno@clisp.org>
54184         tanl: Move AC_LIBOBJ invocations to module description.
54185         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
54186         * modules/tanl (configure.ac): ... to here.
54188 2011-05-21  Bruno Haible  <bruno@clisp.org>
54190         cosl: Move AC_LIBOBJ invocations to module description.
54191         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
54192         * modules/cosl (configure.ac): ... to here.
54194 2011-05-21  Bruno Haible  <bruno@clisp.org>
54196         sinl: Move AC_LIBOBJ invocations to module description.
54197         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
54198         * modules/sinl (configure.ac): ... to here.
54200 2011-05-21  Bruno Haible  <bruno@clisp.org>
54202         logl: Move AC_LIBOBJ invocations to module description.
54203         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
54204         * modules/logl (configure.ac): ... to here.
54206 2011-05-21  Bruno Haible  <bruno@clisp.org>
54208         expl: Move AC_LIBOBJ invocations to module description.
54209         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
54210         * modules/expl (configure.ac): ... to here.
54212 2011-05-21  Bruno Haible  <bruno@clisp.org>
54214         roundl: Move AC_LIBOBJ invocations to module description.
54215         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
54216         * modules/roundl (configure.ac): ... to here.
54218 2011-05-21  Bruno Haible  <bruno@clisp.org>
54220         round: Move AC_LIBOBJ invocations to module description.
54221         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
54222         * modules/round (configure.ac): ... to here.
54224 2011-05-21  Bruno Haible  <bruno@clisp.org>
54226         roundf: Move AC_LIBOBJ invocations to module description.
54227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
54228         * modules/roundf (configure.ac): ... to here.
54230 2011-05-21  Bruno Haible  <bruno@clisp.org>
54232         truncl: Move AC_LIBOBJ invocations to module description.
54233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
54234         * modules/truncl (configure.ac): ... to here.
54236 2011-05-21  Bruno Haible  <bruno@clisp.org>
54238         trunc: Move AC_LIBOBJ invocations to module description.
54239         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
54240         * modules/trunc (configure.ac): ... to here.
54242 2011-05-21  Bruno Haible  <bruno@clisp.org>
54244         truncf: Move AC_LIBOBJ invocations to module description.
54245         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
54246         * modules/truncf (configure.ac): ... to here.
54248 2011-05-21  Bruno Haible  <bruno@clisp.org>
54250         ceill: Move AC_LIBOBJ invocations to module description.
54251         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
54252         * modules/ceill (configure.ac): ... to here.
54254 2011-05-21  Bruno Haible  <bruno@clisp.org>
54256         ceil: Move AC_LIBOBJ invocations to module description.
54257         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
54258         * modules/ceil (configure.ac): ... to here.
54260 2011-05-21  Bruno Haible  <bruno@clisp.org>
54262         ceilf: Move AC_LIBOBJ invocations to module description.
54263         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
54264         * modules/ceilf (configure.ac): ... to here.
54266 2011-05-21  Bruno Haible  <bruno@clisp.org>
54268         floorl: Respect rules for use of AC_LIBOBJ.
54269         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
54270         * modules/floorl (configure.ac): ... to here.
54272 2011-05-21  Bruno Haible  <bruno@clisp.org>
54274         floor: Respect rules for use of AC_LIBOBJ.
54275         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
54276         * modules/floor (configure.ac): ... to here.
54278 2011-05-21  Bruno Haible  <bruno@clisp.org>
54280         floorf: Move AC_LIBOBJ invocations to module description.
54281         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
54282         * modules/floorf (configure.ac): ... to here.
54284 2011-05-20  Bruno Haible  <bruno@clisp.org>
54286         sqrtl: Respect rules for use of AC_LIBOBJ.
54287         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
54288         * modules/sqrtl (configure.ac): ... to here.
54290 2011-05-20  Bruno Haible  <bruno@clisp.org>
54292         ldexpl: Respect rules for use of AC_LIBOBJ.
54293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
54294         * modules/ldexpl (configure.ac): ... to here.
54296 2011-05-20  Bruno Haible  <bruno@clisp.org>
54298         frexpl*: Respect rules for use of AC_LIBOBJ.
54299         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
54300         invocation from here...
54301         * modules/frexpl (configure.ac): ... to here.
54302         * modules/frexpl-nolibm (configure.ac): ... and here.
54304 2011-05-20  Bruno Haible  <bruno@clisp.org>
54306         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
54307         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
54308         invocation from here...
54309         * modules/frexp (configure.ac): ... to here.
54310         * modules/frexp-nolibm (configure.ac): ... and here.
54312 2011-05-20  Bruno Haible  <bruno@clisp.org>
54314         isnan: Respect rules for use of AC_LIBOBJ.
54315         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
54316         invocations here.
54317         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
54318         REPLACE_ISNAN.
54319         * modules/isnand (configure.ac): Likewise.
54320         * modules/isnanl (configure.ac): Likewise.
54322 2011-05-20  Bruno Haible  <bruno@clisp.org>
54324         isnanl*: Respect rules for use of AC_LIBOBJ.
54325         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
54326         invocation from here...
54327         * modules/isnanl (configure.ac): ... to here.
54328         * modules/isnanl-nolibm (configure.ac): ... and here.
54330 2011-05-20  Bruno Haible  <bruno@clisp.org>
54332         isnand*: Move AC_LIBOBJ invocations to module description.
54333         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
54334         invocation from here...
54335         * modules/isnand (configure.ac): ... to here.
54336         * modules/isnand-nolibm (configure.ac): ... and here.
54338 2011-05-20  Bruno Haible  <bruno@clisp.org>
54340         isnanf*: Move AC_LIBOBJ invocations to module description.
54341         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
54342         invocation from here...
54343         * modules/isnanf (configure.ac): ... to here.
54344         * modules/isnanf-nolibm (configure.ac): ... and here.
54346 2011-05-20  Bruno Haible  <bruno@clisp.org>
54348         isnan*: Separate the AC_LIBOBJ invocations.
54349         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
54350         AC_LIBOBJ invocation.
54351         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
54352         here.
54353         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
54354         AC_LIBOBJ invocation.
54355         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
54356         here.
54357         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
54358         AC_LIBOBJ invocation.
54359         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
54360         here.
54361         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
54363 2011-05-08  Bruno Haible  <bruno@clisp.org>
54365         isinf: Move AC_LIBOBJ invocations to module description.
54366         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
54367         * modules/isinf (configure.ac): ... to here.
54369 2011-05-08  Bruno Haible  <bruno@clisp.org>
54371         isfinite: Move AC_LIBOBJ invocations to module description.
54372         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
54373         * modules/isfinite (configure.ac): ... to here.
54375 2011-05-08  Bruno Haible  <bruno@clisp.org>
54377         isblank: Move AC_LIBOBJ invocations to module description.
54378         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
54379         here...
54380         * modules/isblank (configure.ac): ... to here.
54382 2011-05-08  Bruno Haible  <bruno@clisp.org>
54384         isapipe: Move AC_LIBOBJ invocations to module description.
54385         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
54386         gl_PREREQ_ISAPIPE invocations from here...
54387         * modules/isapipe (configure.ac): ... to here.
54388         (Depends-on): Update condition.
54390 2011-05-08  Bruno Haible  <bruno@clisp.org>
54392         ioctl: Move AC_LIBOBJ invocations to module description.
54393         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
54394         invocations from here...
54395         * modules/ioctl (configure.ac): ... to here.
54396         (Depends-on): Update condition.
54398 2011-05-08  Bruno Haible  <bruno@clisp.org>
54400         imaxdiv: Move AC_LIBOBJ invocations to module description.
54401         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
54402         invocations from here...
54403         * modules/imaxdiv (configure.ac): ... to here.
54405 2011-05-08  Bruno Haible  <bruno@clisp.org>
54407         imaxabs: Move AC_LIBOBJ invocations to module description.
54408         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
54409         invocations from here...
54410         * modules/imaxabs (configure.ac): ... to here.
54412 2011-05-08  Bruno Haible  <bruno@clisp.org>
54414         getaddrinfo: Move AC_LIBOBJ invocations to module description.
54415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
54416         AC_LIBOBJ invocations from here...
54417         * modules/getaddrinfo (configure.ac): ... to here.
54418         (Depends-on): Add conditions.
54420 2011-05-08  Bruno Haible  <bruno@clisp.org>
54422         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54423         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54424         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54425         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54426         (gl_PREREQ_INET_PTON): ... from here.
54427         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54428         gl_PREREQ_INET_PTON here.
54429         (Depends-on): Update condition.
54431 2011-05-08  Bruno Haible  <bruno@clisp.org>
54433         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54434         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54435         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54436         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54437         (gl_PREREQ_INET_NTOP): ... from here.
54438         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54439         gl_PREREQ_INET_NTOP here.
54440         (Depends-on): Update condition.
54442 2011-05-08  Bruno Haible  <bruno@clisp.org>
54444         iconv_open: Move AC_LIBOBJ invocations to module description.
54445         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54446         AC_LIBOBJ invocations from here...
54447         * modules/iconv_open (configure.ac): ... to here.
54449 2011-05-08  Bruno Haible  <bruno@clisp.org>
54451         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54452         If module 'iconv_open' is among the main modules and module
54453         'iconv_open-utf' is among the tests dependencies, then
54454         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54455         return the special iconv_t values. Therefore iconv() and iconv_close()
54456         must support these special iconv_t values, already in lib, not only in
54457         tests.
54458         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54460         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54461         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54462         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54463         (Depends-on): Add the dependencies of iconv_open-utf.
54464         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54465         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54466         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54468 2011-05-08  Bruno Haible  <bruno@clisp.org>
54470         group-member: Move AC_LIBOBJ invocations to module description.
54471         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54472         gl_PREREQ_GROUP_MEMBER invocations from here...
54473         * modules/group-member (configure.ac): ... to here.
54475 2011-05-08  Bruno Haible  <bruno@clisp.org>
54477         grantpt: Move AC_LIBOBJ invocations to module description.
54478         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54479         invocations from here...
54480         * modules/grantpt (configure.ac): ... to here.
54482 2011-05-08  Bruno Haible  <bruno@clisp.org>
54484         glob: Move AC_LIBOBJ invocations to module description.
54485         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54486         from here...
54487         * modules/glob (configure.ac): ... to here.
54489 2011-05-08  Bruno Haible  <bruno@clisp.org>
54491         getusershell: Move AC_LIBOBJ invocations to module description.
54492         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54493         Move AC_LIBOBJ invocation from here...
54494         * modules/getusershell (configure.ac): ... to here.
54495         (Depends-on): Update condition.
54497 2011-05-08  Bruno Haible  <bruno@clisp.org>
54499         gettimeofday: Move AC_LIBOBJ invocations to module description.
54500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54501         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54502         gl_PREREQ_GETTIMEOFDAY invocations from here...
54503         * modules/gettimeofday (configure.ac): ... to here.
54505 2011-05-08  Bruno Haible  <bruno@clisp.org>
54507         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54508         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54509         just gl_FUNC_TZSET.
54510         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54511         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54513         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54515 2011-05-08  Bruno Haible  <bruno@clisp.org>
54517         getsubopt: Move AC_LIBOBJ invocations to module description.
54518         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54519         gl_PREREQ_GETSUBOPT invocations from here...
54520         * modules/getsubopt (configure.ac): ... to here.
54522 2011-05-08  Bruno Haible  <bruno@clisp.org>
54524         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54525         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54526         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54527         * modules/getpass-gnu (configure.ac): ... to here.
54529 2011-05-08  Bruno Haible  <bruno@clisp.org>
54531         getpass: Move AC_LIBOBJ invocations to module description.
54532         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54533         gl_PREREQ_GETPASS invocations from here...
54534         * modules/getpass (configure.ac): ... to here.
54536 2011-05-08  Bruno Haible  <bruno@clisp.org>
54538         getpagesize: Move AC_LIBOBJ invocations to module description.
54539         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54540         from here...
54541         * modules/getpagesize (configure.ac): ... to here.
54543 2011-05-08  Bruno Haible  <bruno@clisp.org>
54545         getopt: Move AC_LIBOBJ invocations to module description.
54546         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54547         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54548         invocations from here...
54549         * modules/getopt-gnu (configure.ac): ... to here.
54550         * modules/getopt-posix (configure.ac): ... and here.
54551         (Depends-on): Update condition.
54553 2011-05-08  Bruno Haible  <bruno@clisp.org>
54555         getopt, argp: Respect rules for use of AC_LIBOBJ.
54556         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54557         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54558         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54559         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54561 2011-05-08  Bruno Haible  <bruno@clisp.org>
54563         getlogin_r: Move AC_LIBOBJ invocations to module description.
54564         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54565         gl_PREREQ_GETLOGIN_R invocations from here...
54566         * modules/getlogin_r (configure.ac): ... to here.
54568 2011-05-08  Bruno Haible  <bruno@clisp.org>
54570         getlogin: Move AC_LIBOBJ invocations to module description.
54571         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54572         here...
54573         * modules/getlogin (configure.ac): ... to here.
54575 2011-05-08  Bruno Haible  <bruno@clisp.org>
54577         getloadavg: Move AC_LIBOBJ invocations to module description.
54578         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54579         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54580         * modules/getloadavg (configure.ac): ... to here.
54582 2011-05-08  Bruno Haible  <bruno@clisp.org>
54584         gethrxtime: Move AC_LIBOBJ invocations to module description.
54585         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54586         LIB_GETHRXTIME from here...
54587         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54588         invocations from here...
54589         * modules/gethrxtime (configure.ac): ... to here.
54591 2011-05-08  Bruno Haible  <bruno@clisp.org>
54593         gethostname: Move AC_LIBOBJ invocations to module description.
54594         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54595         gl_PREREQ_GETHOSTNAME invocations from here...
54596         * modules/gethostname (configure.ac): ... to here.
54598 2011-05-08  Bruno Haible  <bruno@clisp.org>
54600         getgroups: Move AC_LIBOBJ invocations to module description.
54601         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54602         here...
54603         * modules/getgroups (configure.ac): ... to here.
54605 2011-05-08  Bruno Haible  <bruno@clisp.org>
54607         getdtablesize: Move AC_LIBOBJ invocations to module description.
54608         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54609         invocation from here...
54610         * modules/getdtablesize (configure.ac): ... to here.
54612 2011-05-08  Bruno Haible  <bruno@clisp.org>
54614         getdomainname: Move AC_LIBOBJ invocations to module description.
54615         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54616         gl_PREREQ_GETDOMAINNAME invocations from here...
54617         * modules/getdomainname (configure.ac): ... to here.
54619 2011-05-08  Bruno Haible  <bruno@clisp.org>
54621         getline: Move AC_LIBOBJ invocations to module description.
54622         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54623         invocations from here...
54624         * modules/getline (configure.ac): ... to here.
54626 2011-05-08  Bruno Haible  <bruno@clisp.org>
54628         getline: Simplify.
54629         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54630         It's already handled through the module dependency.
54632 2011-05-08  Bruno Haible  <bruno@clisp.org>
54634         getdelim: Move AC_LIBOBJ invocations to module description.
54635         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54636         and gl_PREREQ_GETDELIM invocations from here...
54637         * modules/getdelim (configure.ac): ... to here.
54638         (Depends-on): Fix condition.
54640 2011-05-08  Bruno Haible  <bruno@clisp.org>
54642         getcwd: Move AC_LIBOBJ invocations to module description.
54643         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54644         invocations from here...
54645         * modules/getcwd (configure.ac): ... to here.
54647 2011-05-08  Bruno Haible  <bruno@clisp.org>
54649         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54650         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54651         here...
54652         * modules/getcwd-lgpl (configure.ac): ... to here.
54654 2011-05-07  Bruno Haible  <bruno@clisp.org>
54656         crypto/gc: Move AC_LIBOBJ invocations to module description.
54657         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54658         * modules/crypto/gc (configure.ac): ... to here.
54660 2011-05-07  Bruno Haible  <bruno@clisp.org>
54662         fwriting: Move AC_LIBOBJ invocations to module description.
54663         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54664         here...
54665         * modules/fwriting (configure.ac): ... to here.
54667 2011-05-07  Bruno Haible  <bruno@clisp.org>
54669         fwritable: Move AC_LIBOBJ invocations to module description.
54670         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54671         here...
54672         * modules/fwritable (configure.ac): ... to here.
54674 2011-05-07  Bruno Haible  <bruno@clisp.org>
54676         futimens: Move AC_LIBOBJ invocations to module description.
54677         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54678         here...
54679         * modules/futimens (configure.ac): ... to here.
54681 2011-05-07  Bruno Haible  <bruno@clisp.org>
54683         ftruncate: Move AC_LIBOBJ invocations to module description.
54684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54685         gl_PREREQ_FTRUNCATE invocations from here...
54686         * modules/ftruncate (configure.ac): ... to here.
54688 2011-05-07  Bruno Haible  <bruno@clisp.org>
54690         fsync: Move AC_LIBOBJ invocations to module description.
54691         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54692         invocations from here...
54693         * modules/fsync (configure.ac): ... to here.
54695 2011-05-07  Bruno Haible  <bruno@clisp.org>
54697         fsusage: Move AC_LIBOBJ invocations to module description.
54698         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54699         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54700         * modules/fsusage (configure.ac): ... to here.
54702 2011-05-07  Bruno Haible  <bruno@clisp.org>
54704         freopen: Move AC_LIBOBJ invocations to module description.
54705         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54706         invocations from here...
54707         * modules/freopen (configure.ac): ... to here.
54709 2011-05-07  Bruno Haible  <bruno@clisp.org>
54711         free: Move AC_LIBOBJ invocations to module description.
54712         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54713         invocations from here...
54714         * modules/free (configure.ac): ... to here.
54716 2011-05-07  Bruno Haible  <bruno@clisp.org>
54718         freadable: Move AC_LIBOBJ invocations to module description.
54719         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54720         here...
54721         * modules/freadable (configure.ac): ... to here.
54723 2011-05-07  Bruno Haible  <bruno@clisp.org>
54725         fpurge: Move AC_LIBOBJ invocations to module description.
54726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54727         invocations from here...
54728         * modules/fpurge (configure.ac): ... to here.
54730 2011-05-07  Bruno Haible  <bruno@clisp.org>
54732         fpending: Move AC_LIBOBJ invocations to module description.
54733         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54734         gl_FUNC_FPENDING.
54735         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54736         invocations from here...
54737         * modules/fpending (configure.ac): ... to here.
54739 2011-05-07  Bruno Haible  <bruno@clisp.org>
54741         fopen: Move AC_LIBOBJ invocations to module description.
54742         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54743         invocations from here...
54744         * modules/fopen (configure.ac): ... to here.
54746 2011-05-07  Bruno Haible  <bruno@clisp.org>
54748         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54749         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54750         gl_FUNC_FNMATCH_POSIX.
54751         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54752         invocations from here...
54753         * modules/fnmatch (configure.ac): ... to here.
54754         * modules/fnmatch-gnu (configure.ac): ... and here.
54756 2011-05-07  Bruno Haible  <bruno@clisp.org>
54758         flock: Move AC_LIBOBJ invocations to module description.
54759         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54760         invocations from here...
54761         * modules/flock (configure.ac): ... to here.
54763 2011-05-07  Bruno Haible  <bruno@clisp.org>
54765         fileblocks: Move AC_LIBOBJ invocations to module description.
54766         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54767         gl_PREREQ_FILEBLOCKS invocations from here...
54768         * modules/fileblocks (configure.ac): ... to here.
54770 2011-05-06  Bruno Haible  <bruno@clisp.org>
54772         fflush: Move AC_LIBOBJ invocations to module description.
54773         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54774         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54775         invocations from here...
54776         * modules/fflush (configure.ac): ... to here.
54778 2011-05-06  Bruno Haible  <bruno@clisp.org>
54780         fdopendir: Move AC_LIBOBJ invocations to module description.
54781         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54782         here...
54783         * modules/fdopendir (configure.ac): ... to here.
54784         (Depends-on): Improve conditions.
54786 2011-05-06  Bruno Haible  <bruno@clisp.org>
54788         _Exit: Move AC_LIBOBJ invocations to module description.
54789         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54790         invocations from here...
54791         * modules/_Exit (configure.ac): ... to here.
54793 2011-05-21  Bruno Haible  <bruno@clisp.org>
54795         euidaccess: Respect rules for use of AC_LIBOBJ.
54796         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54798         from here...
54799         * modules/euidaccess (configure.ac): ... to here.
54801 2011-05-06  Bruno Haible  <bruno@clisp.org>
54803         error: Move AC_LIBOBJ invocations to module description.
54804         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54805         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54806         invocations from here...
54807         * modules/error (configure.ac): ... to here.
54809 2011-05-06  Bruno Haible  <bruno@clisp.org>
54811         duplocale: Move AC_LIBOBJ invocations to module description.
54812         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54813         gl_PREREQ_DUPLOCALE invocations from here...
54814         * modules/duplocale (configure.ac): ... to here.
54816 2011-05-05  Bruno Haible  <bruno@clisp.org>
54818         dirfd: Move AC_LIBOBJ invocations to module description.
54819         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54820         gl_FUNC_DIRFD.
54821         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54822         here...
54823         * modules/dirfd (configure.ac): ... to here.
54824         (Depends-on): Fix condition.
54826 2011-05-05  Bruno Haible  <bruno@clisp.org>
54828         chown: Respect rules for use of AC_LIBOBJ.
54829         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54830         * modules/chown (configure.ac): ... to here.
54832 2011-05-05  Bruno Haible  <bruno@clisp.org>
54834         chdir-long: Move AC_LIBOBJ invocations to module description.
54835         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54836         gl_PREREQ_CHDIR_LONG invocations from here...
54837         * modules/chdir-long (configure.ac): ... to here.
54839 2011-05-05  Bruno Haible  <bruno@clisp.org>
54841         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54842         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54843         from here...
54844         * modules/canonicalize-lgpl (configure.ac): ... to here.
54846 2011-05-05  Bruno Haible  <bruno@clisp.org>
54848         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54849         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54850         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54851         REPLACE_CALLOC.
54852         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54853         * modules/calloc-gnu (configure.ac): Likewise.
54855 2011-05-05  Bruno Haible  <bruno@clisp.org>
54857         btowc: Move AC_LIBOBJ invocations to module description.
54858         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54859         invocations from here...
54860         * modules/btowc (configure.ac): ... to here.
54862 2011-05-21  Bruno Haible  <bruno@clisp.org>
54864         atexit: Move AC_LIBOBJ invocations to module description.
54865         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54867         here...
54868         * modules/atexit (configure.ac): ... to here.
54870 2011-05-05  Bruno Haible  <bruno@clisp.org>
54872         atoll: Move AC_LIBOBJ invocations to module description.
54873         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54874         invocations from here...
54875         * modules/atoll (configure.ac): ... to here.
54877 2011-05-05  Bruno Haible  <bruno@clisp.org>
54879         argz: Move AC_LIBOBJ invocations to module description.
54880         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54881         * modules/argz (configure.ac): ... to here.
54883 2011-05-05  Bruno Haible  <bruno@clisp.org>
54885         alphasort: Move AC_LIBOBJ invocations to module description.
54886         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54887         gl_PREREQ_ALPHASORT invocations from here...
54888         * modules/alphasort (configure.ac): ... to here.
54890 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54892         verify: new macro verify_expr; verify_true deprecated
54893         * NEWS: Mention this.
54894         * doc/verify.texi (Compile-time Assertions): Document this.
54895         * lib/verify.h (verify_true): Deprecate.
54896         (verify_expr): New macro.
54897         * tests/test-verify.c (function): Test verify_expr.
54899 2011-06-14  Jim Meyering  <meyering@redhat.com>
54901         init.sh: give more portable redirection-related advice in a comment
54902         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54903         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54904         for lots of discussion.  Stefano Lattarini suggested the solution
54905         of putting "9>&2" after the command.  Reported by Bruno Haible.
54907 2011-06-13  Bruno Haible  <bruno@clisp.org>
54909         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54910         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54911         'none'.
54913 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54915         ftoastr: use strtof only if HAVE_STRTOF
54916         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54917         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54918         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54919         * modules/ftoastr (configure.ac): Check for strtof.
54921 2011-06-13  Bruno Haible  <bruno@clisp.org>
54923         gnulib-tool: Addendum to 2011-06-08 commit.
54924         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54925         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54927 2011-06-13  Bruno Haible  <bruno@clisp.org>
54929         fseeko: Provide a non-inline replacement of fseek().
54930         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54931         * modules/fseeko (Depends-on): Add fseek.
54932         * modules/fseek (License): Change to LGPLv2+.
54934 2011-06-13  Bruno Haible  <bruno@clisp.org>
54936         ftello: Provide a non-inline replacement of ftell().
54937         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54938         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54939         not have ftello() (such as on mingw).
54940         * modules/ftello (Depends-on): Add ftell.
54941         * modules/ftell (License): Change to LGPLv2+.
54943 2011-05-07  Bruno Haible  <bruno@clisp.org>
54945         ftell: Move AC_LIBOBJ invocations to module description.
54946         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54947         * modules/ftell (configure.ac): ... to here.
54949 2011-05-07  Bruno Haible  <bruno@clisp.org>
54951         ftello: Respect rules for use of AC_LIBOBJ.
54952         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54953         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54954         here...
54955         * modules/ftello (configure.ac): ... to here.
54957 2011-05-07  Bruno Haible  <bruno@clisp.org>
54959         fseeko: Simplify.
54960         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54961         (gl_FUNC_FSEEKO): Inline it here.
54963 2011-05-07  Bruno Haible  <bruno@clisp.org>
54965         fseek: Move AC_LIBOBJ invocations to module description.
54966         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54967         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54968         * modules/fseek (configure.ac): ... to here.
54970 2011-05-07  Bruno Haible  <bruno@clisp.org>
54972         fseek: Respect rules for use of AC_LIBOBJ.
54973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54974         here...
54975         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54977 2011-05-07  Bruno Haible  <bruno@clisp.org>
54979         fseeko: Respect rules for use of AC_LIBOBJ.
54980         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54981         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54982         here...
54983         * modules/fseeko (configure.ac): ... to here.
54985 2011-06-13  Bruno Haible  <bruno@clisp.org>
54987         gnulib-tool: Allow comments in the 'Depends-on' section.
54988         * doc/gnulib.texi (Module description): Mention comment syntax in the
54989         Depends-on section.
54990         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54992 2011-06-13  Bruno Haible  <bruno@clisp.org>
54994         file-set.h: guard __attibute__ use, now that it's not always defined
54995         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54996         versions that support it.  This fixes a coreutils build failure with
54997         the vendor cc on HP-UX 11.31.
54999 2011-06-12  Bruno Haible  <bruno@clisp.org>
55001         acl: Add support for HP-UX >= 11.11 JFS ACLs.
55002         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
55003         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
55004         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
55005         (acl, aclsort): New declarations.
55006         (aclv_nontrivial): New declaration.
55007         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
55008         (file_has_acl): Read also the second kind of HP-UX ACLs.
55009         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
55010         kind of HP-UX ACLs if the first kind fails.
55011         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
55012         second kind of HP-UX ACLs.
55013         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
55014         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
55015         agree.
55016         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55017         hpuxjfs.
55018         Handle hpuxjfs.
55019         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55020         hpuxjfs.
55021         Handle hpuxjfs.
55022         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55023         (func_test_same_acls): Use both lsacl and getacl.
55024         Handle hpuxjfs.
55025         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55026         (func_test_same_acls): Use both lsacl and getacl.
55027         Handle hpuxjfs.
55029 2011-06-12  Bruno Haible  <bruno@clisp.org>
55031         acl: Complete the 2010-08-10 fix.
55032         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
55033         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
55034         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
55035         explicitly.
55036         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
55037         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
55039 2011-06-12  Bruno Haible  <bruno@clisp.org>
55041         spawn-pipe tests: Comments.
55042         * tests/test-spawn-pipe-child.c (main): Update comment.
55043         Reported by James Youngman <jay@gnu.org>.
55045 2011-06-11  James Youngman  <jay@gnu.org>
55047         New module 'stat-size'.
55048         * modules/stat-size: New module.  Provides macros for accessing
55049         file size information in instances of struct stat.  Depends on the
55050         fileblocks module because it calls st_blocks.
55051         * lib/stat-size.h: New file, adapted from coreutils' system.h.
55052         * doc/gnulib.texi: Include stat-size.texi.
55053         * doc/stat-size.texi: Documentation for this module.
55054         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
55055         * m4/fileblocks.m4: Mention that stat-size depends on the call to
55056         AC_STRUCT_ST_BLOCKS.
55058 2011-06-09  Bruno Haible  <bruno@clisp.org>
55060         thread: Support pthreads-win32.
55061         * lib/glthread/thread.h (gl_thread_self): Define differently on
55062         pthreads-win32.
55063         (gl_null_thread): New declaration.
55064         (gl_thread_self_pointer): New macro.
55065         * lib/glthread/thread.c (gl_null_thread): New constant.
55066         * tests/test-lock.c: Use gl_thread_self_pointer instead of
55067         gl_thread_self.
55068         * tests/test-tls.c: Likewise.
55069         Suggested by Paul Eggert. Reported by Eric Blake.
55071 2011-06-09  Bruno Haible  <bruno@clisp.org>
55073         thread: Fix confusion between NULL and 0.
55074         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
55075         Reported by Paul Eggert.
55077 2011-06-09  Bruno Haible  <bruno@clisp.org>
55079         spawn-pipe tests: Avoid test failure on HP-UX 11.
55080         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
55081         is closed.
55083 2011-06-09  Bruno Haible  <bruno@clisp.org>
55085         acl tests: Fix compilation error on HP-UX 11.
55086         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
55088 2011-06-09  Bruno Haible  <bruno@clisp.org>
55090         rmdir: Avoid test failure on HP-UX 10.20.
55091         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
55092         EEXIST.
55094 2011-06-08  Eric Blake  <eblake@redhat.com>
55096         perror: fix test on mingw
55097         * modules/perror-tests (Depends-on): Add dup2.
55099         strerror_r-posix: fix on MacOS
55100         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
55101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
55102         logic bug.
55103         * lib/strerror_r.c (strerror_r): Fix the bug.
55104         * lib/strerror.c (strerror): Likewise.
55105         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55106         problem.
55107         * doc/posix-functions/strerror.texi (strerror): Likewise.
55108         * doc/posix-functions/perror.texi (perror): Likewise.
55109         * tests/test-strerror.c (main): Enhance test.
55110         * tests/test-strerror_r.c (main): Likewise.
55112 2011-06-08  Bruno Haible  <bruno@clisp.org>
55114         gnulib-tool: Better isolation between different gnulib-tool invocations.
55115         * gnulib-tool: New option --witness-c-macro.
55116         (witness_c_macro): New variable.
55117         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
55118         AM_CPPFLAGS define it as a C macro.
55119         (func_emit_tests_Makefile_am): Likewise.
55120         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
55121         read it from there.
55122         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
55123         m4_define, not AC_DEFUN.
55124         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
55125         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
55126         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
55127         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
55128         s|...|...|, to substitute the values of the GNULIB_* module indicator
55129         variables.
55130         * modules/dirent (Makefile.am): Likewise.
55131         * modules/fcntl-h (Makefile.am): Likewise.
55132         * modules/iconv-h (Makefile.am): Likewise.
55133         * modules/langinfo (Makefile.am): Likewise.
55134         * modules/locale (Makefile.am): Likewise.
55135         * modules/math (Makefile.am): Likewise.
55136         * modules/netdb (Makefile.am): Likewise.
55137         * modules/poll-h (Makefile.am): Likewise.
55138         * modules/pty (Makefile.am): Likewise.
55139         * modules/search (Makefile.am): Likewise.
55140         * modules/signal (Makefile.am): Likewise.
55141         * modules/spawn (Makefile.am): Likewise.
55142         * modules/stdio (Makefile.am): Likewise.
55143         * modules/stdlib (Makefile.am): Likewise.
55144         * modules/string (Makefile.am): Likewise.
55145         * modules/sys_ioctl (Makefile.am): Likewise.
55146         * modules/sys_select (Makefile.am): Likewise.
55147         * modules/sys_socket (Makefile.am): Likewise.
55148         * modules/sys_stat (Makefile.am): Likewise.
55149         * modules/sys_times (Makefile.am): Likewise.
55150         * modules/sys_utsname (Makefile.am): Likewise.
55151         * modules/sys_wait (Makefile.am): Likewise.
55152         * modules/termios (Makefile.am): Likewise.
55153         * modules/time (Makefile.am): Likewise.
55154         * modules/unistd (Makefile.am): Likewise.
55155         * modules/wchar (Makefile.am): Likewise.
55157 2011-06-08  Eric Blake  <eblake@redhat.com>
55159         strerror: simplify replacement
55160         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
55161         * modules/strerror (configure.ac): No prereqs needed here...
55162         * modules/strerror-override (configure.ac): ...but this needs it.
55163         (Files): Add file for needed prereq macro.
55165 2011-06-08  Bruno Haible  <bruno@clisp.org>
55167         strerror_r-posix: Tweaks.
55168         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
55169         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
55170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
55171         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
55172         (gl_FUNC_STRERROR_R): ... to here.
55173         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
55175 2011-06-07  Eric Blake  <eblake@redhat.com>
55177         perror: document fixed bugs
55178         * doc/posix-functions/perror.texi (perror): Document recent
55179         patches.
55181 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
55183         stat-time: get_stat_birthtime failure is better-defined
55184         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
55185         return a timestamp whose tv_sec and tv_nsec values are both -1.
55186         Previously, the spec said only that the tv_nsec value was negative.
55187         This upward-compatible change simplifies GNU tar a bit.
55189 2011-06-07  Eric Blake  <eblake@redhat.com>
55191         strerror_r-posix: work around cygwin 1.7.9
55192         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
55193         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
55194         bug without replacing strerror_r.
55195         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
55196         strerror_r is buggy, but without requiring strerror_r compilation.
55197         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
55199         test-perror: relax test to ignore cygwin bug
55200         * tests/test-perror2.c (main): Relax test on requiring detection
55201         of stream errors, and use unbuffered stream.
55202         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
55203         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
55204         * doc/posix-functions/fputc.texi (fputc): Likewise.
55205         * doc/posix-functions/fputs.texi (fputs): Likewise.
55206         * doc/posix-functions/fputws.texi (fputws): Likewise.
55207         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
55208         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
55209         * doc/posix-functions/getopt.texi (getopt): Likewise.
55210         * doc/posix-functions/perror.texi (perror): Likewise.
55211         * doc/posix-functions/printf.texi (printf): Likewise.
55212         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
55213         * doc/posix-functions/psignal.texi (psignal): Likewise.
55214         * doc/posix-functions/putc.texi (putc): Likewise.
55215         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
55216         Likewise.
55217         * doc/posix-functions/putchar.texi (putchar): Likewise.
55218         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
55219         Likewise.
55220         * doc/posix-functions/puts.texi (puts): Likewise.
55221         * doc/posix-functions/putwc.texi (putwc): Likewise.
55222         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
55223         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
55224         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55225         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
55226         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55227         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
55228         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
55229         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
55231 2011-05-22  Bruno Haible  <bruno@clisp.org>
55233         strerror: Move AC_LIBOBJ invocations to module description.
55234         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
55235         gl_PREREQ_STRERROR invocations from here...
55236         * modules/strerror (configure.ac): ... to here.
55238 2011-05-21  Bruno Haible  <bruno@clisp.org>
55240         perror: Use common idiom.
55241         * modules/perror (configure.ac): Reorder statements.
55243 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55245         tests: fix usage message in 'mktempd_'
55246         * tests/init.sh (mktempd_): In the usage message, use literal
55247         'mktempd_', not '$ME' (which is even undefined), as the name of
55248         the subroutine.
55250 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55252         tests init: new function 'fatal_', for hard errors
55253         Before this patch, the only way offered by tests/init.sh to
55254         properly signal a hard error was the `framework_failure_'
55255         function.  But the error message issued by that function,
55256         as its name would suggest, refers to a set-up failure in the
55257         testsuite, while hard errors can obviously also be due to
55258         other reasons.  The best way to fix this inconsistency is to
55259         introduce a new function with a more general error message.
55260         * tests/init.sh (fatal_): New function.
55262 2011-06-06  Eric Blake  <eblake@redhat.com>
55264         canonicalize-lgpl: use common idiom
55265         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
55266         over newer POSIX -Rf.
55267         Reported by Bruno Haible.
55269         canonicalize-lgpl: work around AIX realpath bug
55270         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
55271         * doc/posix-functions/realpath.texi (realpath): Document it.
55272         Reported by Bruno Haible.
55274         strerror: work around FreeBSD bug
55275         * lib/strerror.c (strerror): Special case 0.
55276         Reported by Bruno Haible.
55278         strerror-override: avoid bloating errno module
55279         * modules/errno (Files, configure.ac): Move replacement strings...
55280         * modules/strerror-override: ...to new module.
55281         * modules/strerror (Depends-on): Add strerror-override.
55282         * modules/strerror_r-posix (Depends-on): Likewise.
55283         * MODULES.html.sh: Document new module.
55284         Reported by Bruno Haible.
55286 2011-06-06  Bruno Haible  <bruno@clisp.org>
55288         spawn-pipe tests: Rename program.
55289         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
55290         * tests/test-spawn-pipe-child.c: Update comment.
55291         * tests/test-spawn-pipe.sh: Update.
55292         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
55294         spawn-pipe tests: Link the child program only against libc.
55295         * tests/test-spawn-pipe-child.c: New file, extracted from
55296         tests/test-spawn-pipe.c.
55297         (main): Expect only one argument.
55298         (is_open): New function, copied from tests/test-pipe.c.
55299         * tests/test-spawn-pipe.c: Don't include <errno.h>.
55300         (child_main): Remove function.
55301         (test_pipe): Pass only one argument to the child program.
55302         (main): Remove child process code. Expect the child program's name as
55303         first argument.
55304         * tests/test-spawn-pipe.sh: Pass the child program's name as first
55305         argument.
55306         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
55307         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
55308         test-spawn-pipe-child against no libraries.
55310 2011-06-06  Bruno Haible  <bruno@clisp.org>
55312         careadlinkat: Avoid mismatch between ssize_t and int.
55313         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
55314         * lib/careadlinkat.c (careadlinkatcwd): Define always.
55316 2011-06-06  Jim Meyering  <meyering@redhat.com>
55318         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
55319         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
55320         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
55322 2011-06-05  Bruno Haible  <bruno@clisp.org>
55324         ansi-c++-opt: Interoperability with libtool.
55325         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
55326         set the variable to "no", not to ":".
55327         * NEWS: Mention the change.
55329 2011-06-05  Bruno Haible  <bruno@clisp.org>
55331         acl: Fix test failure on AIX 7.
55332         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
55333         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55335 2011-06-05  Bruno Haible  <bruno@clisp.org>
55337         pipe-filter-ii: Fix test failure on AIX and IRIX.
55338         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
55339         with EAGAIN, retry with a smaller buffer size.
55341 2011-06-05  Bruno Haible  <bruno@clisp.org>
55343         localename: Fix link dependencies.
55344         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
55345         * modules/localename-tests (Makefile.am): Link test-localename with
55346         $(LIBTHREAD).
55348 2011-06-05  Bruno Haible  <bruno@clisp.org>
55350         error: Avoid gcc warning.
55351         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
55353 2011-06-05  Bruno Haible  <bruno@clisp.org>
55355         unsetenv: Avoid gcc warning.
55356         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
55358 2011-06-05  Bruno Haible  <bruno@clisp.org>
55360         setenv: Avoid gcc warning.
55361         * lib/setenv.c (setenv): Provide declaration if system lacks it.
55363 2011-06-05  Bruno Haible  <bruno@clisp.org>
55365         sys_select: Ensure memset is declared also on AIX 7.
55366         * lib/sys_select.in.h: Include <string.h> also on AIX.
55367         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
55368         self-contained also on AIX 7.1.
55370 2011-06-04  Jim Meyering  <meyering@redhat.com>
55372         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
55373         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
55374         function name, "error".
55375         (_gl_translatable_diag_func_re): New configurable variable.
55377 2011-06-04  Bruno Haible  <bruno@clisp.org>
55379         getopt: Avoid gcc warning.
55380         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
55382 2011-06-04  Bruno Haible  <bruno@clisp.org>
55384         strerror_r: Fix comments.
55385         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
55386         commit.
55388 2011-06-04  Bruno Haible  <bruno@clisp.org>
55390         perror: Fix compilation error.
55391         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
55392         Undefine fprintf, not sprintf.
55393         * modules/perror (Depends-on): Remove intprops, verify.
55395 2011-06-04  Bruno Haible  <bruno@clisp.org>
55397         setlocale: Enable replacement on Cygwin 1.5.
55398         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
55399         Cygwin 1.5.x.
55400         * doc/posix-functions/setlocale.texi: Mention that the problem with the
55401         LC_CTYPE category also exists on Cygwin 1.5.x.
55403 2011-06-04  Bruno Haible  <bruno@clisp.org>
55405         strerror-override: Don't disable symbol renamings.
55406         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
55407         * lib/strerror-override.c: Include config.h.
55408         (strerror_override): Don't undefine.
55410 2011-06-03  Bruno Haible  <bruno@clisp.org>
55412         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
55413         * lib/localename.h: Update copyright header.
55414         * lib/localename.c: Likewise.
55415         * lib/relocatable.h: Likewise.
55416         * lib/relocatable.c: Likewise.
55418 2011-06-02  Bruno Haible  <bruno@clisp.org>
55420         doc: Fix a module name.
55421         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55423 2011-06-02  Bruno Haible  <bruno@clisp.org>
55425         pipe2: Remove dependency on 'nonblocking' module.
55426         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55427         O_NONBLOCK is defined by gnulib.
55428         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55429         is zero.
55430         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55431         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55432         defined by gnulib.
55433         (get_nonblocking_flag): New function.
55434         (main): Test O_NONBLOCK flag only if it is nonzero.
55435         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55437 2011-06-03  Jim Meyering  <meyering@redhat.com>
55439         maint: three new prohibit-header-without-use rules
55440         Prohibit use of cloexec.h, posixver.h, same.h without use.
55441         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55442         (sc_prohibit_posixver_without_use): Likewise.
55443         (sc_prohibit_same_without_use): Likewise.
55445 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55447         allocator: 'die' routine is now given requested size
55448         * lib/allocator.h (struct allocator.die): New size arg.
55449         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55450         If the actual problem is an ssize_t limitation, not a size_t or
55451         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55453 2011-06-01  Eric Blake  <eblake@redhat.com>
55455         strerror: drop strerror_r dependency
55456         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55457         * lib/strerror-override.c (strerror_override): ...to new file.
55458         * lib/strerror-override.h: Add prototype.
55459         * lib/strerror-impl.h: Delete.
55460         * lib/strerror.c (strerror): New implementation.
55461         * modules/errno (Files): Add new files.
55462         (configure.ac): Compile new file as appropriate.
55463         * modules/strerror (Files): Drop unused file.
55464         (Depends-on): Drop strerror_r-posix.
55465         * MODULES.html.sh: Document strerror_r-posix.
55466         Requested by Sam Steingold.
55468         perror: call strerror_r directly
55469         * modules/perror (Files): Drop strerror-impl.h.
55470         * lib/perror.c (perror): Use our own stack buffer, rather than
55471         calling a wrapper that uses static storage.
55472         * doc/posix-functions/perror.texi (perror): Document a limitation
55473         of our replacement.
55475         strerror_r: fix includes for FreeBSD
55476         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55477         since we use abort on some platforms.
55478         Reported by Matthias Bolte.
55480 2011-05-31  Bruno Haible  <bruno@clisp.org>
55482         Fix link errors in tests: openat-die uses gettext-h.
55483         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55484         against $(LIBINTL).
55485         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55486         against $(LIBINTL).
55487         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55488         $(LIBINTL).
55489         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55490         against $(LIBINTL).
55491         * modules/linkat-tests (Makefile.am): Link test-linkat against
55492         $(LIBINTL).
55493         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55494         $(LIBINTL).
55495         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55496         against $(LIBINTL).
55497         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55498         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55499         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55500         $(LIBINTL).
55501         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55502         $(LIBINTL).
55503         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55504         $(LIBINTL).
55505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55507 2011-05-31  Bruno Haible  <bruno@clisp.org>
55509         Fix link errors in tests: wait-process uses gettext-h.
55510         * modules/nonblocking-pipe-tests (Makefile.am): Set
55511         test_nonblocking_pipe_main_LDADD.
55512         * modules/nonblocking-socket-tests (Makefile.am): Link
55513         test-nonblocking-socket-main against $(LIBINTL).
55514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55516 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55518         assert-h: work around 'verify' incompatibility
55519         * lib/verify.h: Use @...@ directives, not ifdef.
55520         * modules/assert-h (assert.h): Implement the directives.
55521         (assert.h): Substitute the symbol-prefix more consistently.
55523 2011-05-29  Jim Meyering  <meyering@redhat.com>
55525         trim: remove three superfluous assignments
55526         * lib/trim.c (trim2): Remove three superfluous assignments
55527         and correct brace positioning.
55529 2011-05-29  Bruno Haible  <bruno@clisp.org>
55531         wctype-h: Avoid namespace pollution on Solaris 2.6.
55532         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55533         identifiers.
55534         * doc/posix-headers/wctype.texi: Mention the problem.
55535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55537 2011-05-28  Jim Meyering  <meyering@redhat.com>
55539         parse-datetime.y: accommodate -Wstrict-overflow
55540         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55541         placate -Wstrict-overflow.
55543         trim: avoid a warning from -O2 -Wstrict-overflow
55544         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55546 2011-05-29  Bruno Haible  <bruno@clisp.org>
55548         gnulib-tool: Fix bug in yesterday's commit.
55549         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55550         twice.
55552 2011-05-29  Bruno Haible  <bruno@clisp.org>
55554         Allow multiple gnulib generated include files to be combined.
55555         * gnulib-tool (func_compute_include_guard_prefix): New function.
55556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55557         ${gl_include_guard_prefix} references.
55558         (func_import, func_create_testdir): Invoke
55559         func_compute_include_guard_prefix.
55560         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55561         * lib/ctype.in.h: Likewise.
55562         * lib/dirent.in.h: Likewise.
55563         * lib/errno.in.h: Likewise.
55564         * lib/fcntl.in.h: Likewise.
55565         * lib/float.in.h: Likewise.
55566         * lib/getopt.in.h: Likewise.
55567         * lib/iconv.in.h: Likewise.
55568         * lib/langinfo.in.h: Likewise.
55569         * lib/locale.in.h: Likewise.
55570         * lib/math.in.h: Likewise.
55571         * lib/netdb.in.h: Likewise.
55572         * lib/netinet_in.in.h: Likewise.
55573         * lib/poll.in.h: Likewise.
55574         * lib/pthread.in.h: Likewise.
55575         * lib/pty.in.h: Likewise.
55576         * lib/sched.in.h: Likewise.
55577         * lib/se-selinux.in.h: Likewise.
55578         * lib/search.in.h: Likewise.
55579         * lib/signal.in.h: Likewise.
55580         * lib/spawn.in.h: Likewise.
55581         * lib/stdarg.in.h: Likewise.
55582         * lib/stddef.in.h: Likewise.
55583         * lib/stdint.in.h: Likewise.
55584         * lib/stdio.in.h: Likewise.
55585         * lib/stdlib.in.h: Likewise.
55586         * lib/string.in.h: Likewise.
55587         * lib/strings.in.h: Likewise.
55588         * lib/sys_file.in.h: Likewise.
55589         * lib/sys_ioctl.in.h: Likewise.
55590         * lib/sys_select.in.h: Likewise.
55591         * lib/sys_socket.in.h: Likewise.
55592         * lib/sys_stat.in.h: Likewise.
55593         * lib/sys_time.in.h: Likewise.
55594         * lib/sys_times.in.h: Likewise.
55595         * lib/sys_uio.in.h: Likewise.
55596         * lib/sys_utsname.in.h: Likewise.
55597         * lib/sys_wait.in.h: Likewise.
55598         * lib/sysexits.in.h: Likewise.
55599         * lib/termios.in.h: Likewise.
55600         * lib/time.in.h: Likewise.
55601         * lib/unistd.in.h: Likewise.
55602         * lib/wchar.in.h: Likewise.
55603         * lib/wctype.in.h: Likewise.
55604         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55605         * modules/ctype (Makefile.am): Likewise.
55606         * modules/dirent (Makefile.am): Likewise.
55607         * modules/errno (Makefile.am): Likewise.
55608         * modules/fcntl-h (Makefile.am): Likewise.
55609         * modules/float (Makefile.am): Likewise.
55610         * modules/getopt-posix (Makefile.am): Likewise.
55611         * modules/iconv-h (Makefile.am): Likewise.
55612         * modules/langinfo (Makefile.am): Likewise.
55613         * modules/locale (Makefile.am): Likewise.
55614         * modules/math (Makefile.am): Likewise.
55615         * modules/netdb (Makefile.am): Likewise.
55616         * modules/netinet_in (Makefile.am): Likewise.
55617         * modules/poll-h (Makefile.am): Likewise.
55618         * modules/pthread (Makefile.am): Likewise.
55619         * modules/pty (Makefile.am): Likewise.
55620         * modules/sched (Makefile.am): Likewise.
55621         * modules/search (Makefile.am): Likewise.
55622         * modules/selinux-h (Makefile.am): Likewise.
55623         * modules/signal (Makefile.am): Likewise.
55624         * modules/spawn (Makefile.am): Likewise.
55625         * modules/stdarg (Makefile.am): Likewise.
55626         * modules/stddef (Makefile.am): Likewise.
55627         * modules/stdint (Makefile.am): Likewise.
55628         * modules/stdio (Makefile.am): Likewise.
55629         * modules/stdlib (Makefile.am): Likewise.
55630         * modules/string (Makefile.am): Likewise.
55631         * modules/strings (Makefile.am): Likewise.
55632         * modules/sys_file (Makefile.am): Likewise.
55633         * modules/sys_ioctl (Makefile.am): Likewise.
55634         * modules/sys_select (Makefile.am): Likewise.
55635         * modules/sys_socket (Makefile.am): Likewise.
55636         * modules/sys_stat (Makefile.am): Likewise.
55637         * modules/sys_time (Makefile.am): Likewise.
55638         * modules/sys_times (Makefile.am): Likewise.
55639         * modules/sys_uio (Makefile.am): Likewise.
55640         * modules/sys_utsname (Makefile.am): Likewise.
55641         * modules/sys_wait (Makefile.am): Likewise.
55642         * modules/sysexits (Makefile.am): Likewise.
55643         * modules/termios (Makefile.am): Likewise.
55644         * modules/time (Makefile.am): Likewise.
55645         * modules/unistd (Makefile.am): Likewise.
55646         * modules/wchar (Makefile.am): Likewise.
55647         * modules/wctype-h (Makefile.am): Likewise.
55648         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55650 2011-05-29  Bruno Haible  <bruno@clisp.org>
55652         assert-h: Allow multiple gnulib generated replacements to coexist.
55653         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55655 2011-05-29  Bruno Haible  <bruno@clisp.org>
55657         argp: Allow coexistence with strerror_r-posix module.
55658         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55659         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55660         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55661         not the glibc signature.
55663 2011-05-28  Bruno Haible  <bruno@clisp.org>
55665         gnulib-tool: Alternative structure of testdirs, similar to --import.
55666         * gnulib-tool: New option --single-configure.
55667         (func_usage): Document it.
55668         (single_configure): New variable.
55669         (func_modules_transitive_closure_separately,
55670         func_modules_transitive_closure_separately,
55671         func_determine_use_libtests, func_modules_add_dummy_separately,
55672         func_modules_to_filelist_separately): New functions, extracted from
55673         func_import.
55674         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55675         (func_import): Use the new functions.
55676         (func_create_testdir): Set final_modules. Handle $single_configure =
55677         true case.
55679 2011-05-28  Bruno Haible  <bruno@clisp.org>
55681         getloadavg: Remove an unreliable safety check.
55682         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55683         getloadavg.c is in place.
55684         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55685         Reported by Sam Steingold <sds@gnu.org>.
55687 2011-05-28  Bruno Haible  <bruno@clisp.org>
55689         doc: Cleanup yet another file produced by texinfo.tex.
55690         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55692 2011-05-28  Bruno Haible  <bruno@clisp.org>
55694         Finish the conditional dependencies mechanism.
55695         * gnulib-tool: New option --no-conditional-dependencies.
55696         (func_usage): Document it. Don't mark --conditional-dependencies as
55697         experimental.
55698         (cond_dependencies): The possible values can now be true, false, empty.
55699         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55700         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55701         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55703 2011-05-28  Bruno Haible  <bruno@clisp.org>
55705         doc: Use a recent texinfo.tex.
55706         * doc/Makefile (tex_opts): New variable.
55707         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55709 2011-05-28  Jim Meyering  <meyering@redhat.com>
55711         intprops.h: adjust comment to match code change
55712         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55713         only once, it *may* have side effects.  Also fix an unrelated typo.
55714         (_GL_INT_SIGNED): Likewise.
55716 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55718         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55720 2011-05-26  Bruno Haible  <bruno@clisp.org>
55722         mbsrchr: Avoid collision with system function on Interix.
55723         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55724         Reported by Markus Duft <mduft@gentoo.org>.
55726 2011-05-15  James Youngman  <jay@gnu.org>
55728         getopt: for ambiguous options, enumerate the possibilities.
55729         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55730         the ambiguous options when an ambiguous prefix is given. This was
55731         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55732         glibc change was
55733         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55735 2011-05-25  Eric Blake  <eblake@redhat.com>
55737         getcwd: work around mingw bug
55738         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55739         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55740         Reported by Matthias Bolte.
55742 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55744         test-intprops: disable -Wtype-limits diagnostics
55745         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55746         diagnostics.  Otherwise, the integer overflow macros generate many
55747         diagnostics.  Reported by Jim Meyering in
55748         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55750         intprops: shorten, to pacify gcc -Woverlength-strings
55751         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55752         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55753         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55754         likely to run afoul of C compiler limits for string constant lengths.
55755         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55757 2011-05-24  Eric Blake  <eblake@redhat.com>
55759         docs: document recently fixed glibc printf bug
55760         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55761         * doc/posix-functions/printf.texi (printf): Likewise.
55762         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55763         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55765         closein-tests: convert to init.sh
55766         * modules/closein-tests (Files): Add init.sh
55767         * tests/test-closein.sh Use it.
55769         yesno-tests: convert to init.sh
55770         * modules/yesno-tests (Files): Add init.sh.
55771         * tests/test-yesno.sh: Use it.
55773         atexit-tests: ensure reliable exit status
55774         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55775         Reported by Bruno Haible.
55777 2011-05-24  Bruno Haible  <bruno@clisp.org>
55779         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55781         gl_PREREQ_STRERROR_R invocations from here...
55782         * modules/strerror_r-posix (configure.ac): ... to here.
55784 2011-05-24  Eric Blake  <eblake@redhat.com>
55786         strerror_r: fix missing header
55787         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55789         strerror_r: fix AIX test failures
55790         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55791         ERANGE failure.
55793         strerror_r: fix Solaris test failures
55794         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55795         failures.
55796         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55798         strerror_r: enforce POSIX recommendations
55799         * lib/strerror_r.c (safe_copy): New helper method.
55800         (strerror_r): Guarantee a non-empty string.
55801         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55802         recent POSIX rulings and to match our strerror guarantees.
55803         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55805 2011-05-24  Jim Meyering  <meyering@redhat.com>
55807         test-perror2.c: avoid warning about unused variable
55808         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55810 2011-05-24  Eric Blake  <eblake@redhat.com>
55812         perror: avoid spurious test failure on HP-UX
55813         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55815         tests: fix logic bug in init.sh
55816         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55817         shell.
55819 2011-05-24  Jim Meyering  <meyering@redhat.com>
55821         utimensat: do not reference an out-of-scope buffer
55822         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55823         declared in an inner scope, yet "times" would be dereferenced outside
55824         the scope in which "ts" was valid.
55825         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55826         of ts[2] "out/up", so that the use of aliased "times" (via
55827         "times = ts;") does not end up referencing an out-of-scope "ts"
55829         opendir-safer.c: don't clobber errno; don't close negative FD
55830         * lib/opendir-safer.c (opendir_safer):
55831         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55832         file descriptor, and more importantly, don't clobber the
55833         offending errno value with EINVAL.  Before, upon failure
55834         of dup_safer, we would pass the negative file descriptor to
55835         fdopendir, which would clobber errno.
55837 2011-05-23  Bruno Haible  <bruno@clisp.org>
55839         idcache: Fix module description.
55840         * modules/idcache (Include): Set to "idcache.h".
55842 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55844         gnulib-tool: fix portability problem with MacOS sed
55845         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55846         before the "}".  Problem reported by Leo in
55847         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55848         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55849         sed_extract_condition1, sed_extract_condition2.
55851 2011-05-23  Bruno Haible  <bruno@clisp.org>
55853         hash: Simplify autoconf macro.
55854         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55856 2011-05-23  Bruno Haible  <bruno@clisp.org>
55858         getugroups: Fix module description.
55859         * modules/getugroups (Include): Set to "getugroups.h".
55861 2011-05-23  Bruno Haible  <bruno@clisp.org>
55863         linkat: Simplify autoconf macro.
55864         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55866 2011-05-23  Bruno Haible  <bruno@clisp.org>
55867             Eric Blake  <eblake@redhat.com>
55869         linkat, renameat: Update dependencies.
55870         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55871         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55872         symlinkat.
55874 2011-05-23  Jim Meyering  <meyering@redhat.com>
55876         maint.mk: more tight_scope improvements
55877         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55878         (_gl_TS_headers): Define only in if-0'd block.
55879         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55880         sometimes we must *not* use it.  Adjust uses accordingly.
55881         (sc_tight_scope): Use much simpler grep-based test to determine
55882         whether we skip this rule.
55884         maint.mk: generalize/improve the tight-scope rule
55885         * top/maint.mk: Emit a warning when the test is skipped.
55886         (_gl_TS_dir): Add $(srcdir)/ prefix.
55887         (_gl_TS_function_match): Simplify, rather than trying
55888         to enumerate common types.  Otherwise, it would fail to match an
55889         "extern unsigned char const *" declaration in idutils.
55890         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55891         a way to support use of that type of macro.
55892         (_gl_TS_var_match): Simplify regexp.
55893         (_gl_TS_obj_files): New configurable variable.
55894         (_gl_TS_headers): Likewise.
55896 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55898         verify: fix bug when gnulib <assert.h> is also included
55899         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55900         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55901         Perhaps there's a better way, but this fixes the immediate problem.
55902         Problem reported by Bruno Haible in
55903         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55905 2011-05-22  Bruno Haible  <bruno@clisp.org>
55907         xgetcwd: Simplify autoconf macro.
55908         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55910 2011-05-22  Bruno Haible  <bruno@clisp.org>
55912         New module 'mktime-internal'.
55913         * modules/mktime-internal: New file.
55914         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55915         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55916         mktime_internal as a C macro if libc has __mktime_internal.
55917         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55918         conditions.
55919         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55921 2011-05-22  Bruno Haible  <bruno@clisp.org>
55923         timegm: Correct mktime replacement statements.
55924         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55925         defining mktime as a C macro. This completes a 2009-07-28 commit.
55927 2011-05-22  Bruno Haible  <bruno@clisp.org>
55929         timegm: Simplify autoconf macro.
55930         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55932 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55934         clock-time: change to LGPLv2+.
55935         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55936         BSD-like but we have no mark for that; this is good enough for now.
55938 2011-05-21  Bruno Haible  <bruno@clisp.org>
55940         strerror_r: Fix comments.
55941         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55943 2011-05-21  Bruno Haible  <bruno@clisp.org>
55945         relocatable-prog-wrapper: Fix possible link error.
55946         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55947         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55948         (gl_FUNC_SETENV): ... to here.
55949         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55950         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55952 2011-05-21  Bruno Haible  <bruno@clisp.org>
55954         relocatable-prog-wrapper: Assume strerror() exists.
55955         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55956         m4/strerror.m4.
55957         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55958         * lib/relocwrapper.c: Remove mention of strerror module.
55959         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55961         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55962         C macro.
55964 2011-05-21  Bruno Haible  <bruno@clisp.org>
55966         select: Simplify replacement idiom.
55967         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55968         Win32 platforms.
55969         * lib/sys_select.in.h (select): Simplify accordingly.
55970         * modules/select (Depends-on): Likewise.
55972 2011-05-21  Bruno Haible  <bruno@clisp.org>
55974         mkdir-p: Simplify autoconf macro.
55975         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55976         gl_FUNC_LCHOWN.
55978 2011-05-21  Eric Blake  <eblake@redhat.com>
55980         strerror_r: avoid clobbering strerror on cygwin
55981         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55982         fall back instead to sys_errlist.
55983         * modules/strerror (configure.ac): Add witness.
55984         * tests/test-strerror_r.c (main): Enhance test.
55985         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55986         * tests/test-perror2.c (main): Free memory before exit.
55988 2011-05-21  Bruno Haible  <bruno@clisp.org>
55990         mkdtemp: Use gnulib naming conventions.
55991         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55992         * modules/mkdtemp (configure.ac): Update.
55994 2011-05-20  Eric Blake  <eblake@redhat.com>
55996         strerror_r: avoid corrupting errno on Solaris
55997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55998         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
56000         strerror_r: avoid compiler warning
56001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
56003         strerror_r: simplify AIX code
56004         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
56006         test-perror: avoid spurious failure on FreeBSD
56007         * modules/perror-tests (Depends-on): Add strerror, now that
56008         strerror_r no longer pulls it in.
56010 2011-05-20  Bruno Haible  <bruno@clisp.org>
56012         strerror_r-posix: Remove unused dependencies.
56013         * modules/strerror_r-posix (Depends-on): Remove strerror.
56014         Reported by Eric Blake.
56016 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56018         intprops: remove assumption about A|B representation
56019         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
56020         is a valid integer if both A and B are.  Although this is true for
56021         all known practical hosts, the C standard doesn't guarantee it,
56022         and the code need not assume it.  Also, this change may work around
56023         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
56024         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
56026 2011-05-20  Eric Blake  <eblake@redhat.com>
56028         perror: work around FreeBSD bug
56029         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
56030         is broken.  Move AC_LIBOBJ...
56031         * modules/perror (configure.ac): Here.
56032         * doc/posix-functions/perror.texi (perror): Document this.
56033         * tests/test-perror2.c (main): Enhance test.
56035         test-perror: check for strerror interactions
56036         * tests/macros.h (STREQ): Add macro.
56037         * modules/perror-tests (Files): Add second test.
56038         * tests/test-perror2.c (main): New file.
56039         * doc/posix-functions/perror.texi (perror): Document glibc bug.
56041         test-perror: rewrite to use init script
56042         * modules/perror-tests (Files): Add init.sh.
56043         * tests/test-perror.sh: Use temporary directory.
56045 2011-05-20  Jim Meyering  <meyering@redhat.com>
56047         maint: replace misused "a" with "an"
56048         * doc/intprops.texi: "a integer"
56049         * doc/regex.texi: "a explanation"
56050         * lib/alignof.h: "a object"
56051         * lib/argmatch.h: "a explanation"
56052         * lib/argp-help.c: "a option" and "a OPTION_DOC"
56053         * lib/stdint.in.h: "a integer"
56054         * lib/userspec.c: "a owner"
56055         * doc/gnulib.texi: Fix "a idea", and reword.
56057 2011-05-19  Jim Meyering  <meyering@redhat.com>
56059         maint: correct misuse of "a" and "an"
56060         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
56061         * lib/argp-help.c: "an docum...": s/an/a/
56062         * lib/argp-parse.c: "An vector": s/An/A/
56063         * lib/execute.c: "an native": s/an/a/
56064         * lib/spawn-pipe.c: Likewise.
56065         * lib/gc.h: "an Gc_rc": s/an/a/
56066         * lib/unigbrk.in.h: "an grapheme": s/an/a/
56067         * lib/fts.c: "an stat.st_dev": s/an/a/
56069 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56071         intprops-tests: work around HP-UX 11.23 cc bug with constants
56072         * tests/test-intprops.c (VERIFY): New macro.
56073         (main): Use it, instead of verify, to work around the compiler bug; see
56074         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56076         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
56077         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
56078         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
56079         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
56080         (_GL_REMAINDER_OVERFLOW): Use it.
56082         intprops-tests: revert unsigned part of previous change
56083         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
56084         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
56085         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
56086         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
56088 2011-05-19  Bruno Haible  <bruno@clisp.org>
56090         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
56091         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
56092         strerror_r() returned without filling the buffer.
56093         Reported by Eric Blake.
56095 2011-05-19  Eric Blake  <eblake@redhat.com>
56097         strerror_r: guarantee unchanged errno
56098         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
56099         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
56100         failure.
56101         * tests/test-strerror_r.c (main): Enhance test.
56103 2011-05-19  Bruno Haible  <bruno@clisp.org>
56105         strerror_r: Reorder #if blocks.
56106         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
56107         for consistency with the previous commit.
56109 2011-05-19  Bruno Haible  <bruno@clisp.org>
56111         perror: Avoid clobbering the strerror buffer when possible.
56112         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
56113         * lib/strerror.c: Include it.
56114         * modules/strerror (Files): Add lib/strerror-impl.h.
56115         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
56116         (my_strerror): New function, defined through lib/strerror-impl.h.
56117         (perror): Use it instead of strerror.
56118         * modules/perror (Files): Add lib/strerror-impl.h.
56119         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
56121 2011-05-19  Eric Blake  <eblake@redhat.com>
56123         strerror_r: fix on newer cygwin
56124         * lib/strerror_r.c (strerror_r): Cygwin now has
56125         __xpg_strerror_r, use it.
56127 2011-05-19  Bruno Haible  <bruno@clisp.org>
56129         strerror_r: Avoid clobbering the strerror buffer when possible.
56130         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
56131         (sys_nerr, sys_errlist): New declarations.
56132         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
56133         HP-UX, native Win32, IRIX, and 32-bit Solaris.
56134         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
56136 2011-05-19  Bruno Haible  <bruno@clisp.org>
56138         strerror_r: Fix test failure on mingw.
56139         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
56140         EXTEND_STRERROR_R.
56141         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
56142         macros from errno.in.h instead.
56144 2011-05-19  Eric Blake  <eblake@redhat.com>
56146         strerror: relax test for Solaris
56147         * tests/test-strerror.c (main): Permit Solaris behavior.
56148         * tests/test-strerror_r.c (main): Likewise.
56150         strerror: enforce POSIX ruling on strerror(0)
56151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
56152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
56153         * lib/strerror_r.c (rpl_strerror_r): Work around it.
56154         * doc/posix-functions/strerror.texi (strerror): Document it.
56155         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
56156         * tests/test-strerror.c (main): Strengthen test.
56157         * tests/test-strerror_r.c (main): Likewise.
56159 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56161         intprop-tests: port to older and more-pedantic compilers
56162         * modules/intprops-tests (Files): Add tests/macros.h.
56163         * tests/test-intprops.c: Include macros.h.
56164         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
56165         it's no longer documented to expand to an integer constant expression.
56166         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
56167         argument is floating point, as it's no longer documented to expand
56168         to an integer constant expression in that case.
56169         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
56170         compiler bugs reported by Bruno Haible.  See
56171         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56172         (U0, U1): New constants, to work around the same bugs.  Also,
56173         in tests, use e.g., "(unsigned int) 39" rather than "39u".
56175         intprops: work around C compiler bugs
56176         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
56177         bug in Sun C 5.11 2010/08/13 and other compilers; see
56178         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56180         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
56181         * doc/intprops.texi (Integer Type Determination): Fix
56182         documentation for TYPE_IS_INTEGER: it returns an constant
56183         expression, not an integer constant expression.  Fix doc for
56184         TYPE_SIGNED: it returns an integer constant expression only if its
56185         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
56186         hardly worth documented that way....)
56188 2011-05-18  Bruno Haible  <bruno@clisp.org>
56190         strerror_r: Avoid clobbering the strerror buffer when possible.
56191         * lib/strerror_r.c (strerror_r): Merge the three implementations.
56192         Handle gnulib defined errno values here. When strerror() returns NULL
56193         or an empty string, return EINVAL.
56194         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
56195         gnulib defined errno values here.
56196         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
56198 2011-05-18  Eric Blake  <eblake@redhat.com>
56200         fnmatch: avoid compiler warning
56201         * lib/fnmatch_loop.c (FCT): Use correct type.
56202         Reported by Matthias Bolte.
56204 2011-05-13  Jim Meyering  <meyering@redhat.com>
56206         maint.mk: three new prohibit_<HDR>_without_use rules
56207         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
56208         (sc_prohibit_stdio-safer_without_use): Likewise.
56209         (sc_prohibit_xfreopen_without_use): Likewise.
56211 2011-05-17  Jim Meyering  <meyering@redhat.com>
56213         announce-gen: fail if the NEWS delta is empty
56214         If there's nothing noteworthy in NEWS, then either you forgot
56215         or you shouldn't be releasing.
56216         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
56218 2011-05-17  Pádraig Brady  <P@draigBrady.com>
56220         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
56221         reserved symbols starting with double underscore from the check.
56223 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56225         intprops: add doc
56226         * doc/intprops.texi: New file, documenting intprops.
56227         * doc/gnulib.texi (Particular Modules): Include it.
56229         verify: add doc to gnulib manual and fix example
56230         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
56231         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
56232         (Compile-time Assertions): Fix example so it can't overflow.
56234 2011-05-17  Jim Meyering  <meyering@redhat.com>
56236         warnings.m4: don't usurp save_CPPFLAGS variable name
56237         * m4/warnings.m4: Prefix local temporary variable name with gl_.
56239         doc: fix typo
56240         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
56242 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56243             Bruno Haible  <bruno@clisp.org>
56245         doc: Tweak recent change.
56246         * README (Portability guidelines): Tweak new text.
56247         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
56248         Interix 6.1.
56250 2011-05-16  Eric Blake  <eblake@redhat.com>
56252         inttypes: avoid autoconf warning
56253         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
56254         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56256 2011-05-16  Sam Steingold  <sds@gnu.org>
56257         and Eric Blake  <eblake@redhat.com>
56259         vc-list-files: accept multiple directory operands
56260         * build-aux/vc-list-files: Iterate over all remaining operands.
56262 2011-05-16  Bruno Haible  <bruno@clisp.org>
56264         Fix confusion regarding deprecated modules.
56265         * modules/calloc (Status, Notice): Mark module as deprecated, not
56266         obsolete.
56267         * modules/fnmatch-posix (Status, Notice): Likewise.
56268         * modules/getdate (Status, Notice): Likewise.
56269         * modules/getopt (Status, Notice): Likewise.
56270         * modules/malloc (Status, Notice): Likewise.
56271         * modules/pipe (Status, Notice): Likewise.
56272         * modules/realloc (Status, Notice): Likewise.
56273         * modules/rename-dest-slash (Status, Notice): Likewise.
56274         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
56275         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
56276         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
56277         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
56278         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
56280 2011-05-16  Bruno Haible  <bruno@clisp.org>
56282         doc: List the target platforms.
56283         * doc/gnulib-intro.texi (Target Platforms): New section.
56284         * doc/gnulib.texi (Introduction): Update menu.
56285         * README (Portability guidelines): Refer to the new section. Update
56286         statement about oldest supported environment. Remove rationale why
56287         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
56288         unportable C89 function.
56289         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
56290         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
56292 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56294         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
56296 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56298         intprops-tests: new module
56299         * modules/intprops-tests, tests/test-intprops.c: New files.
56301         intprops: add safe, portable integer overflow checking
56302         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
56303         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
56304         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
56305         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
56306         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
56307         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
56308         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
56309         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
56310         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
56311         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
56312         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
56314 2011-05-12  James Youngman  <jay@gnu.org>
56316         Add a test for glibc's Bugzilla bug #12378.
56317         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
56318         doesn't allow the literal matching of a lone "[" (which is
56319         required by POSIX).
56320         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
56322 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
56324         Sync glibc change fixing Bugzilla bug #12378.
56325         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
56326         beginning and fall back to matching as normal character if the
56327         string ends before the matching ']' is found.  This is what POSIX
56328         requires.
56330 2011-05-13  Eric Blake  <eblake@redhat.com>
56332         getcwd-lgpl: relax test for FreeBSD
56333         * doc/posix-functions/getcwd.texi (getcwd): Document portability
56334         issue.
56335         * tests/test-getcwd-lgpl.c (main): Relax test.
56336         Reported by Matthias Bolte.
56338 2011-05-11  Eric Blake  <eblake@redhat.com>
56340         test-fflush: silence compiler warning
56341         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
56343 2011-05-11  Bruno Haible  <bruno@clisp.org>
56345         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
56346         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
56347         * modules/canonicalize (Depends-on): Add 'nocrash'.
56348         * modules/canonicalize-lgpl (Depends-on): Likewise.
56349         * doc/posix-functions/realpath.texi: Update platforms list.
56350         Reported by Ryan Schmidt <ryandesign@macports.org>.
56352 2011-05-11  Bruno Haible  <bruno@clisp.org>
56354         group-member: Declare function in <unistd.h>.
56355         * lib/unistd.in.h (group_member): New declaration.
56356         * lib/group-member.h: Remove file.
56357         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
56358         * tests/test-unistd-c++.cc: Check signature of group_member.
56359         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
56360         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
56361         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
56362         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
56363         HAVE_GROUP_MEMBER.
56364         * modules/group-member (Files): Remove lib/group-member.h.
56365         (Depends-on): Add unistd. Specify conditions.
56366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56367         (Include): Change to <unistd.h>.
56368         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
56369         HAVE_GROUP_MEMBER.
56370         * NEWS: Mention the change.
56371         * lib/euidaccess.c: Don't include group-member.h.
56373 2011-05-11  Bruno Haible  <bruno@clisp.org>
56375         group-member: Document module.
56376         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
56377         module.
56379 2011-05-11  Bruno Haible  <bruno@clisp.org>
56381         fclose: Fix mistake earlier today.
56382         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
56384 2011-05-11  Eric Blake  <eblake@redhat.com>
56386         fclose: preserve fflush errors
56387         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
56388         Reported by Jim Meyering.
56390         bootstrap: support a prereq of 'rpcgen -' on RHEL5
56391         * build-aux/bootstrap (check_versions): When no specific version
56392         is required, merely check that the app produces an exit status
56393         that indicates its existence.
56395         maint.mk: drop redundant check
56396         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
56397         the same but better.
56399 2011-05-11  Bruno Haible  <bruno@clisp.org>
56401         fclose: Fix possible link error.
56402         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
56403         unregister_shadow_fd. Improve comments.
56404         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
56405         Eric Blake.
56407 2011-05-11  Jim Meyering  <meyering@redhat.com>
56409         maint.mk: improve "can not" detection and generalize rule name
56410         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
56411         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
56412         Use the same technique as in sc_prohibit_doubled_word, so that
56413         we recognize "can not" also when the words are separated by a newline.
56414         Suggested by Eric Blake.
56415         (perl_filename_lineno_text_): Define.  Factored out of...
56416         (prohibit_doubled_word_): ...here.  Use the new definition.
56417         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
56418         (prohibit_undesirable_word_seq_RE_): New overridable variable.
56419         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56421 2011-05-10  Eric Blake  <eblake@redhat.com>
56423         fclose: avoid double close race when possible
56424         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56425         all but WINDOWS_SOCKETS.
56427 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56429         openat: correct new comment
56430         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56432 2011-05-10  Jim Meyering  <meyering@redhat.com>
56434         openat: add comments
56435         * lib/openat-proc.c (openat_proc_name): Add comments,
56436         mostly from Eric Blake.
56438 2011-05-09  Eric Blake  <eblake@redhat.com>
56440         openat: reduce syscalls in first probe of /proc
56441         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56442         be a directory.  Simplify the probe for .. bugs.
56443         * modules/openat (Depends-on): Drop same-inode.
56444         Reported by Bastien ROUCARIES.
56446 2011-05-09  Jim Meyering  <meyering@redhat.com>
56448         maint.mk: change semantics/name of tight_scope variables
56449         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56450         Rename variables to align with semantics that make them more useful.
56452         maint.mk: tweak new rule's name not to impinge
56453         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56454         (sc_tight_scope): Use new rule name rather than $@-0.
56456         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56457         * top/maint.mk (sc_tight_scope): New rule.
56458         (sc_tight_scope-0): New rule, ifdef'd out.
56459         (_gl_TS_dir): Default.
56460         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56461         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56463 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56465         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56466         Haible <bruno@clisp.org>.
56468 2011-05-08  Bruno Haible  <bruno@clisp.org>
56470         Comments.
56471         * m4/isnanf.m4: Add comment.
56472         * m4/isnanl.m4: Likewise.
56474 2011-05-08  Bruno Haible  <bruno@clisp.org>
56476         glob: Remove obsolete macro.
56477         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56479 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56481         intprops: Sun C 5.11 supports __typeof__
56482         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56483         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56484         which is new.
56485         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56487         intprops: switch to usual gnulib indenting and naming
56488         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56489         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56491         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56493 2011-05-08  Jim Meyering  <meyering@redhat.com>
56495         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56496         * top/maint.mk (release-prep): Use make's --no-print-directory
56497         option when generating the announcement.  This eliminates the
56498         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56499         generated announcement template.
56501 2011-05-08  Bruno Haible  <bruno@clisp.org>
56503         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56504         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56505         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56507 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56509         ignore-value, verify: Omit include files from lib_SOURCES.
56510         * modules/ignore-value, modules/verify (Makefile.am):
56511         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56512         that leads Automake to duplicate use of am__objects_... variables
56513         in Makefile.in.  See
56514         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56516 2011-05-07  Bruno Haible  <bruno@clisp.org>
56518         fclose: Simplify autoconf macro.
56519         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56520         defined.
56522 2011-05-07  Bruno Haible  <bruno@clisp.org>
56524         canonicalize-lgpl: Fix autoconf macro ordering bug.
56525         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56526         gl_STDLIB_H_DEFAULTS.
56528 2011-05-06  Eric Blake  <eblake@redhat.com>
56530         maintainer-makefile: make sc_po_check easier to tune
56531         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56532         to probe for strings, such as an alternate location for gnulib.
56534         fclose: guarantee behavior on seekable stdin
56535         * modules/fclose (Depends-on): Add fflush.
56536         * doc/posix-functions/fclose.texi (fclose): Document this.
56537         * tests/test-fclose.c (main): Make test for this unconditional.
56539 2011-05-06  Bruno Haible  <bruno@clisp.org>
56541         fflush, fpurge: Relicense under LGPLv2+.
56542         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56543         * modules/fpurge (License): Likewise.
56544         With permission from Eric Blake and Jim Meyering.
56545         Suggested by Eric Blake.
56547 2011-05-06  Karl Berry  <karl@gnu.org>
56549         * MODULES.html.sh (func_all_modules): remove exit.
56551 2011-05-06  Jim Meyering  <meyering@redhat.com>
56553         maint.mk: use info-gnu@ as the default only for a stable release
56554         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56555         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56556         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56559 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56561         assert-h: new module, which supports C1X-style static_assert
56562         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56563         * lib/verify.h: Revamp so that this can be copied into assert.h,
56564         while retaining the ability to use it standalone as before.
56565         Rename private identifiers so as not to encroach on the
56566         standard C namespace, since this is now used by assert.h.
56567         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56568         the old verify_true.
56569         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56570         the old verify_true.  Use _GL_VERIFY_TYPE.
56571         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56572         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56573         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56574         defined when this file is copied into the replacement assert.h.
56575         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56576         and _Static_assert is not built in.
56577         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56578         defined, and use the new macros mentioned above.
56579         * doc/posix-headers/assert.texi: Document this.
56581 2011-05-05  Bruno Haible  <bruno@clisp.org>
56583         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56584         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56585         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56586         gl_REPLACE_FCLOSE here.
56587         * modules/fflush (Depends-on): Remove fclose.
56588         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56589         combination with module 'fclose'.
56591 2011-05-05  Bruno Haible  <bruno@clisp.org>
56593         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56594         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56595         gl_FUNC_FFLUSH.
56596         (gl_FUNC_FFLUSH): Use it.
56597         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56598         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56599         gl_REPLACE_FSEEKO here.
56601 2011-05-05  Bruno Haible  <bruno@clisp.org>
56603         tzset: Relicense under LGPL.
56604         * modules/tzset (License): Change to LGPL.
56605         No agreement needed; it's a no-op.
56607         strtoimax, strtoumax: Relicense under LGPL.
56608         * modules/strtoimax (License): Change to LGPL.
56609         * modules/strtoumax (License): Likewise.
56610         With permission from Jim Meyering, Paul Eggert:
56611         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56612         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56614         getgroups: Relicense under LGPL.
56615         * modules/getgroups (License): Change to LGPL.
56616         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56617         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56618         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56619         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56621         nanosleep: Relicense under LGPL.
56622         * modules/nanosleep (License): Change to LGPL.
56623         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56624         Haible:
56625         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56626         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56627         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56628         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56630         futimens: Relicense under LGPL.
56631         * modules/futimens (License): Change to LGPL.
56632         With permission from Eric Blake:
56633         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56635         fflush: Relicense under LGPL.
56636         * modules/fflush (License): Change to LGPL.
56637         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56638         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56639         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56640         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56642         tmpfile: Relicense under LGPL.
56643         * modules/tmpfile (License): Change to LGPL.
56644         With permission from Ben Pfaff:
56645         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56647         isfinite: Relicense under LGPL.
56648         * modules/isfinite (License): Change to LGPL.
56649         With permission from Ben Pfaff, Bruno Haible:
56650         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56651         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56653         acosl..tanl: Relicense under LGPL.
56654         * modules/acosl (License): Change to LGPL.
56655         * modules/asinl (License): Likewise.
56656         * modules/atanl (License): Likewise.
56657         * modules/cosl (License): Likewise.
56658         * modules/expl (License): Likewise.
56659         * modules/logl (License): Likewise.
56660         * modules/sinl (License): Likewise.
56661         * modules/sqrtl (License): Likewise.
56662         * modules/tanl (License): Likewise.
56663         Source code originally from glibc and Paolo Bonzini. Agreements:
56664         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56665         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56667 2011-05-05  Bruno Haible  <bruno@clisp.org>
56669         signal: Define sighandler_t.
56670         * lib/signal.in.h (sighandler_t): New type.
56671         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56672         whether sighandler_t is defined.
56673         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56674         * modules/signal (Depends-on): Add extensions.
56675         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56676         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56677         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56679 2011-05-05  Eric Blake  <eblake@redhat.com>
56681         maint: remove useless REPLACE_*_H macros
56682         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56683         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56684         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56685         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56686         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56687         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56688         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56689         * m4/btowc.m4: Update callers.
56690         * m4/dirfd.m4: Likewise.
56691         * m4/duplocale.m4: Likewise.
56692         * m4/fchdir.m4: Likewise.
56693         * m4/fdopendir.m4: Likewise.
56694         * m4/inet_ntop.m4: Likewise.
56695         * m4/inet_pton.m4: Likewise.
56696         * m4/ioctl.m4: Likewise.
56697         * m4/mbrlen.m4: Likewise.
56698         * m4/mbrtowc.m4: Likewise.
56699         * m4/mbsinit.m4: Likewise.
56700         * m4/mbsnrtowcs.m4: Likewise.
56701         * m4/mbsrtowcs.m4: Likewise.
56702         * m4/poll.m4: Likewise.
56703         * m4/setlocale.m4: Likewise.
56704         * m4/wcrtomb.m4: Likewise.
56705         * m4/wcsnrtombs.m4: Likewise.
56706         * m4/wcsrtombs.m4: Likewise.
56707         * m4/wctob.m4: Likewise.
56708         * m4/wcwidth.m4: Likewise.
56709         * modules/posix_spawn: Likewise.
56710         * modules/posix_spawn_file_actions_addclose: Likewise.
56711         * modules/posix_spawn_file_actions_adddup2: Likewise.
56712         * modules/posix_spawn_file_actions_addopen: Likewise.
56713         * modules/posix_spawn_file_actions_destroy: Likewise.
56714         * modules/posix_spawn_file_actions_init: Likewise.
56715         * modules/posix_spawnattr_destroy: Likewise.
56716         * modules/posix_spawnattr_getflags: Likewise.
56717         * modules/posix_spawnattr_getpgroup: Likewise.
56718         * modules/posix_spawnattr_getschedparam: Likewise.
56719         * modules/posix_spawnattr_getschedpolicy: Likewise.
56720         * modules/posix_spawnattr_getsigdefault: Likewise.
56721         * modules/posix_spawnattr_getsigmask: Likewise.
56722         * modules/posix_spawnattr_init: Likewise.
56723         * modules/posix_spawnattr_setflags: Likewise.
56724         * modules/posix_spawnattr_setpgroup: Likewise.
56725         * modules/posix_spawnattr_setschedparam: Likewise.
56726         * modules/posix_spawnattr_setschedpolicy: Likewise.
56727         * modules/posix_spawnattr_setsigdefault: Likewise.
56728         * modules/posix_spawnattr_setsigmask: Likewise.
56729         * modules/posix_spawnp: Likewise.
56731 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56733         Add option to do-release-commit-and-tag to specify branch.
56734         * build-aux/do-release-commit-and-tag: Add --branch.
56736 2011-05-03  Bruno Haible  <bruno@clisp.org>
56738         Avoid unnecessary compilation units, through conditional dependencies.
56739         * modules/accept (Depends-on): Add conditions to the dependencies.
56740         * modules/acosl (Depends-on): Likewise.
56741         * modules/argz (Depends-on): Likewise.
56742         * modules/asinl (Depends-on): Likewise.
56743         * modules/atanl (Depends-on): Likewise.
56744         * modules/atoll (Depends-on): Likewise.
56745         * modules/bind (Depends-on): Likewise.
56746         * modules/btowc (Depends-on): Likewise.
56747         * modules/canonicalize-lgpl (Depends-on): Likewise.
56748         * modules/ceil (Depends-on): Likewise.
56749         * modules/ceilf (Depends-on): Likewise.
56750         * modules/ceill (Depends-on): Likewise.
56751         * modules/chdir-long (Depends-on): Likewise.
56752         * modules/chown (Depends-on): Likewise.
56753         * modules/close (Depends-on): Likewise.
56754         * modules/connect (Depends-on): Likewise.
56755         * modules/cosl (Depends-on): Likewise.
56756         * modules/dirfd (Depends-on): Likewise.
56757         * modules/dprintf (Depends-on): Likewise.
56758         * modules/dprintf-posix (Depends-on): Likewise.
56759         * modules/error (Depends-on): Likewise.
56760         * modules/euidaccess (Depends-on): Likewise.
56761         * modules/expl (Depends-on): Likewise.
56762         * modules/faccessat (Depends-on): Likewise.
56763         * modules/fchdir (Depends-on): Likewise.
56764         * modules/fclose (Depends-on): Likewise.
56765         * modules/fcntl (Depends-on): Likewise.
56766         * modules/fdopendir (Depends-on): Likewise.
56767         * modules/fflush (Depends-on): Likewise.
56768         * modules/floor (Depends-on): Likewise.
56769         * modules/floorf (Depends-on): Likewise.
56770         * modules/floorl (Depends-on): Likewise.
56771         * modules/fnmatch (Depends-on): Likewise.
56772         * modules/fopen (Depends-on): Likewise.
56773         * modules/fprintf-posix (Depends-on): Likewise.
56774         * modules/frexp (Depends-on): Likewise.
56775         * modules/frexp-nolibm (Depends-on): Likewise.
56776         * modules/frexpl (Depends-on): Likewise.
56777         * modules/frexpl-nolibm (Depends-on): Likewise.
56778         * modules/fseek (Depends-on): Likewise.
56779         * modules/fsusage (Depends-on): Likewise.
56780         * modules/ftell (Depends-on): Likewise.
56781         * modules/ftello (Depends-on): Likewise.
56782         * modules/futimens (Depends-on): Likewise.
56783         * modules/getcwd (Depends-on): Likewise.
56784         * modules/getcwd-lgpl (Depends-on): Likewise.
56785         * modules/getdelim (Depends-on): Likewise.
56786         * modules/getdomainname (Depends-on): Likewise.
56787         * modules/getgroups (Depends-on): Likewise.
56788         * modules/gethostname (Depends-on): Likewise.
56789         * modules/getline (Depends-on): Likewise.
56790         * modules/getlogin_r (Depends-on): Likewise.
56791         * modules/getopt-posix (Depends-on): Likewise.
56792         * modules/getpeername (Depends-on): Likewise.
56793         * modules/getsockname (Depends-on): Likewise.
56794         * modules/getsockopt (Depends-on): Likewise.
56795         * modules/getsubopt (Depends-on): Likewise.
56796         * modules/getusershell (Depends-on): Likewise.
56797         * modules/glob (Depends-on): Likewise.
56798         * modules/grantpt (Depends-on): Likewise.
56799         * modules/iconv_open (Depends-on): Likewise.
56800         * modules/iconv_open-utf (Depends-on): Likewise.
56801         * modules/inet_ntop (Depends-on): Likewise.
56802         * modules/inet_pton (Depends-on): Likewise.
56803         * modules/ioctl (Depends-on): Likewise.
56804         * modules/isapipe (Depends-on): Likewise.
56805         * modules/isfinite (Depends-on): Likewise.
56806         * modules/isinf (Depends-on): Likewise.
56807         * modules/lchown (Depends-on): Likewise.
56808         * modules/ldexpl (Depends-on): Likewise.
56809         * modules/link (Depends-on): Likewise.
56810         * modules/linkat (Depends-on): Likewise.
56811         * modules/listen (Depends-on): Likewise.
56812         * modules/logl (Depends-on): Likewise.
56813         * modules/lstat (Depends-on): Likewise.
56814         * modules/mbrlen (Depends-on): Likewise.
56815         * modules/mbrtowc (Depends-on): Likewise.
56816         * modules/mbsinit (Depends-on): Likewise.
56817         * modules/mbsnrtowcs (Depends-on): Likewise.
56818         * modules/mbsrtowcs (Depends-on): Likewise.
56819         * modules/mbtowc (Depends-on): Likewise.
56820         * modules/memcmp (Depends-on): Likewise.
56821         * modules/mkdir (Depends-on): Likewise.
56822         * modules/mkdtemp (Depends-on): Likewise.
56823         * modules/mkfifo (Depends-on): Likewise.
56824         * modules/mkfifoat (Depends-on): Likewise.
56825         * modules/mknod (Depends-on): Likewise.
56826         * modules/mkostemp (Depends-on): Likewise.
56827         * modules/mkostemps (Depends-on): Likewise.
56828         * modules/mkstemp (Depends-on): Likewise.
56829         * modules/mkstemps (Depends-on): Likewise.
56830         * modules/mktime (Depends-on): Likewise.
56831         * modules/nanosleep (Depends-on): Likewise.
56832         * modules/open (Depends-on): Likewise.
56833         * modules/openat (Depends-on): Likewise.
56834         * modules/perror (Depends-on): Likewise.
56835         * modules/poll (Depends-on): Likewise.
56836         * modules/popen (Depends-on): Likewise.
56837         * modules/posix_spawn (Depends-on): Likewise.
56838         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56839         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56840         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56841         * modules/posix_spawnp (Depends-on): Likewise.
56842         * modules/pread (Depends-on): Likewise.
56843         * modules/printf-posix (Depends-on): Likewise.
56844         * modules/ptsname (Depends-on): Likewise.
56845         * modules/putenv (Depends-on): Likewise.
56846         * modules/pwrite (Depends-on): Likewise.
56847         * modules/readline (Depends-on): Likewise.
56848         * modules/readlink (Depends-on): Likewise.
56849         * modules/readlinkat (Depends-on): Likewise.
56850         * modules/recv (Depends-on): Likewise.
56851         * modules/recvfrom (Depends-on): Likewise.
56852         * modules/regex (Depends-on): Likewise.
56853         * modules/remove (Depends-on): Likewise.
56854         * modules/rename (Depends-on): Likewise.
56855         * modules/renameat (Depends-on): Likewise.
56856         * modules/rmdir (Depends-on): Likewise.
56857         * modules/round (Depends-on): Likewise.
56858         * modules/roundf (Depends-on): Likewise.
56859         * modules/roundl (Depends-on): Likewise.
56860         * modules/rpmatch (Depends-on): Likewise.
56861         * modules/select (Depends-on): Likewise.
56862         * modules/send (Depends-on): Likewise.
56863         * modules/sendto (Depends-on): Likewise.
56864         * modules/setenv (Depends-on): Likewise.
56865         * modules/setlocale (Depends-on): Likewise.
56866         * modules/setsockopt (Depends-on): Likewise.
56867         * modules/shutdown (Depends-on): Likewise.
56868         * modules/sigaction (Depends-on): Likewise.
56869         * modules/signbit (Depends-on): Likewise.
56870         * modules/sigprocmask (Depends-on): Likewise.
56871         * modules/sinl (Depends-on): Likewise.
56872         * modules/sleep (Depends-on): Likewise.
56873         * modules/snprintf (Depends-on): Likewise.
56874         * modules/snprintf-posix (Depends-on): Likewise.
56875         * modules/socket (Depends-on): Likewise.
56876         * modules/sprintf-posix (Depends-on): Likewise.
56877         * modules/sqrtl (Depends-on): Likewise.
56878         * modules/stat (Depends-on): Likewise.
56879         * modules/strchrnul (Depends-on): Likewise.
56880         * modules/strdup-posix (Depends-on): Likewise.
56881         * modules/strerror (Depends-on): Likewise.
56882         * modules/strerror_r-posix (Depends-on): Likewise.
56883         * modules/strndup (Depends-on): Likewise.
56884         * modules/strnlen (Depends-on): Likewise.
56885         * modules/strptime (Depends-on): Likewise.
56886         * modules/strsep (Depends-on): Likewise.
56887         * modules/strsignal (Depends-on): Likewise.
56888         * modules/strstr-simple (Depends-on): Likewise.
56889         * modules/strtod (Depends-on): Likewise.
56890         * modules/strtoimax (Depends-on): Likewise.
56891         * modules/strtok_r (Depends-on): Likewise.
56892         * modules/strtoumax (Depends-on): Likewise.
56893         * modules/symlink (Depends-on): Likewise.
56894         * modules/symlinkat (Depends-on): Likewise.
56895         * modules/tanl (Depends-on): Likewise.
56896         * modules/tcgetsid (Depends-on): Likewise.
56897         * modules/tmpfile (Depends-on): Likewise.
56898         * modules/trunc (Depends-on): Likewise.
56899         * modules/truncf (Depends-on): Likewise.
56900         * modules/truncl (Depends-on): Likewise.
56901         * modules/uname (Depends-on): Likewise.
56902         * modules/unlink (Depends-on): Likewise.
56903         * modules/unlockpt (Depends-on): Likewise.
56904         * modules/unsetenv (Depends-on): Likewise.
56905         * modules/usleep (Depends-on): Likewise.
56906         * modules/utimensat (Depends-on): Likewise.
56907         * modules/vasprintf (Depends-on): Likewise.
56908         * modules/vdprintf (Depends-on): Likewise.
56909         * modules/vdprintf-posix (Depends-on): Likewise.
56910         * modules/vfprintf-posix (Depends-on): Likewise.
56911         * modules/vprintf-posix (Depends-on): Likewise.
56912         * modules/vsnprintf (Depends-on): Likewise.
56913         * modules/vsnprintf-posix (Depends-on): Likewise.
56914         * modules/vsprintf-posix (Depends-on): Likewise.
56915         * modules/wcrtomb (Depends-on): Likewise.
56916         * modules/wcscasecmp (Depends-on): Likewise.
56917         * modules/wcscspn (Depends-on): Likewise.
56918         * modules/wcsdup (Depends-on): Likewise.
56919         * modules/wcsncasecmp (Depends-on): Likewise.
56920         * modules/wcsnrtombs (Depends-on): Likewise.
56921         * modules/wcspbrk (Depends-on): Likewise.
56922         * modules/wcsrtombs (Depends-on): Likewise.
56923         * modules/wcsspn (Depends-on): Likewise.
56924         * modules/wcsstr (Depends-on): Likewise.
56925         * modules/wcstok (Depends-on): Likewise.
56926         * modules/wcswidth (Depends-on): Likewise.
56927         * modules/wctob (Depends-on): Likewise.
56928         * modules/wctomb (Depends-on): Likewise.
56929         * modules/wctype (Depends-on): Likewise.
56930         * modules/wcwidth (Depends-on): Likewise.
56931         * modules/write (Depends-on): Likewise.
56933 2011-05-03  Bruno Haible  <bruno@clisp.org>
56935         Support for conditional dependencies.
56936         * doc/gnulib.texi (Module description): Document the syntax of
56937         conditional dependencies.
56938         * gnulib-tool: New option --conditional-dependencies.
56939         (func_usage): Document it.
56940         (cond_dependencies): New variable.
56941         (func_get_automake_snippet_conditional,
56942         func_get_automake_snippet_unconditional): New functions, extracted from
56943         func_get_automake_snippet.
56944         (func_get_automake_snippet): Use them.
56945         (sed_first_32_chars): New variable.
56946         (func_module_shellfunc_name): New function.
56947         (func_module_shellvar_name): New function.
56948         (func_module_conditional_name): New function.
56949         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56950         func_cond_module_condition): New functions.
56951         (func_modules_transitive_closure): Add support for conditional
56952         dependencies.
56953         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56954         conditional automake snippet in an automake conditional.
56955         (func_emit_autoconf_snippets): Emit shell functions that contain the
56956         code for conditional modules.
56957         (func_import, func_create_testdir): Update specification.
56959 2011-05-03  Eric Blake  <eblake@redhat.com>
56961         test-getaddrinfo: report error information
56962         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56964 2011-05-03  Jim Meyering  <meyering@redhat.com>
56966         bootstrap: avoid build failure when $GZIP is set
56967         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56968         program name.  If defined at all, it is supposed to list gzip options.
56969         Reported by Alan Curry in http://debbugs.gnu.org/8609
56971 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56973         readme-release: new module with release instructions
56974         * modules/readme-release: New module.
56975         * top/README-release: New file, from coreutils, grep, diffutils.
56976         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56978 2011-05-02  Eric Blake  <eblake@redhat.com>
56980         fflush: also replace fclose when fixing fflush
56981         * modules/fflush (Depends-on): Add fclose.
56982         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56983         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56984         memstreams with no backing fd.
56985         * doc/posix-functions/fclose.texi (fclose): Document the use of
56986         fflush module to fix the bug.
56987         * tests/test-fclose.c (main): Relax test when fclose is used in
56988         isolation.
56990         fclose: add some tests
56991         * modules/fclose-tests: New test module.
56992         * tests/test-fclose.c: New file.
56993         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56995         fclose: reduced dependencies
56996         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56997         simpler lseek.
56998         * lib/fclose.c (rpl_fclose): Likewise.
56999         Reported by Simon Josefsson.
57001         exit: drop remaining clients
57002         * modules/argmatch (Depends-on): Replace exit with stdlib.
57003         * modules/copy-file (Depends-on): Likewise.
57004         * modules/execute (Depends-on): Likewise.
57005         * modules/exitfail (Depends-on): Likewise.
57006         * modules/obstack (Depends-on): Likewise.
57007         * modules/pagealign_alloc (Depends-on): Likewise.
57008         * modules/pipe-filter-gi (Depends-on): Likewise.
57009         * modules/pipe-filter-ii (Depends-on): Likewise.
57010         * modules/savewd (Depends-on): Likewise.
57011         * modules/spawn-pipe (Depends-on): Likewise.
57012         * modules/wait-process (Depends-on): Likewise.
57013         * modules/xsetenv (Depends-on): Likewise.
57014         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
57015         * modules/git-merge-changelog (Depends-on): Likewise.
57016         * modules/long-options (Depends-on): Likewise.
57017         * modules/pt_chown (Depends-on): Likewise.
57018         * modules/sysexits (Depends-on): Likewise.
57020         freading: relax license from LGPLv3+ to LGPLv2+
57021         * modules/freading (License): Relax LGPL version.
57023 2011-05-02  Bruno Haible  <bruno@clisp.org>
57025         fchdir: Remove unused dependencies.
57026         * modules/fchdir (Depends-on): Remove include_next.
57028 2011-05-02  Bruno Haible  <bruno@clisp.org>
57030         gnulib-tool: Refactor.
57031         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
57032         from func_emit_autoconf_snippets.
57033         (func_emit_autoconf_snippets): Use it.
57035 2011-05-02  Simon Josefsson  <simon@josefsson.org>
57037         * NEWS: Document removal of 'exit'.
57038         * modules/exit: Remove file.
57040 2011-05-01  Bruno Haible  <bruno@clisp.org>
57042         Update DEPENDENCIES.
57043         * DEPENDENCIES (gettext): Recommend the newest release.
57044         Reported by Simon Josefsson.
57046 2011-05-01  Bruno Haible  <bruno@clisp.org>
57048         gnulib-tool: Reduce code duplication.
57049         * gnulib-tool (func_emit_autoconf_snippets): New function.
57050         (func_import, func_create_testdir): Use it.
57052 2011-04-30  Eric Blake  <eblake@redhat.com>
57054         fclose: don't fail on non-seekable input stream
57055         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
57056         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
57057         since fflush is allowed to fail in that case.
57059 2011-04-30  Bruno Haible  <bruno@clisp.org>
57061         dup3: cleanup
57062         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
57064 2011-04-30  Bruno Haible  <bruno@clisp.org>
57066         netdb: Make it work in C++ mode.
57067         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
57068         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
57069         module.
57070         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
57071         gl_MODULE_INDICATOR_FOR_TESTS.
57072         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
57073         * modules/netdb-c++-tests: New file.
57074         * tests/test-netdb-c++.cc: New file.
57076 2011-04-30  Bruno Haible  <bruno@clisp.org>
57078         New modules 'vfscanf', 'vscanf'.
57079         * modules/vfscanf: New file.
57080         * modules/vscanf: New file.
57081         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
57082         here.
57083         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
57084         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
57086 2011-04-30  Bruno Haible  <bruno@clisp.org>
57088         passfd: Add comments.
57089         * lib/passfd.c: Add comments about platforms.
57091 2011-04-30  Bruno Haible  <bruno@clisp.org>
57093         sys_uio: Make <sys/uio.h> self-contained.
57094         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
57095         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
57097 2011-04-30  Bruno Haible  <bruno@clisp.org>
57099         sys_socket: Ensure 'struct iovec' definition.
57100         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
57101         <sys/socket.h>.
57102         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
57104 2011-04-30  Bruno Haible  <bruno@clisp.org>
57106         sys_uio: Protect definition of 'struct iovec'.
57107         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
57108         it as a C struct.
57110 2011-04-30  Bruno Haible  <bruno@clisp.org>
57112         manywarnings: fix indentation
57113         * m4/manywarnings.m4: Indent by 2 spaces consistently.
57115 2011-04-30  Pádraig Brady  <P@draigBrady.com>
57117         manywarnings: add -Wno-missing-field-initializers if needed.
57118         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
57119         option if it's needed to allow initialization with { 0, }
57121 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
57123         announce-gen: cosmetic improvement
57124         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
57126 2011-04-29  Jim Meyering  <meyering@redhat.com>
57128         vc-list-files: indent with spaces, not TABs
57129         * build-aux/vc-list-files: Convert leading TABs to spaces,
57130         to match the style of most other files in gnulib.
57132         announce-gen: indent with spaces, not TABs
57133         * build-aux/announce-gen: Convert all TABs to spaces, to match
57134         the style of most other files in gnulib.
57136 2011-04-29  Eric Blake  <eblake@redhat.com>
57138         quotearg: avoid uninitialized variable use
57139         * lib/quotearg.c (quoting_options_from_style): Initialize
57140         remaining fields, and ensure that custom styles are only used via
57141         quoting_options rather than quoting_style.
57143 2011-04-29  Jim Meyering  <meyering@redhat.com>
57145         maint.mk: remove unused VC-tag variable
57146         * top/maint.mk (VC-tag): Remove unused variable.
57148 2011-04-29  Bruno Haible  <bruno@clisp.org>
57150         netdb: fix gai_strerror replacements
57151         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
57152         * modules/netdb: Substitute it.
57154 2011-04-29  Jim Meyering  <meyering@redhat.com>
57156         test-getcwd.c: avoid new set-but-not-used warning
57157         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
57158         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
57159         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
57160         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
57162         test-hash.c: avoid a new shadowing warning
57163         * tests/test-hash.c (main): Don't shadow "dup".
57165 2011-04-28  Eric Blake  <eblake@redhat.com>
57167         getaddrinfo: fix gai_strerror signature
57168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
57169         and work around mingw with UNICODE defined.
57170         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
57171         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
57172         * modules/netdb (Makefile.am): Substitute it.
57173         * lib/netdb.in.h (gai_strerror): Declare replacement.
57174         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
57175         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
57176         the fix.
57178         getsockopt: avoid compiler warning
57179         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
57180         Reported by Matthias Bolte.
57182         tests: drop unused link dependency
57183         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
57184         * modules/dirent-safer-tests (Makefile.am): Likewise.
57185         * modules/fdopendir-tests (Makefile.am): Likewise.
57186         * modules/mkfifoat-tests (Makefile.am): Likewise.
57187         * modules/openat-safer-tests (Makefile.am): Likewise.
57188         * modules/openat-tests (Makefile.am): Likewise.
57189         * modules/readlinkat-tests (Makefile.am): Likewise.
57190         * modules/symlinkat-tests (Makefile.am): Likewise.
57191         * modules/linkat-tests (Makefile.am): Likewise.
57192         (Depends-on): Switch to filenamecat-lgpl.
57193         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
57194         LIBINTL.
57195         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
57196         * tests/test-linkat.c (main): Don't require xalloc.
57198         hash, mgetgroups: drop xalloc dependency
57199         * lib/hash.c (includes): Adjust includes.
57200         * lib/mgetgroups.c (includes): Likewise.
57201         (xgetgroups): Move...
57202         * lib/xgetgroups.c: ...to new file.
57203         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
57204         * modules/xgetgroups: New file, split from...
57205         * modules/mgetgroups: ...here.
57206         (Depends-on): Add xalloc-oversized.
57207         * modules/hash (Depends-on): Likewise.
57208         * modules/hash-tests (Depends-on): Drop xalloc.
57209         (test_hash_LDADD): Drop unused library.
57210         * tests/test-hash.c (main): Break xalloc dependency.
57211         (includes): Drop unused include.
57213         xalloc-oversized: new module
57214         * modules/xalloc-oversized: New module.
57215         * modules/xalloc (Depends-on): Add it.
57216         * lib/xalloc.h (xalloc_oversized): Move...
57217         * lib/xalloc-oversized.h: ...into new file.
57219         utimecmp: drop dependency on xmalloc
57220         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
57221         due to memory pressure.
57222         * modules/utimecmp (Depends-on): Drop xalloc.
57224 2011-04-27  Eric Blake  <eblake@redhat.com>
57226         getcwd: fix mingw bugs
57227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
57228         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
57229         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
57231 2011-04-27  Bruno Haible  <bruno@clisp.org>
57233         mkstemps: Ensure declaration on MacOS X 10.5.
57234         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
57235         * doc/glibc-functions/mkstemps.texi: Document header file problem on
57236         MacOS X.
57238 2011-04-27  Bruno Haible  <bruno@clisp.org>
57240         mkstemp: More documentation.
57241         * doc/posix-functions/mkstemp.texi: Document header file problem on
57242         MacOS X.
57244 2011-04-27  Bruno Haible  <bruno@clisp.org>
57246         mkstemp: Tweak configure message when cross-compiling.
57247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
57248         result as a guess.
57250 2011-04-27  Bruno Haible  <bruno@clisp.org>
57252         clean-temp: Clarify what it does.
57253         * lib/clean-temp.h: Add more comments.
57254         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
57255         module.
57256         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
57257         * doc/glibc-functions/mkstemps.texi: Likewise.
57258         * doc/glibc-functions/mkostemps.texi: Likewise.
57260 2011-04-27  Eric Blake  <eblake@redhat.com>
57262         fchdir: avoid extra chdir and fix test
57263         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
57264         getcwd-lgpl.
57265         * lib/fchdir.c (get_name): Any absolute name will do; it does not
57266         have to be canonical.
57267         (canonicalize_file_name): Drop unused macro.
57268         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
57270         filenamecat-lgpl: fix licence
57271         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
57272         when it was first created.
57274         linkat, renameat: add missing dependency
57275         * modules/linkat (Depends-on): Require getcwd-lgpl.
57276         * modules/renameat (Depends-on): Likewise.
57278         tests: reduce dependencies
57279         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57280         * tests/test-renameat.c (main): Likewise.
57281         * modules/linkat-tests (Depends-on): Relax dependency.
57282         * modules/renameat-tests (Depends-on): Likewise.
57283         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
57284         dependency explicit.
57286         save-cwd: reduce default dependency
57287         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
57288         * lib/save-cwd.c: Update comments.
57289         * NEWS: Document the semantic change.
57291         getcwd: enhance tests
57292         * tests/test-getcwd-lgpl.c: New file, taken from...
57293         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
57294         repeat long path stress tests from m4 probe.
57295         * modules/getcwd-lgpl-tests: New module.
57296         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
57297         * m4/getcwd-abort-bug.m4: Update comment.
57298         * m4/getcwd-path-max.m4: Likewise.
57300         getcwd-lgpl: new module
57301         * modules/getcwd-lgpl: New module.
57302         * lib/getcwd-lgpl.c: New file.
57303         * doc/posix-functions/getcwd.texi (getcwd): Document it.
57304         * MODULES.html.sh (lacking POSIX:2008): Likewise.
57305         * modules/getcwd (configure.ac): Set C witness.
57306         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
57308         getcwd: tweak comments
57309         * m4/getcwd-abort-bug.m4: Fix comments.
57310         * m4/getcwd-path-max.m4: Likewise.
57311         * m4/getcwd.m4: Likewise.
57313 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57314         and Eric Blake  <eblake@redhat.com>
57316         mkstemp: replace if system version uses wrong permissions
57317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
57318         read/write mode bits set in file created by mkstemp.
57319         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
57321 2011-04-27  Eric Blake  <eblake@redhat.com>
57323         passfd: avoid compiler warning
57324         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
57325         Reported by Laine Stump.
57327 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
57329         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
57330         required by the NetBSD (and perhaps other 4.4BSD derived) join.
57332 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57333         and Eric Blake  <eblake@redhat.com>
57335         mkstemp: mention clean-temp module
57336         * lib/mkstemp.c: Add comment.
57337         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
57339 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
57341         inttypes: also provide default values for 32-bit tests
57342         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
57343         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
57345 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57347         strtoumax: remove dependency on strtoimax
57348         This is like the strtoull change of yesterday.
57349         * modules/strtoumax (Files): Add lib/strtoimax.c.
57350         (Depends-on): Remove strtoimax and add verify.
57352         inttypes-incomplete: new module
57353         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
57354         all but the PRI* and SCN* parts of gl_INTTYPES_H.
57355         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
57356         of gl_INTTYPES_H.
57357         (gl_INTTYPES_H): Rewrite in terms of these new macros.
57358         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
57359         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
57360         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
57361         * modules/strtoumax, modules/xstrtol (Depends-on):
57362         Depend on inttypes-incomplete, not inttypes.
57363         * modules/inttypes-incomplete: New module, containing the contents
57364         of the old modules/inttypes module, except that the Files: section
57365         omits m4/inttypes-pri.m4, and the configure.ac section invokes
57366         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
57367         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
57368         (Depends-on): Depend only on inttypes-incomplete.
57369         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
57371         inttypes: omit now-redundant strtoimax and strtoumax work
57372         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
57373         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
57375         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
57376         This supports apps that need pointers to strtoimax and strtoumax,
57377         and ports to HP-UX 11.00 64.bit, which has macros that expand to
57378         nonexistent functions.  See
57379         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
57380         et seq.
57381         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
57382         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
57383         a macro.
57384         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57386 2011-04-25  Simon Josefsson  <simon@josefsson.org>
57388         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
57390 2011-04-25  Bruno Haible  <bruno@clisp.org>
57392         strtol, strtoul: Mark modules as obsolete.
57393         * modules/strtol (Status, Notice): New sections.
57394         * modules/strtoul (Status, Notice): New sections.
57396 2011-04-25  Bruno Haible  <bruno@clisp.org>
57398         strtod: Remove check for strtod, unless supporting old platforms.
57399         * modules/strtod-obsolete: New file.
57400         * m4/strtod-obsolete.m4: New file.
57401         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
57402         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
57403         * modules/strtod (Depends-on): Add strtod-obsolete.
57404         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
57406 2011-04-25  Bruno Haible  <bruno@clisp.org>
57408         strcase: Make module obsolete.
57409         * modules/strcase (Status, Notice): New sections.
57411 2011-04-25  Bruno Haible  <bruno@clisp.org>
57413         dup2: Remove check for dup2, unless supporting old obsolete platforms.
57414         * modules/dup2-obsolete: New file.
57415         * m4/dup2-obsolete.m4: New file.
57416         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
57417         gl_FUNC_DUP2_OBSOLETE is not also defined.
57418         * modules/dup2 (Depends-on): Add dup2-obsolete.
57419         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57421 2011-04-25  Bruno Haible  <bruno@clisp.org>
57423         strnlen: Avoid memchr related link error on old obsolete platforms.
57424         * modules/memchr-obsolete: New file.
57425         * m4/memchr-obsolete.m4: New file.
57426         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57427         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57428         * modules/memchr (Depends-on): Add memchr-obsolete.
57429         * modules/strnlen (Depends-on): Likewise.
57430         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57432 2011-04-25  Jim Meyering  <meyering@redhat.com>
57434         maint.mk: makefile_at_at_check extend and clean up
57435         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57436         in addition to */Makefile.am.
57437         Exempt legitimate uses of @VAR@ notation, e.g.,
57438         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57439         Remove obsolete coreutils-specific comment.
57440         Prompted by discussion here:
57441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57443 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57445         strtoul: remove dependency on strtol
57446         This is so that 'configure' need not check for strtol merely because
57447         the application needs strtoul.
57448         * modules/strtoul (Files): Add lib/strtol.c.
57449         (Depends-on): Remove strtol.
57451         strtoull: remove dependency on strtoul
57452         This is like the strtoll change.
57453         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57454         (Depends-on): Remove strtoul.
57456         strtoll: remove dependency on strtol
57457         This is so that 'configure' need not check for strtol merely because
57458         the application needs strtoll.
57459         * modules/strtoll (Files): Add lib/strtol.c.
57460         (Depends-on): Remove strtol.
57462 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57464         inttypes: Move some configure check to module 'imaxdiv'.
57465         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57466         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57467         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57469 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57471         inttypes: Move some configure check to module 'imaxabs'.
57472         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57473         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57474         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57476 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57478         inttypes: Remove configure tests that are not needed since 2009-12-31.
57479         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57480         gl_cv_header_working_inttypes_h.
57482 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57484         * modules/strnlen (Depends-on): Remove memchr.
57485         The strnlen implementation doesn't need the memchr module's fixes; see
57486         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57488         strtol: remove dependency on wchar
57489         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57490         * modules/strtol (Depends-on): Remove wchar.
57492 2011-04-21  Eric Blake  <eblake@redhat.com>
57494         passfd: fix test regression on Linux
57495         * modules/passfd-tests (configure.ac): Correct socketpair check.
57497         passfd: speed up configure and drop unused code
57498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57499         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57500         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57501         Instead of probing at configure for unix_scm_rights_bsd44_way,
57502         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57503         check to a struct member probe.
57504         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57505         (sendfd, recvfd): Update preprocessor checks.
57506         * modules/passfd (Files): Reflect rename, and drop unused file.
57507         (Depends-on): Drop unused dependency.
57509         passfd: allow compilation on mingw
57510         * modules/sys_socket (Depends-on): Add sys_uio.
57511         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57512         iovec and a minimal struct msghdr.
57513         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57514         * tests/test-sys_socket.c (main): Enhance test.
57515         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57516         guaranteed to provide what we need.
57517         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57518         * modules/passfd-tests (Depends-on): Add sys_wait.
57519         * tests/test-passfd.c (main): Skip test on mingw, for now.
57520         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57521         partial 'struct msghdr' implementation.
57523         sys_uio: new module
57524         * modules/sys_uio: New module.
57525         * modules/sys_uio-tests: Likewise.
57526         * lib/sys_uio.in.h: New file.
57527         * m4/sys_uio_h.m4: Likewise.
57528         * tests/test-sys_uio.c: Likewise.
57529         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57530         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57532 2011-04-20  Jim Meyering  <meyering@redhat.com>
57534         useless-if-before-free: avoid false-positive
57535         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57536         disjunct so that it too requires a terminating ";".  Without that,
57537         this script would identify as useless one statement from gcc that
57538         was not:
57539           if (aligned_ptr)
57540             free (((void **) aligned_ptr) [-1]);
57542 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57544         doc: update users.txt.
57545         * users.txt: Add barcode.
57547 2011-04-19  Bruno Haible  <bruno@clisp.org>
57549         ioctl: Remove link dependency on native Windows.
57550         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57551         (gl_close_fn, gl_ioctl_fn): New types.
57552         (struct fd_hook): Renamed from struct close_hook. Change type of
57553         private_close_fn field. Add private_ioctl_fn field.
57554         (close_hook_fn): Add parameter for primary close method.
57555         (execute_close_hooks, execute_all_close_hooks): Likewise.
57556         (ioctl_hook_fn): New type.
57557         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57558         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57559         argument.
57560         (unregister_fd_hook): Renamed from unregister_close_hook.
57561         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57562         Don't include <unistd.h>.
57563         (close): Remove undef.
57564         (anchor): Update.
57565         (execute_close_hooks): Add argument for primary close method.
57566         (execute_all_close_hooks): Likewise.
57567         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57568         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57569         argument. Allow each argument to be NULL.
57570         (unregister_fd_hook): Renamed from unregister_close_hook.
57571         * lib/close.c (rpl_close): Pass 'close' function pointer to
57572         execute_all_close_hooks.
57573         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57574         (primary_ioctl): New function.
57575         (ioctl): Don't call ioctlsocket here. Instead, call
57576         execute_all_ioctl_hooks.
57577         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57578         close method.
57579         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57580         (fd_sockets_hook): Renamed from close_sockets_hook.
57581         (gl_sockets_startup, gl_sockets_cleanup): Update.
57582         * modules/fd-hook: Renamed from modules/close-hook. Update.
57583         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57584         * modules/sockets (Depends-on): Likewise.
57585         * modules/ioctl (Depends-on): Add fd-hook.
57586         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57587         GNULIB_SOCKET.
57589 2011-04-19  Bruno Haible  <bruno@clisp.org>
57591         Move the support of O_NONBLOCK in open() to the 'open' module.
57592         * modules/nonblocking (Depends-on): Remove 'open'.
57593         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57594         gl_cv_have_open_O_NONBLOCK.
57595         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57596         O_NONBLOCK support.
57597         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57599 2011-04-17  Bruno Haible  <bruno@clisp.org>
57601         pipe2: Simplify code.
57602         * lib/pipe2.c (pipe2): Reduce code duplication.
57604 2011-04-17  Bruno Haible  <bruno@clisp.org>
57606         nonblocking: Add comment.
57607         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57609 2011-04-17  Bruno Haible  <bruno@clisp.org>
57611         nonblocking: Add tests for sockets.
57612         * tests/test-nonblocking-socket.sh: New file.
57613         * tests/test-nonblocking-socket-main.c: New file.
57614         * tests/test-nonblocking-socket-child.c: New file.
57615         * tests/test-nonblocking-socket.h: New file.
57616         * tests/socket-server.h: New file.
57617         * tests/socket-client.h: New file.
57618         * modules/nonblocking-socket-tests: New file.
57619         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57621 2011-04-17  Bruno Haible  <bruno@clisp.org>
57623         nonblocking: Add tests for pipes.
57624         * tests/test-nonblocking-pipe.sh: New file.
57625         * tests/test-nonblocking-pipe-main.c: New file.
57626         * tests/test-nonblocking-pipe-child.c: New file.
57627         * tests/test-nonblocking-pipe.h: New file.
57628         * tests/test-nonblocking-writer.h: New file.
57629         * tests/test-nonblocking-reader.h: New file.
57630         * tests/test-nonblocking-misc.h: New file.
57631         * modules/nonblocking-pipe-tests: New file.
57632         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57634 2011-04-16  Bruno Haible  <bruno@clisp.org>
57636         gettext: Clarify the needed programmer actions.
57637         * modules/gettext (Notice): New field.
57638         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57640 2011-04-16  Bruno Haible  <bruno@clisp.org>
57642         strchrnul: Tweak last commit.
57643         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57644         bug.
57645         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57646         as in _GL_FUNCDECL_SYS.
57647         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57648         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57650 2011-04-15  Eric Blake  <eblake@redhat.com>
57652         strchrnul: work around cygwin bug
57653         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57654         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57656         * modules/string (Makefile.am): Substitute it.
57657         * lib/string.in.h (strchrnul): Use it.
57659 2011-04-15  Bruno Haible  <bruno@clisp.org>
57661         Don't require lib/stdio-write.c when only module 'stdio' is used.
57662         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57663         invocation.
57664         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57666 2011-04-14  Bruno Haible  <bruno@clisp.org>
57668         Support non-blocking pipe I/O in read() on native Windows.
57669         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57670         (read): New declaration.
57671         * lib/read.c: New file.
57672         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57673         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57674         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57675         vscanf): New declarations.
57676         * lib/stdio-read.c: New file.
57677         * m4/read.m4: New file.
57678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57679         REPLACE_READ.
57680         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57681         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57682         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57683         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57684         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57685         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57686         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57687         * modules/read: New file.
57688         * modules/nonblocking (Files): Add lib/stdio-read.c.
57689         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57690         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57691         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57692         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57693         * modules/pread (Depends-on): Add read.
57694         * modules/safe-read (Depends-on): Likewise.
57695         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57696         gets, scanf, vfscanf, vscanf): Verify signatures.
57697         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57698         problem with non-blocking pipes.
57699         * doc/posix-functions/fgetc.texi: Likewise.
57700         * doc/posix-functions/fgets.texi: Likewise.
57701         * doc/posix-functions/fread.texi: Likewise.
57702         * doc/posix-functions/fscanf.texi: Likewise.
57703         * doc/posix-functions/getc.texi: Likewise.
57704         * doc/posix-functions/getchar.texi: Likewise.
57705         * doc/posix-functions/gets.texi: Likewise.
57706         * doc/posix-functions/scanf.texi: Likewise.
57707         * doc/posix-functions/vfscanf.texi: Likewise.
57708         * doc/posix-functions/vscanf.texi: Likewise.
57710 2011-04-14  Bruno Haible  <bruno@clisp.org>
57712         Support non-blocking pipe I/O in write() on native Windows.
57713         * lib/write.c (rpl_write): Split a write request that failed merely
57714         because the byte count was larger than the pipe buffer's size.
57715         * doc/posix-functions/write.texi: Mention the problem with large byte
57716         counts.
57718 2011-04-14  Bruno Haible  <bruno@clisp.org>
57720         wchar: Ensure that wchar_t gets defined on uClibc.
57721         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57722         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57724 2011-04-13  Bruno Haible  <bruno@clisp.org>
57726         safe-write, full-read: Avoid unnecessary compilation units.
57727         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57728         (Depends-on): Remove safe-read. Add ssize_t.
57729         * modules/full-read (Files): Add lib/full-write.c.
57730         (Depends-on): Add full-write.
57732 2011-04-13  Bruno Haible  <bruno@clisp.org>
57734         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57735         * modules/pwrite (Depends-on): Add 'write'.
57737 2011-04-13  Bruno Haible  <bruno@clisp.org>
57739         Support non-blocking pipe I/O in write() on native Windows.
57740         * lib/unistd.in.h (write): Enable replacement also if
57741         GNULIB_UNISTD_H_NONBLOCKING is 1.
57742         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57743         (rpl_write): When failing to write on a non-blocking pipe, change
57744         errno from ENOSPC to EAGAIN.
57745         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57746         putchar, puts, vfprintf, vprintf): Enable replacement also if
57747         GNULIB_STDIO_H_NONBLOCKING is 1.
57748         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57749         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57750         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57751         CALL_WITH_SIGPIPE_EMULATION.
57752         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57753         * m4/nonblocking.m4: New file.
57754         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57755         for non-blocking I/O support.
57756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57757         GNULIB_UNISTD_H_NONBLOCKING.
57758         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57759         required for non-blocking I/O support.
57760         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57761         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57762         lib/stdio-write.c, m4/asm-underscore.m4.
57763         (Depends-on): Add stdio, unistd.
57764         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57765         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57766         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57767         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57768         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57769         problem with non-blocking pipes.
57770         * doc/posix-functions/fputc.texi: Likewise.
57771         * doc/posix-functions/fputs.texi: Likewise.
57772         * doc/posix-functions/fwrite.texi: Likewise.
57773         * doc/posix-functions/printf.texi: Likewise.
57774         * doc/posix-functions/putc.texi: Likewise.
57775         * doc/posix-functions/putchar.texi: Likewise.
57776         * doc/posix-functions/puts.texi: Likewise.
57777         * doc/posix-functions/vfprintf.texi: Likewise.
57778         * doc/posix-functions/vprintf.texi: Likewise.
57779         * doc/posix-functions/write.texi: Likewise.
57781 2011-04-10  Jim Meyering  <meyering@redhat.com>
57783         maint.mk: prohibit doubled words
57784         Detect them also when they're separated by a newline.
57785         There are 3 ways to customize it:
57786           - disable the test on a per file basis, as usual with rules using
57787             $(VC_LIST_EXCEPT)
57788           - replace the default doubled-word-selecting regexp (affects all files)
57789           - ignore a particular file-vs-doubled-word match
57790         I nearly used that last one to ignore the "is is" match in
57791         coreutils' NEWS file, since the text was "ls -is is ..."
57792         To do that, I would have added this line to cfg.mk:
57793           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57794         but it would have ignored any "is is" match in NEWS.
57795         Low probability, but still...
57796         Instead, I changed the text, slightly:
57797           -  ls -is is now consistent with ls -lis in ignoring values returned
57798           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57799         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57800         (prohibit_doubled_word_): Define.
57801         (sc_prohibit_doubled_word): New rule.
57802         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57804 2011-04-10  Jim Meyering  <meyering@redhat.com>
57806         maint: fix doubled-word typo in comment
57807         * m4/gethostname.m4: s/is is/it is/
57808         * m4/getdomainname.m4: Likewise.
57810 2011-04-10  Jim Meyering  <meyering@redhat.com>
57812         maint: remove doubled word: s/it it/it/
57813         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57815 2011-04-10  Jim Meyering  <meyering@redhat.com>
57817         maint.mk: remove useless semicolon and backslash
57818         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57819         semicolon and backslash.
57821 2011-04-10  Bruno Haible  <bruno@clisp.org>
57823         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57824         * modules/stdint-tests (Depends-on): Add wchar.
57826 2011-04-10  Jim Meyering  <meyering@redhat.com>
57828         maint: remove doubled words in comments, e.g., s/a a/a/
57829         * lib/strptime.c (day_of_the_week): s/the the/the/
57830         * tests/test-chown.h (test_chown): s/a a/a/
57832         test-chown.h: correct a cast
57833         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57834         when the destination is a stat.st_gid.
57836 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57838         getaddrinfo: Fix test for sa_len member.
57839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57840         include <sys/types.h> before <sys/socket.h>.
57842 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57844         maint: change "can not" to "cannot"
57845         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57846         boundaries.
57848 2011-04-09  Jim Meyering  <meyering@redhat.com>
57850         maint: change "a a" to "a"
57851         * tests/test-lchown.h (test_lchown): s/a a/a/
57853         maint.mk: prohibit \<the the\>
57854         * top/maint.mk (sc_prohibit_the_the): New rule.
57856         maint: fix "the the" in comment
57857         * lib/count-one-bits.h: s/the the/the/
57859         maint: change "can not" to "cannot"
57860         But do not change the occurrences in maintain.texi or in
57861         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57862         * doc/gnulib-tool.texi: s/can not/cannot/
57863         * doc/posix-functions/accept.texi (accept): Likewise.
57864         * doc/posix-functions/socket.texi (socket): Likewise.
57865         * lib/mbrtowc.c: Likewise.
57867         maint.mk: prohibit use of "can not"
57868         * top/maint.mk (sc_prohibit_can_not): New rule.
57869         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57871 2011-04-09  Bruno Haible  <bruno@clisp.org>
57873         careadlinkat: Guard against misuse of careadlinkatcwd.
57874         * lib/careadlinkat.c: Include <stdlib.h>.
57875         (careadlinkatcwd): Check that the fd argument is as expected.
57877 2011-04-09  Bruno Haible  <bruno@clisp.org>
57879         careadlinkat: Use common coding style.
57880         * lib/careadlinkat.c: Move gnulib includes after system includes.
57882 2011-04-09  Bruno Haible  <bruno@clisp.org>
57884         careadlinkat: Clarify specification.
57885         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57886         (careadlinkatcwd): Add comment.
57887         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57889 2011-04-09  Bruno Haible  <bruno@clisp.org>
57891         areadlinkat: Avoid link error on many platforms.
57892         * modules/areadlinkat (Depends-on): Add areadlink.
57894 2011-04-09  Bruno Haible  <bruno@clisp.org>
57896         allocator, careadlinkat: Fix double-inclusion guard.
57897         * lib/allocator.h: Fix double-inclusion guard.
57898         * lib/careadlinkat.h: Likewise.
57900 2011-04-09  Bruno Haible  <bruno@clisp.org>
57902         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57903         * lib/relocwrapper.c: Update dependencies hierarchy.
57904         * build-aux/install-reloc: Update list of files to be compiled.
57905         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57906         lib/allocator.[hc].
57908 2011-04-08  Eric Blake  <eblake@redhat.com>
57910         strftime: silence gnulib-tool warning
57911         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57913 2011-04-08  Bruno Haible  <bruno@clisp.org>
57915         verify: Fix syntax error with GCC 4.6 in C++ mode.
57916         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57917         (HAVE_STATIC_ASSERT): New macro.
57918         (verify_true, verify): Use 'static_assert' if it is supported and
57919         '_Static_assert' is not supported.
57921 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57923         allocator: New module.
57924         * modules/allocator, lib/allocator.c: New files.
57925         * lib/allocator.h (stdlib_allocator): New decl.
57926         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57927         Remove.  Do not include <stdlib.h>.
57928         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57929         * modules/careadlinkat (Files): Remove lib/allocator.h.
57930         (Depends-on): Add allocator.
57932         stdlib: let modules use system malloc, realloc
57933         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57934         if !_GL_USE_STDLIB_ALLOC.
57935         (malloc, realloc): Limit this change to a smaller scope.
57937         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57938         (malloc, realloc): Don't #undef; no longer needed.
57939         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57940         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57941         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57942         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57943         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57944         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57945         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57946         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57948         careadlinkat: rename members to avoid problem
57949         * lib/allocator.h (struct allocator): Rename members from
57950         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57951         and realloc are #define'd.  Reported by Eric Blake in
57952         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57953         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57955 2011-04-08  Eric Blake  <eblake@redhat.com>
57957         nonblocking: reduce dependency
57958         * tests/test-nonblocking.c: Only test sockets when in use.
57959         * modules/nonblocking-tests (Depends-on): Drop socket.
57960         (Makefile.am): Link even if sockets are not present.
57961         * modules/pipe2-tests (Makefile.am): Likewise.
57962         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57964         pipe2: fix O_NONBLOCK support on mingw
57965         * modules/pipe2 (Depends-on): Add nonblocking.
57966         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57967         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57968         * tests/test-nonblocking.c (main): Likewise.
57969         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57971         fcntl-h: fix O_ACCMODE on cygwin
57972         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57973         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57975         pipe-filter: drop O_NONBLOCK workarounds
57976         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57977         * modules/pipe-filter-ii (Depends-on): Likewise.
57978         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57980         nonblocking: provide O_NONBLOCK for mingw
57981         * modules/nonblocking (Depends-on): Add open.
57982         (configure.ac): Set new witness macro.
57983         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57984         * modules/fcntl-h (Makefile.am): Substitute it.
57985         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57986         nonblocking module is in use.
57987         * lib/nonblocking.c: Adjust portability test.
57988         * lib/open.c (open): Don't let native open see gnulib flag.
57989         * tests/test-fcntl-h.c (main): Enhance test.
57990         * tests/test-open.h (test_open): Likewise.
57991         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57993         careadlinkat: fix compilation error on mingw
57994         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57995         within struct allocator.
57997 2011-04-06  Eric Blake  <eblake@redhat.com>
57999         binary-io: relicense under LGPLv2+
58000         * modules/binary-io (License): Relax to LGPLv2+.
58001         Requested for libvirt, and required by pipe2.
58003 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
58005         verify: use _Static_assert if available
58006         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
58007         (verify_true, verify): Use it if available.  This generates better
58008         diagnostics with GCC 4.6.0 and later.
58010 2011-04-05  Bruno Haible  <bruno@clisp.org>
58012         Remove leftover generated .h files after config.status changed.
58014         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
58015         GL_GENERATE_ALLOCA_H.
58016         * modules/alloca-opt (Makefile.am): Remove alloca.h if
58017         GL_GENERATE_ALLOCA_H evaluates to false.
58019         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
58020         GL_GENERATE_ARGZ_H.
58021         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
58022         evaluates to false.
58024         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
58025         GL_GENERATE_BYTESWAP_H.
58026         * modules/byteswap (Makefile.am): Remove byteswap.h if
58027         GL_GENERATE_BYTESWAP_H evaluates to false.
58029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
58030         GL_GENERATE_ERRNO_H.
58031         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
58032         evaluates to false.
58034         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
58035         GL_GENERATE_FLOAT_H.
58036         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
58037         evaluates to false.
58039         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
58040         GL_GENERATE_FNMATCH_H.
58041         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
58042         GL_GENERATE_FNMATCH_H evaluates to false.
58044         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
58045         GL_GENERATE_GLOB_H.
58046         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
58047         evaluates to false.
58049         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
58050         automake conditional GL_GENERATE_ICONV_H.
58051         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
58052         evaluates to false.
58054         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
58055         GL_GENERATE_NETINET_IN_H.
58056         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
58057         GL_GENERATE_NETINET_IN_H evaluates to false.
58059         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
58060         conditional GL_GENERATE_PTHREAD_H.
58061         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
58062         * modules/pthread (Makefile.am): Remove pthread.h if
58063         GL_GENERATE_PTHREAD_H evaluates to false.
58065         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
58066         GL_GENERATE_SCHED_H.
58067         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
58068         evaluates to false.
58070         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
58071         conditional GL_GENERATE_SELINUX_CONTEXT_H.
58072         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
58073         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
58075         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
58076         GL_GENERATE_STDARG_H.
58077         * modules/stdarg (Makefile.am): Remove stdarg.h if
58078         GL_GENERATE_STDARG_H evaluates to false.
58080         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
58081         GL_GENERATE_STDBOOL_H.
58082         * modules/stdbool (Makefile.am): Remove stdbool.h if
58083         GL_GENERATE_STDBOOL_H evaluates to false.
58085         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
58086         conditional GL_GENERATE_STDDEF_H.
58087         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
58088         * modules/stddef (Makefile.am): Remove stddef.h if
58089         GL_GENERATE_STDDEF_H evaluates to false.
58091         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
58092         GL_GENERATE_STDINT_H.
58093         * modules/stdint (Makefile.am): Remove stdint.h if
58094         GL_GENERATE_STDINT_H evaluates to false.
58096         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
58097         GL_GENERATE_SYSEXITS_H.
58098         * modules/sysexits (Makefile.am): Remove sysexits.h if
58099         GL_GENERATE_SYSEXITS_H evaluates to false.
58101         Reported by Karl Berry and Ralf Wildenhues.
58103 2011-04-05  Bruno Haible  <bruno@clisp.org>
58105         Ensure to rebuild generated .h files when config.status has changed.
58106         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
58107         config.status.
58108         * modules/ctype (Makefile.am): Likewise.
58109         * modules/dirent (Makefile.am): Likewise.
58110         * modules/errno (Makefile.am): Likewise.
58111         * modules/fcntl-h (Makefile.am): Likewise.
58112         * modules/float (Makefile.am): Likewise.
58113         * modules/getopt-posix (Makefile.am): Likewise.
58114         * modules/glob (Makefile.am): Likewise.
58115         * modules/iconv-h (Makefile.am): Likewise.
58116         * modules/inttypes (Makefile.am): Likewise.
58117         * modules/langinfo (Makefile.am): Likewise.
58118         * modules/locale (Makefile.am): Likewise.
58119         * modules/math (Makefile.am): Likewise.
58120         * modules/netdb (Makefile.am): Likewise.
58121         * modules/netinet_in (Makefile.am): Likewise.
58122         * modules/poll-h (Makefile.am): Likewise.
58123         * modules/pthread (Makefile.am): Likewise.
58124         * modules/pty (Makefile.am): Likewise.
58125         * modules/sched (Makefile.am): Likewise.
58126         * modules/search (Makefile.am): Likewise.
58127         * modules/selinux-h (Makefile.am): Likewise.
58128         * modules/signal (Makefile.am): Likewise.
58129         * modules/spawn (Makefile.am): Likewise.
58130         * modules/stdarg (Makefile.am): Likewise.
58131         * modules/stdbool (Makefile.am): Likewise.
58132         * modules/stddef (Makefile.am): Likewise.
58133         * modules/stdint (Makefile.am): Likewise.
58134         * modules/stdio (Makefile.am): Likewise.
58135         * modules/stdlib (Makefile.am): Likewise.
58136         * modules/string (Makefile.am): Likewise.
58137         * modules/strings (Makefile.am): Likewise.
58138         * modules/sys_file (Makefile.am): Likewise.
58139         * modules/sys_ioctl (Makefile.am): Likewise.
58140         * modules/sys_select (Makefile.am): Likewise.
58141         * modules/sys_socket (Makefile.am): Likewise.
58142         * modules/sys_stat (Makefile.am): Likewise.
58143         * modules/sys_time (Makefile.am): Likewise.
58144         * modules/sys_times (Makefile.am): Likewise.
58145         * modules/sys_utsname (Makefile.am): Likewise.
58146         * modules/sys_wait (Makefile.am): Likewise.
58147         * modules/sysexits (Makefile.am): Likewise.
58148         * modules/termios (Makefile.am): Likewise.
58149         * modules/time (Makefile.am): Likewise.
58150         * modules/unistd (Makefile.am): Likewise.
58151         * modules/wchar (Makefile.am): Likewise.
58152         * modules/wctype-h (Makefile.am): Likewise.
58153         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
58155 2011-04-05  Bruno Haible  <bruno@clisp.org>
58157         pipe2: Relicense under LGPLv2+.
58158         * modules/pipe2 (License): Change to LGPLv2+.
58159         Requested by Eric Blake, for libvirt.
58161 2011-04-05  Bruce Korb  <bkorb@gnu.org>
58163         bootstrap: compute gnulib_extra_files after updating build_aux
58164         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
58165         change build_aux or also supply gnulib_extra_files.  Handle correctly.
58167 2011-04-05  Eric Blake  <eblake@redhat.com>
58169         bootstrap: preserve git whitelist item sorting
58170         * build-aux/bootstrap (sort_patterns): New function.
58171         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
58173 2011-04-05  Simon Josefsson  <simon@josefsson.org>
58175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
58176         sc_space_tab check.
58178 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
58180         areadlink, areadlinkat: rewrite in terms of careadlinkat
58181         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
58182         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
58183         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
58184         (malloc, realloc): Remove #undefs.
58185         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
58186         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
58187         readlink, ssize_t, stdint, unistd.
58188         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
58189         areadlink, stdint.
58191         careadlinkat: new module
58192         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
58193         * modules/careadlinkat: New files, written by me with
58194         a review and feedback from Ben Pfaff in
58195         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
58197 2011-04-01  Bruno Haible  <bruno@clisp.org>
58199         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
58200         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
58201         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
58202         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
58203         Reported by Bruce Korb <bruce.korb@gmail.com>.
58205 2011-04-01  Bruno Haible  <bruno@clisp.org>
58207         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
58208         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
58209         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
58210         * modules/wcpcpy (Depends-on): Add extensions.
58211         * modules/wcpncpy (Depends-on): Likewise.
58212         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
58213         systems.
58214         * doc/posix-functions/wcpncpy.texi: Likewise.
58215         * doc/posix-functions/wcwidth.texi: Likewise.
58217 2011-03-31  Eric Blake  <eblake@redhat.com>
58219         nonblocking: fix mingw test failures
58220         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
58221         non-blocking flag on regular file.
58222         (get_nonblocking_flag): Set errno on invalid fd.
58223         * tests/test-nonblocking.c (main): Avoid test failure on
58224         directories if fchdir is not active.
58225         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
58227 2011-03-31  Bruno Haible  <bruno@clisp.org>
58229         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
58230         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
58231         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
58232         Reported by Simon Josefsson <simon@josefsson.org>.
58234 2011-03-31  Bruno Haible  <bruno@clisp.org>
58235         and Eric Blake  <eblake@redhat.com>
58237         nonblocking: new module
58238         * modules/nonblocking: New module.
58239         * modules/nonblocking-tests: Likewise.
58240         * lib/nonblocking.h: New file.
58241         * lib/nonblocking.c: Likewise.
58242         * tests/test-nonblocking.c: New test.
58243         * lib/ioctl.c (ioctl) [mingw]: Update comment.
58245 2011-03-30  Bruno Haible  <bruno@clisp.org>
58247         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
58248         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
58249         instead of 'printf' format for GCC >= 4.4.
58250         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
58251         (fprintf, printf, vfprintf, vprintf): Declare with
58252         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
58253         the system's vfprintf() function.
58254         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
58256 2011-03-30  Eric Blake  <eblake@redhat.com>
58258         passfd: fix scoping bug
58259         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
58260         before sendmsg/recvmsg.
58262         passfd: standardize coding conventions
58263         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
58264         can be learned at compile time.
58265         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
58266         ifdefs.
58267         (sendfd, recvfd): Follow gnulib code conventions.
58269         passfd: fix incorrect sendmsg arguments
58270         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
58271         incorrect msg_controllen value.
58272         * modules/passfd-tests (Depends-on): Check for alarm.
58273         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
58274         Reported by Bastien ROUCARIES.
58276 2011-03-30  Bruno Haible  <bruno@clisp.org>
58278         c-strcasestr: Relicense under LGPLv2+.
58279         * modules/c-strcasestr (License): Change to LGPLv2+.
58280         Requested by Eric Blake, for libvirt.
58282 2011-03-30  Simon Josefsson  <simon@josefsson.org>
58284         * users.txt: Add libidn2.  Fix libtasn1 link.
58286 2011-03-30  Jim Meyering  <meyering@redhat.com>
58288         tests: readlink* ("",... fails with EINVAL on newer kernels
58289         readlink and readlinkat have typically failed with ENOENT for
58290         the invalid, empty file name,  "".  However, with the advent
58291         of linux-2.6.39, they fail with EINVAL.
58292         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
58293         when operating on the empty file name.
58294         * tests/test-readlink.h (test_readlink): Likewise.
58296 2011-03-29  Bruno Haible  <bruno@clisp.org>
58298         Relicense some modules under LGPLv2+, for libidn2.
58299         * modules/array-mergesort (License): Change to LGPLv2+.
58300         * modules/c-strcaseeq (License): Likewise.
58301         * modules/striconveh (License): Likewise.
58302         * modules/striconveha (License): Likewise.
58303         * modules/uniconv/base (License): Likewise.
58304         * modules/uniconv/u8-conv-from-enc (License): Likewise.
58305         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
58306         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
58307         * modules/unictype/base (License): Likewise.
58308         * modules/unictype/bidiclass-of (License): Likewise.
58309         * modules/unictype/category-M (License): Likewise.
58310         * modules/unictype/category-none (License): Likewise.
58311         * modules/unictype/category-of (License): Likewise.
58312         * modules/unictype/category-test (License): Likewise.
58313         * modules/unictype/category-test-withtable (License): Likewise.
58314         * modules/unictype/combining-class (License): Likewise.
58315         * modules/unictype/joiningtype-of (License): Likewise.
58316         * modules/unictype/scripts (License): Likewise.
58317         * modules/uninorm/base (License): Likewise.
58318         * modules/uninorm/canonical-decomposition (License): Likewise.
58319         * modules/uninorm/composition (License): Likewise.
58320         * modules/uninorm/decompose-internal (License): Likewise.
58321         * modules/uninorm/decomposition-table (License): Likewise.
58322         * modules/uninorm/nfc (License): Likewise.
58323         * modules/uninorm/nfd (License): Likewise.
58324         * modules/uninorm/u32-normalize (License): Likewise.
58325         * modules/unistr/base (License): Likewise.
58326         * modules/unistr/u32-cpy (License): Likewise.
58327         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
58328         * modules/unistr/u32-to-u8 (License): Likewise.
58329         * modules/unistr/u32-uctomb (License): Likewise.
58330         * modules/unistr/u8-check (License): Likewise.
58331         * modules/unistr/u8-mblen (License): Likewise.
58332         * modules/unistr/u8-mbtouc (License): Likewise.
58333         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
58334         * modules/unistr/u8-mbtoucr (License): Likewise.
58335         * modules/unistr/u8-prev (License): Likewise.
58336         * modules/unistr/u8-strlen (License): Likewise.
58337         * modules/unistr/u8-to-u32 (License): Likewise.
58338         * modules/unistr/u8-uctomb (License): Likewise.
58339         * modules/unitypes (License): Likewise.
58340         Requested by Simon Josefsson.
58342 2011-03-29  Simon Josefsson  <simon@josefsson.org>
58344         lib-symbol-visibility: Add a notice.
58345         * modules/lib-symbol-visibility (Notice): New field.
58347 2011-03-29  Bruno Haible  <bruno@clisp.org>
58349         getaddrinfo: Doc fix.
58350         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
58351         section "fixed in Gnulib".
58353 2011-03-28  Simon Josefsson  <simon@josefsson.org>
58355         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
58356         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
58358 2011-03-26  Bruno Haible  <bruno@clisp.org>
58360         unictype/property-byname: Reduce the number of load-time relocations.
58361         * lib/unictype/pr_byname.c: Include <stdlib.h>.
58362         (UC_PROPERTY_INDEX_*): New enumeration values.
58363         (uc_property_byname): Convert an index from the lookup table to an
58364         uc_property_t.
58365         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
58366         values.
58368 2011-03-26  Bruno Haible  <bruno@clisp.org>
58370         unictype/property-byname: Allow omitted word separators and aliases.
58371         * lib/unictype/pr_byname.gperf: Add property names without word
58372         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
58373         for 'space'.
58375 2011-03-26  Bruno Haible  <bruno@clisp.org>
58377         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
58378         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
58379         also hyphens to space.
58380         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
58381         without spaces.
58382         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
58384 2011-03-26  Bruno Haible  <bruno@clisp.org>
58386         unictype/joiningtype-byname: Recognize long names as well.
58387         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
58388         a long name.
58389         * lib/unictype/joiningtype_byname.c: Include <string.h>,
58390         unictype/joiningtype_byname.h.
58391         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
58392         * lib/unictype/joiningtype_byname.gperf: New file.
58393         * modules/unictype/joiningtype-byname (Files): Add
58394         lib/unictype/joiningtype_byname.gperf.
58395         (Depends-on): Add gperf.
58396         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
58397         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
58398         long names.
58400         Tests for module 'unictype/joiningtype-longname'.
58401         * modules/unictype/joiningtype-longname-tests: New file.
58402         * tests/unictype/test-joiningtype_longname.c: New file.
58404         New module 'unictype/joiningtype-longname'.
58405         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
58406         * lib/unictype/joiningtype_longname.c: New file.
58407         * modules/unictype/joiningtype-longname: New file.
58408         * modules/unictype/joiningtype-all (Depends-on): Add
58409         unictype/joiningtype-longname.
58411 2011-03-26  Bruno Haible  <bruno@clisp.org>
58413         unictype/bidiclass-byname: Recognize long names as well.
58414         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
58415         name.
58416         * lib/unictype/bidi_byname.c: Include <string.h>,
58417         unictype/bidi_byname.h.
58418         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
58419         * lib/unictype/bidi_byname.gperf: New file.
58420         * modules/unictype/bidiclass-byname (Files): Add
58421         lib/unictype/bidi_byname.gperf.
58422         (Depends-on): Add gperf.
58423         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58424         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58425         long names.
58427         Tests for module 'unictype/bidiclass-longname'.
58428         * modules/unictype/bidiclass-longname-tests: New file.
58429         * tests/unictype/test-bidi_longname.c: New file.
58431         New module 'unictype/bidiclass-longname'.
58432         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58433         * lib/unictype/bidi_longname.c: New file.
58434         * modules/unictype/bidiclass-longname: New file.
58435         * modules/unictype/bidiclass-all (Depends-on): Add
58436         unictype/bidiclass-longname.
58438 2011-03-26  Bruno Haible  <bruno@clisp.org>
58440         unictype/bidi*: Rename modules.
58441         * modules/unictype/bidiclass-all: Renamed from
58442         modules/unictype/bidicategory-all.
58443         * modules/unictype/bidiclass-name: Renamed from
58444         modules/unictype/bidiclass-name.
58445         (Description): Update.
58446         * modules/unictype/bidiclass-name-tests: Renamed from
58447         modules/unictype/bidicategory-name-tests.
58448         * modules/unictype/bidiclass-byname: Renamed from
58449         modules/unictype/bidicategory-byname.
58450         (Description): Update.
58451         * modules/unictype/bidiclass-byname-tests: Renamed from
58452         modules/unictype/bidicategory-byname-tests.
58453         * modules/unictype/bidiclass-of: Renamed from
58454         modules/unictype/bidicategory-of.
58455         (Description): Update.
58456         * modules/unictype/bidiclass-of-tests: Renamed from
58457         modules/unictype/bidicategory-of-tests.
58458         * modules/unictype/bidiclass-test: Renamed from
58459         modules/unictype/bidicategory-test.
58460         (Description): Update.
58461         * modules/unictype/bidiclass-test-tests: Renamed from
58462         modules/unictype/bidicategory-test-tests.
58463         * modules/unictype/bidicategory-all: New file, a simple redirection.
58464         * modules/unictype/bidicategory-name: Likewise.
58465         * modules/unictype/bidicategory-byname: Likewise.
58466         * modules/unictype/bidicategory-of: Likewise.
58467         * modules/unictype/bidicategory-test: Likewise.
58468         * modules/unictype/property-bidi-* (Dependencies): Update.
58469         * lib/unictype/bidi_*.c: Update comment.
58471 2011-03-26  Bruno Haible  <bruno@clisp.org>
58473         unictype/bidi*: Rename functions, part 2.
58474         * modules/unictype/bidicategory-name (configure.ac): Update required
58475         libunistring version.
58476         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58478 2011-03-25  Bruno Haible  <bruno@clisp.org>
58480         New module 'unictype/combining-class-all'.
58481         * modules/unictype/combining-class-all: New file.
58483         Tests for module 'unictype/combining-class-byname'.
58484         * modules/unictype/combining-class-byname-tests: New file.
58485         * tests/unictype/test-combiningclass_byname.c: New file.
58487         New module 'unictype/combining-class-byname'.
58488         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58489         * lib/unictype/combiningclass_byname.c: New file.
58490         * lib/unictype/combiningclass_byname.gperf: New file.
58491         * modules/unictype/combining-class-byname: New file.
58493         Tests for module 'unictype/combining-class-longname'.
58494         * modules/unictype/combining-class-longname-tests: New file.
58495         * tests/unictype/test-combiningclass_longname.c: New file.
58497         New module 'unictype/combining-class-longname'.
58498         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58499         * lib/unictype/combiningclass_longname.c: New file.
58500         * modules/unictype/combining-class-longname: New file.
58502         Tests for module 'unictype/combining-class-name'.
58503         * modules/unictype/combining-class-name-tests: New file.
58504         * tests/unictype/test-combiningclass_name.c: New file.
58506         New module 'unictype/combining-class-name'.
58507         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58508         * lib/unictype/combiningclass_name.c: New file.
58509         * modules/unictype/combining-class-name: New file.
58511 2011-03-25  Bruno Haible  <bruno@clisp.org>
58513         unictype/combining-class: Rename source files.
58514         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58515         of unictype/combining.h.
58516         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58517         Update.
58518         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58519         * modules/unictype/combining-class (Description): Fix.
58520         (Files, Makefile.am): Update.
58521         * tests/unictype/test-combiningclass.c: Renamed from
58522         tests/unictype/test-combining.c.
58523         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58525 2011-03-25  Bruno Haible  <bruno@clisp.org>
58527         unictype: Update list of canonical combining classes.
58528         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58530 2011-03-25  Bruno Haible  <bruno@clisp.org>
58532         unictype/category-byname: Recognize long names as well.
58533         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58534         a long name.
58535         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58536         unictype/categ_byname.h.
58537         (UC_CATEGORY_INDEX_*): New enumeration values.
58538         (uc_general_category_byname): Use uc_general_category_lookup and
58539         convert from index to value.
58540         * lib/unictype/categ_byname.gperf: New file.
58541         * modules/unictype/category-byname (Files): Add
58542         lib/unictype/categ_byname.gperf.
58543         (Depends-on): Add gperf.
58544         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58545         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58546         long names.
58548         Tests for module 'unictype/category-longname'.
58549         * modules/unictype/category-longname-tests: New file.
58550         * tests/unictype/test-categ_longname.c: New file.
58552         New module 'unictype/category-longname'.
58553         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58554         * lib/unictype/categ_longname.c: New file.
58555         * modules/unictype/category-longname: New file.
58556         * modules/unictype/category-all (Depends-on): Add it.
58558 2011-03-25  Bruno Haible  <bruno@clisp.org>
58560         Tests for module 'unictype/category-LC'.
58561         * modules/unictype/category-LC-tests: New file.
58562         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58564         New module 'unictype/category-LC'.
58565         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58566         (UC_CATEGORY_LC): New declaration.
58567         (UC_CASED_LETTER): New macro.
58568         * lib/gen-uni-tables.c (is_category_LC): New function.
58569         (output_categories): Also handle category LC.
58570         (UC_CATEGORY_MASK_LC): New enumeration value.
58571         (general_category_byname): Also handle category LC.
58572         * lib/unictype/categ_LC.c: New file.
58573         * lib/unictype/categ_LC.h: New file, automatically generated.
58574         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58575         category LC.
58576         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58577         * modules/unictype/category-LC: New file.
58578         * modules/unictype/category-byname (Depends-on): Add
58579         unictype/category-LC.
58580         * modules/unictype/category-all (Depends-on): Likewise.
58582 2011-03-25  Eric Blake  <eblake@redhat.com>
58584         xmalloc: revert yesterday's regression
58585         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58586         realloc's underlying behavior (allowing allocation of zero-size
58587         objects, especially if malloc-gnu is also in use).
58589 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58591         maint.mk: add missing version to VC-tag
58592         * top/maint.mk: git tag was missing actual tag name; add it.
58594         valgrind: do leak checking, and exit with code 1 on error (not 0)
58595         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58596         to VALGRIND.
58598 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58600         posix-modules: say what it does.
58601         * posix-modules: Add a line to the --help output saying what it does.
58603 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58605         xmalloc: Do not leak if underlying realloc is C99 compatible.
58606         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58607         This avoids a leak on C99-based systems.  See
58608         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58610 2011-03-24  Eric Blake  <eblake@redhat.com>
58612         realloc: document portability problem
58613         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58614         passing 0 size to realloc.
58616 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58618         doc: update users.txt
58619         * users.txt: Add cvsps, tmpwatch
58621 2011-03-23  Matt Rice  <ratmice@gmail.com>
58623         doc: update users.txt
58624         * users.txt: Add gdb.
58626 2011-03-23  Jim Meyering  <meyering@redhat.com>
58628         doc: update users.txt
58629         Looking through matches up to the following URL (there are still
58630         several more pages), I found several projects that use gnulib:
58631         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58632         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58633         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58635 2011-03-22  Bruno Haible  <bruno@clisp.org>
58637         unictype/bidi*: Rename functions.
58638         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58639         uc_bidi_class, uc_is_bidi_class): New declarations.
58640         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58641         uc_bidi_category_byname.
58642         (uc_bidi_category_byname): New function.
58643         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58644         u_bidi_category_name.
58645         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58646         (uc_bidi_category_name): New function.
58647         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58648         uc_bidi_category.
58649         (uc_bidi_category): New function.
58650         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58651         uc_is_bidi_category. Invoke uc_bidi_class.
58652         (uc_is_bidi_category): New function.
58653         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58654         instead of uc_bidi_category_byname.
58655         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58656         instead of uc_bidi_category_name.
58657         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58658         uc_bidi_category.
58659         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58660         instead of uc_is_bidi_category.
58662 2011-03-21  Bruno Haible  <bruno@clisp.org>
58664         New module 'unictype/joininggroup-all'.
58665         * modules/unictype/joininggroup-all: New file.
58667         Tests for module 'unictype/joininggroup-of'.
58668         * modules/unictype/joininggroup-of-tests: New file.
58669         * tests/unictype/test-joininggroup_of.c: New file.
58670         * tests/unictype/test-joininggroup_of.h: New file, automatically
58671         generated by gen-uni-tables.
58673         New module 'unictype/joininggroup-of'.
58674         * modules/unictype/joininggroup-of: New file.
58675         * lib/unictype/joininggroup_of.c: New file.
58676         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58677         gen-uni-tables.
58679         Tests for module 'unictype/joininggroup-byname'.
58680         * modules/unictype/joininggroup-byname-tests: New file.
58681         * tests/unictype/test-joininggroup_byname.c: New file.
58683         New module 'unictype/joininggroup-byname'.
58684         * modules/unictype/joininggroup-byname: New file.
58685         * lib/unictype/joininggroup_byname.c: New file.
58686         * lib/unictype/joininggroup_byname.gperf: New file.
58688         Tests for module 'unictype/joininggroup-name'.
58689         * modules/unictype/joininggroup-name-tests: New file.
58690         * tests/unictype/test-joininggroup_name.c: New file.
58692         New module 'unictype/joininggroup-name'.
58693         * modules/unictype/joininggroup-name: New file.
58694         * lib/unictype/joininggroup_name.c: New file.
58695         * lib/unictype/joininggroup_name.h: New file.
58697         New module 'unictype/joiningtype-all'.
58698         * modules/unictype/joiningtype-all: New file.
58700         Tests for module 'unictype/joiningtype-of'.
58701         * modules/unictype/joiningtype-of-tests: New file.
58702         * tests/unictype/test-joiningtype_of.c: New file.
58703         * tests/unictype/test-joiningtype_of.h: New file, automatically
58704         generated by gen-uni-tables.
58706         New module 'unictype/joiningtype-of'.
58707         * modules/unictype/joiningtype-of: New file.
58708         * lib/unictype/joiningtype_of.c: New file.
58709         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58710         gen-uni-tables.
58712         Tests for module 'unictype/joiningtype-byname'.
58713         * modules/unictype/joiningtype-byname-tests: New file.
58714         * tests/unictype/test-joiningtype_byname.c: New file.
58716         New module 'unictype/joiningtype-byname'.
58717         * modules/unictype/joiningtype-byname: New file.
58718         * lib/unictype/joiningtype_byname.c: New file.
58720         Tests for module 'unictype/joiningtype-name'.
58721         * modules/unictype/joiningtype-name-tests: New file.
58722         * tests/unictype/test-joiningtype_name.c: New file.
58724         New module 'unictype/joiningtype-name'.
58725         * modules/unictype/joiningtype-name: New file.
58726         * lib/unictype/joiningtype_name.c: New file.
58728         unictype: Add support for Arabic shaping properties.
58729         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58730         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58731         declarations.
58732         (UC_JOINING_GROUP_*): New enumeration values.
58733         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58734         declarations.
58735         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58736         (unicode_joining_type): New variable.
58737         (UC_JOINING_GROUP_*): New enumeration values.
58738         (unicode_joining_group): New variable.
58739         (fill_arabicshaping, joining_type_as_c_identifier,
58740         output_joining_type_test, output_joining_type,
58741         joining_group_as_c_identifier, output_joining_group_test,
58742         output_joining_group): New functions.
58743         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58744         fill_arabicshaping and output_joining_type_test, output_joining_type,
58745         output_joining_group_test, output_joining_group.
58746         Reported by Simon Josefsson.
58748 2011-03-21  Jim Meyering  <meyering@redhat.com>
58750         strftime: fix a bug in yesterday's change
58751         * lib/strftime.c (add): Accommodate width's initial value of -1.
58752         Otherwise, nstrftime would copy uninitialized data into
58753         the result buffer.
58755 2011-03-21  Jim Meyering  <meyering@redhat.com>
58757         tests: add strftime-tests module
58758         * tests/test-strftime.c: New file.
58759         * modules/strftime-tests: New module.
58761 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58763         strftime: don't assume a byte count fits in 'int'
58764         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58765         found this problem by static analysis, using gcc -Wstrict-overflow
58766         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58767         on an integer overflow having undefined behavior, but it turns out
58768         that the argument is a size, which might not fit in 'int' anyway,
58770 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58772         stdio: don't require ignore_value around fwrite
58774         This patch works around libc bug 11959
58775         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58776         Without this patch, applications must often write
58777         ignore_value (fwrite (...)) even though the ignore_value is
58778         not helpful here.  It's common to write many objects, using
58779         fwrite/printf/etc., and then use ferror to detect output error.
58781         I considered making this patch optional, but decided against it,
58782         because libc is obviously being inconsistent here: there is no
58783         reason libc should insist that user code must inspect fwrite
58784         return's value without also insisting that it inspect printf's,
58785         putchar's, etc.  If user code wants to have a strict style where
58786         all these functions' values are checked (so that ferror need not
58787         be checked), we could add support for that style in a new gnulib
58788         module, but in the meantime it's better to be consistent and to
58789         support common usage.
58791         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58792         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58793         that we are compiling in checking mode, and if not C++, and
58794         if not already wrapping fwrite for some other reason.
58795         (fwrite): #define to rpl_fwrite if the latter is defined.
58797 2011-03-20  Bruno Haible  <bruno@clisp.org>
58799         verror: Fix compilation error introduced on 2011-02-13.
58800         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58801         instead of __attribute__.
58802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58804 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58805             Bruno Haible  <bruno@clisp.org>
58807         socklen: do not depend on sys_socket
58808         While trying to modify Emacs to use gnulib's socklen module,
58809         I discovered a circular dependency: socklen depends on sys_socket
58810         and vice versa.  Emacs can use socklen, but it does not need
58811         sys_socket because it has its own substitute for sys/socket.h.
58812         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58813         gl_TYPE_SOCKLEN_T.
58814         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58815         gl_PREREQ_SYS_H_SOCKET.
58816         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58817         gl_PREREQ_SYS_H_SOCKET.
58818         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58819         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58820         * modules/socklen (Depends-on): Do not depend on sys_socket.
58821         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58823 2011-03-20  Jim Meyering  <meyering@redhat.com>
58825         maint.mk: sort file names *after* new transformation
58826         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58827         prefix would have led to an unwarranted failure in GNU parted.
58828         Sort after that transformation.
58830 2011-03-19  Jim Meyering  <meyering@redhat.com>
58832         maint.mk: fix po-file syntax-check rule
58833         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58834         Patch by Bruno Haible.
58836 2011-03-19  Bruno Haible  <bruno@clisp.org>
58838         socklen: Update comment.
58839         * m4/socklen.m4: Update comment about platforms.
58841 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58842             Bruno Haible  <bruno@clisp.org>
58844         inet_ntop, inet_pton: Simplify.
58845         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58846         documented to provide socklen_t and we already depend on sys_socket.
58847         * modules/inet_pton (Depends-on): Likewise.
58848         * lib/arpa_inet.in.h: Adjust comment.
58850 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58851             Bruno Haible  <bruno@clisp.org>
58853         netdb: Simplify.
58854         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58855         documented to provide socklen_t and we already depend on sys_socket.
58856         * lib/netdb.in.h: Adjust comment.
58858 2011-03-19  Bruno Haible  <bruno@clisp.org>
58860         sys_socket, netdb: Document problem with socklen_t.
58861         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58862         platforms.
58863         * doc/posix-headers/netdb.texi: Likewise.
58865 2011-03-18  Eric Blake  <eblake@redhat.com>
58867         maint.mk: let po check work in VPATH build
58868         * top/maint.mk (po_file): Allow cfg.mk override.
58869         (sc_po_check): Allow VPATH use.
58870         Reported by Jiri Denemark.
58872 2011-03-16  Jim Meyering  <meyering@redhat.com>
58874         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58875         Before, you would have had to create one .x-sc_ file per rule in order
58876         to exempt offending files.  Now, you may instead use a Make variable --
58877         usually defined in cfg.mk -- whose name identifies the affected rule.
58878         * top/maint.mk (_sc_excl): Define.
58879         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58880         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58882 2011-03-13  Bruno Haible  <bruno@clisp.org>
58884         ignore-value tests: Avoid warnings.
58885         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58886         empty for gcc < 3.4.
58888 2011-03-13  Bruno Haible  <bruno@clisp.org>
58890         passfd: Fix link error on Solaris.
58891         * modules/passfd (Description): Correct.
58892         (Depends-on): Add socketlib.
58893         (Link): New section.
58894         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58896 2011-03-13  Bruno Haible  <bruno@clisp.org>
58898         passfd: Fix link error on AIX 5.2.
58899         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58901 2011-03-13  Bruno Haible  <bruno@clisp.org>
58903         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58904         * lib/sys_socket.in.h: Include <stddef.h>.
58905         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58906         CMSG_FIRSTHDR. Remove unused variable.
58908 2011-03-13  Bruno Haible  <bruno@clisp.org>
58910         passfd: Fix compilation error on OpenBSD.
58911         * lib/passfd.c: Include <sys/uio.h>.
58913 2011-03-13  Bruno Haible  <bruno@clisp.org>
58915         passfd test: Fix warnings.
58916         * tests/test-passfd.c: Include <sys/wait.h>.
58917         (main): Fix typo.
58919 2011-03-13  Bruno Haible  <bruno@clisp.org>
58921         passfd module, part 4, tweaks.
58922         * tests/test-passfd.c: Reorder includes.
58923         (main): Fix perror and printf calls.
58925 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58927         passfd module, part 4.
58928         * modules/passfd-tests: New file.
58929         * tests/test-passfd.c: New file.
58931 2011-03-13  Jim Meyering  <meyering@redhat.com>
58933         Makefile: rely on GNU make; derive syntax-check rule names
58934         Rather than requiring that each sc_ rule be listed as a dependent
58935         of "check", use features of GNU make to derive the list.
58936         * Makefile (syntax-check-rules): Define.
58937         (check): Depend on the new variable, not the hard-coded list.
58939 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58940             Bruno Haible  <bruno@clisp.org>
58942         passfd module, part 3.
58943         * lib/passfd.h (recvfd): Add a flags argument.
58944         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58945         (recvfd): Add a flags argument.
58946         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58947         exists.
58948         * modules/passfd (Depends-on): Add cloexec.
58949         Suggested by Eric Blake.
58951 2011-03-13  Bruno Haible  <bruno@clisp.org>
58953         passfd module, part 2, tweaks.
58954         * modules/passfd (Files): Reorder.
58955         (Depends-on): Remove errno.
58956         (Include): Remove <sys/socket.h>, <sys/un.h>.
58957         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58958         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58959         specification header. Include <sys/socket.h> always. Don't include
58960         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58961         (sendfd): Clarify that it sets errno when it fails.
58962         (recvfd): Fix specification.
58964 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58966         passfd module, part 2.
58967         * modules/passfd: New file.
58968         * lib/passfd.h: New file.
58969         * lib/passfd.c: New file.
58971 2011-03-12  Bruno Haible  <bruno@clisp.org>
58973         wcswidth, mbswidth: Avoid integer overflow.
58974         * lib/wcswidth.c: Include <limits.h>.
58975         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58976         * lib/mbswidth.c: Include <limits.h>.
58977         (mbsnwidth): Avoid 'int' overflow.
58978         Reported by Jim Meyering.
58980 2011-03-12  Bruno Haible  <bruno@clisp.org>
58982         futimens, utimensat: Avoid endless recursion on Solaris 10.
58983         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58984         Solaris.
58985         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58986         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58988 2011-03-11  Jim Meyering  <meyering@redhat.com>
58990         maint.mk: relax a regexp to accommodate other formatting styles
58991         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58992         between "ngettext" and the following "(".
58994 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58996         maint.mk: suppress a false positive warning
58997         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58998         diagnostics are marked with ngettext.
59000 2011-03-10  Eric Blake  <eblake@redhat.com>
59002         wchar: add explicit dependencies, for Tru64
59003         * modules/mbmemcasecoll (Depends-on): Add wchar.
59004         * modules/mbtowc (Depends-on): Likewise.
59005         * modules/vasnprintf (Depends-on): Likewise.
59006         * modules/unistdio/u-printf-args (Depends-on): Likewise.
59007         * modules/wctomb (Depends-on): Likewise.
59008         Reported by Peter O'Gorman.
59010 2011-03-08  Bruno Haible  <bruno@clisp.org>
59012         passfd module, part 1, tweaks.
59013         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
59014         Improve indentation. Improve AC_MSG_CHECKING messages.
59015         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
59016         gl_SOCKET_FAMILIES.
59018 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59020         passfd module, part 1.
59021         * m4/afunix.m4: New file.
59022         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
59023         sockets.
59025 2011-03-08  Bruno Haible  <bruno@clisp.org>
59027         regex-quote: New API.
59028         * lib/regex-quote.h: Include <stdbool.h>.
59029         (struct regex_quote_spec): New type.
59030         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59031         New declarations.
59032         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59033         'const struct regex_quote_spec *' argument.
59034         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
59035         (pcre_special): New constant.
59036         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59037         New functions.
59038         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59039         'const struct regex_quote_spec *' argument.
59040         * modules/regex-quote (Depends-on): Add stdbool.
59041         * tests/test-regex-quote.c (check): Update for new API. Add test for
59042         anchored results.
59043         * NEWS: Mention the API change.
59044         Reported by Reuben Thomas and Eric Blake.
59046 2011-03-06  Bruno Haible  <bruno@clisp.org>
59048         regex-quote: Fix creation of POSIX extended regular expressions.
59049         * lib/regex-quote.c (ere_special): Add grouping and alternation
59050         operators.
59052 2011-03-05  Bruno Haible  <bruno@clisp.org>
59054         doc: Improve doc regarding autopoint vs. gnulib.
59055         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
59056         disable autopoint while running autoreconf.
59057         Suggested by Ralf Wildenhues.
59059 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59061         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
59062         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
59064 2011-03-03  Bruce Korb  <bkorb@gnu.org>
59066         parse-duration: remove xalloc.h dependency
59067         * lib/parse-duration.c (parse_period): handle NULL return from
59068         strdup instead of calling xstrdup().
59069         * modules/parse-duration: remove "xalloc" dependency
59071 2011-03-03  Matthew Booth  <mbooth@redhat.com>
59073         bootstrap: honor m4_base when running aclocal
59074         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
59076 2011-03-02  Jim Meyering  <meyering@redhat.com>
59078         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
59079         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
59080         on request from Matt Booth.
59082 2011-03-01  Eric Blake  <eblake@redhat.com>
59084         test-link: work on Hurd
59085         * tests/test-link.h (test_link): Hurd rejects linking directories
59086         with EISDIR instead of the POSIX-mandated EPERM.
59088 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
59090         stdio: simplify by moving files to printf-posix, sigpipe
59091         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
59092         since this symbol is needed only if printf is replaced.
59093         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
59094         Require gl_ASM_SYMBOL_PREFIX.
59095         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
59096         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
59097         (Depends-on): Add 'raise'.
59098         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
59099         * modules/stdio (Files): Remove lib/stdio-write.c,
59100         m4/asm-underscore.m4.
59101         (Depends-on): Remove 'raise'.
59103         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
59104         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
59105         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
59106         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
59108 2011-02-28  Bruno Haible  <bruno@clisp.org>
59110         localcharset: Assume ANSI C behaviour of free().
59111         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
59112         calling free().
59113         Suggested by Simon Josefsson <simon@josefsson.org>.
59115 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
59116             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
59117             Bruno Haible  <bruno@clisp.org>  (tiny change)
59119         On Cygwin, use /proc file system instead of win32 API.
59120         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
59121         Win32 file names.
59122         (DllMain): Simplify by removing Cygwin specific code.
59123         (find_shared_library_fullname): Use Linux specific implementation also
59124         for Cygwin.
59125         (get_shared_library_fullname): Update accordingly.
59126         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
59127         Win32 file names.
59128         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
59129         Cygwin specific code.
59131 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
59132             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
59134         Fix OpenMP flag detection for various Fortran compilers.
59135         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
59136         OpenMP-conditional compilation construct, to force compile
59137         failure with missing OpenMP flag.
59138         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
59140 2011-02-25  Eric Blake  <eblake@redhat.com>
59142         strstr: expand test coverage
59143         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
59144         compilation.
59145         * tests/test-memmem.c (main): Duplicate tests.
59146         * tests/test-strcasestr.c (main): Likewise.
59147         * tests/test-c-strcasestr.c (main): Likewise.
59149 2011-02-25  Jim Meyering  <meyering@redhat.com>
59151         maint.mk: detect missing-NL-at-EOF, too
59152         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
59153         it also detects when a file lacks a newline at EOF.
59154         (require_exactly_one_NL_at_EOF_): Renamed from
59155         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
59156         since people may well have .x-sc_... file names tied to the
59157         existing name.  Suggested by Eric Blake.
59159 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59161         dirname: move m4/dos.m4 functionality into lib/dosname.h
59163         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
59164         extracts symbols from it, puts them into config.h; but it's much
59165         easier to use the symbols directly.  filename.h already does this,
59166         but it disagrees with dos.m4 in some respects.  This patch
59167         introduces a different include file dosname.h that packages up
59168         dos.m4, and then later we can work on merging filename.h and
59169         dosname.h.  Applications that need only the easy-to-configure
59170         symbols should consider including dosname.h rather than dirname.h.
59171         * NEWS: Mention incompatible changes.
59172         * m4/dos.m4: Remove.
59173         * lib/dosname.h, modules/dosname: New files.
59174         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
59175         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
59176         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
59177         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
59178         Include dosname.h, not dirname.h.
59179         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
59180         Include dosname.h, for definitions of symbols like ISSLASH
59181         that used to be in config.h.
59182         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
59183         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59184         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59185         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59186         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
59187         * modules/rmdir (Files): Likewise.
59188         * modules/stat (Files): Likewise.
59189         * modules/unlink (Files): Likewise.
59190         * modules/dirname-lgpl (Depends-on): Add dosname.
59191         * modules/lstat (Depends-on): Likewise.
59192         * modules/openat (Depends-on): Likewise.
59193         * modules/rmdir (Depends-on): Likewise.
59194         * modules/savewd (Depends-on): Likewise.
59195         * modules/stat (Depends-on): Likewise.
59196         * modules/unlink (Depends-on): Likewise.
59197         * modules/openat (Depends-on): Remove dirname-lgpl.
59198         * modules/savewd (Depends-on): Likewise.
59199         * tests/test-dirname.c: Do not use removed symbols like
59200         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
59201         the remaining symbols, e.g., ISSLASH ('\\').
59203 2011-02-25  Eric Blake  <eblake@redhat.com>
59205         strstr: revert patches that introduced bug and pessimization
59206         * lib/str-two-way.h: Add another reference.
59207         (two_way_short_needle, two_way_long_needle): Revert changes from
59208         2011-02-24; they pessimize search speed.
59209         (critical_factorization): Partially revert changes from
59210         2010-06-22; they violate the requirement that the left half of the
59211         needle be smaller than the period of the needle.
59213 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59215         filenamecat: remove unnecessary dependency on dirname-lgpl
59216         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
59217         is no direct dependency, just an indirect one via filenamecat-lgpl.
59219         remove: remove unnecessary use of m4/dos.m4
59220         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
59221         * modules/remove (FILES): Remove m4/dos.m4.
59223         * lib/openat-proc.c: Don't include dirname.h; not needed.
59225         backupfile: remove unnecessary use of m4/dos.m4
59226         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
59227         of its symbols are used by the backupfile code.  backupfile.c does
59228         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
59229         for the rare case of programs that want all their backup file
59230         names to live within 8+3 limits, and dos.m4 doesn't address that.
59231         * modules/backupfile (Files): Remove m4/dos.m4.
59233 2011-02-24  Jim Meyering  <meyering@redhat.com>
59235         strstr: fix a bug whereby strstr would mistakenly return NULL
59236         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
59237         in period calculation.
59238         (two_way_long_needle): Likewise.
59239         The original problem was reported by Mike Stump in
59240         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
59241         Ralf Wildenhues provided the short needle and haystack.
59242         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
59243         Add a more involved test to trigger the bug in two_way_long_needle.
59245 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59247         gnulib-tool: remove use of bold display in help screen
59248         * gnulib-tool (func_usage): Do not use bold display anymore in the
59249         help screen.  That was just meant to be a temporary emphasis for a
59250         backward-incompatible change.
59252 2011-02-23  Bruno Haible  <bruno@clisp.org>
59254         Fix misindentation of preprocessor directives.
59255         * lib/argp-namefrob.h: Reindent preprocessor directives.
59256         * lib/getopt_int.h (struct _getopt_data): Likewise.
59257         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
59258         * lib/vasnprintf.c (decode_long_double): Likewise.
59259         * tests/test-argmatch.c: Insert blank lines, for clarity.
59260         * tests/test-exclude.c: Likewise.
59262 2011-02-22  Bruno Haible  <bruno@clisp.org>
59264         ioctl: Fix for MacOS X in 64-bit mode.
59265         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
59266         value.
59267         Suggested by Eric Blake.
59268         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
59270 2011-02-22  Jim Meyering  <meyering@redhat.com>
59272         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
59273         * Makefile (sc_cpp_indent_check): Don't limit the check to files
59274         in lib/.
59276 2011-02-22  Eric Blake  <eblake@redhat.com>
59278         maint: avoid any CDPATH issue
59279         * Makefile (sc_cpp_indent_check): Anchor cd argument.
59281         maint: adjust cpp indentation for my modules, as well
59282         * Makefile (sc_cpp_indent_check): Add my name.
59283         * lib/fbufmode.c: Filter through cppi.
59284         * lib/fpurge.c: Likewise.
59285         * lib/freadable.c: Likewise.
59286         * lib/freading.c: Likewise.
59287         * lib/fwritable.c: Likewise.
59288         * lib/fwriting.c: Likewise.
59289         * lib/sigaction.c: Likewise.
59291 2011-02-22  Jim Meyering  <meyering@redhat.com>
59293         maint: adjust cpp indentation to reflect nesting depth
59294         I.e., in a block of code that begins with an unnested "#if",
59295         put one space between the "#" in column 1 and following token.
59296         For example,
59297         -#include <sys/vfs.h>
59298         +# include <sys/vfs.h>
59299         Do this only in .c files that are part of a module I maintain.
59300         * lib/linkat.c: Filter through cppi.
59301         * lib/nanosleep.c: Likewise.
59302         * lib/openat.c: Likewise.
59303         * lib/openat-die.c: Likewise.
59304         * lib/dup3.c: Likewise.
59305         * lib/fchownat.c: Likewise.
59306         * lib/flock.c: Likewise.
59307         * lib/fsync.c: Likewise.
59308         * lib/fts.c: Likewise.
59309         * lib/getpass.c: Likewise.
59310         * lib/gettimeofday.c: Likewise.
59311         * lib/userspec.c: Likewise.
59312         * Makefile (sc_cpp_indent_check): New rule, to check this.
59314 2011-02-22  Bruno Haible  <bruno@clisp.org>
59316         New module 'wctomb'.
59317         * lib/stdlib.in.h (wctomb): New declaration.
59318         * lib/wctomb.c: New file.
59319         * lib/wctomb-impl.h: New file.
59320         * m4/wctomb.m4: New file.
59321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
59322         REPLACE_WCTOMB.
59323         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
59324         REPLACE_WCTOMB.
59325         * modules/wctomb: New file.
59326         * tests/test-stdlib-c++.cc: Test signature of wctomb.
59327         * doc/posix-functions/wctomb.texi: Mention the new module.
59328         * modules/wctob (Depends-on): Add wctomb.
59330 2011-02-22  Bruno Haible  <bruno@clisp.org>
59332         New module 'mbtowc'.
59333         * lib/stdlib.in.h (mbtowc): New declaration.
59334         * lib/mbtowc.c: New file.
59335         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
59336         * m4/mbtowc.m4: New file.
59337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
59338         REPLACE_MBTOWC.
59339         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
59340         REPLACE_MBTOWC.
59341         * modules/mbtowc: New file.
59342         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
59343         * doc/posix-functions/mbtowc.texi: Mention the new module.
59344         * modules/btowc (Depends-on): Add mbtowc.
59346 2011-02-22  Bruno Haible  <bruno@clisp.org>
59348         wcrtomb: Add more tests for native Windows platforms.
59349         * tests/test-wcrtomb-w32-1.sh: New file.
59350         * tests/test-wcrtomb-w32-2.sh: New file.
59351         * tests/test-wcrtomb-w32-3.sh: New file.
59352         * tests/test-wcrtomb-w32-4.sh: New file.
59353         * tests/test-wcrtomb-w32-5.sh: New file.
59354         * tests/test-wcrtomb-w32.c: New file.
59355         * modules/wcrtomb-tests (Files): Add them.
59356         (Makefile.am): Arrange to run these tests.
59357         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
59358         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
59360 2011-02-20  Bruno Haible  <bruno@clisp.org>
59362         wcrtomb: Enhance test.
59363         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
59365 2011-02-20  Bruno Haible  <bruno@clisp.org>
59367         mbrtowc: Tiny optimization.
59368         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
59370 2011-02-20  Jim Meyering  <meyering@redhat.com>
59372         test-exclude.c: remove unmatched #endif
59373         * tests/test-exclude.c: Remove stray #endif, left over from
59374         the change of a week ago.
59376 2011-02-19  Jim Meyering  <meyering@redhat.com>
59378         git-version-gen: skip "-dirty" check when appropriate
59379         * build-aux/git-version-gen: Don't run any git commands when the
59380         version string comes from .tarball-version.  Prior to this, we
59381         would run git update-index --refresh even from a just-unpacked
59382         tarball directory, and that could affect a .git/ directory in a
59383         parent of the build directory.  Reported by Mike Frysinger.
59385 2011-02-19  Bruno Haible  <bruno@clisp.org>
59387         unictype/property-byname: Reduce the size of the 'data' segment.
59388         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
59390 2011-02-19  Bruno Haible  <bruno@clisp.org>
59392         unictype/scripts: Reduce the size of the 'data' segment.
59393         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
59394         '%pic'.
59395         * lib/unictype/scripts_byname.gperf: Regenerated.
59397 2011-02-19  Bruno Haible  <bruno@clisp.org>
59399         stdint: Update documentation.
59400         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
59402 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
59404         stdint: omit redundant check for wchar.h
59405         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
59406         always tests whether wchar.h exists, so remove the now-redundant test.
59408 2011-02-18  Bruno Haible  <bruno@clisp.org>
59410         stdint: Cut dependency to module 'wchar'.
59411         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
59412         include the necessary prerequisites.
59413         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
59414         * modules/stdint (Depends-on): Remove wchar.
59415         (Makefile.am): Substitute HAVE_WCHAR_H.
59416         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
59418 2011-02-18  Eric Blake  <eblake@redhat.com>
59420         longlong: skip, rather than fail, on cross-compilation
59421         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59422         when cross-compiling; regression from 2011-02-16.
59424 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59426         * NEWS: Mention 2011-02-08 change to stdlib.
59428 2011-02-17  Bruno Haible  <bruno@clisp.org>
59430         getloadavg: Add comments about platforms.
59431         * m4/getloadavg.m4: Add comment.
59432         * lib/getloadavg.c: Likewise.
59434 2011-02-17  Bruno Haible  <bruno@clisp.org>
59436         getloadavg: Fix link error on Solaris 2.6.
59437         * modules/getloadavg (Link): New section.
59438         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59439         linking test-getloadavg.
59440         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59441         getloadavg.
59443 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59445         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59446         It was 'int', but this doesn't match the IRIX 6.5 manual.
59447         Suggested by Bruno Haible in
59448         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59450 2011-02-17  Bruno Haible  <bruno@clisp.org>
59452         havelib: Fix comments.
59453         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59454         change.
59456 2011-02-17  Bruno Haible  <bruno@clisp.org>
59458         havelib: Update config.rpath.
59459         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59461 2011-02-17  Bruno Haible  <bruno@clisp.org>
59463         getloadavg test: Add some plausibility checks.
59464         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59465         is improbable.
59467 2011-02-16  Eric Blake  <eblake@redhat.com>
59469         maintainer-makefile: make syntax-check a no-op from tarballs
59470         * top/maint.mk (no-vc-detected): New rule.
59471         (local-checks-available): Use it to avoid hanging if someone tries
59472         'make syntax-check' from a tarball.  Also append to any non-syntax
59473         checks already defined in cfg.mk.
59475 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59477         longlong: tune, particularly for common case of c99
59479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59480         or running anything if c99, or if unsigned long long int does not
59481         work.  In either case, we know the answer without further tests.
59482         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59483         it at most once, and use its results for both long long int and
59484         unsigned long long int.  This is more likely to be efficient in
59485         the common case where the program wants to check for both long
59486         long int and unsigned long long int.
59487         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59488         since the answer is already known.
59490 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59492         getloadavg: set errno
59493         * lib/getloadavg.c: Set errno when returning -1.  If no other
59494         error number looks appropriate, set it to ENOSYS if the getloadavg
59495         looks like it can't possibly ever work, ENOTSUP otherwise.
59496         Suggested by Bruno Haible in
59497         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59499         getloadavg: trim unused parts and speed up 'configure'
59500         * NEWS: Document this.
59501         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59502         always compiled if getloadavg is absent.
59503         Move test code to ...
59504         * tests/test-getloadavg.c: New file, containing previous
59505         contents of test from lib/getloadavg.c.  It also contains
59506         suggestions by Bruno Haible in
59507         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59508         * modules/getloadavg-tests: New file.
59509         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59510         Do tests in the same order as they're needed for getloadavg.c.
59511         Omit setgid-related tests that generate symbols KMEM_GROUP,
59512         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59513         Do only the tests that are needed to see whether the system has
59514         getloadavg, moving the other tests into ...
59515         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59516         NLIST_NAME_UNION; nobody should be using it.  Do not define
59517         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59518         relevant, as the user of this module shouldn't care how getloadavg
59519         is implemented.
59521         getloadavg: omit unused var
59522         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59524 2011-02-15  Jim Meyering  <meyering@redhat.com>
59526         doc: update users.txt
59527         * users.txt: Update iwhd's URL.
59529 2011-02-13  Bruno Haible  <bruno@clisp.org>
59531         Consistent macro naming for macros that use GCC __attribute__.
59532         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59533         _ATTRIBUTE_NONNULL_.
59534         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59535         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59536         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59537         ATTRIBUTE_DEPRECATED.
59538         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59539         ATTRIBUTE_NORETURN.
59540         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59541         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59542         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59543         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59544         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59545         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59546         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59547         ATTRIBUTE_SENTINEL.
59548         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59549         ATTRIBUTE_RETURN_CHECK.
59550         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59551         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59552         ATTRIBUTE_NORETURN.
59553         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59554         Reported by Paul Eggert.
59556 2011-02-13  Bruno Haible  <bruno@clisp.org>
59558         Don't interfere with a program's definition of __attribute__.
59559         * lib/argp.h (__attribute__): Remove definition.
59560         (_GL_ATTRIBUTE_FORMAT): New macro.
59561         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59562         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59563         (_GL_ATTRIBUTE_FORMAT): New macro.
59564         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59565         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59566         GCC 3 or newer.
59567         * lib/error.h (__attribute__): Remove definition.
59568         (_GL_ATTRIBUTE_FORMAT): New macro.
59569         (error, error_at_line): Use it.
59570         * lib/hash.h (__attribute__): Remove definition.
59571         (ATTRIBUTE_WUR): Update definition. Define always.
59572         * lib/openat.h (__attribute__): Remove definition.
59573         (ATTRIBUTE_NORETURN): Update definition. Define always.
59574         * lib/sigpipe-die.h (__attribute__): Remove definition.
59575         (ATTRIBUTE_NORETURN): Update definition. Define always.
59576         * lib/vasnprintf.h (__attribute__): Remove definition.
59577         (_GL_ATTRIBUTE_FORMAT): New macro.
59578         (asnprintf, vasnprintf): Use it.
59579         * lib/xalloc.h (__attribute__): Remove definition.
59580         (ATTRIBUTE_NORETURN): Update definition. Define always.
59581         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59582         * lib/xmemdup0.h (__attribute__): Remove definition.
59583         (ATTRIBUTE_NORETURN): Update definition. Define always.
59584         * lib/xprintf.h (__attribute__): Remove definition.
59585         (_GL_ATTRIBUTE_FORMAT): New macro.
59586         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59587         * lib/xstrtol.h (__attribute__): Remove definition.
59588         (ATTRIBUTE_NORETURN): Update definition. Define always.
59589         * lib/xvasprintf.h (__attribute__): Remove definition.
59590         (_GL_ATTRIBUTE_FORMAT): New macro.
59591         (xasprintf, xvasprintf): Use it.
59592         * tests/test-argmatch.c (__attribute__): Remove definition.
59593         (ATTRIBUTE_NORETURN): Update definition. Define always.
59594         * tests/test-exclude.c (__attribute__): Remove definition.
59595         (ATTRIBUTE_NORETURN): Update definition. Define always.
59596         Reported by Paul Eggert.
59598 2011-02-13  Bruno Haible  <bruno@clisp.org>
59600         mbrtowc: Add more tests for native Windows platforms.
59601         * tests/test-mbrtowc-w32-1.sh: New file.
59602         * tests/test-mbrtowc-w32-2.sh: New file.
59603         * tests/test-mbrtowc-w32-3.sh: New file.
59604         * tests/test-mbrtowc-w32-4.sh: New file.
59605         * tests/test-mbrtowc-w32-5.sh: New file.
59606         * tests/test-mbrtowc-w32.c: New file.
59607         * modules/mbrtowc-tests (Files): Add them.
59608         (Makefile.am): Arrange to run these tests.
59609         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59610         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59612 2011-02-13  Bruno Haible  <bruno@clisp.org>
59614         mbrtowc: Work around native Windows bug.
59615         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59616         guess when no suitable locale for testing was found.
59617         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59619 2011-02-13  Bruno Haible  <bruno@clisp.org>
59621         mbsinit: Work around mingw bug.
59622         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59623         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59624         Windows.
59625         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59627 2011-02-13  Bruno Haible  <bruno@clisp.org>
59629         mbsinit: Don't crash for a NULL argument.
59630         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59631         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59633 2011-02-13  Bruno Haible  <bruno@clisp.org>
59635         Don't interfere with a program's definition of __attribute__.
59636         * lib/stdio.in.h (__attribute__): Remove definition.
59637         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59638         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59639         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59640         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59641         * lib/string.in.h (__attribute__): Remove definition.
59642         Reported by Paul Eggert.
59644 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59646         stdlib: don't get in the way of non-GCC __attribute__
59647         See thread starting at
59648         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59649         Revert previous stdlib change, installing the following instead:
59650         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59651         to get in the way of a non-GCC compiler that supports __attribute__.
59652         (_GL_ATTRIBUTE_RETURN): New macro.
59653         (_Exit): Use it instead of __attribute__.
59655 2011-02-12  Bruno Haible  <bruno@clisp.org>
59657         quotearg test: Avoid test failure on mingw.
59658         * tests/test-quotearg.sh: Convert the locale identifier from native
59659         Windows syntax to Unix syntax.
59661 2011-02-12  Bruno Haible  <bruno@clisp.org>
59663         setlocale: Prefer gnulib's override over libintl's override.
59664         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59665         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59666         GNULIB_defined_setlocale is set.
59668 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59670         stdlib: support non-GCC __attribute__
59672         Fix a serious and tricky problem encountered when attempting to
59673         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59674         5.5, but it crashed due to memory corruption on Solaris 10 with
59675         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59676         bits that are otherwise zero.  This tagging is optional inside
59677         Emacs but is preferred and is used when __attribute__ ((__aligned
59678         (8))) works, as it does with both recent-enough GCC and with Sun C
59679         5.11.  However, Sun C 5.11 is not GCC and does not #define
59680         __GNUC__ and __GNUC_MINOR__.
59682         When I added the getloadavg module to Emacs, it brought in
59683         stdlib.in.h, which contained this fragment:
59685            #ifndef __attribute__
59686            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59687            #  define __attribute__(Spec)   /* empty */
59688            # endif
59689            #endif
59691         When files that include <stdlib.h> were compiled with Sun C 5.11,
59692         the above code disabled __attribute__ ((__aligned (8))), which
59693         caused variables to not be properly aligned, which eventually led
59694         to the pointer corruption mentioned above.  (This was a bit hard
59695         to diagnose, unfortunately.)
59697         Several "#define __attribute__(X) /* empty */" code snippets need
59698         to be eradicated from Gnulib to work with non-GCC compilers that
59699         support __attribute__.  The Autoconf way to do this is to test for
59700         each kind of attribute that we want support for, and selectively
59701         enable that in source code.
59703         Fix this problem just for stdlib.h, by adding a test for the
59704         __noreturn__ attribute, and change stdlib.in.h to use that test
59705         when needed.  This technique can be easily generalized to the
59706         other *.in.h files and attributes, and a similar technique can be
59707         used for *.h and *.c files.  This patch is enough to solve the
59708         problem for Emacs + getloadavg, and I thought I'd publish it for
59709         feedback before undertaking further, similar fixes in other
59710         modules.
59712         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59713         because it's not needed for stdlib.h.  It merely substitutes the
59714         value directly into stdlib.h.  We may well need to #define it, or
59715         similar symbols, for other modules, but it's nice to also have an
59716         option to not #define it for applications like Emacs that do not
59717         need it.
59719         * lib/stdlib.in.h (__attribute__): Do not #define.
59720         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59721         be defined only if the _Exit module is also used.
59722         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59724         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59725         platforms.
59726         * modules/_Exit (Files): Add m4/attribute.m4.
59727         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59728         * m4/attribute.m4: New file.
59730 2011-02-12  Bruno Haible  <bruno@clisp.org>
59732         wcsrtombs: Work around bug on native Windows.
59733         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59734         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59735         instead of len.
59736         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59738 2011-02-12  Bruno Haible  <bruno@clisp.org>
59740         mbsrtowcs: Work around bug on native Windows.
59741         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59742         against mingw bug.
59743         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59745 2011-02-12  Bruno Haible  <bruno@clisp.org>
59747         Avoid setlocale bugs in tests.
59748         * modules/btowc (Dependencies): Add setlocale.
59749         * modules/c-strcase (Dependencies): Likewise.
59750         * modules/mbmemcasecmp (Dependencies): Likewise.
59751         * modules/mbmemcasecoll (Dependencies): Likewise.
59752         * modules/mbrtowc (Dependencies): Likewise.
59753         * modules/mbscasecmp (Dependencies): Likewise.
59754         * modules/mbscasestr (Dependencies): Likewise.
59755         * modules/mbschr (Dependencies): Likewise.
59756         * modules/mbscspn (Dependencies): Likewise.
59757         * modules/mbsinit (Dependencies): Likewise.
59758         * modules/mbsncasecmp (Dependencies): Likewise.
59759         * modules/mbsnrtowcs (Dependencies): Likewise.
59760         * modules/mbspbrk (Dependencies): Likewise.
59761         * modules/mbspcasecmp (Dependencies): Likewise.
59762         * modules/mbsrchr (Dependencies): Likewise.
59763         * modules/mbsrtowcs (Dependencies): Likewise.
59764         * modules/mbsspn (Dependencies): Likewise.
59765         * modules/mbsstr (Dependencies): Likewise.
59766         * modules/nl_langinfo (Dependencies): Likewise.
59767         * modules/quotearg (Dependencies): Likewise.
59768         * modules/unicase/locale-language (Dependencies): Likewise.
59769         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59770         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59771         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59772         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59773         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59774         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59775         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59776         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59777         * modules/vasnprintf-posix (Dependencies): Likewise.
59778         * modules/wcrtomb (Dependencies): Likewise.
59779         * modules/wcsnrtombs (Dependencies): Likewise.
59780         * modules/wcsrtombs (Dependencies): Likewise.
59782 2011-02-12  Bruno Haible  <bruno@clisp.org>
59784         setlocale: Workaround native Windows bug.
59785         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59786         succeeds but sets LC_CTYPE to "C", report a failure.
59787         * tests/test-setlocale2.sh: New file.
59788         * tests/test-setlocale2.c: New file.
59789         * modules/setlocale-tests (Files): Add the new files.
59790         (Makefile.am): Enable test-setlocale2.sh test.
59791         * doc/posix-functions/setlocale.texi: Mention workaround.
59793 2011-02-11  Bruno Haible  <bruno@clisp.org>
59795         Tests for module 'setlocale'.
59796         * modules/setlocale-tests: New file.
59797         * tests/test-setlocale1.sh: New file.
59798         * tests/test-setlocale1.c: New file.
59800         New module 'setlocale'.
59801         * lib/locale.in.h (setlocale): New declaration.
59802         * lib/setlocale.c: New file, based on
59803         gettext/gettext-runtime/intl/setlocale.c.
59804         * m4/setlocale.m4: New file.
59805         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59806         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59807         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59808         REPLACE_SETLOCALE.
59809         * modules/setlocale: New file.
59810         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59811         * doc/posix-functions/setlocale.texi: Mention the new module.
59813 2011-02-11  Bruno Haible  <bruno@clisp.org>
59815         Prepare for locale dependent tests on mingw.
59816         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59817         because it has the wrong locale encoding.
59818         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59819         French_France.1252 instead of "fr".
59820         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59821         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59822         because it has the wrong locale encoding.
59823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59824         native Windows, try Turkish_Turkey.65001.
59825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59826         Chinese_China.54936.
59828         Prepare for locale dependent tests on mingw.
59829         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59830         differently.
59831         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59832         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59833         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59834         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59836 2011-02-11  Eric Blake  <eblake@redhat.com>
59838         strptime: avoid compiler warnings
59839         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59840         compiler warnings about dead code.
59841         Reported by Daniel P. Berrange.
59843 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59845         doc: update users.txt
59846         * users.txt: Add rcs.
59848 2011-02-10  John W. Eaton  <jwe@gnu.org>
59850         doc: update users.txt
59851         * users.txt: Add octave.
59853 2011-02-10  Jim Meyering  <meyering@redhat.com>
59855         doc: update users.txt
59856         * users.txt: Add iwhd.
59858 2011-02-09  Bruno Haible  <bruno@clisp.org>
59860         gnulib-tool: Make copyright notice adjustment more robust.
59861         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59862         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59863         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59864         License".
59865         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59867 2011-02-06  Bruno Haible  <bruno@clisp.org>
59869         New module 'towctrans'.
59870         * modules/towctrans: New file.
59871         * lib/wctype.in.h (towctrans): New declaration.
59872         * lib/towctrans.c: New file.
59873         * lib/towctrans-impl.h: New file.
59874         * m4/towctrans.m4: New file.
59875         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59876         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59877         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59878         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59879         * doc/posix-functions/towctrans.texi: Mention the new module.
59881 2011-02-06  Bruno Haible  <bruno@clisp.org>
59883         New module 'wctrans'.
59884         * modules/wctrans: New file.
59885         * lib/wctype.in.h (wctrans): New declaration.
59886         * lib/wctrans.c: New file.
59887         * lib/wctrans-impl.h: New file.
59888         * m4/wctrans.m4: New file.
59889         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59890         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59891         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59892         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59893         * doc/posix-functions/wctrans.texi: Mention the new module.
59895 2011-02-06  Bruno Haible  <bruno@clisp.org>
59897         New module 'iswctype'.
59898         * modules/iswctype: New file.
59899         * lib/wctype.in.h (iswctype): New declaration.
59900         * lib/iswctype.c: New file.
59901         * lib/iswctype-impl.h: New file.
59902         * m4/iswctype.m4: New file.
59903         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59904         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59905         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59906         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59907         * doc/posix-functions/iswctype.texi: Mention the new module and the
59908         HP-UX 11.00 problem.
59910 2011-02-06  Bruno Haible  <bruno@clisp.org>
59912         New module 'wctype'.
59913         * modules/wctype: Change to represent the wctype() substitute.
59914         * lib/wctype.in.h (wctype): New declaration.
59915         * lib/wctype.c: New file.
59916         * lib/wctype-impl.h: New file.
59917         * m4/wctype.m4: New file.
59918         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59919         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59920         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59921         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59922         * doc/posix-functions/wctype.texi: Mention the new module and the
59923         HP-UX 11.00 problem.
59925 2011-02-06  Bruno Haible  <bruno@clisp.org>
59927         wctype-h: Ensure wctype_t and wctrans_t are defined.
59928         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59929         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59930         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59931         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59932         HAVE_WCTRANS_T.
59933         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59935 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59937         flock: fix license typo
59939         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59940         omitted.
59942 2011-02-08  Bruno Haible  <bruno@clisp.org>
59944         Split large sed scripts, for HP-UX sed.
59945         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59946         to avoid HP-UX limit of 99 commands, in the near future.
59947         * modules/stdlib (Makefile.am): Likewise.
59948         * modules/unistd (Makefile.am): Likewise.
59949         * modules/wchar (Makefile.am): Likewise.
59950         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59951         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59952         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59954 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59955             Bruno Haible  <bruno@clisp.org>
59957         stdlib: improve random_r modularization
59958         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59959         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59960         you also need the random_r module to get this material right.
59961         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59962         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59963         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59965 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59967         stdlib: don't depend on stdint
59968         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59969         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59970         be independent of whether stdint.h is needed.
59971         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59972         here, instead of ...
59973         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59974         struct random_data should be using the random_r module, not just
59975         the stdlib module (which wouldn't make sense: what package needs
59976         just struct random_data without also needing random_r?).
59977         * modules/stdlib (Depends-on): Remove stdint.
59979         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59980         See the thread rooted at
59981         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59982         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59983         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59984         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59985         __VMS)); previously it was always included (via fcntl--.h).
59986         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59987         hand; this is good enough for load averages.  Also, do not use
59988         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59989         flags directly if available and don't bother otherwise.  (Packages
59990         that need the extra reliability should use the modules that define
59991         these flags on older platforms that lack them.)
59992         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59993         fcntl-safer.
59995 2011-02-08  Jim Meyering  <meyering@redhat.com>
59997         di-set.h, ino-map.h: add multiple-inclusion guard
59998         Technically, the guard is required only for ino-map.h, due to its
59999         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
60000         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
60001         * lib/ino-map.h: Likewise.
60003 2011-02-06  Bruno Haible  <bruno@clisp.org>
60005         iswblank: Ensure declaration on glibc systems.
60006         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
60007         * modules/iswblank (Dependencies): Add 'extensions'.
60008         * doc/posix-functions/iswblank.texi: Document the glibc problem.
60010 2011-02-06  Bruno Haible  <bruno@clisp.org>
60012         New module 'iswblank'.
60013         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
60014         * modules/iswblank: New file.
60015         * modules/wctype-h (Files): Remove lib/iswblank.c.
60016         (Makefile.am): Substitute GNULIB_ISWBLANK.
60017         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
60018         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
60019         (gl_WCTYPE_H_DEFAULTS): New macro.
60020         (gl_WCTYPE_H): Require it. Remove iswblank related code.
60021         * modules/iswblank-tests: New file.
60022         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
60023         * tests/test-wctype-h.c (main): Remove iswblank tests.
60024         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
60025         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
60026         of 'wctype-h'.
60027         * NEWS: Mention the change.
60028         * modules/mbchar (Depends-on): Add iswblank.
60030 2011-02-08  Bruno Haible  <bruno@clisp.org>
60032         di-set tests: Refactor.
60033         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
60034         unnecessary includes.
60035         (ASSERT): Remove macro.
60036         (main): Make C90 compliant by avoiding variable declaration after
60037         statement.
60038         * modules/di-set-tests (Files): Add tests/macros.h.
60040 2011-02-08  Bruno Haible  <bruno@clisp.org>
60042         ino-map tests: Refactor.
60043         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
60044         unnecessary includes.
60045         (ASSERT): Remove macro.
60046         (main): Make C90 compliant by avoiding variable declaration after
60047         statement.
60048         * modules/ino-map-tests (Files): Add tests/macros.h.
60050 2011-02-08  Jim Meyering  <meyering@redhat.com>
60052         di-set: add "const" to a cast
60053         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
60054         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
60056 2011-02-06  Bruno Haible  <bruno@clisp.org>
60058         Rename module 'wctype' to 'wctype-h'.
60059         * modules/wctype-h: Renamed from modules/wctype.
60060         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
60061         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
60062         (Files, Depends-on, Makefile.am): Update.
60063         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
60064         (Files, Makefile.am): Update.
60065         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
60066         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
60067         * doc/posix-headers/wctype.texi: Update.
60068         * doc/posix-functions/iswalnum.texi: Update.
60069         * doc/posix-functions/iswalpha.texi: Update.
60070         * doc/posix-functions/iswblank.texi: Update.
60071         * doc/posix-functions/iswcntrl.texi: Update.
60072         * doc/posix-functions/iswdigit.texi: Update.
60073         * doc/posix-functions/iswgraph.texi: Update.
60074         * doc/posix-functions/iswlower.texi: Update.
60075         * doc/posix-functions/iswprint.texi: Update.
60076         * doc/posix-functions/iswpunct.texi: Update.
60077         * doc/posix-functions/iswspace.texi: Update.
60078         * doc/posix-functions/iswupper.texi: Update.
60079         * doc/posix-functions/iswxdigit.texi: Update.
60080         * doc/posix-functions/towlower.texi: Update.
60081         * doc/posix-functions/towupper.texi: Update.
60082         * NEWS: Mention the change.
60083         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
60084         * modules/mbchar (Dependencies): Likewise.
60085         * modules/mbswidth (Dependencies): Likewise.
60086         * modules/quotearg (Dependencies): Likewise.
60087         * modules/regex (Dependencies): Likewise.
60088         * modules/wcscasecmp (Dependencies): Likewise.
60089         * modules/wcsncasecmp (Dependencies): Likewise.
60090         * modules/wcwidth (Dependencies): Likewise.
60092 2011-02-06  Bruno Haible  <bruno@clisp.org>
60094         New module 'wcswidth'.
60095         * modules/wcswidth: New file.
60096         * lib/wchar.in.h (wcswidth): New declaration.
60097         * lib/wcswidth.c: New file.
60098         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
60099         * m4/wcswidth.m4: New file.
60100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
60101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
60102         REPLACE_WCSWIDTH.
60103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
60104         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
60105         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
60106         * doc/posix-functions/wcswidth.texi: Mention the new module.
60108 2011-02-06  Bruno Haible  <bruno@clisp.org>
60110         New module 'wcstok'.
60111         * modules/wcstok: New file.
60112         * lib/wchar.in.h (wcstok): New declaration.
60113         * lib/wcstok.c: New file.
60114         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
60115         * m4/wcstok.m4: New file.
60116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
60117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
60118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
60119         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
60120         * doc/posix-functions/wcstok.texi: Mention the new module.
60122 2011-02-06  Bruno Haible  <bruno@clisp.org>
60124         New module 'wcsstr'.
60125         * modules/wcsstr: New file.
60126         * lib/wchar.in.h (wcsstr): New declaration.
60127         * lib/wcsstr.c: New file.
60128         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
60129         * m4/wcsstr.m4: New file.
60130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
60131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
60132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
60133         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
60134         * doc/posix-functions/wcsstr.texi: Mention the new module.
60136 2011-02-06  Bruno Haible  <bruno@clisp.org>
60138         New module 'wcspbrk'.
60139         * modules/wcspbrk: New file.
60140         * lib/wchar.in.h (wcspbrk): New declaration.
60141         * lib/wcspbrk.c: New file.
60142         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
60143         * m4/wcspbrk.m4: New file.
60144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
60145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
60146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
60147         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
60148         * doc/posix-functions/wcspbrk.texi: Mention the new module.
60150 2011-02-06  Bruno Haible  <bruno@clisp.org>
60152         New module 'wcsspn'.
60153         * modules/wcsspn: New file.
60154         * lib/wchar.in.h (wcsspn): New declaration.
60155         * lib/wcsspn.c: New file.
60156         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
60157         * m4/wcsspn.m4: New file.
60158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
60159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
60160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
60161         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
60162         * doc/posix-functions/wcsspn.texi: Mention the new module.
60164 2011-02-06  Bruno Haible  <bruno@clisp.org>
60166         New module 'wcscspn'.
60167         * modules/wcscspn: New file.
60168         * lib/wchar.in.h (wcscspn): New declaration.
60169         * lib/wcscspn.c: New file.
60170         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
60171         * m4/wcscspn.m4: New file.
60172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
60173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
60174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
60175         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
60176         * doc/posix-functions/wcscspn.texi: Mention the new module.
60178 2011-02-06  Bruno Haible  <bruno@clisp.org>
60180         New module 'wcsrchr'.
60181         * modules/wcsrchr: New file.
60182         * lib/wchar.in.h (wcsrchr): New declaration.
60183         * lib/wcsrchr.c: New file.
60184         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
60185         * m4/wcsrchr.m4: New file.
60186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
60187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
60188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
60189         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
60190         * doc/posix-functions/wcsrchr.texi: Mention the new module.
60192 2011-02-06  Bruno Haible  <bruno@clisp.org>
60194         New module 'wcschr'.
60195         * modules/wcschr: New file.
60196         * lib/wchar.in.h (wcschr): New declaration.
60197         * lib/wcschr.c: New file.
60198         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
60199         * m4/wcschr.m4: New file.
60200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
60201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
60202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
60203         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
60204         * doc/posix-functions/wcschr.texi: Mention the new module.
60206 2011-02-06  Bruno Haible  <bruno@clisp.org>
60208         New module 'wcsdup'.
60209         * modules/wcsdup: New file.
60210         * lib/wchar.in.h (wcsdup): New declaration.
60211         * lib/wcsdup.c: New file.
60212         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
60213         * m4/wcsdup.m4: New file.
60214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
60215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
60216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
60217         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
60218         * doc/posix-functions/wcsdup.texi: Mention the new module.
60220 2011-02-06  Bruno Haible  <bruno@clisp.org>
60222         New module 'wcsxfrm'.
60223         * modules/wcsxfrm: New file.
60224         * lib/wchar.in.h (wcsxfrm): New declaration.
60225         * lib/wcsxfrm.c: New file.
60226         * lib/wcsxfrm-impl.h: New file.
60227         * m4/wcsxfrm.m4: New file.
60228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
60229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
60230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
60231         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
60232         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
60234 2011-02-06  Bruno Haible  <bruno@clisp.org>
60236         New module 'wcscoll'.
60237         * modules/wcscoll: New file.
60238         * lib/wchar.in.h (wcscoll): New declaration.
60239         * lib/wcscoll.c: New file.
60240         * lib/wcscoll-impl.h: New file.
60241         * m4/wcscoll.m4: New file.
60242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
60243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
60244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
60245         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
60246         * doc/posix-functions/wcscoll.texi: Mention the new module.
60248 2011-02-06  Bruno Haible  <bruno@clisp.org>
60250         New module 'wcsncasecmp'.
60251         * modules/wcsncasecmp: New file.
60252         * lib/wchar.in.h (wcsncasecmp): New declaration.
60253         * lib/wcsncasecmp.c: New file.
60254         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
60255         * m4/wcsncasecmp.m4: New file.
60256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
60257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
60258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
60259         HAVE_WCSNCASECMP.
60260         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
60261         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
60263 2011-02-06  Bruno Haible  <bruno@clisp.org>
60265         New module 'wcscasecmp'.
60266         * modules/wcscasecmp: New file.
60267         * lib/wchar.in.h (wcscasecmp): New declaration.
60268         * lib/wcscasecmp.c: New file.
60269         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
60270         * m4/wcscasecmp.m4: New file.
60271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
60272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
60273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
60274         HAVE_WCSCASECMP.
60275         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
60276         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
60278 2011-02-05  Bruno Haible  <bruno@clisp.org>
60280         New module 'wcsncmp'.
60281         * modules/wcsncmp: New file.
60282         * lib/wchar.in.h (wcsncmp): New declaration.
60283         * lib/wcsncmp.c: New file.
60284         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
60285         * m4/wcsncmp.m4: New file.
60286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
60287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
60288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
60289         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
60290         * doc/posix-functions/wcsncmp.texi: Mention the new module.
60292 2011-02-05  Bruno Haible  <bruno@clisp.org>
60294         New module 'wcscmp'.
60295         * modules/wcscmp: New file.
60296         * lib/wchar.in.h (wcscmp): New declaration.
60297         * lib/wcscmp.c: New file.
60298         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
60299         * m4/wcscmp.m4: New file.
60300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
60301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
60302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
60303         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
60304         * doc/posix-functions/wcscmp.texi: Mention the new module.
60306 2011-02-05  Bruno Haible  <bruno@clisp.org>
60308         New module 'wcsncat'.
60309         * modules/wcsncat: New file.
60310         * lib/wchar.in.h (wcsncat): New declaration.
60311         * lib/wcsncat.c: New file.
60312         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
60313         * m4/wcsncat.m4: New file.
60314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
60315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
60316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
60317         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
60318         * doc/posix-functions/wcsncat.texi: Mention the new module.
60320 2011-02-05  Bruno Haible  <bruno@clisp.org>
60322         New module 'wcscat'.
60323         * modules/wcscat: New file.
60324         * lib/wchar.in.h (wcscat): New declaration.
60325         * lib/wcscat.c: New file.
60326         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
60327         * m4/wcscat.m4: New file.
60328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
60329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
60330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
60331         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
60332         * doc/posix-functions/wcscat.texi: Mention the new module.
60334 2011-02-05  Bruno Haible  <bruno@clisp.org>
60336         New module 'wcpncpy'.
60337         * modules/wcpncpy: New file.
60338         * lib/wchar.in.h (wcpncpy): New declaration.
60339         * lib/wcpncpy.c: New file.
60340         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
60341         * m4/wcpncpy.m4: New file.
60342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
60343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
60344         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
60345         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
60346         * doc/posix-functions/wcpncpy.texi: Mention the new module.
60348 2011-02-05  Bruno Haible  <bruno@clisp.org>
60350         New module 'wcsncpy'.
60351         * modules/wcsncpy: New file.
60352         * lib/wchar.in.h (wcsncpy): New declaration.
60353         * lib/wcsncpy.c: New file.
60354         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
60355         * m4/wcsncpy.m4: New file.
60356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
60357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
60358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
60359         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
60360         * doc/posix-functions/wcsncpy.texi: Mention the new module.
60362 2011-02-05  Bruno Haible  <bruno@clisp.org>
60364         New module 'wcpcpy'.
60365         * modules/wcpcpy: New file.
60366         * lib/wchar.in.h (wcpcpy): New declaration.
60367         * lib/wcpcpy.c: New file.
60368         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
60369         * m4/wcpcpy.m4: New file.
60370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
60371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
60372         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
60373         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
60374         * doc/posix-functions/wcpcpy.texi: Mention the new module.
60376 2011-02-05  Bruno Haible  <bruno@clisp.org>
60378         New module 'wcscpy'.
60379         * modules/wcscpy: New file.
60380         * lib/wchar.in.h (wcscpy): New declaration.
60381         * lib/wcscpy.c: New file.
60382         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
60383         * m4/wcscpy.m4: New file.
60384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
60385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
60386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
60387         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
60388         * doc/posix-functions/wcscpy.texi: Mention the new module.
60390 2011-02-05  Bruno Haible  <bruno@clisp.org>
60392         New module 'wcsnlen'.
60393         * modules/wcsnlen: New file.
60394         * lib/wchar.in.h (wcsnlen): New declaration.
60395         * lib/wcsnlen.c: New file.
60396         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
60397         * m4/wcsnlen.m4: New file.
60398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
60399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
60400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
60401         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
60402         * doc/posix-functions/wcsnlen.texi: Mention the new module.
60404 2011-02-05  Bruno Haible  <bruno@clisp.org>
60406         New module 'wcslen'.
60407         * modules/wcslen: New file.
60408         * lib/wchar.in.h (wcslen): New declaration.
60409         * lib/wcslen.c: New file.
60410         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
60411         * m4/wcslen.m4: New file.
60412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
60413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
60414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
60415         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
60416         * doc/posix-functions/wcslen.texi: Mention the new module.
60418 2011-02-05  Bruno Haible  <bruno@clisp.org>
60420         New module 'wmemset'.
60421         * modules/wmemset: New file.
60422         * lib/wchar.in.h (wmemset): New declaration.
60423         * lib/wmemset.c: New file.
60424         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60425         * m4/wmemset.m4: New file.
60426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60428         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60429         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60430         * doc/posix-functions/wmemset.texi: Mention the new module.
60432 2011-02-05  Bruno Haible  <bruno@clisp.org>
60434         New module 'wmemmove'.
60435         * modules/wmemmove: New file.
60436         * lib/wchar.in.h (wmemmove): New declaration.
60437         * lib/wmemmove.c: New file.
60438         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60439         * m4/wmemmove.m4: New file.
60440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60442         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60443         HAVE_WMEMMOVE.
60444         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60445         * doc/posix-functions/wmemmove.texi: Mention the new module.
60447 2011-02-05  Bruno Haible  <bruno@clisp.org>
60449         New module 'wmemcpy'.
60450         * modules/wmemcpy: New file.
60451         * lib/wchar.in.h (wmemcpy): New declaration.
60452         * lib/wmemcpy.c: New file.
60453         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60454         * m4/wmemcpy.m4: New file.
60455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60457         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60458         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60459         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60461 2011-02-05  Bruno Haible  <bruno@clisp.org>
60463         New module 'wmemcmp'.
60464         * modules/wmemcmp: New file.
60465         * lib/wchar.in.h (wmemcmp): New declaration.
60466         * lib/wmemcmp.c: New file.
60467         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60468         * m4/wmemcmp.m4: New file.
60469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60471         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60472         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60473         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60475 2011-02-07  Jim Meyering  <meyering@redhat.com>
60477         di-set, ino-map: new modules, from coreutils
60478         * lib/di-set.c: New file.
60479         * lib/di-set.h: Likewise.
60480         * lib/ino-map.c: Likewise.
60481         * lib/ino-map.h: Likewise.
60482         * modules/di-set: Likewise.
60483         * modules/di-set-tests: Likewise.
60484         * modules/ino-map: Likewise.
60485         * modules/ino-map-tests: Likewise.
60486         * tests/test-di-set.c: Likewise.
60487         * tests/test-ino-map.c: Likewise.
60489 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60491         getloadavg: merge minor changes from Emacs
60493         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60494         (getloadavg): Use memset, not bzero.
60496         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60497         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60498         clash (bug#86).
60500 2010-11-14  Bruno Haible  <bruno@clisp.org>
60502         Allow multiple gnulib generated replacements to coexist.
60503         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60504         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60505         * lib/langinfo.in.h (nl_item): Likewise.
60506         * lib/math.in.h (_NaN, NAN): Likewise.
60507         * lib/netdb.in.h (struct addrinfo): Likewise.
60508         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60509         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60510         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60511         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60512         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60513         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60514         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60515         pthread_mutexattr_init, pthread_mutexattr_settype,
60516         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60517         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60518         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60519         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60520         * lib/sched.in.h (struct sched_param): Likewise.
60521         * lib/se-selinux.in.h (security_class_t, security_context_t,
60522         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60523         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60524         lsetfilecon, fsetfilecon, security_check_context,
60525         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60526         Likewise.
60527         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60528         Likewise.
60529         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60530         _gl_function_taking_int_returning_void_t, union sigval,
60531         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60532         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60533         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60534         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60535         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60536         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60537         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60538         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60539         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60540         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60541         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60542         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60543         socklen_t, rpl_fd_isset): Likewise.
60544         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60545         * lib/sys_time.in.h (struct timeval): Likewise.
60546         * lib/sys_times.in.h (struct tms): Likewise.
60547         * lib/sys_utsname.in.h (struct utsname):
60548         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60549         * lib/unistd.in.h (getpagesize): Likewise.
60550         * lib/wchar.in.h (mbstate_t): Likewise.
60551         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60552         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60553         towlower, towupper): Likewise.
60554         Reported by Sam Steingold <sds@gnu.org>.
60556 2011-02-05  Eric Blake  <eblake@redhat.com>
60558         unsetenv: work around Haiku issues
60559         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60560         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60562 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60564         libposix: avoid calling error() within libposix
60565         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60566         is defined.
60568 2011-02-05  Eric Blake  <eblake@redhat.com>
60570         strerror_r-posix: port to cygwin
60571         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60572         implementation.
60573         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60574         * tests/test-strerror_r.c (main): Fix test.
60575         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60576         issue.
60578 2011-02-05  Bruno Haible  <bruno@clisp.org>
60580         New module 'wmemchr'.
60581         * modules/wmemchr: New file.
60582         * lib/wchar.in.h (wmemchr): New declaration.
60583         * lib/wmemchr.c: New file.
60584         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60585         * m4/wmemchr.m4: New file.
60586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60588         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60589         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60590         * doc/posix-functions/wmemchr.texi: Mention the new module.
60592 2011-02-04  Eric Blake  <eblake@redhat.com>
60594         fdopendir: detect FreeBSD bug
60595         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60596         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60598 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60600         stdbool: do not define HAVE_STDBOOL_H
60601         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60602         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60603         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60604         imported from the latest Autoconf git.  It was motivated by Emacs,
60605         which uses gnulib but does not need HAVE_STDBOOL_H.
60607 2011-02-04  Bruno Haible  <bruno@clisp.org>
60609         wcsnrtombs: Prepare for new module wwcsnrtombs.
60610         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60611         * lib/wcsnrtombs.c: Include it.
60612         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60614         wcsrtombs: Prepare for new module wwcsrtombs.
60615         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60616         * lib/wcsrtombs.c: Include it.
60617         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60619         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60620         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60621         * lib/mbsnrtowcs.c: Include it.
60622         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60624         mbsrtowcs: Prepare for new module mbsrtowwcs.
60625         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60626         * lib/mbsrtowcs.c: Include it.
60627         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60629 2011-02-04  Bruno Haible  <bruno@clisp.org>
60631         vasnprintf: Reduce use of malloc for small format strings.
60632         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60633         (arguments): Add room for the first 7 arguments.
60634         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60635         (char_directives, u8_directives, u16_directives, u32_directives): Add
60636         room for the first 7 directives.
60637         * lib/printf-parse.c: Include <string.h>.
60638         (PRINTF_PARSE): Change memory handling code so that it uses the first
60639         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60640         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60641         Reported by Pádraig Brady <P@draigbrady.com>.
60643 2011-01-31  Eric Blake  <eblake@redhat.com>
60645         dup2: work around Haiku bug
60646         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60647         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60648         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60649         * tests/test-dup2.c (main): Enhance test.
60651 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60653         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60654         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60655         declared by eglibc 2.11.2.
60656         * lib/stdio.in.h: Likewise.
60658 2011-01-31  Eric Blake  <eblake@redhat.com>
60660         ignore-value: add missing test dependency
60661         * tests/test-ignore-value.c: Revert previous change; stdio.h
60662         provides off_t.
60663         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60665 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60667         mktime: clarify long_int width checking
60668         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60669         the top level, to make it clearer that the assumption about
60670         long_int width is being checked.  See
60671         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60673 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60675         ignore-value: Fix self-test.
60676         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60678 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60680         TYPE_MAXIMUM: avoid theoretically undefined behavior
60681         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60682         negative number, which the C Standard says has undefined behavior.
60683         In practice this is not a problem, but might as well do it by the book.
60684         Reported by Rich Felker and Eric Blake; see
60685         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60686         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60687         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60689         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60690         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60691         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60693         mktime: #undef mktime before #defining it
60694         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60696         mktime: systematically normalize tm_isdst comparisons
60697         * lib/mktime.c (isdst_differ): New function.
60698         (__mktime_internal): Use it systematically for all isdst comparisons.
60699         This completes the fix for libc BZ #6723, and removes the need for
60700         normalizing tm_isdst.  See
60701         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60702         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60704         mktime: fix some integer overflow issues and sidestep the rest
60706         This was prompted by a bug report by Benjamin Lindner for MinGW
60707         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60708         His bug is due to signed integer overflow (0 - INT_MIN), and I
60709         I scanned through mktime.c looking for other integer overflow
60710         problems, fixing all the bugs I found.
60712         Although the C Standard says the resulting code is still not safe
60713         in the presence of integer overflow, in practice it should be good
60714         enough for all real-world two's-complement implementations, except
60715         for debugging environments that deliberately trap on integer
60716         overflow (e.g., gcc -ftrapv).
60718         * lib/mktime.c (WRAPV): New macro.
60719         (SHR): Also check that long_int and time_t shift right in the
60720         usual way, before using the fast-but-unportable method.
60721         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60722         used.  The code already assumed two's complement, so there's
60723         no need to test for alternatives.  All uses removed.
60724         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60725         the C standard.  Problem reported by Rich Felker in
60726         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60727         (twos_complement_arithmetic): Also check long_int and time_t.
60728         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60729         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60730         (__mktime_internal): Avoid integer overflow with unary subtraction
60731         in two instances where -1 - X is an adequate replacement for -X,
60732         since the calculations are approximate.
60734 2011-01-29  Eric Blake  <eblake@redhat.com>
60736         mktime: avoid infinite loop
60737         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60738         type; behavior is still undefined but portable to all known targets.
60739         Reported by Rich Felker.
60741 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60743         rename, unlink, same-inode: Relicense.
60744         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60745         * modules/unlink (License): Likewise.
60746         * modules/same-inode (License): Likewise.
60748 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60750         mktime: avoid problems on NetBSD 5 / i386
60751         * lib/mktime.c (long_int): New type.  This works around a problem
60752         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60753         but time_t is 64 bits, and where I expect the existing code is
60754         wrong in some cases.
60755         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60756         (ydhms_diff): Bring back the compile-time check for wide-enough
60757         year and yday.
60759         mktime: fix misspelling in comment
60760         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60761         This merges all recent glibc changes of importance.
60763 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60765         move-if-change: cope with concurrent mv of identical file.
60766         * build-aux/move-if-change (CMPPROG): Accept environment
60767         variable as an override for `cmp'.
60768         (usage): Document CMPPROG.
60769         Adjust comparison to drop stdout.  Cope with failure of mv if
60770         the target file exists and is identical to the source, for
60771         parallel builds.
60772         Report from H.J. Lu against binutils in PR binutils/12283.
60774 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60776         * users.txt: Mention sharutils.
60778 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60780         * users.txt: Mention OATH Toolkit.
60782 2011-01-27  Bruno Haible  <bruno@clisp.org>
60784         Prepare for supporting FreeBSD 10.
60785         * build-aux/config.libpath: Remove handling of freebsd1*.
60787 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60789         Prepare for supporting FreeBSD 10.
60790         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60791         match FreeBSD 10.0.
60793 2011-01-27  Bruno Haible  <bruno@clisp.org>
60795         vma-iter, get-rusage-as: Add OpenBSD support.
60796         * modules/vma-iter (configure.ac): Test for mquery.
60797         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60798         * lib/vma-iter.c: Include <sys/mman.h>.
60799         (vma_iterate): Add an implementation based on mquery().
60800         * lib/resource-ext.h (get_rusage_as): Update comments.
60801         * lib/get-rusage-as.c: Likewise.
60802         * lib/get-rusage-data.c: Likewise.
60804 2011-01-26  Karl Berry  <karl@gnu.org>
60806         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60807         variables to make it easier to override the makeinfo program used.
60809 2011-01-26  Eric Blake  <eblake@redhat.com>
60811         fcntl: work around Haiku F_DUPFD bugs
60812         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60813         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60814         cloexec bit on duplication.
60815         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60817 2011-01-26  Bruno Haible  <bruno@clisp.org>
60819         Enable memory leak tests on AIX.
60820         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60821         * tests/test-fprintf-posix3.c (main): Likewise.
60823 2011-01-26  Bruno Haible  <bruno@clisp.org>
60825         Tests for module 'get-rusage-data'.
60826         * modules/get-rusage-data-tests: New file.
60827         * tests/test-get-rusage-data.c: New file.
60829         New module 'get-rusage-data'.
60830         * lib/resource-ext.h (get_rusage_data): New declaration.
60831         * lib/get-rusage-data.c: New file.
60832         * modules/get-rusage-data: New file.
60834 2011-01-25  Bruno Haible  <bruno@clisp.org>
60836         get-rusage-as: Allow for easier testing.
60837         * lib/resource-ext.h (get_rusage_as): Add comment.
60838         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60839         (main): New function for interactive testing.
60841 2011-01-25  Bruno Haible  <bruno@clisp.org>
60843         vma-iter: Treat Haiku like BeOS.
60844         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60845         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60847 2011-01-25  Eric Blake  <eblake@redhat.com>
60849         c-stack: fix regression on cygwin when libsigsegv is present
60850         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60852 2011-01-24  Bruno Haible  <bruno@clisp.org>
60854         vma-iter: Avoid empty intervals.
60855         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60856         on an empty interval.
60858 2011-01-24  Jim Meyering  <meyering@redhat.com>
60860         u64: remove unnecessary #include
60861         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60863 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60865         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60866         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60868 2011-01-23  Bruno Haible  <bruno@clisp.org>
60870         New module 'vma-iter'.
60871         * lib/vma-iter.h: New file.
60872         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60873         * modules/vma-iter: New file.
60874         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60875         for get_rusage_as_via_iterator.
60876         (vma_iterate_callback): New function.
60877         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60878         * modules/get-rusage-as (Depends-on): Add vma-iter.
60880 2011-01-23  Bruno Haible  <bruno@clisp.org>
60882         uninorm: Tweak includes.
60883         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60884         Reported by Jim Meyering.
60886 2011-01-23  Bruno Haible  <bruno@clisp.org>
60888         get-rusage-as: Improve on NetBSD.
60889         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60890         /proc, like on FreeBSD.
60892 2011-01-23  Jim Meyering  <meyering@redhat.com>
60894         xreadlink.h: remove unnecessary #include
60895         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60897         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60898         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60900 2011-01-23  Bruno Haible  <bruno@clisp.org>
60902         get-rusage-as: Fix bug.
60903         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60904         original limit when aborting the first loop.
60906 2011-01-23  Bruno Haible  <bruno@clisp.org>
60908         wctype: Ensure valid C syntax.
60909         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60910         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60912 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60914         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60916         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60917         as they are needed only for configure's test case.
60918         This removes two unnecessary symbols from config.h.
60920         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60921         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60922         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60923         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60924         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60925         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60926         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60927         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60928         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60929         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60930         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60932         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60933         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60934         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60935         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60936         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60937         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60939 2011-01-21  Eric Blake  <eblake@redhat.com>
60941         maintainer-makefile: work with older git for submodule check
60942         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60943         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60944         Reported by Matthias Bolte.
60946         bootstrap: minor portability fixes
60947         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60948         (usage): Omit leading capital and trailing . on help phrases, per
60949         GNU Coding Standards.
60950         (check_versions, top level): Prefix messages with script name.
60952 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60954         bootstrap: support --no-git option
60955         * build-aux/bootstrap: Add --no-git option, to be used when
60956         --gnulib-srcdir points to the exact desired checkout.
60958 2011-01-21  Eric Blake  <eblake@redhat.com>
60960         strerror_r-posix: work with glibc 2.13
60961         * lib/strerror_r.c (strerror_r): Fix return type.
60963 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60964             Bruno Haible  <bruno@clisp.org>
60966         uN_strstr: New unit tests.
60967         * modules/unistr/u8-strstr-tests: New file.
60968         * modules/unistr/u16-strstr-tests: New file.
60969         * modules/unistr/u32-strstr-tests: New file.
60970         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60971         * tests/unistr/test-u8-strstr.c: New file.
60972         * tests/unistr/test-u16-strstr.c: New file.
60973         * tests/unistr/test-u32-strstr.c: New file.
60975 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60976             Bruno Haible  <bruno@clisp.org>
60978         Make uN_strstr functions O(n) worst-case.
60979         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60980         16-bit and 32-bit unit cases, use the unibyte algorithm from
60981         lib/mbsstr.c.
60982         * lib/unistr/u8-strstr.c: Include <string.h>.
60983         (UNIT_IS_UINT8_T): New macro.
60984         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60985         (U_STRLEN, U_STRNLEN): New macros.
60986         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60987         (U_STRLEN, U_STRNLEN): New macros.
60988         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60989         (configure.ac): Update required libunistring version.
60990         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60991         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60992         malloca.
60993         (configure.ac): Update required libunistring version.
60994         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60995         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60996         malloca.
60997         (configure.ac): Update required libunistring version.
60999 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61000             Bruno Haible  <bruno@clisp.org>
61002         Prepare for faster uN_strstr functions.
61003         * lib/str-kmp.h: Support definable UNITs.
61004         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
61005         needle_len argument.
61006         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
61007         * lib/mbscasestr.c (mbscasestr): Likewise.
61009 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61011         malloca-tests: make faster by unsetting MALLOC_PERTURB_
61012         * tests/test-malloca.c (main): Unset the environment variable
61013         to greatly speed up the test.
61014         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
61015         * modules/malloca-tests: Depend on unsetenv.
61017 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61019         ignore-value: remove stdint dependency
61020         * lib/ignore-value.h: Remove <stdint.h>
61021         * modules/ignore-value: Remove stdint dependency.
61023 2011-01-21  Jim Meyering  <meyering@redhat.com>
61025         maint.mk: adjust variable name to be consistent with other gl_ vars
61026         * top/maint.mk (gl_public_submodule_commit): Rename the variable
61027         to be lower case.
61029 2011-01-20  Jim Meyering  <meyering@redhat.com>
61031         maint.mk: make "check" depend on public-submodule-commit by default
61032         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
61034 2011-01-20  Bruno Haible  <bruno@clisp.org>
61036         mbfile, mbiter: Complete change from 2008-12-21.
61037         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
61038         * m4/mbiter.m4 (gl_MBITER): Likewise.
61040 2011-01-20  Jim Meyering  <meyering@redhat.com>
61042         init.sh: insert space between each function name and "()"
61043         * tests/init.sh: Make it a little easier to see that a function's
61044         name is "warn_", and not "warn" when looking at the first part of
61045         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
61047 2011-01-20  Jim Meyering  <meyering@redhat.com>
61049         mountlist: clean up code formatting
61050         * lib/mountlist.c (read_file_system_list): Split a long line,
61051         correct bracing style, use NULL in place of "(struct statfs *)0",
61052         don't parenthesize return value, add spaces around "=" and after
61053         ";-in-for-stmt".
61055 2011-01-14  Markus Duft  <mduft@gentoo.org>
61057         mountlist: add support for Interix
61058         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
61059         Apply statvfs to all entries of /dev/fs.
61060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
61061         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
61063 2011-01-20  Jim Meyering  <meyering@redhat.com>
61065         maint.mk: improve the public-submodule-commit rule
61066         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
61067         to suppress printing of its commands... unless V=1.
61068         Add git submodule's --quiet option to suppress printing of e.g.,
61069         "Entering gnulib" output.
61070         "cd" into $(srcdir) before running git submodule.
61072 2011-01-20  Bruno Haible  <bruno@clisp.org>
61074         include_next: Fix bug introduced on 2011-01-18.
61075         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
61076         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
61077         ac_cv_header_... variable if the second argument is not 'check'.
61078         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
61079         gl_NEXT_HEADERS_INTERNAL.
61081 2011-01-20  Bruno Haible  <bruno@clisp.org>
61083         Allow the user to avoid the GNULIB_TEST_* macros.
61084         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
61085         Suggested by Paul Eggert.
61087 2011-01-14  Jim Meyering  <meyering@redhat.com>
61089         bootstrap: avoid failure when there is no .gitmodules file
61090         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
61091         has been assigned to, even when its value is the empty string.
61092         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
61093         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
61094         Reported by John W. Eaton <jwe@gnu.org>.
61096 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61098         assume <ctype.h>, ..., <time.h> exist
61099         For years gnulib has been assuming the existence of the headers
61100         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
61101         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
61102         them, since they don't appear to be needed.
61103         * README (Portability guidelines): Document this.
61104         * lib/flock.c: Assume <fcntl.h> exists.
61105         * lib/regex_internal.h: Assume <locale.h> exists.
61106         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
61107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
61108         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
61109         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
61110         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
61111         * m4/regex.m4 (gl_REGEX): Likewise.
61112         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
61113         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
61114         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
61115         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
61116         * tests/test-argp.c: Likewise.
61117         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
61119         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
61120         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
61121         AA_APPLE_UNIVERSAL_BUILD.  See
61122         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
61123         * NEWS: Document this.
61125 2011-01-19  Eric Blake  <eblake@redhat.com>
61127         c-stack: assume stack overflow if SA_SIGINFO unsupported
61128         * lib/c-stack.c (SIGACTION_WORKS): Rename...
61129         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
61130         sigaction will work.
61131         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
61132         behavior match Linux.
61133         * tests/test-c-stack.c (main): Prefer NULL for pointers.
61135         stdbool-tests: accommodate Haiku
61136         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
61138         binary-io: fix O_TEXT on Haiku
61139         * modules/binary-io (Depends-on): Add fcntl-h.
61140         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
61141         than blindly undefining O_TEXT.
61142         Reported by Scott McCreary.
61144 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61146         include_next: do not check for standard headers like stddef.h
61148         I found this problem when modifying Emacs to use gnulib.
61149         I noticed that it added HAVE_STDDEF_H to config.h, even though
61150         gnulib always assumes <stddef.h> exists as per README and this
61151         symbol is unnecessary.
61152         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
61153         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
61154         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
61155         faster for headers like stddef.h that are known to exist.
61156         (gl_CHECK_NEXT_HEADERS): Use it.
61157         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
61158         rather than gl_CHECK_NEXT_HEADERS.
61159         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
61160         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
61162 2011-01-18  Eric Blake  <eblake@redhat.com>
61164         ansi-c++-opt: skip C++ dependency style if C++ is unused
61165         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
61166         tests when we know C++ compilation is not desired.
61167         Reported by Scott McCreary.
61169 2011-01-18  Bruno Haible  <bruno@clisp.org>
61171         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
61172         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
61173         (main): Perform test also when getrlimit and setrlimit don't exist or
61174         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
61175         limiting the address space size using setrlimit, compare the address
61176         space size before and after the test.
61177         * tests/test-dprintf-posix2.c: Likewise.
61178         * tests/test-fprintf-posix3.sh: Update skip messages.
61179         * tests/test-dprintf-posix2.sh: Likewise.
61180         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
61181         * modules/dprintf-posix-tests (Depends-on): Likewise.
61182         Reported by Bruce Korb <bkorb@gnu.org> and
61183         Gary V. Vaughan <gary@gnu.org>.
61185 2011-01-18  Bruno Haible  <bruno@clisp.org>
61187         get-rusage-as: Improvement for Cygwin.
61188         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
61189         areas that are merely reserved.
61191 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61193         strftime: remove dependencies on multibyte modules
61195         strftime depended on mbrlen, mbsinit, and wchar, but these modules
61196         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
61197         only if __osf__ is defined, and I suspect OSF doesn't need these
61198         other modules.  If my guess is wrong, we'll need to come up with a
61199         variant of strftime that doesn't need the multibyte modules.
61201         I discovered this problem when attempting modify Emacs to use the
61202         strftime module.  With the previous gnulib, this caused Emacs to
61203         need 31 new files, ranging from lib/config.charset to
61204         m4/wint_t.m4.  This was overkill and I expect would be offputting
61205         to the Emacs maintainers.  After this change, only 6 new files are
61206         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
61207         stdbool.m4, and tm_gmtoff.m4.
61209         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
61210         Suggested by Bruno Haible in
61211         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
61212         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
61213         and do not check for wchar.h.
61214         * modules/strftime (Files): Remove m4/mbstate_t.m4.
61215         (Depends-on): Remove mbrlen, mbsinit, wchar.
61217 2011-01-18  Bruno Haible  <bruno@clisp.org>
61219         Tests for module 'get-rusage-as'.
61220         * modules/get-rusage-as-tests: New file.
61221         * tests/test-get-rusage-as.c: New file.
61223         New module 'get-rusage-as'.
61224         * modules/get-rusage-as: New file.
61225         * lib/resource-ext.h: New file.
61226         * lib/get-rusage-as.c: New file.
61228 2011-01-17  Eric Blake  <eblake@redhat.com>
61230         sigaction: relax license from LGPLv3+ to LGPLv2+
61231         * modules/sigaction (License): Relax to LGPLv2+.
61233 2011-01-14  Bruno Haible  <bruno@clisp.org>
61235         filemode: Make function declarations usable in C++ mode.
61236         * lib/filemode.h: Enclose function declarations in extern "C" block.
61237         Reported by John W. Eaton <jwe@gnu.org>.
61239 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
61241         save-cwd: no longer include "xgetcwd.h"
61242         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
61243         This avoids a compilation failure in projects that use save-cwd
61244         without also using the xgetcwd module.
61246 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61248         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
61249         This is so that a program like Emacs, which needs only dtoastr,
61250         does not have to bother with distributing and compiling ftoastr
61251         and ldtoastr.
61252         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
61253         * modules/dtoastr, modules/ldtoastr: New files.
61254         * modules/ftoastr: Now works just for 'float'.
61255         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
61256         (Makefile.am): Remove ftoastr.h (not needed and no effect),
61257         dtoastr.c, ldtoastr.c.
61259 2011-01-11  Jim Meyering  <meyering@redhat.com>
61261         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
61262         There is no need to work around the lack of the fchdir function,
61263         since gnulib can now provide a replacement when required.
61264         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
61265         * modules/save-cwd (Depends-on): Add fchdir.
61267 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61269         openat, save-cwd: avoid xmalloc
61271         This removes a direct (but undocumented) dependency of openat on
61272         xalloc, along with an indirect dependency via save-cwd.  It also
61273         removes a dependency of save-cwd on xgetcwd, and thereby
61274         indirectly on xalloc.  This change causes the openat substitute
61275         to fall back on save_cwd when memory is tight, and for save_cwd to
61276         fail instead of dying when memory is tight, but that's good enough.
61277         Problem and initial idea for fix reported by Bastien Roucaries in
61278         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
61280         * lib/openat-proc.c: Include stdlib.h (for malloc), not
61281         xalloc.h (for xmalloc).
61282         (openat_proc_name): Use malloc, not xmalloc.
61283         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
61284         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
61286         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
61287         This avoids heap allocation for file names whose lengths are in
61288         the range 512..1023, with the upper bound increasing to at most
61289         4031 depending on the platform's PATH_MAX.  (We do not want
61290         pathmax.h here as it might supply a non-constant PATH_MAX.)
61291         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
61292         Perhaps they should be moved to malloca.h?
61293         (OPENAT_BUFFER_SIZE): Use them.
61295 2011-01-10  Bruno Haible  <bruno@clisp.org>
61297         doc: Update users.txt.
61298         * users.txt: Add recutils.
61300 2011-01-09  Karl Berry  <karl@gnu.org>
61302         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
61304         * doc/configmake.texi: New file.
61305         * doc/gnulib.texi: Include it.
61306         * modules/configmake: Move documentation from here.
61308 2011-01-09  Bruno Haible  <bruno@clisp.org>
61310         Update to Unicode 6.0.0.
61311         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
61312         (get_lbp): Update for Unicode 6.0.0.
61313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
61314         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
61315         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
61316         U+11001, U+11038..U+11046. Remove U+06DE.
61317         (uc_width): Fix bounds of planes.
61318         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61319         lib/uniwidth/width.c.
61320         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
61321         trailing whitespace removed.
61322         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
61323         without comments, but with the original copyright notice.
61324         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
61325         * lib/unicase/ignorable.h: Likewise.
61326         * lib/unicase/tocasefold.h: Likewise.
61327         * lib/unicase/tolower.h: Likewise.
61328         * lib/unicase/totitle.h: Likewise.
61329         * lib/unicase/toupper.h: Likewise.
61330         * lib/unictype/bidi_of.h: Likewise.
61331         * lib/unictype/blocks.h: Likewise.
61332         * lib/unictype/categ_C.h: Likewise.
61333         * lib/unictype/categ_Cn.h: Likewise.
61334         * lib/unictype/categ_L.h: Likewise.
61335         * lib/unictype/categ_Ll.h: Likewise.
61336         * lib/unictype/categ_Lm.h: Likewise.
61337         * lib/unictype/categ_Lo.h: Likewise.
61338         * lib/unictype/categ_Lu.h: Likewise.
61339         * lib/unictype/categ_M.h: Likewise.
61340         * lib/unictype/categ_Mc.h: Likewise.
61341         * lib/unictype/categ_Me.h: Likewise.
61342         * lib/unictype/categ_Mn.h: Likewise.
61343         * lib/unictype/categ_N.h: Likewise.
61344         * lib/unictype/categ_Nd.h: Likewise.
61345         * lib/unictype/categ_No.h: Likewise.
61346         * lib/unictype/categ_P.h: Likewise.
61347         * lib/unictype/categ_Po.h: Likewise.
61348         * lib/unictype/categ_S.h: Likewise.
61349         * lib/unictype/categ_Sc.h: Likewise.
61350         * lib/unictype/categ_Sk.h: Likewise.
61351         * lib/unictype/categ_Sm.h: Likewise.
61352         * lib/unictype/categ_So.h: Likewise.
61353         * lib/unictype/categ_of.h: Likewise.
61354         * lib/unictype/combining.h: Likewise.
61355         * lib/unictype/ctype_alnum.h: Likewise.
61356         * lib/unictype/ctype_alpha.h: Likewise.
61357         * lib/unictype/ctype_graph.h: Likewise.
61358         * lib/unictype/ctype_lower.h: Likewise.
61359         * lib/unictype/ctype_print.h: Likewise.
61360         * lib/unictype/ctype_punct.h: Likewise.
61361         * lib/unictype/ctype_upper.h: Likewise.
61362         * lib/unictype/decdigit.h: Likewise.
61363         * lib/unictype/digit.h: Likewise.
61364         * lib/unictype/numeric.h: Likewise.
61365         * lib/unictype/pr_alphabetic.h: Likewise.
61366         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61367         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61368         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61369         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61370         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61371         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61372         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61373         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61374         * lib/unictype/pr_case_ignorable.h: Likewise.
61375         * lib/unictype/pr_cased.h: Likewise.
61376         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
61377         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
61378         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
61379         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
61380         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
61381         * lib/unictype/pr_combining.h: Likewise.
61382         * lib/unictype/pr_composite.h: Likewise.
61383         * lib/unictype/pr_currency_symbol.h: Likewise.
61384         * lib/unictype/pr_decimal_digit.h: Likewise.
61385         * lib/unictype/pr_deprecated.h: Likewise.
61386         * lib/unictype/pr_format_control.h: Likewise.
61387         * lib/unictype/pr_grapheme_base.h: Likewise.
61388         * lib/unictype/pr_grapheme_extend.h: Likewise.
61389         * lib/unictype/pr_grapheme_link.h: Likewise.
61390         * lib/unictype/pr_id_continue.h: Likewise.
61391         * lib/unictype/pr_id_start.h: Likewise.
61392         * lib/unictype/pr_ideographic.h: Likewise.
61393         * lib/unictype/pr_lowercase.h: Likewise.
61394         * lib/unictype/pr_math.h: Likewise.
61395         * lib/unictype/pr_numeric.h: Likewise.
61396         * lib/unictype/pr_other_alphabetic.h: Likewise.
61397         * lib/unictype/pr_other_id_continue.h: Likewise.
61398         * lib/unictype/pr_other_math.h: Likewise.
61399         * lib/unictype/pr_punctuation.h: Likewise.
61400         * lib/unictype/pr_sentence_terminal.h: Likewise.
61401         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61402         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61403         * lib/unictype/pr_unified_ideograph.h: Likewise.
61404         * lib/unictype/pr_uppercase.h: Likewise.
61405         * lib/unictype/pr_xid_continue.h: Likewise.
61406         * lib/unictype/pr_xid_start.h: Likewise.
61407         * lib/unictype/scripts.h: Likewise.
61408         * lib/unictype/scripts_byname.gperf: Likewise.
61409         * lib/unictype/sy_java_ident.h: Likewise.
61410         * lib/unigbrk/gbrkprop.h: Likewise.
61411         * lib/unilbrk/lbrkprop1.h: Likewise.
61412         * lib/unilbrk/lbrkprop2.h: Likewise.
61413         * lib/uninorm/decomposition-table2.h: Likewise.
61414         * lib/uniwbrk/wbrkprop.h: Likewise.
61415         * tests/unicase/test-cased.c: Likewise.
61416         * tests/unicase/test-ignorable.c: Likewise.
61417         * tests/unicase/test-uc_tolower.c: Likewise.
61418         * tests/unicase/test-uc_totitle.c: Likewise.
61419         * tests/unicase/test-uc_toupper.c: Likewise.
61420         * tests/unictype/test-categ_C.c: Likewise.
61421         * tests/unictype/test-categ_Cn.c: Likewise.
61422         * tests/unictype/test-categ_L.c: Likewise.
61423         * tests/unictype/test-categ_Ll.c: Likewise.
61424         * tests/unictype/test-categ_Lm.c: Likewise.
61425         * tests/unictype/test-categ_Lo.c: Likewise.
61426         * tests/unictype/test-categ_Lu.c: Likewise.
61427         * tests/unictype/test-categ_M.c: Likewise.
61428         * tests/unictype/test-categ_Mc.c: Likewise.
61429         * tests/unictype/test-categ_Me.c: Likewise.
61430         * tests/unictype/test-categ_Mn.c: Likewise.
61431         * tests/unictype/test-categ_N.c: Likewise.
61432         * tests/unictype/test-categ_Nd.c: Likewise.
61433         * tests/unictype/test-categ_No.c: Likewise.
61434         * tests/unictype/test-categ_P.c: Likewise.
61435         * tests/unictype/test-categ_Po.c: Likewise.
61436         * tests/unictype/test-categ_S.c: Likewise.
61437         * tests/unictype/test-categ_Sc.c: Likewise.
61438         * tests/unictype/test-categ_Sk.c: Likewise.
61439         * tests/unictype/test-categ_Sm.c: Likewise.
61440         * tests/unictype/test-categ_So.c: Likewise.
61441         * tests/unictype/test-ctype_alnum.c: Likewise.
61442         * tests/unictype/test-ctype_alpha.c: Likewise.
61443         * tests/unictype/test-ctype_graph.c: Likewise.
61444         * tests/unictype/test-ctype_lower.c: Likewise.
61445         * tests/unictype/test-ctype_print.c: Likewise.
61446         * tests/unictype/test-ctype_punct.c: Likewise.
61447         * tests/unictype/test-ctype_upper.c: Likewise.
61448         * tests/unictype/test-decdigit.h: Likewise.
61449         * tests/unictype/test-digit.h: Likewise.
61450         * tests/unictype/test-numeric.h: Likewise.
61451         * tests/unictype/test-pr_alphabetic.c: Likewise.
61452         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61453         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61454         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61455         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61456         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61457         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61458         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61459         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61460         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61461         * tests/unictype/test-pr_cased.c: Likewise.
61462         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61463         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61464         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61465         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61466         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61467         * tests/unictype/test-pr_combining.c: Likewise.
61468         * tests/unictype/test-pr_composite.c: Likewise.
61469         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61470         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61471         * tests/unictype/test-pr_deprecated.c: Likewise.
61472         * tests/unictype/test-pr_format_control.c: Likewise.
61473         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61474         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61475         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61476         * tests/unictype/test-pr_id_continue.c: Likewise.
61477         * tests/unictype/test-pr_id_start.c: Likewise.
61478         * tests/unictype/test-pr_ideographic.c: Likewise.
61479         * tests/unictype/test-pr_lowercase.c: Likewise.
61480         * tests/unictype/test-pr_math.c: Likewise.
61481         * tests/unictype/test-pr_numeric.c: Likewise.
61482         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61483         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61484         * tests/unictype/test-pr_other_math.c: Likewise.
61485         * tests/unictype/test-pr_punctuation.c: Likewise.
61486         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61487         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61488         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61489         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61490         * tests/unictype/test-pr_uppercase.c: Likewise.
61491         * tests/unictype/test-pr_xid_continue.c: Likewise.
61492         * tests/unictype/test-pr_xid_start.c: Likewise.
61493         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61494         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61495         changes.
61496         * lib/unictype/categ_Cc.h: Likewise.
61497         * lib/unictype/categ_Cf.h: Likewise.
61498         * lib/unictype/categ_Co.h: Likewise.
61499         * lib/unictype/categ_Cs.h: Likewise.
61500         * lib/unictype/categ_Lt.h: Likewise.
61501         * lib/unictype/categ_Nl.h: Likewise.
61502         * lib/unictype/categ_Pc.h: Likewise.
61503         * lib/unictype/categ_Pd.h: Likewise.
61504         * lib/unictype/categ_Pe.h: Likewise.
61505         * lib/unictype/categ_Pf.h: Likewise.
61506         * lib/unictype/categ_Pi.h: Likewise.
61507         * lib/unictype/categ_Ps.h: Likewise.
61508         * lib/unictype/categ_Z.h: Likewise.
61509         * lib/unictype/categ_Zl.h: Likewise.
61510         * lib/unictype/categ_Zp.h: Likewise.
61511         * lib/unictype/categ_Zs.h: Likewise.
61512         * lib/unictype/ctype_blank.h: Likewise.
61513         * lib/unictype/ctype_cntrl.h: Likewise.
61514         * lib/unictype/ctype_digit.h: Likewise.
61515         * lib/unictype/ctype_space.h: Likewise.
61516         * lib/unictype/ctype_xdigit.h: Likewise.
61517         * lib/unictype/mirror.h: Likewise.
61518         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61519         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61520         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61521         * lib/unictype/pr_bidi_control.h: Likewise.
61522         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61523         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61524         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61525         * lib/unictype/pr_bidi_pdf.h: Likewise.
61526         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61527         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61528         * lib/unictype/pr_dash.h: Likewise.
61529         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61530         * lib/unictype/pr_diacritic.h: Likewise.
61531         * lib/unictype/pr_extender.h: Likewise.
61532         * lib/unictype/pr_hex_digit.h: Likewise.
61533         * lib/unictype/pr_hyphen.h: Likewise.
61534         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61535         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61536         * lib/unictype/pr_ignorable_control.h: Likewise.
61537         * lib/unictype/pr_iso_control.h: Likewise.
61538         * lib/unictype/pr_join_control.h: Likewise.
61539         * lib/unictype/pr_left_of_pair.h: Likewise.
61540         * lib/unictype/pr_line_separator.h: Likewise.
61541         * lib/unictype/pr_logical_order_exception.h: Likewise.
61542         * lib/unictype/pr_non_break.h: Likewise.
61543         * lib/unictype/pr_not_a_character.h: Likewise.
61544         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61545         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61546         * lib/unictype/pr_other_id_start.h: Likewise.
61547         * lib/unictype/pr_other_lowercase.h: Likewise.
61548         * lib/unictype/pr_other_uppercase.h: Likewise.
61549         * lib/unictype/pr_paired_punctuation.h: Likewise.
61550         * lib/unictype/pr_paragraph_separator.h: Likewise.
61551         * lib/unictype/pr_pattern_syntax.h: Likewise.
61552         * lib/unictype/pr_pattern_white_space.h: Likewise.
61553         * lib/unictype/pr_private_use.h: Likewise.
61554         * lib/unictype/pr_quotation_mark.h: Likewise.
61555         * lib/unictype/pr_radical.h: Likewise.
61556         * lib/unictype/pr_soft_dotted.h: Likewise.
61557         * lib/unictype/pr_space.h: Likewise.
61558         * lib/unictype/pr_titlecase.h: Likewise.
61559         * lib/unictype/pr_variation_selector.h: Likewise.
61560         * lib/unictype/pr_white_space.h: Likewise.
61561         * lib/unictype/pr_zero_width.h: Likewise.
61562         * lib/unictype/sy_c_ident.h: Likewise.
61563         * lib/unictype/sy_c_whitespace.h: Likewise.
61564         * lib/unictype/sy_java_whitespace.h: Likewise.
61565         * lib/uninorm/composition-table.gperf: Likewise.
61566         * lib/uninorm/decomposition-table1.h: Likewise.
61567         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61568         LB8.
61569         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61570         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61571         * modules/unictype/*: Bump version number of expected libunistring
61572         version.
61574 2011-01-09  Bruno Haible  <bruno@clisp.org>
61576         Update to Unicode 5.2.0.
61577         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61578         trailing whitespace removed.
61580 2011-01-09  Bruno Haible  <bruno@clisp.org>
61582         New Unicode character properties, from Unicode 5.2.0.
61583         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61584         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61585         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61586         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61587         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61588         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61589         uc_is_property_cased, uc_is_property_case_ignorable,
61590         uc_is_property_changes_when_lowercased,
61591         uc_is_property_changes_when_uppercased,
61592         uc_is_property_changes_when_titlecased,
61593         uc_is_property_changes_when_casefolded,
61594         uc_is_property_changes_when_casemapped): New declarations.
61595         * lib/unictype/pr_byname.gperf: Add the new properties.
61596         * modules/unictype/property-byname (Depends-on): Depend on the new
61597         properties modules.
61598         * modules/unictype/property-all (Depends-on): Likewise.
61599         * MODULES.html.sh (Unicode string functions): Add
61600         unictype/property-case-ignorable, unictype/property-cased,
61601         unictype/property-changes-when-casefolded,
61602         unictype/property-changes-when-casemapped,
61603         unictype/property-changes-when-lowercased,
61604         unictype/property-changes-when-titlecased,
61605         unictype/property-changes-when-uppercased.
61607         New module 'unictype/property-changes-when-casemapped'.
61608         * modules/unictype/property-changes-when-casemapped: New file.
61609         * lib/unictype/pr_changes_when_casemapped.c: New file.
61610         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61611         generated by gen-uni-tables.
61612         * modules/unictype/property-changes-when-casemapped-tests: New file.
61613         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61614         automatically generated by gen-uni-tables.
61616         New module 'unictype/property-changes-when-casefolded'.
61617         * modules/unictype/property-changes-when-casefolded: New file.
61618         * lib/unictype/pr_changes_when_casefolded.c: New file.
61619         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61620         generated by gen-uni-tables.
61621         * modules/unictype/property-changes-when-casefolded-tests: New file.
61622         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61623         automatically generated by gen-uni-tables.
61625         New module 'unictype/property-changes-when-titlecased'.
61626         * modules/unictype/property-changes-when-titlecased: New file.
61627         * lib/unictype/pr_changes_when_titlecased.c: New file.
61628         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61629         generated by gen-uni-tables.
61630         * modules/unictype/property-changes-when-titlecased-tests: New file.
61631         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61632         automatically generated by gen-uni-tables.
61634         New module 'unictype/property-changes-when-uppercased'.
61635         * modules/unictype/property-changes-when-uppercased: New file.
61636         * lib/unictype/pr_changes_when_uppercased.c: New file.
61637         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61638         generated by gen-uni-tables.
61639         * modules/unictype/property-changes-when-uppercased-tests: New file.
61640         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61641         automatically generated by gen-uni-tables.
61643         New module 'unictype/property-changes-when-lowercased'.
61644         * modules/unictype/property-changes-when-lowercased: New file.
61645         * lib/unictype/pr_changes_when_lowercased.c: New file.
61646         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61647         generated by gen-uni-tables.
61648         * modules/unictype/property-changes-when-lowercased-tests: New file.
61649         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61650         automatically generated by gen-uni-tables.
61652         New module 'unictype/property-case-ignorable'.
61653         * modules/unictype/property-case-ignorable: New file.
61654         * lib/unictype/pr_case_ignorable.c: New file.
61655         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61656         by gen-uni-tables.
61657         * modules/unictype/property-case-ignorable-tests: New file.
61658         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61659         generated by gen-uni-tables.
61661         New module 'unictype/property-cased'.
61662         * modules/unictype/property-cased: New file.
61663         * lib/unictype/pr_cased.c: New file.
61664         * lib/unictype/pr_cased.h: New file, automatically generated by
61665         gen-uni-tables.
61666         * modules/unictype/property-cased-tests: New file.
61667         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61668         gen-uni-tables.
61670 2011-01-09  Bruno Haible  <bruno@clisp.org>
61672         Update to Unicode 5.2.0.
61673         * lib/gen-uni-tables.c (output_predicate, output_category,
61674         output_combclass, output_bidi_category, output_decimal_digit_test,
61675         output_decimal_digit, output_digit_test, output_digit,
61676         output_numeric_test, output_numeric, output_mirror, output_scripts,
61677         output_scripts_byname, output_blocks, output_ident_category): Fix
61678         comment header.
61679         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61680         get_wbp.
61681         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61682         items.
61683         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61684         Changes_When_Lowercased, Changes_When_Uppercased,
61685         Changes_When_Titlecased, Changes_When_Casefolded,
61686         Changes_When_Casemapped.
61687         (is_property_alphabetic, is_property_default_ignorable_code_point):
61688         Update for Unicode 5.2.0.
61689         (is_property_cased, is_property_case_ignorable,
61690         is_property_changes_when_lowercased,
61691         is_property_changes_when_uppercased,
61692         is_property_changes_when_titlecased,
61693         is_property_changes_when_casefolded,
61694         is_property_changes_when_casemapped): New functions.
61695         (output_properties): Output also the properties cased, case_ignorable,
61696         changes_when_lowercased, changes_when_uppercased,
61697         changes_when_titlecased, changes_when_casefolded,
61698         changes_when_casemapped.
61699         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61700         Unicode TR#11 revision 17 -> 19.
61701         (LBP_CP): New enumeration value.
61702         (LBP_*): Adjust values accordingly.
61703         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61704         TR#14 revision 22 -> 24.
61705         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61706         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61707         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61708         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61709         is_WBP_MIDLETTER.
61710         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61711         the code1 and code2 of each composition rule.
61712         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61713         * lib/unicase/ignorable.h: Likewise.
61714         * lib/unicase/tocasefold.h: Likewise.
61715         * lib/unicase/tolower.h: Likewise.
61716         * lib/unicase/totitle.h: Likewise.
61717         * lib/unicase/toupper.h: Likewise.
61718         * lib/unictype/bidi_of.h: Likewise.
61719         * lib/unictype/blocks.h: Likewise.
61720         * lib/unictype/categ_C.h: Likewise.
61721         * lib/unictype/categ_Cf.h: Likewise.
61722         * lib/unictype/categ_Cn.h: Likewise.
61723         * lib/unictype/categ_L.h: Likewise.
61724         * lib/unictype/categ_Ll.h: Likewise.
61725         * lib/unictype/categ_Lm.h: Likewise.
61726         * lib/unictype/categ_Lo.h: Likewise.
61727         * lib/unictype/categ_Lu.h: Likewise.
61728         * lib/unictype/categ_M.h: Likewise.
61729         * lib/unictype/categ_Mc.h: Likewise.
61730         * lib/unictype/categ_Mn.h: Likewise.
61731         * lib/unictype/categ_N.h: Likewise.
61732         * lib/unictype/categ_Nd.h: Likewise.
61733         * lib/unictype/categ_Nl.h: Likewise.
61734         * lib/unictype/categ_No.h: Likewise.
61735         * lib/unictype/categ_P.h: Likewise.
61736         * lib/unictype/categ_Pd.h: Likewise.
61737         * lib/unictype/categ_Po.h: Likewise.
61738         * lib/unictype/categ_S.h: Likewise.
61739         * lib/unictype/categ_Sc.h: Likewise.
61740         * lib/unictype/categ_So.h: Likewise.
61741         * lib/unictype/categ_of.h: Likewise.
61742         * lib/unictype/combining.h: Likewise.
61743         * lib/unictype/ctype_alnum.h: Likewise.
61744         * lib/unictype/ctype_alpha.h: Likewise.
61745         * lib/unictype/ctype_graph.h: Likewise.
61746         * lib/unictype/ctype_lower.h: Likewise.
61747         * lib/unictype/ctype_print.h: Likewise.
61748         * lib/unictype/ctype_punct.h: Likewise.
61749         * lib/unictype/ctype_upper.h: Likewise.
61750         * lib/unictype/decdigit.h: Likewise.
61751         * lib/unictype/digit.h: Likewise.
61752         * lib/unictype/numeric.h: Likewise.
61753         * lib/unictype/pr_alphabetic.h: Likewise.
61754         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61755         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61756         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61757         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61758         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61759         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61760         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61761         * lib/unictype/pr_combining.h: Likewise.
61762         * lib/unictype/pr_composite.h: Likewise.
61763         * lib/unictype/pr_currency_symbol.h: Likewise.
61764         * lib/unictype/pr_dash.h: Likewise.
61765         * lib/unictype/pr_decimal_digit.h: Likewise.
61766         * lib/unictype/pr_deprecated.h: Likewise.
61767         * lib/unictype/pr_diacritic.h: Likewise.
61768         * lib/unictype/pr_extender.h: Likewise.
61769         * lib/unictype/pr_grapheme_base.h: Likewise.
61770         * lib/unictype/pr_grapheme_extend.h: Likewise.
61771         * lib/unictype/pr_grapheme_link.h: Likewise.
61772         * lib/unictype/pr_id_continue.h: Likewise.
61773         * lib/unictype/pr_id_start.h: Likewise.
61774         * lib/unictype/pr_ideographic.h: Likewise.
61775         * lib/unictype/pr_ignorable_control.h: Likewise.
61776         * lib/unictype/pr_logical_order_exception.h: Likewise.
61777         * lib/unictype/pr_lowercase.h: Likewise.
61778         * lib/unictype/pr_numeric.h: Likewise.
61779         * lib/unictype/pr_other_alphabetic.h: Likewise.
61780         * lib/unictype/pr_punctuation.h: Likewise.
61781         * lib/unictype/pr_sentence_terminal.h: Likewise.
61782         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61783         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61784         * lib/unictype/pr_unified_ideograph.h: Likewise.
61785         * lib/unictype/pr_uppercase.h: Likewise.
61786         * lib/unictype/pr_xid_continue.h: Likewise.
61787         * lib/unictype/pr_xid_start.h: Likewise.
61788         * lib/unictype/pr_zero_width.h: Likewise.
61789         * lib/unictype/scripts.h: Likewise.
61790         * lib/unictype/scripts_byname.gperf: Likewise.
61791         * lib/unictype/sy_java_ident.h: Likewise.
61792         * lib/unigbrk/gbrkprop.h: Likewise.
61793         * lib/unilbrk/lbrkprop1.h: Likewise.
61794         * lib/unilbrk/lbrkprop2.h: Likewise.
61795         * lib/unilbrk/lbrktables.h: Likewise.
61796         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61797         LBP_CP. Implement rule LB30.
61798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61799         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61800         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61801         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61802         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61803         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61804         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61805         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61806         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61807         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61808         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61809         bits instead of 16 bits in the code1 and code2 of each composition
61810         rule.
61811         (uc_composition): Update for Unicode 5.2.0.
61812         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61813         * lib/uninorm/decomposition-table2.h: Likewise.
61814         * lib/uniwbrk/wbrkprop.h: Likewise.
61815         * tests/unicase/test-cased.c: Likewise.
61816         * tests/unicase/test-ignorable.c: Likewise.
61817         * tests/unicase/test-uc_tolower.c: Likewise.
61818         * tests/unicase/test-uc_totitle.c: Likewise.
61819         * tests/unicase/test-uc_toupper.c: Likewise.
61820         * tests/unictype/test-categ_C.c: Likewise.
61821         * tests/unictype/test-categ_Cf.c: Likewise.
61822         * tests/unictype/test-categ_Cn.c: Likewise.
61823         * tests/unictype/test-categ_L.c: Likewise.
61824         * tests/unictype/test-categ_Ll.c: Likewise.
61825         * tests/unictype/test-categ_Lm.c: Likewise.
61826         * tests/unictype/test-categ_Lo.c: Likewise.
61827         * tests/unictype/test-categ_Lu.c: Likewise.
61828         * tests/unictype/test-categ_M.c: Likewise.
61829         * tests/unictype/test-categ_Mc.c: Likewise.
61830         * tests/unictype/test-categ_Mn.c: Likewise.
61831         * tests/unictype/test-categ_N.c: Likewise.
61832         * tests/unictype/test-categ_Nd.c: Likewise.
61833         * tests/unictype/test-categ_Nl.c: Likewise.
61834         * tests/unictype/test-categ_No.c: Likewise.
61835         * tests/unictype/test-categ_P.c: Likewise.
61836         * tests/unictype/test-categ_Pd.c: Likewise.
61837         * tests/unictype/test-categ_Po.c: Likewise.
61838         * tests/unictype/test-categ_S.c: Likewise.
61839         * tests/unictype/test-categ_Sc.c: Likewise.
61840         * tests/unictype/test-categ_So.c: Likewise.
61841         * tests/unictype/test-ctype_alnum.c: Likewise.
61842         * tests/unictype/test-ctype_alpha.c: Likewise.
61843         * tests/unictype/test-ctype_graph.c: Likewise.
61844         * tests/unictype/test-ctype_lower.c: Likewise.
61845         * tests/unictype/test-ctype_print.c: Likewise.
61846         * tests/unictype/test-ctype_punct.c: Likewise.
61847         * tests/unictype/test-ctype_upper.c: Likewise.
61848         * tests/unictype/test-decdigit.h: Likewise.
61849         * tests/unictype/test-digit.h: Likewise.
61850         * tests/unictype/test-numeric.h: Likewise.
61851         * tests/unictype/test-pr_alphabetic.c: Likewise.
61852         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61853         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61854         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61855         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61856         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61857         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61858         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61859         * tests/unictype/test-pr_combining.c: Likewise.
61860         * tests/unictype/test-pr_composite.c: Likewise.
61861         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61862         * tests/unictype/test-pr_dash.c: Likewise.
61863         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61864         * tests/unictype/test-pr_deprecated.c: Likewise.
61865         * tests/unictype/test-pr_diacritic.c: Likewise.
61866         * tests/unictype/test-pr_extender.c: Likewise.
61867         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61868         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61869         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61870         * tests/unictype/test-pr_id_continue.c: Likewise.
61871         * tests/unictype/test-pr_id_start.c: Likewise.
61872         * tests/unictype/test-pr_ideographic.c: Likewise.
61873         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61874         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61875         * tests/unictype/test-pr_lowercase.c: Likewise.
61876         * tests/unictype/test-pr_numeric.c: Likewise.
61877         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61878         * tests/unictype/test-pr_punctuation.c: Likewise.
61879         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61880         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61881         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61882         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61883         * tests/unictype/test-pr_uppercase.c: Likewise.
61884         * tests/unictype/test-pr_xid_continue.c: Likewise.
61885         * tests/unictype/test-pr_xid_start.c: Likewise.
61886         * tests/unictype/test-pr_zero_width.c: Likewise.
61887         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61888         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61889         changed behaviour: line breaking is now disallowed between a letter
61890         or '=' and '('.
61891         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61892         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61893         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61894         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61895         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61896         lib/uniwidth/width.c.
61897         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61898         without comments, but with the original copyright notice.
61899         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61900         changes.
61901         * lib/unictype/categ_Cc.h: Likewise.
61902         * lib/unictype/categ_Co.h: Likewise.
61903         * lib/unictype/categ_Cs.h: Likewise.
61904         * lib/unictype/categ_Lt.h: Likewise.
61905         * lib/unictype/categ_Me.h: Likewise.
61906         * lib/unictype/categ_Pc.h: Likewise.
61907         * lib/unictype/categ_Pe.h: Likewise.
61908         * lib/unictype/categ_Pf.h: Likewise.
61909         * lib/unictype/categ_Pi.h: Likewise.
61910         * lib/unictype/categ_Ps.h: Likewise.
61911         * lib/unictype/categ_Sk.h: Likewise.
61912         * lib/unictype/categ_Sm.h: Likewise.
61913         * lib/unictype/categ_Z.h: Likewise.
61914         * lib/unictype/categ_Zl.h: Likewise.
61915         * lib/unictype/categ_Zp.h: Likewise.
61916         * lib/unictype/categ_Zs.h: Likewise.
61917         * lib/unictype/ctype_blank.h: Likewise.
61918         * lib/unictype/ctype_cntrl.h: Likewise.
61919         * lib/unictype/ctype_digit.h: Likewise.
61920         * lib/unictype/ctype_space.h: Likewise.
61921         * lib/unictype/ctype_xdigit.h: Likewise.
61922         * lib/unictype/mirror.h: Likewise.
61923         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61924         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61925         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61926         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61927         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61928         * lib/unictype/pr_bidi_control.h: Likewise.
61929         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61930         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61931         * lib/unictype/pr_bidi_pdf.h: Likewise.
61932         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61933         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61934         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61935         * lib/unictype/pr_format_control.h: Likewise.
61936         * lib/unictype/pr_hex_digit.h: Likewise.
61937         * lib/unictype/pr_hyphen.h: Likewise.
61938         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61939         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61940         * lib/unictype/pr_iso_control.h: Likewise.
61941         * lib/unictype/pr_join_control.h: Likewise.
61942         * lib/unictype/pr_left_of_pair.h: Likewise.
61943         * lib/unictype/pr_line_separator.h: Likewise.
61944         * lib/unictype/pr_math.h: Likewise.
61945         * lib/unictype/pr_non_break.h: Likewise.
61946         * lib/unictype/pr_not_a_character.h: Likewise.
61947         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61948         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61949         * lib/unictype/pr_other_id_continue.h: Likewise.
61950         * lib/unictype/pr_other_id_start.h: Likewise.
61951         * lib/unictype/pr_other_lowercase.h: Likewise.
61952         * lib/unictype/pr_other_math.h: Likewise.
61953         * lib/unictype/pr_other_uppercase.h: Likewise.
61954         * lib/unictype/pr_paired_punctuation.h: Likewise.
61955         * lib/unictype/pr_paragraph_separator.h: Likewise.
61956         * lib/unictype/pr_pattern_syntax.h: Likewise.
61957         * lib/unictype/pr_pattern_white_space.h: Likewise.
61958         * lib/unictype/pr_private_use.h: Likewise.
61959         * lib/unictype/pr_quotation_mark.h: Likewise.
61960         * lib/unictype/pr_radical.h: Likewise.
61961         * lib/unictype/pr_soft_dotted.h: Likewise.
61962         * lib/unictype/pr_space.h: Likewise.
61963         * lib/unictype/pr_titlecase.h: Likewise.
61964         * lib/unictype/pr_variation_selector.h: Likewise.
61965         * lib/unictype/pr_white_space.h: Likewise.
61966         * lib/unictype/sy_c_ident.h: Likewise.
61967         * lib/unictype/sy_c_whitespace.h: Likewise.
61968         * lib/unictype/sy_java_whitespace.h: Likewise.
61969         * modules/uni*/*: Bump version number of expected libunistring version.
61970         Reported by Simon Josefsson.
61972 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61974         useless-if-before-free: fix typo in --help and make the internal,
61975         automatic version date update process work once again.
61976         --help output contained a NUL character instead of the
61977         backslash-zero that was intended.  Also, the "must lie within
61978         the first 8 lines" line is on line 9, and hence not getting
61979         automatically updated.
61980         * build-aux/useless-if-before-free: Fix the former by adding a
61981         backslash, and the latter by condensing the three lines of what-it-does
61982         to a single line, leaving one line of slack for the future.
61984 2011-01-09  Bruno Haible  <bruno@clisp.org>
61986         uniwidth/width: Fix width of U+1D173..U+1D17A.
61987         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61988         symbolic_width, output_width_property_test): New functions.
61989         (main): Invoke output_nonspacing_property, output_width_property_test.
61990         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61991         U+1D173..U+1D17A.
61992         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61993         1.
61994         * modules/uniwidth/*: Bump version number of expected libunistring
61995         version.
61996         * modules/unilbrk/*: Likewise.
61998 2011-01-08  Bruno Haible  <bruno@clisp.org>
62000         uninorm tests: Preserve copyright of Unicode data file.
62001         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
62002         Mention modifications.
62004 2011-01-08  Bruno Haible  <bruno@clisp.org>
62006         gen-uni-tables: Prepare for Unicode 5.2.0.
62007         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
62008         (debug_output_lbp, output_lbp): Update.
62010 2011-01-08  Bruno Haible  <bruno@clisp.org>
62012         unilbrk: Clarify gen-uni-tables.c code.
62013         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
62014         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
62015         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
62017 2011-01-07  Bruno Haible  <bruno@clisp.org>
62019         strtod: Restore errno when successfully parsing Infinity or NaN.
62020         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
62021         restore the original errno.
62023 2011-01-07  Bruno Haible  <bruno@clisp.org>
62025         remove test: Avoid failure on HP-UX 11.
62026         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
62028 2011-01-07  Bruno Haible  <bruno@clisp.org>
62030         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
62031         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
62032         error code.
62034 2011-01-07  Pádraig Brady  <P@draigBrady.com>
62036         ignore-value: fixup comments, and add Eric Blake
62037         as an author since he rewrote the macros.
62038         * lib/ignore-value.h (ignore_value):  State that
62039         we now support aggregates.  Also specify exactly
62040         when the GCC warn_unused_result feature was added.
62042 2011-01-06  Eric Blake  <eblake@redhat.com>
62044         ignore-value: support aggregate types
62045         * lib/ignore-value.h (ignore_value): Provide separate gcc
62046         definition.
62047         * modules/ignore-value-tests: New test module.
62048         * tests/test-ignore-value.c: New test.
62050         maint.mk: improve sc_prohibit_strcmp regex
62051         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
62052         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
62053         definition of STRNEQ.
62055         signal: work around Haiku issue with SIGBUS
62056         * lib/siglist.h: Add comment.
62057         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
62058         strsignal's favoring of SIGSEGV.
62059         * tests/test-signal.c (main): Avoid test failure.
62060         * doc/posix-headers/signal.texi (signal.h): Document the issue.
62061         Reported by Scott McCreary.
62063         maint.mk: add pre-release check to ensure submodule commits are public
62064         * top/maint.mk (public-submodule-commit): New rule.
62065         (submodule-checks): New variable.
62066         (alpha beta stable): Depend on the variable.
62068 2011-01-05  Pádraig Brady  <P@draigBrady.com>
62069         and Jim Meyering  <meyering@redhat.com>
62071         ignore-value: make ignore_value more generic; deprecate ignore_ptr
62072         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
62073         (ATTRIBUTE_DEPRECATED): Define.
62074         (_ignore_case): New function.
62075         (ignore_value): New macro, to replace the old function.
62076         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
62077         * modules/ignore-value (Depends-on): Add stdint.
62079 2011-01-04  Eric Blake  <eblake@redhat.com>
62081         doc: regenerate INSTALL
62082         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
62083         @firstparagraphindent support, now that autoconf dropped it.
62084         (INSTALL_PRELUDE): Reinstate old macro.
62085         * doc/install.texi: Resync from autoconf.
62086         * doc/INSTALL: Reflect recent autoconf update.
62087         * doc/INSTALL.ISO: Likewise.
62088         * doc/INSTALL.UTF-8: Likewise.
62089         Reported by Karl Berry.
62091 2011-01-04  Bruce Korb  <address@hidden>
62093         git-version-gen: avoid a sub-shell
62094         * build-aux/git-version-gen: Redirect stderr in `...` via
62095         "exec 2>...", rather than via an added sub-shell.
62097 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
62099         git-version-gen: use (...) rather than sh -c '...'
62100         * build-aux/git-version-gen: Rather than hard-coding a shell's name
62101         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
62103 2011-01-03  Jim Meyering  <meyering@redhat.com>
62105         git-version-gen: convert leading TABs to spaces
62106         * build-aux/git-version-gen: Expand leading TABs.
62108         git-version-gen: handle failed "git rev-list"
62109         * build-aux/git-version-gen: Rather than leaking a "fatal" error
62110         from git and proceeding as if it had succeeded but printed no SHA1
62111         checksums, suppress the diagnostic and handle the failure.
62112         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
62114         git-version-gen: include command name in one more diagnostic
62115         * build-aux/git-version-gen: When the required .tarball-version file
62116         was missing or unreadable, you might see the diagnostic from "cat",
62117         but no trace of the name of the invoking script.  Now, you still see
62118         the diagnostic from cat, but also get one from "git-version-gen: ".
62119         Inspired by a patch from Bruce Korb.
62121         update-copyright: adjust test to match changed code
62122         * tests/test-update-copyright.sh: Change test's expected output
62123         to match new actual output.
62125 2011-01-02  Bruno Haible  <bruno@clisp.org>
62127         getlogin_r: Avoid test failure on HP-UX 11.
62128         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
62129         ERANGE when the second argument is zero.
62130         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
62131         portability problem.
62133 2011-01-02  Bruce Korb  <bkorb@gnu.org>
62135         * build-aux/update-copyright: doc Simon's changes
62137 2011-01-02  Simon Josefsson  <simon@josefsson.org>
62139         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
62140         environment variable.
62142 2011-01-02  Bruno Haible  <bruno@clisp.org>
62144         unigbrk: Avoid gcc warnings.
62145         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
62146         unused variable.
62147         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
62148         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
62149         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
62150         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
62151         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
62152         Change type of first argument to 'const char *'.
62153         (main): Remove unused variable.
62154         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
62155         type of first argument to 'const char *'.
62156         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
62157         Likewise.
62158         (main): Change type of variable 's'.
62159         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
62160         to 'int'.
62162 2011-01-02  Bruno Haible  <bruno@clisp.org>
62164         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
62165         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
62166         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
62167         bug.
62168         * lib/pwrite.c: Undo 2010-12-31 patch.
62169         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
62171 2011-01-02  Bruno Haible  <bruno@clisp.org>
62173         pread: Fix test whether it works.
62174         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
62176 2011-01-02  Bruno Haible  <bruno@clisp.org>
62178         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
62179         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
62180         ends in "6". Don't require a specific month name. Try also the locale
62181         names found on HP-UX 11 and Solaris 7.
62183 2011-01-02  Bruno Haible  <bruno@clisp.org>
62185         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
62186         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
62187         C linkage.
62188         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
62190 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62192         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
62193         for consistency, since the "cluster" term is not used elsewhere.
62194         * lib/unigbrk.in.h: Update name.
62195         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
62196         * lib/unigbrk/u16-grapheme-next.c: Update name.
62197         * lib/unigbrk/u16-grapheme-prev.c: Update name.
62198         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
62199         * lib/unigbrk/u32-grapheme-next.c: Update name.
62200         * lib/unigbrk/u32-grapheme-prev.c: Update name.
62201         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
62202         * lib/unigbrk/u8-grapheme-next.c: Update name.
62203         * lib/unigbrk/u8-grapheme-prev.c: Update name.
62204         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
62205         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
62206         Suggested by Bruno Haible.
62208 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62210         Remove module 'u8-grapheme-len' as too redundant with
62211         'u8-grapheme-next'.
62212         * modules/unigbrk/u8-grapheme-len: Delete file.
62213         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
62214         * lib/unigbrk.in.h: Remove prototype for deleted function.
62215         * lib/unigbrk/u8-grapheme-len.c: Delete file.
62216         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
62218         Remove module 'u16-grapheme-len' as too redundant with
62219         'u16-grapheme-next'.
62220         * modules/unigbrk/u16-grapheme-len: Delete file.
62221         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
62222         * lib/unigbrk.in.h: Remove prototype for deleted function.
62223         * lib/unigbrk/u16-grapheme-len.c: Delete file.
62224         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
62226         Remove module 'u32-grapheme-len' as too redundant with
62227         'u32-grapheme-next'.
62228         * modules/unigbrk/u32-grapheme-len: Delete file.
62229         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
62230         * lib/unigbrk.in.h: Remove prototype for deleted function.
62231         * lib/unigbrk/u32-grapheme-len.c: Delete file.
62232         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
62234         Suggested by Bruno Haible.
62236 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62238         * unigbrk.in.h: Fix typo: "ben" => "been".
62239         Reported by Bruno Haible.
62241 2011-01-01  Jim Meyering  <meyering@redhat.com>
62243         maint: update almost all copyright ranges to include 2011
62244         Run the new "make update-copyright" rule.
62246 2011-01-01  Jim Meyering  <meyering@redhat.com>
62248         maint: update-copyright: exempt doc/INSTALL*
62249         * Makefile (update-copyright): Also exclude doc/INSTALL*,
62250         since they are generated.  Suggested by Bruno Haible.
62252 2011-01-01  Jim Meyering  <meyering@redhat.com>
62254         maint: refine the update-copyright rule
62255         * Makefile (update-copyright): Also exclude any file that includes
62256         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
62257         code that merely generates the comment.
62259 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62261         New module 'u8-grapheme-len'.
62262         * modules/unigbrk/u8-grapheme-len: New file.
62263         * modules/unigbrk/u8-grapheme-len-tests: New file.
62264         * lib/unigbrk.in.h: Add prototype for new function.
62265         * lib/unigbrk/u8-grapheme-len.c: New file.
62266         * tests/unigbrk/test-u8-grapheme-len.c: New file.
62268         New module 'u16-grapheme-len'.
62269         * modules/unigbrk/u16-grapheme-len: New file.
62270         * modules/unigbrk/u16-grapheme-len-tests: New file.
62271         * lib/unigbrk.in.h: Add prototype for new function.
62272         * lib/unigbrk/u16-grapheme-len.c: New file.
62273         * tests/unigbrk/test-u16-grapheme-len.c: New file.
62275         New module 'u32-grapheme-len'.
62276         * modules/unigbrk/u32-grapheme-len: New file.
62277         * modules/unigbrk/u32-grapheme-len-tests: New file.
62278         * lib/unigbrk.in.h: Add prototype for new function.
62279         * lib/unigbrk/u32-grapheme-len.c: New file.
62280         * tests/unigbrk/test-u32-grapheme-len.c: New file.
62282         New module 'u8-grapheme-next'.
62283         * modules/unigbrk/u8-grapheme-next: New file.
62284         * modules/unigbrk/u8-grapheme-next-tests: New file.
62285         * lib/unigbrk.in.h: Add prototype for new function.
62286         * lib/unigbrk/u8-grapheme-next.c: New file.
62287         * tests/unigbrk/test-u8-grapheme-next.c: New file.
62289         New module 'u16-grapheme-next'.
62290         * modules/unigbrk/u16-grapheme-next: New file.
62291         * modules/unigbrk/u16-grapheme-next-tests: New file.
62292         * lib/unigbrk.in.h: Add prototype for new function.
62293         * lib/unigbrk/u16-grapheme-next.c: New file.
62294         * tests/unigbrk/test-u16-grapheme-next.c: New file.
62296         New module 'u32-grapheme-next'.
62297         * modules/unigbrk/u32-grapheme-next: New file.
62298         * modules/unigbrk/u32-grapheme-next-tests: New file.
62299         * lib/unigbrk.in.h: Add prototype for new function.
62300         * lib/unigbrk/u32-grapheme-next.c: New file.
62301         * tests/unigbrk/test-u32-grapheme-next.c: New file.
62303         New module 'u8-grapheme-prev'.
62304         * modules/unigbrk/u8-grapheme-prev: New file.
62305         * modules/unigbrk/u8-grapheme-prev-tests: New file.
62306         * lib/unigbrk.in.h: Add prototype for new function.
62307         * lib/unigbrk/u8-grapheme-prev.c: New file.
62308         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
62310         New module 'u16-grapheme-prev'.
62311         * modules/unigbrk/u16-grapheme-prev: New file.
62312         * modules/unigbrk/u16-grapheme-prev-tests: New file.
62313         * lib/unigbrk.in.h: Add prototype for new function.
62314         * lib/unigbrk/u16-grapheme-prev.c: New file.
62315         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
62317         New module 'u32-grapheme-prev'.
62318         * modules/unigbrk/u32-grapheme-prev: New file.
62319         * modules/unigbrk/u32-grapheme-prev-tests: New file.
62320         * lib/unigbrk.in.h: Add prototype for new function.
62321         * lib/unigbrk/u32-grapheme-prev.c: New file.
62322         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
62324         New module 'u8-grapheme-breaks'.
62325         * modules/unigbrk/u8-grapheme-breaks: New file.
62326         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
62327         * lib/unigbrk.in.h: Add prototype for new function.
62328         * lib/unigbrk/u8-grapheme-breaks.c: New file.
62329         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
62331         New module 'u16-grapheme-breaks'.
62332         * modules/unigbrk/u16-grapheme-breaks: New file.
62333         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
62334         * lib/unigbrk.in.h: Add prototype for new function.
62335         * lib/unigbrk/u16-grapheme-breaks.c: New file.
62336         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
62338         New module 'u32-grapheme-breaks'.
62339         * modules/unigbrk/u32-grapheme-breaks: New file.
62340         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
62341         * lib/unigbrk.in.h: Add prototype for new function.
62342         * lib/unigbrk/u32-grapheme-breaks.c: New file.
62343         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
62345         New module 'ulc-grapheme-breaks'.
62346         * modules/unigbrk/ulc-grapheme-breaks: New file.
62347         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
62348         * m4/locale-ar.m4: New file.
62349         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
62350         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
62351         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
62353 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62355         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
62356         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
62357         modified how this file was generated before I initially submitted
62358         the module, but failed to regenerate it.  This meant that several
62359         of the level2 entries were wrong.
62360         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
62361         Remove the division-by-2 that is folded into the table now that
62362         gbrkprop.h has been regenerated properly.  Now -1 entries are
62363         handled correctly.
62365         New module 'unigbrk/uc-gbrk-prop-tests'.
62366         * modules/unigbrk/uc-gbrk-prop-tests: New file.
62367         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
62368         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
62369         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
62371 2011-01-01  Bruno Haible  <bruno@clisp.org>
62373         Avoid use of hexadecimal escapes.
62374         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
62375         instead of hexadecimal escapes.
62377 2011-01-01  Jim Meyering  <meyering@redhat.com>
62379         maint: new rule to update copyright year ranges
62380         * Makefile (update-copyright): New rule.
62382         maint: indent with TABs in Makefile
62383         * Makefile: Expand leading sequences of spaces to TABs
62385         version-etc: update the copyright year it reports
62386         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
62388 2010-12-31  Bruno Haible  <bruno@clisp.org>
62390         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
62391         * lib/isfinite.c (zerof, zerod, zerol): New variables.
62392         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
62393         zero.
62395 2010-12-31  Bruno Haible  <bruno@clisp.org>
62397         pwrite: Work around HP-UX 11.11 bug.
62398         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
62399         works and set REPLACE_PWRITE if not.
62400         * lib/pwrite.c (pwrite): Add an implementation that uses the system
62401         function.
62402         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
62404 2010-12-31  Bruno Haible  <bruno@clisp.org>
62406         pread: Work around HP-UX 11 bugs.
62407         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
62408         and set REPLACE_PREAD if not.
62409         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
62411 2010-12-31  Eric Blake  <eblake@redhat.com>
62413         nl_langinfo: fix YESEXPR on Irix 6.5
62414         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
62415         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
62416         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
62417         it.
62419 2010-12-31  Bruno Haible  <bruno@clisp.org>
62421         iconv: Document HP-UX 11 bug.
62422         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62424 2010-12-31  Bruno Haible  <bruno@clisp.org>
62426         ldexpl: Fix link error on HP-UX 11.
62427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62428         LDEXPL_LIBM, using $ISNANL_LIBM.
62430 2010-12-31  Eric Blake  <eblake@redhat.com>
62432         ftello: avoid compilation failure with SunStudio c89
62433         * lib/ftello.c (ftello): Use lseek, not llseek.
62435         tests: avoid failing coreutils tests on cygwin
62436         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62437         (create_exe_shims_): Return 0 when skipping.
62439 2010-12-31  Bruno Haible  <bruno@clisp.org>
62441         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62442         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62444 2010-12-31  Bruno Haible  <bruno@clisp.org>
62446         waitpid: Fix link error in C++ mode.
62447         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62449 2010-12-31  Bruno Haible  <bruno@clisp.org>
62451         isnan: Use GCC built-ins when possible.
62452         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62453         __builtin_isnan.
62454         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62455         (isnan): Define using GCC built-ins for GCC >= 4.0.
62457 2010-12-31  Bruno Haible  <bruno@clisp.org>
62459         isnand: Fix mistake.
62460         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62461         __builtin_isnand.
62463 2010-12-31  Bruno Haible  <bruno@clisp.org>
62465         open: Avoid C++ error on HP-UX 11.
62466         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62468 2010-12-31  Bruno Haible  <bruno@clisp.org>
62470         time_r: Add missing declarations on HP-UX 11.
62471         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62472         instead of HAVE_LOCALTIME_R.
62473         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62474         HAVE_LOCALTIME_R always.
62475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62476         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62477         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62478         HAVE_LOCALTIME_R.
62479         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62480         * doc/posix-functions/localtime_r.texi: Likewise.
62482 2010-12-29  Eric Blake  <eblake@redhat.com>
62484         mountlist: tweak previous commit
62485         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62486         Reported by Paul Eggert.
62488         mountlist: fix local drive detection on cygwin
62489         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62490         that works for cygwin.
62492 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62494         ftoastr, snprintf: ftoastr + snprintf module
62495         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62496         since the snprintf module now should be good enough here.
62497         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62498         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62499         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62500         GNULIB_SNPRINTF only for the test directory, and the latter
62501         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62502         seems to suffice by itself.
62504 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62506         alloca: one step towards thread-safety
62507         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62508         need for a static variable.  All callers changed.  This does not
62509         make the alloca replacement thread-safe, but it's one step.
62511         tests: minor indenting change
62512         * tests/init.sh: Sync from coreutils housekeeping patch
62513         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62514         to keep lines within 80 columns.
62516 2010-12-28  Jim Meyering  <meyering@redhat.com>
62518         regex: don't infloop on persistent failing calloc
62519         * lib/regexec.c (build_trtable): Return failure indication upon
62520         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62521         In glibc, this was fixed for version 2.13:
62522         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62524 2010-12-28  Bruno Haible  <bruno@clisp.org>
62525             Paul Eggert <eggert@cs.ucla.edu>
62527         linkat: Make implementation robust against system behaviour variations.
62528         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62529         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62530         way, and to -2 if it needs a generic runtime test.
62531         * lib/linkat.c (solaris_optimized_link_immediate,
62532         solaris_optimized_link_follow): New functions.
62533         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62534         (check_same_link): Use it.
62536 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62538         New module 'unigbrk/base'.
62539         * modules/unigbrk/base: New file.
62540         * lib/unigbrk.in.h: New file.
62542         New module 'unigbrk/uc-gbrk-prop'.
62543         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62544         * modules/unigbrk/uc-gbrk-prop: New file.
62545         * lib/unigbrk/gbrkprop.h: New file.
62546         * lib/unigbrk/uc-gbrk-prop.c: New file.
62548         New module 'unigbrk/uc-is-grapheme-break'.
62549         * modules/unigbrk/uc-is-grapheme-break: New file.
62550         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62551         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62552         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62553         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62554         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62556         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62558 2010-12-27  Bruno Haible  <bruno@clisp.org>
62560         linkat test: Avoid failure on Solaris 11 2010-11.
62561         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62563 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62565         utimens: work around glibc rounding bug on more platforms
62566         * lib/utimens.c (fdutimens): Work around rounding bug even if
62567         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62568         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62570 2010-12-27  Bruno Haible  <bruno@clisp.org>
62572         select tests: Improve comments.
62573         * tests/test-select.c (do_select): Add comments.
62575 2010-12-27  Bruno Haible  <bruno@clisp.org>
62577         select tests: Safer way of handling timeout.
62578         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62579         at every invocation.
62581 2010-12-27  Bruno Haible  <bruno@clisp.org>
62583         select tests: Use 'bool' where appropriate.
62584         * tests/test-select.c (connect_to_socket): Change argument type to
62585         'bool'.
62587 2010-12-27  Bruno Haible  <bruno@clisp.org>
62589         select tests: Use existing modules.
62590         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62591         (configure.ac): Don't test for unistd.h.
62592         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62593         declared in <unistd.h>.
62595 2010-12-27  Bruno Haible  <bruno@clisp.org>
62597         mbrtowc: Work around a Solaris 7 bug.
62598         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62599         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62600         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62601         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62602         MBRTOWC_NULL_ARG1_BUG.
62603         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62604         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62605         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62606         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62608 2010-12-27  Jim Meyering  <meyering@redhat.com>
62610         read-file.c: tweak syntax
62611         * lib/read-file.c (fread_file): Remove space after "*" in function
62612         definitions.
62614 2010-12-27  Bruno Haible  <bruno@clisp.org>
62616         times test: Avoid gcc warnings on OSF/1.
62617         * tests/test-times.c (main): Cast printf arguments from clock_t to
62618         'long int'.
62620 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62622         utimens: work around glibc rounding bug on older Linux kernels
62623         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62624         on Linux with a glibc whose utimes might not work, then work
62625         around a longstanding glibc bug involving rounding rather than
62626         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62627         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62629 2010-12-26  Bruno Haible  <bruno@clisp.org>
62631         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62632         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62633         _GL_CXXALIAS_SYS.
62634         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62636 2010-12-26  Bruno Haible  <bruno@clisp.org>
62638         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62639         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62640         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62641         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62642         looking for the declaration.
62643         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62644         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62645         problem.
62646         * doc/posix-functions/inet_pton.texi: Likewise.
62648 2010-12-26  Bruno Haible  <bruno@clisp.org>
62650         arpa_inet: Use the common idioms with C++ support.
62651         * lib/arpa_inet.in.h: Include c++defs.h.
62652         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62653         support.
62654         * modules/arpa_inet (Depends-on): Add c++defs.
62655         (Makefile.am): Substitute the contents of c++defs.h.
62656         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62657         * modules/arpa_inet-c++-tests: New file.
62658         * tests/test-arpa_inet-c++.cc: New file.
62660 2010-12-25  Bruno Haible  <bruno@clisp.org>
62662         Fix more C++ link errors on Solaris 8.
62663         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62664         $(LIB_EACCESS).
62665         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62666         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62667         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62668         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62669         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62671 2010-12-25  Bruno Haible  <bruno@clisp.org>
62673         printf-posix: Fix link error when a non-GCC compiler is used.
62674         * lib/stdio.in.h (printf): When not using GCC, override printf
62675         correctly.
62676         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62678 2010-12-25  Bruno Haible  <bruno@clisp.org>
62680         strerror_r-posix: Update doc.
62681         * doc/posix-functions/strerror_r.texi: Update doc about the return
62682         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62684 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62686         utimens: simplify the logic of the previous change
62687         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62688         This should not affect whether the test succeeds or fails.
62690         utimens: configure better on hosts with NFS clock skew
62691         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62692         uses the clock of the local host.  It might use the clock of the
62693         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62694         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62696 2010-12-25  Bruno Haible  <bruno@clisp.org>
62698         ptsname test: Avoid failure on Solaris.
62699         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62700         open a pseudo-terminal; don't use BSD-style ptys.
62701         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62703 2010-12-25  Bruno Haible  <bruno@clisp.org>
62705         ptsname: Avoid ERANGE failure on some systems.
62706         * lib/ptsname.c (buffer): Increase size.
62708 2010-12-25  Bruno Haible  <bruno@clisp.org>
62710         rename, renameat: Avoid test failures at NFS mounted locations.
62711         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62712         so that subsequent mkdir calls succeed.
62714 2010-12-25  Bruno Haible  <bruno@clisp.org>
62716         iswblank: Fix C++ link error on Solaris 8.
62717         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62718         _GL_FUNCDECL_SYS.
62720 2010-12-25  Bruno Haible  <bruno@clisp.org>
62722         unistd: Fix C++ link error on Solaris 8.
62723         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62725 2010-12-25  Bruno Haible  <bruno@clisp.org>
62727         readlink doc: Mention an old glibc bug.
62728         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62730 2010-12-25  Bruno Haible  <bruno@clisp.org>
62732         fcntl-h: Fix for use of C++ on glibc systems.
62733         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62734         also on glibc systems in C++ mode.
62735         Reported by Gary V. Vaughan <gary@gnu.org>.
62737 2010-12-25  Bruno Haible  <bruno@clisp.org>
62739         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62740         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62742 2010-12-25  Bruno Haible  <bruno@clisp.org>
62744         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62745         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62746         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62747         test whether truncl works according to ISO C 99 with IEC 60559.
62748         * m4/truncl-ieee.m4: New file.
62749         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62750         m4/signbit.m4.
62751         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62753 2010-12-25  Bruno Haible  <bruno@clisp.org>
62755         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62756         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62757         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62758         test whether ceill works according to ISO C 99 with IEC 60559.
62759         * m4/ceill-ieee.m4: New file.
62760         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62761         m4/signbit.m4.
62762         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62764 2010-12-25  Bruno Haible  <bruno@clisp.org>
62766         Ensure all prerequisites of <wchar.h> are included.
62767         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62768         before <wchar.h>.
62769         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62770         gl_MBRLEN_NUL_RETVAL): Likewise.
62771         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62772         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62773         AC_FUNC_MBRTOWC): Likewise.
62774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62775         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62776         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62777         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62778         Likewise.
62779         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62780         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62781         (gl_WCHAR_H): Improve comments.
62782         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62784 2010-12-25  Bruno Haible  <bruno@clisp.org>
62786         strtok_r: Fix C syntax error in autoconf macro.
62787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62788         characters in test program.
62790 2010-12-24  Bruno Haible  <bruno@clisp.org>
62792         ceil, trunc, round: Fix gcc warnings.
62793         * lib/ceil.c (MIN): Undefine before redefining.
62794         * lib/trunc.c (MIN): Likewise.
62795         * lib/round.c (MIN): Likewise.
62796         Include <math.h> first.
62798 2010-12-24  Bruno Haible  <bruno@clisp.org>
62800         select tests: Avoid failures on OSF/1 5.1.
62801         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62802         failure of closing the last socket; it may fail with ECONNRESET.
62804 2010-12-24  Eric Blake  <eblake@redhat.com>
62806         stdint: avoid HP-UX 10.20 preprocessor bug
62807         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62808         than #if.
62809         * tests/test-floor2.c (main): Likewise.
62810         Reported by Peter O'Gorman.
62812         pipe: make obsoletion transition easier
62813         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62814         * modules/pipe (Files): Include revived file.
62815         (Include): Drop reference, to mirror getdate's behavior.
62817 2010-12-24  Bruno Haible  <bruno@clisp.org>
62819         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62820         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62821         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62822         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62824 2010-12-24  Bruno Haible  <bruno@clisp.org>
62826         gethostname: Ensure declaration on NonStop Kernel.
62827         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62828         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62830 2010-12-24  Bruno Haible  <bruno@clisp.org>
62832         sys_select: Ensure all necessary types on NonStop Kernel.
62833         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62834         include <sys/time.h>.
62835         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62836         NonStop Kernel.
62837         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62839 2010-12-24  Bruno Haible  <bruno@clisp.org>
62841         sys_select: Remove unneeded include.
62842         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62843         have <sys/select.h>.
62845 2010-12-24  Bruno Haible  <bruno@clisp.org>
62847         gethostname: Provide a fallback for HOST_NAME_MAX.
62848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62849         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62850         instead.
62851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62853 2010-12-24  Bruno Haible  <bruno@clisp.org>
62855         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62856         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62857         (SA_RESTART): Likewise.
62858         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62860 2010-12-24  Bruno Haible  <bruno@clisp.org>
62862         signal: Define NSIG.
62863         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62864         * tests/test-signal.c (nsig): New variable.
62865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62867 2010-12-24  Bruno Haible  <bruno@clisp.org>
62869         rename, renameat: Avoid test failures on OSF/1 5.1.
62870         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62871         alternative error codes.
62872         * tests/test-renameat.c (main): Likewise.
62874 2010-12-24  Bruno Haible  <bruno@clisp.org>
62876         *printf: Detect large precisions bug on Solaris 10/SPARC.
62877         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62878         by Paul Eggert.
62879         * tests/test-snprintf-posix.h (test_function): Add this test code here
62880         too.
62881         * tests/test-sprintf-posix.h (test_function): Likewise.
62882         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62883         * tests/test-vasprintf-posix.c (test_function): Likewise.
62884         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62885         around by gnulib.
62886         * doc/posix-functions/printf.texi: Likewise.
62887         * doc/posix-functions/snprintf.texi: Likewise.
62888         * doc/posix-functions/sprintf.texi: Likewise.
62889         * doc/posix-functions/vfprintf.texi: Likewise.
62890         * doc/posix-functions/vprintf.texi: Likewise.
62891         * doc/posix-functions/vsnprintf.texi: Likewise.
62892         * doc/posix-functions/vsprintf.texi: Likewise.
62893         * doc/posix-functions/dprintf.texi: Undo last commit.
62894         * doc/posix-functions/vdprintf.texi: Likewise.
62896 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62898         tests: port test-fdutimensat.c to Solaris 8
62899         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62900         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62901         On Solaris 8, it fails with errno == ENOSYS, because there is no
62902         futimens (so it can't use the fd), and there is no lutimens (so it
62903         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62905         vsnprintf: make more consistent with snprintf; doc fixes
62907         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62908         the byte count return problem was promoted from the snprintf-posix
62909         to the snprintf module.
62910         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62911         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62912         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62913         * tests/test-snprintf.c (main): Check the byte count returned.
62914         * tests/test-vsnprintf.c (main): Likewise.
62916 2010-12-23  Eric Blake  <eblake@redhat.com>
62918         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62919         * modules/sigpipe (License): Relax license.
62921 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62923         doc: document Solaris printf bug with large float precisions
62924         * doc/posix-functions/dprintf.texi (dprintf):
62925         * doc/posix-functions/fprintf.texi (fprintf):
62926         * doc/posix-functions/printf.texi (printf):
62927         * doc/posix-functions/snprintf.texi (snprintf):
62928         * doc/posix-functions/sprintf.texi (sprintf):
62929         * doc/posix-functions/vdprintf.texi (vdprintf):
62930         * doc/posix-functions/vfprintf.texi (vfprintf):
62931         * doc/posix-functions/vprintf.texi (vprintf):
62932         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62933         * doc/posix-functions/vsprintf.texi (vsprintf):
62934         Mention that these functions mishandle large floating point
62935         precisions on Solaris 10.  The same bug is also present in Solaris
62936         8, and I assume earlier.  This causes "cd gnulib-tests; make
62937         check" to fail on Solaris 8 (and I assume, later) when building
62938         the latest coreutils, in test-vasprintf-posix's call to
62939         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62940         the wide flavors (e.g., wprintf) so this patch just updates the
62941         documentation for the narrow ones.
62943         test-posixtm.c: add two tests
62944         * tests/test-posixtm.c: Add two tests, to highlight the
62945         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62946         around this bug; this is merely to document it.
62948 2010-12-22  Bruno Haible  <bruno@clisp.org>
62950         getlogin_r: Work around portability problem on OSF/1.
62951         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62952         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62953         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62954         test for a truncated result.
62955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62956         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62957         * modules/getlogin_r (Depends-on): Add memchr.
62958         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62960 2010-12-22  Bruno Haible  <bruno@clisp.org>
62962         ptsname: Avoid test failure on OSF/1 5.1.
62963         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62964         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62965         (same_slave): New function.
62966         (main): Use it to compare ptsname's result with the expected file name.
62968 2010-12-22  Bruno Haible  <bruno@clisp.org>
62970         Port extended stdio modules to HP NonStop Kernel.
62971         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62972         macros.
62973         * lib/fbufmode.c: Update comments.
62974         * lib/fflush.c: Likewise.
62975         * lib/fpurge.c: Likewise.
62976         * lib/freadable.c: Likewise.
62977         * lib/freadahead.c: Likewise.
62978         * lib/freading.c: Likewise.
62979         * lib/freadptr.c: Likewise.
62980         * lib/freadseek.c: Likewise.
62981         * lib/fseeko.c: Likewise.
62982         * lib/fseterr.c: Likewise.
62983         * lib/fwritable.c: Likewise.
62984         * lib/fwriting.c: Likewise.
62985         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62987 2010-12-22  Bruno Haible  <bruno@clisp.org>
62989         ttyname_r: Work around bug on OSF/1 5.1.
62990         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62992         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62993         present.
62994         * lib/ttyname_r.c (ttyname_r): Update comments.
62996 2010-12-22  Bruno Haible  <bruno@clisp.org>
62998         round: Implement result sign according to IEEE 754.
62999         * lib/round.c (MIN, MINUS_ZERO): New macros.
63000         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
63001         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
63002         * tests/test-round-ieee.c (main): Likewise.
63003         * tests/test-roundl-ieee.c (main): Likewise.
63005         trunc: Implement result sign according to IEEE 754.
63006         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
63007         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
63008         * tests/test-trunc2.c: Include minus-zero.h.
63009         (MINUS_ZERO): New macro.
63010         (trunc_reference): Keep in sync with lib/trunc.c.
63011         * tests/test-truncf2.c: Include minus-zero.h.
63012         (MINUS_ZERO): New macro.
63013         (truncf_reference): Keep in sync with lib/trunc.c.
63014         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
63015         * tests/test-trunc-ieee.c (main): Likewise.
63016         * tests/test-truncl-ieee.c (main): Likewise.
63018         ceil: Implement result sign according to IEEE 754.
63019         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
63020         (FUNC): Return -0.0 for -1 < x < 0.
63021         * tests/test-ceil2.c: Include minus-zero.h.
63022         (MINUS_ZERO): New macro.
63023         (ceil_reference): Keep in sync with lib/ceil.c.
63024         * tests/test-ceilf2.c: Include minus-zero.h.
63025         (MINUS_ZERO): New macro.
63026         (ceilf_reference): Keep in sync with lib/ceil.c.
63027         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
63028         * tests/test-ceil-ieee.c (main): Likewise.
63029         * tests/test-ceill-ieee.c (main): Likewise.
63031         floor: Implement result sign according to IEEE 754.
63032         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
63033         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
63034         * tests/test-floorf2.c (floorf_reference): Likewise.
63035         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
63036         * tests/test-floor-ieee.c (main): Likewise.
63037         * tests/test-floorl-ieee.c (main): Likewise.
63039 2010-12-22  Bruno Haible  <bruno@clisp.org>
63041         getaddrinfo: Update doc.
63042         * doc/posix-functions/gai_strerror.texi: Return type is also different
63043         on AIX and HP-UX.
63045 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63047         getaddrinfo, inet_ntop: Update doc for Solaris.
63048         * doc/posix-functions/gai_strerror.texi: Return type is also an
63049         issue on Solaris 9 and earlier.
63050         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
63051         on Solaris 10 and earlier.
63053 2010-12-21  Bruno Haible  <bruno@clisp.org>
63055         New module 'roundl-ieee'.
63056         * modules/roundl-ieee: New file.
63057         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
63058         test whether roundl works according to ISO C 99 with IEC 60559.
63059         * m4/roundl-ieee.m4: New file.
63060         * modules/roundl-ieee-tests: New file.
63061         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
63062         * tests/test-roundl.c (main): Remove signbit tests.
63063         * modules/roundl-tests (Depends-on): Remove signbit.
63064         * doc/posix-functions/roundl.texi: Mention the new module.
63066 2010-12-21  Bruno Haible  <bruno@clisp.org>
63068         New module 'truncl-ieee'.
63069         * modules/truncl-ieee: New file.
63070         * modules/truncl-ieee-tests: New file.
63071         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
63072         * tests/test-truncl.c (main): Remove signbit tests.
63073         * modules/truncl-tests (Depends-on): Remove signbit.
63074         * doc/posix-functions/truncl.texi: Mention the new module.
63076 2010-12-21  Bruno Haible  <bruno@clisp.org>
63078         New module 'ceill-ieee'.
63079         * modules/ceill-ieee: New file.
63080         * modules/ceill-ieee-tests: New file.
63081         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
63082         * tests/test-ceill.c (main): Remove signbit tests.
63083         * modules/ceill-tests (Depends-on): Remove signbit.
63084         * doc/posix-functions/ceill.texi: Mention the new module.
63086 2010-12-21  Bruno Haible  <bruno@clisp.org>
63088         New module 'floorl-ieee'.
63089         * modules/floorl-ieee: New file.
63090         * modules/floorl-ieee-tests: New file.
63091         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
63092         * tests/test-floorl.c (main): Remove signbit tests.
63093         * modules/floorl-tests (Depends-on): Remove signbit.
63094         * doc/posix-functions/floorl.texi: Mention the new module.
63096 2010-12-21  Bruno Haible  <bruno@clisp.org>
63098         New module 'round-ieee'.
63099         * modules/round-ieee: New file.
63100         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
63101         whether round works according to ISO C 99 with IEC 60559.
63102         * m4/round-ieee.m4: New file.
63103         * modules/round-ieee-tests: New file.
63104         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
63105         * tests/test-round1.c (main): Remove signbit tests.
63106         * modules/round-tests (Depends-on): Remove 'signbit'.
63107         * doc/posix-functions/round.texi: Mention the new module.
63109 2010-12-21  Bruno Haible  <bruno@clisp.org>
63111         New module 'trunc-ieee'.
63112         * modules/trunc-ieee: New file.
63113         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
63114         whether trunc works according to ISO C 99 with IEC 60559.
63115         * m4/trunc-ieee.m4: New file.
63116         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
63117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
63118         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
63119         * modules/trunc-ieee-tests: New file.
63120         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
63121         * tests/test-trunc1.c (main): Remove signbit tests.
63122         * modules/trunc-tests (Depends-on): Remove 'signbit'.
63123         * doc/posix-functions/trunc.texi: Mention the new module.
63125 2010-12-21  Bruno Haible  <bruno@clisp.org>
63127         New module 'ceil-ieee'.
63128         * modules/ceil-ieee: New file.
63129         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
63130         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
63131         ISO C 99 with IEC 60559.
63132         * m4/ceil-ieee.m4: New file.
63133         * modules/ceil (Files): Add lib/ceil.c.
63134         (Depends-on): Add 'float'.
63135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63136         * lib/math.in.h (ceil): New declaration.
63137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
63138         REPLACE_CEIL.
63139         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
63140         * modules/ceil-ieee-tests: New file.
63141         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
63142         * tests/test-math-c++.cc: Check the signature of 'ceil'.
63143         * doc/posix-functions/ceil.texi: Mention the new module.
63145 2010-12-21  Bruno Haible  <bruno@clisp.org>
63147         New module 'floor-ieee'.
63148         * modules/floor-ieee: New file.
63149         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
63150         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
63151         ISO C 99 with IEC 60559.
63152         * m4/floor-ieee.m4: New file.
63153         * modules/floor (Files): Add lib/floor.c.
63154         (Depends-on): Add 'float'.
63155         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63156         * lib/math.in.h (floor): New declaration.
63157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
63158         REPLACE_FLOOR.
63159         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
63160         * modules/floor-ieee-tests: New file.
63161         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
63162         * tests/test-math-c++.cc: Check the signature of 'floor'.
63163         * doc/posix-functions/floor.texi: Mention the new module.
63165 2010-12-21  Bruno Haible  <bruno@clisp.org>
63167         New module 'roundf-ieee'.
63168         * modules/roundf-ieee: New file.
63169         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
63170         test whether roundf works according to ISO C 99 with IEC 60559.
63171         * m4/roundf-ieee.m4: New file.
63172         * modules/roundf-ieee-tests: New file.
63173         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
63174         * tests/test-roundf1.c (main): Remove signbit tests.
63175         * modules/roundf-tests (Depends-on): Remove 'signbit'.
63176         * doc/posix-functions/roundf.texi: Mention the new module.
63178 2010-12-21  Bruno Haible  <bruno@clisp.org>
63180         New module 'truncf-ieee'.
63181         * modules/truncf-ieee: New file.
63182         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
63183         test whether truncf works according to ISO C 99 with IEC 60559.
63184         * m4/truncf-ieee.m4: New file.
63185         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
63186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
63187         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
63188         * modules/truncf-ieee-tests: New file.
63189         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
63190         * tests/test-truncf1.c (main): Remove signbit tests.
63191         * modules/truncf-tests (Depends-on): Remove 'signbit'.
63192         * doc/posix-functions/truncf.texi: Mention the new module.
63194 2010-12-21  Bruno Haible  <bruno@clisp.org>
63196         New module 'ceilf-ieee'.
63197         * modules/ceilf-ieee: New file.
63198         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
63199         test whether ceilf works according to ISO C 99 with IEC 60559.
63200         * m4/ceilf-ieee.m4: New file.
63201         * modules/ceilf-ieee-tests: New file.
63202         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
63203         * tests/test-ceilf1.c (main): Remove signbit tests.
63204         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
63205         * doc/posix-functions/ceilf.texi: Mention the new module.
63207 2010-12-21  Bruno Haible  <bruno@clisp.org>
63209         New module 'floorf-ieee'.
63210         * modules/floorf-ieee: New file.
63211         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
63212         test whether floorf works according to ISO C 99 with IEC 60559.
63213         * m4/floorf-ieee.m4: New file.
63214         * modules/floorf-ieee-tests: New file.
63215         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
63216         * tests/test-floorf1.c (main): Remove signbit tests.
63217         * modules/floorf-tests (Depends-on): Remove 'signbit'.
63218         * doc/posix-functions/floorf.texi: Mention the new module.
63220 2010-12-21  Bruno Haible  <bruno@clisp.org>
63222         Support for minus zero in autoconf macros.
63223         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
63224         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
63225         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
63226         * tests/minus-zero.h: Update comments.
63228 2010-12-21  Bruno Haible  <bruno@clisp.org>
63230         Tests for module 'ceil'.
63231         * modules/ceil-tests: New file.
63232         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
63233         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
63235 2010-12-21  Bruno Haible  <bruno@clisp.org>
63237         Tests for module 'floor'.
63238         * modules/floor-tests: New file.
63239         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
63240         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
63242 2010-12-21  Bruno Haible  <bruno@clisp.org>
63244         math: Fix indentation.
63245         * lib/math.in.h (floorf): Fix indentation.
63247 2010-12-21  Bruno Haible  <bruno@clisp.org>
63249         Fix cross-compilation guesses on Solaris.
63250         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
63251         not match "solaris2.10".
63252         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63253         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
63254         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
63256 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63258         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
63259         This fixes a problem observed with the latest coreutils snapshot
63260         that caused a test to fail on Solaris 8.  src/csplit.c's call
63261         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
63262         earlier, instead of returning the number of bytes that would have
63263         been generated; this causes csplit to incorrectly report memory
63264         exhaustion.
63265         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
63266         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
63267         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
63268         comments to match.
63269         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
63270         Fix typo in matching older versions of Solaris: "solaris2.10"
63271         is matched by the shell pattern "solaris2.[0-9]*".  This matters
63272         only for guessing while cross-compiling.
63273         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
63275 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
63277         ftoastr: fix comment again
63278         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63279         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
63280         Also, simplify example a bit by using flags = 0.
63282 2010-12-20  Bruno Haible  <bruno@clisp.org>
63284         round*, trunc*: Update documentation regarding glibc.
63285         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
63286         * doc/posix-functions/round.texi: Likewise.
63287         * doc/posix-functions/roundl.texi: Likewise.
63288         * doc/posix-functions/truncf.texi: Likewise.
63289         * doc/posix-functions/trunc.texi: Likewise.
63290         * doc/posix-functions/truncl.texi: Likewise.
63292 2010-12-20  Bruno Haible  <bruno@clisp.org>
63294         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
63295         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
63296         * doc/posix-functions/round.texi: Likewise.
63297         * doc/posix-functions/roundl.texi: Likewise.
63299 2010-12-20  Bruno Haible  <bruno@clisp.org>
63301         ttyname_r: Add missing declaration on HP-UX 11.
63302         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
63303         HAVE_TTYNAME_R.
63304         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
63305         declared. Set HAVE_TTYNAME_R always.
63306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63307         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
63308         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
63309         HAVE_TTYNAME_R.
63310         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
63312 2010-12-20  Bruno Haible  <bruno@clisp.org>
63314         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
63315         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
63316         * doc/posix-functions/getlogin_r.texi: Likewise.
63317         * tests/test-getlogin.c: Include <errno.h>.
63318         (main): Avoid test failure on HP-UX 11.11.
63319         * tests/test-getlogin_r.c (main): Likewise.
63321 2010-12-20  Bruno Haible  <bruno@clisp.org>
63323         getlogin_r: Add missing declaration on HP-UX 11.
63324         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
63325         declared also when it exists as a function.
63326         * doc/posix-functions/getlogin_r.texi: Document this workaround.
63328 2010-12-20  Bruno Haible  <bruno@clisp.org>
63330         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
63331         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
63332         through wcrtomb.
63334 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63336         ftoastr: fix comment
63337         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63338         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
63340 2010-12-19  Bruno Haible  <bruno@clisp.org>
63342         isnan: Ensure it is a macro.
63343         * lib/math.in.h (isnan): Define as a macro if not already a macro.
63344         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
63345         Solaris.
63347 2010-12-19  Bruno Haible  <bruno@clisp.org>
63349         ldexpl test: Fix link error on OSF/1 5.1.
63350         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
63352 2010-12-19  Bruno Haible  <bruno@clisp.org>
63354         wctype: Make it work in C++ mode on OSF/1 5.1.
63355         * lib/wctype.in.h (iswblank): Declare but not define here.
63356         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
63357         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
63358         * modules/wctype (Files): Add lib/iswblank.c.
63360 2010-12-19  Bruno Haible  <bruno@clisp.org>
63362         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
63363         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
63364         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
63366 2010-12-19  Bruno Haible  <bruno@clisp.org>
63368         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
63369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
63370         _POSIX_PII_SOCKET.
63371         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
63372         * doc/posix-functions/recvfrom.texi: Likewise.
63373         * doc/posix-functions/send.texi: Likewise.
63374         * doc/posix-functions/sendto.texi: Likewise.
63376 2010-12-19  Bruno Haible  <bruno@clisp.org>
63378         tcgetsid: Add missing declaration on OSF/1 5.1.
63379         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
63380         HAVE_TCGETSID.
63381         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
63382         Don't set HAVE_TCGETSID.
63383         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
63384         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
63385         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
63386         HAVE_TCGETSID.
63387         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
63389 2010-12-19  Bruno Haible  <bruno@clisp.org>
63391         stdio: Fix problem with popen() declaration on OSF/1 5.1.
63392         * lib/stdio.in.h: During the include_next statement, let recursive
63393         includes of this file include only the system header file.
63395 2010-12-19  Bruno Haible  <bruno@clisp.org>
63397         iconv_open: Fix regression from 2010-12-04.
63398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
63399         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
63401 2010-12-19  Bruno Haible  <bruno@clisp.org>
63403         stdbool test: Avoid a gcc warning.
63404         * tests/test-stdbool.c (main): Fail if e1 is false.
63405         Reported by Jim Meyering.
63407 2010-12-19  Jim Meyering  <meyering@redhat.com>
63409         setenv: restore to working order
63410         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
63411         mistakenly removed.
63412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
63413         HAVE_SETENV.
63414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
63415         HAVE_SETENV.
63417 2010-12-19  Bruno Haible  <bruno@clisp.org>
63419         Document some different function declarations on OSF/1 5.1.
63420         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63421         * doc/posix-functions/inet_ntop.texi: Likewise.
63422         * doc/posix-functions/gethostname.texi: Likewise.
63423         * lib/unistd.in.h (gethostname): Update comment.
63425 2010-12-19  Bruno Haible  <bruno@clisp.org>
63427         doc: Mention vasprintf-posix module.
63428         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63429         the 'vasprintf-posix' module.
63430         * doc/glibc-functions/vasprintf.texi: Likewise.
63432 2010-12-19  Bruno Haible  <bruno@clisp.org>
63434         unsetenv: Add missing declaration on OSF/1 5.1.
63435         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63436         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63437         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63439         not HAVE_UNSETENV.
63440         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63441         HAVE_UNSETENV.
63442         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63444 2010-12-19  Bruno Haible  <bruno@clisp.org>
63446         setenv: Add missing declaration on OSF/1 5.1.
63447         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63449         declared. Don't set HAVE_SETENV.
63450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63451         not HAVE_SETENV.
63452         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63453         HAVE_SETENV.
63454         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63456 2010-12-19  Bruno Haible  <bruno@clisp.org>
63458         nl_langinfo tests: Avoid gcc warning.
63459         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63461 2010-12-19  Bruno Haible  <bruno@clisp.org>
63463         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63464         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63465         _GL_CXXALIAS_SYS.
63467 2010-12-19  Bruno Haible  <bruno@clisp.org>
63469         stdbool: Relax test.
63470         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63471         address to 'bool' work in static initializer, for compilers other than
63472         GCC.
63474 2010-12-19  Bruno Haible  <bruno@clisp.org>
63476         ftello: Add missing declaration on OSF/1 5.1.
63477         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63478         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63480         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63481         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63483 2010-12-19  Bruno Haible  <bruno@clisp.org>
63485         fseeko: Add missing declaration on OSF/1 5.1.
63486         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63489         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63490         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63492 2010-12-19  Bruno Haible  <bruno@clisp.org>
63494         fchdir: Add missing declaration on OSF/1 5.1.
63495         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63498         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63499         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63501 2010-12-19  Bruno Haible  <bruno@clisp.org>
63503         relocatable-prog-wrapper: Separate from relocatable-prog.
63504         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63505         uninstall-relocwrapper rule here.
63506         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63507         Reported by Ian Beckwith <ianb@erislabs.net>.
63509 2010-12-19  Bruno Haible  <bruno@clisp.org>
63511         unistr/u8-mbsnlen: Add missing dependency.
63512         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63513         Reported by Ian Beckwith <ianb@erislabs.net>.
63515 2010-12-19  Bruno Haible  <bruno@clisp.org>
63517         iconv: Make it possible again to use this module without 'iconv-h'.
63518         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63519         if it is not defined.
63520         Reported by Ian Beckwith <ianb@erislabs.net>.
63522 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63524         acl: port to Solaris 8 when copying from tmpfs to ufs
63525         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63526         error number.  Problem observed on Solaris 8 with latest
63527         coreutils, with "mv A B", where A is on a tmpfs file system and B
63528         is on a ufs file system.  This caused coreutils' mv/part-symlink
63529         test to fail.
63531         tests: set fail=0 at start
63532         * tests/init.sh (setup_): Move fail=0 initialization here ...
63533         (mktempd_): ... from here, so that tests can rely on fail being
63534         set to 0 initially.  This fixes a problem in coreutils; see:
63535         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63537 2010-12-18  Bruno Haible  <bruno@clisp.org>
63539         memmem-simple: Stylistic changes.
63540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63541         Fix preprocessor directive indentation.
63543 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63545         memmem, memmem-simple: reorganize and expand empty needle check
63546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63547         functional checks to memmem-simple so that one has a fully functional
63548         memmem by using just this module.
63549         Restrict the performance only check to the memmem module.
63550         Also expand the empty needle check to ensure the correct
63551         pointer is returned, not just a non NULL pointer.
63552         * doc/glibc-functions/memmem.texi: Rearrange the portability
63553         documentation to correlate with the rearranged checks.
63554         Clarify exactly how the memmem and memmem-simple modules
63555         relate to each other.
63557 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63558             Bruno Haible  <bruno@clisp.org>
63560         Improve cross-compilation guesses for uClibc.
63561         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63562         that uClibc does not have the glibc bug.
63563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63564         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63566 2010-12-14  Eric Blake  <eblake@redhat.com>
63568         configmake: provide fallbacks for oldest supported autotools
63569         * m4/configmake.m4: New file.
63570         * modules/configmake (Files): Ship it.
63571         (configure.ac): Use it to guarantee fallbacks.
63573 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63575         read-file: Improve handling of large files
63576         * lib/read-file.c (fread_file): Minimize realloc()s
63577         for regular files, and better manage sizes around SIZE_MAX.
63579 2010-12-13  Eric Blake  <eblake@redhat.com>
63581         cloexec, fcntl: relax license
63582         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63583         consent from all contributors.
63584         * modules/fcntl (License): Likewise.
63586 2010-12-10  Bruno Haible  <bruno@clisp.org>
63588         Tests for module 'pipe-posix'.
63589         * modules/pipe-posix-tests: New file.
63590         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63592 2010-12-10  Bruno Haible  <bruno@clisp.org>
63594         pipe-posix: Make it work in C++ mode.
63595         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63596         (pipe): Use common idiom, not a macro definition.
63597         * lib/pipe.c: New file.
63598         * m4/pipe.m4: New file.
63599         * modules/pipe-posix (Description): Enhance.
63600         (Files): Add lib/pipe.c, m4/pipe.m4.
63601         (configure.ac): Invoke gl_FUNC_PIPE.
63602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63603         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63604         * tests/test-unistd-c++.cc: Check the signature of pipe.
63606 2010-12-10  Bruno Haible  <bruno@clisp.org>
63608         Rename module 'pipe' to 'spawn-pipe'.
63609         * modules/spawn-pipe: New file, renamed from modules/pipe.
63610         (Files, configure.ac, Makefile.am): Update.
63611         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63612         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63613         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63614         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63615         "spawn-pipe.h" instead of "pipe.h".
63616         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63617         to gl_SPAWN_PIPE.
63618         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63619         (Files, Makefile.am): Update.
63620         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63621         Update.
63622         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63623         Include "spawn-pipe.h" instead of "pipe.h".
63624         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63625         * lib/javacomp.c: Likewise.
63626         * lib/javaversion.c: Likewise.
63627         * lib/pipe-filter-gi.c: Likewise.
63628         * lib/pipe-filter-ii.c: Likewise.
63629         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63630         * modules/javacomp (Depends-on): Likewise.
63631         * modules/javaversion (Depends-on): Likewise.
63632         * modules/pipe-filter-gi (Depends-on): Likewise.
63633         * modules/pipe-filter-ii (Depends-on): Likewise.
63634         * MODULES.html.sh (Executing programs): Update.
63635         * NEWS: Mention the change.
63637 2010-12-10  Eric Blake  <eblake@redhat.com>
63639         pipe-posix: new module
63640         * modules/pipe-posix: New file.
63641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63642         (gl_UNISTD_H): Check for declaration.
63643         * modules/unistd (Makefile.am): Substitute it.
63644         * lib/unistd.in.h (pipe): Provide it for mingw.
63645         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63646         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63648 2010-12-07  Bruno Haible  <bruno@clisp.org>
63650         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63651         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63652         u8_strcmp_gnu.
63653         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63655 2010-12-06  Bruno Haible  <bruno@clisp.org>
63657         Update internal documentation.
63658         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63660 2010-12-04  Bruno Haible  <bruno@clisp.org>
63662         Put more information about failed tests into the test return codes.
63663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63664         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63667         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63671         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63674         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63675         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63676         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63677         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63678         returns a bit mask.
63679         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63680         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63681         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63682         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63683         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63687         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63688         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63689         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63690         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63693         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63694         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63695         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63696         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63700         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63701         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63702         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63703         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63704         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63705         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63706         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63707         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63708         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63709         gl_PRINTF_PRECISION): Likewise.
63710         * m4/regex.m4 (gl_REGEX): Likewise.
63711         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63714         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63717         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63718         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63719         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63721         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63722         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63723         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63725         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63726         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63727         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63728         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63730         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63731         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63732         enumerated value.
63733         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63735 2010-12-04  Bruno Haible  <bruno@clisp.org>
63737         Update for Solaris 11 2010-11.
63738         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63739         Express, released in November 2010.
63741 2010-12-04  Bruno Haible  <bruno@clisp.org>
63743         nproc: Relax license.
63744         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63745         and Paul Eggert.
63746         Requested by Ludovic Courtès <ludo@gnu.org>.
63748 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63750         utimecmp: fine-grained src to nearby coarse-grained dest
63752         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63753         and the source is on a file system with higher-resolution time
63754         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63755         not work, and the time stamps are close together, the algorithm to
63756         determine the exact resolution from the read-back mtime was buggy:
63757         it had a "!=" where it should have had an "==".  This bug has been
63758         in the code ever since it was introduced to gnulib.
63759         Problem reported by Dan Jacobson in
63760         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63762 2010-11-30  Bruno Haible  <bruno@clisp.org>
63764         strerror_r-posix: Fix autoconf test.
63765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63767 2010-11-28  Bruno Haible  <bruno@clisp.org>
63768             Paul Eggert  <eggert@cs.ucla.edu>
63770         Tests for module 'getdomainname'.
63771         * modules/getdomainname-tests: New file.
63772         * tests/test-getdomainname.c: New file, based on
63773         tests/test-gethostname.c.
63775 2010-11-28  Bruno Haible  <bruno@clisp.org>
63776             Paul Eggert  <eggert@cs.ucla.edu>
63778         getdomainname: Use the system function when possible.
63779         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63780         (getdomainname): Replace if needed. Provide the declaration if it is
63781         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63782         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63783         (getdomainname): When the system has getdomainname, call the system
63784         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63786         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63787         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63788         the function if its second argument is of type 'int' or if it is found
63789         in libnsl.
63790         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63791         <sys/systeminfo.h> and sysinfo().
63792         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63794         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63795         HAVE_GETDOMAINNAME.
63796         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63797         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63798         * doc/glibc-functions/getdomainname.texi: Document the problems with
63799         the getdomainname declaration.
63801 2010-11-28  Bruno Haible  <bruno@clisp.org>
63803         sys_socket: Ensure ss_family field on AIX.
63804         * lib/sys_socket.in.h (ss_family): New macro definition.
63805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63806         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63807         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63808         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63809         * modules/sys_socket (Makefile.am): Substitute
63810         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63811         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63813 2010-11-27  Bruno Haible  <bruno@clisp.org>
63815         readline: Improve configure output.
63816         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63817         "checking for readline..." result understandable.
63819 2010-11-27  Bruno Haible  <bruno@clisp.org>
63821         *printf-posix: Detect a bug on Solaris 10/x86.
63822         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63823         for floating-point output.
63824         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63825         directive.
63826         * tests/test-snprintf-posix.h (test_function): Likewise.
63827         * tests/test-sprintf-posix.h (test_function): Likewise.
63828         * tests/test-vasprintf-posix.c (test_function): Likewise.
63829         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63830         * doc/posix-functions/printf.texi: Likewise.
63831         * doc/posix-functions/snprintf.texi: Likewise.
63832         * doc/posix-functions/sprintf.texi: Likewise.
63833         * doc/posix-functions/vfprintf.texi: Likewise.
63834         * doc/posix-functions/vprintf.texi: Likewise.
63835         * doc/posix-functions/vsnprintf.texi: Likewise.
63836         * doc/posix-functions/vsprintf.texi: Likewise.
63837         * doc/glibc-functions/obstack_printf.texi: Likewise.
63838         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63840 2010-11-27  Bruno Haible  <bruno@clisp.org>
63842         Fix link error when module libunistring-optional is in use.
63843         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63844         * modules/striconveha-tests (Makefile.am): Likewise.
63846 2010-11-27  Bruno Haible  <bruno@clisp.org>
63848         regex: Mention link dependencies.
63849         * modules/regex (Link): New section.
63850         * modules/rpmatch (Link): Likewise.
63851         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63853 2010-11-27  Bruno Haible  <bruno@clisp.org>
63855         ftoastr: Fix compilation error on Solaris.
63856         * lib/ftoastr.c: Include <config.h>.
63858 2010-11-27  Bruno Haible  <bruno@clisp.org>
63860         getloadavg: Update documentation.
63861         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63863 2010-11-27  Bruno Haible  <bruno@clisp.org>
63865         sys_socket: Fix test whether the functions are declared.
63866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63867         not <sys/select.h>.
63869 2010-11-27  Bruno Haible  <bruno@clisp.org>
63871         getpass: Make sure to get system declaration on some platforms.
63872         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63873         gl_USE_SYSTEM_EXTENSIONS.
63874         * modules/getpass (Depends-on): Add extensions.
63876 2010-11-26  Bruno Haible  <bruno@clisp.org>
63878         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63879         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63880         'iconv' module is present.
63881         (ICONV_CONST): New macro.
63882         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63883         ICONV_CONST.
63884         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63885         set ICONV_CONST.
63886         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63887         here.
63888         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63889         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63890         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63891         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63892         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63893         present.
63895 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63897         ftoastr: comment fix
63898         * lib/ftoastr.c: "little" -> "little or no" in comment
63900 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63902         stdint: port to GCC 4.3 + OSX + Octave
63903         On this platform, stdint.h is buggy and defines int64_t to long
63904         long int.  The replacement defined it to long int, causing
63905         problems with C++ style name mangling.  Instead, trust the system
63906         definition if INT64_MAX is defined, and likewise for the unsigned
63907         variant.   Problem reported by Jarno Rajahalme in
63908         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63909         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63910         and don't mess with int64_t and INT64_MAX in this case.
63911         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63913 2010-11-24  Bruno Haible  <bruno@clisp.org>
63915         doc: Corrections regarding MacOS X 10.4 and 10.5.
63916         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63917         MacOS X.
63918         Reported by Simon Josefsson.
63920 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63922         Uninstall ".bin" files installed by relocwrapper.
63923         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63924         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63925         unless it is already there.
63927 2010-11-21  Bruno Haible  <bruno@clisp.org>
63929         Update for NetBSD 5.0.
63930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63931         NetBSD; the test fails on NetBSD 5.0.
63932         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63933         about NetBSD.
63935 2010-11-21  Bruno Haible  <bruno@clisp.org>
63937         Update for HP-UX 11.23 and HP-UX 11.31.
63938         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63939         HP-UX.
63941 2010-11-21  Bruno Haible  <bruno@clisp.org>
63943         Update for MacOS X 10.5.
63944         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63945         MacOS X; the test fails on MacOS X 10.5.8.
63946         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63947         about MacOS X.
63949 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63951         bootstrap: add bootstrap_sync option.
63952         See discussion at
63953         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63954         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63955         * build-aux/bootstrap: Accept --bootstrap-sync to update
63956         bootstrap if it is not identical to the local gnulib's
63957         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63958         enable this by default.  Accept --no-bootstrap-sync to disable
63959         it.
63961 2010-11-20  Bruno Haible  <bruno@clisp.org>
63963         Ensure that <features.h> is included before __GLIBC__ is tested.
63964         * lib/printf-parse.h: Include <features.h>.
63965         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63966         Reported by Mike Frysinger <vapier@gentoo.org>.
63968         Ensure that <features.h> is included before __GLIBC__ is tested.
63969         * lib/wchar.in.h: Include <features.h>.
63970         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63971         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63972         Reported by Mike Frysinger <vapier@gentoo.org>.
63974         Ensure that <features.h> is included before __GLIBC__ is tested.
63975         * lib/arpa_inet.in.h: Include <features.h>.
63976         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63977         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63978         Reported by Mike Frysinger <vapier@gentoo.org>.
63980         Ensure that <features.h> is included before __GLIBC__ is tested.
63981         * build-aux/link-warning.h: Include <features.h>.
63982         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63983         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63984         Reported by Mike Frysinger <vapier@gentoo.org>.
63986         Ensure that <features.h> is included before __GLIBC__ is tested.
63987         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63988         Reported by Mike Frysinger <vapier@gentoo.org>.
63990 2010-11-20  Bruno Haible  <bruno@clisp.org>
63992         memmem: Fix autoconf test.
63993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63995 2010-11-20  Bruno Haible  <bruno@clisp.org>
63997         Port to uClibc.
63998         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63999         * lib/fcntl.in.h: Likewise.
64000         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
64001         * lib/mbrtowc.c (mbrtowc): Likewise.
64002         * lib/relocatable.c (find_shared_library_fullname): Likewise.
64003         * lib/strerror_r.c: Likewise.
64004         * lib/unistr/u8-strnlen.c: Likewise.
64005         * lib/vasnprintf.c (decimal_point_char): Likewise.
64006         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
64007         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64009         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
64010         * tests/test-sigaction.c (handler, main): Likewise.
64011         * lib/freading.h: Treat uClibc like a non-glibc platform.
64012         * lib/freading.c: Likewise.
64013         * lib/gettext.h: Likewise.
64014         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
64015         Likewise.
64016         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
64017         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64018         * lib/propername.c (proper_name_utf8): Likewise.
64019         * lib/spawn.in.h: Likewise.
64020         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
64021         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
64022         mem_cd_iconveh_internal): Likewise.
64023         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
64024         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
64025         strstr, strcasestr): Likewise.
64026         * lib/unicodeio.c (unicode_to_mb): Likewise.
64027         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
64028         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
64029         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
64030         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
64031         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
64032         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
64033         * lib/unistr/u8-stpncpy.c: Likewise.
64034         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64035         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
64036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64038         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
64039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
64040         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
64041         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
64042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
64043         Likewise.
64044         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64045         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64046         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64047         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64050         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64051         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
64052         * tests/test-getopt.h (OPTIND_MIN): Likewise.
64053         * tests/test-striconveha.c (main): Likewise.
64054         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64055         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
64056         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
64057         * doc/posix-functions/getline.texi: Likewise.
64058         Reported by Mike Frysinger <vapier@gentoo.org>.
64060 2010-11-20  Bruno Haible  <bruno@clisp.org>
64062         nproc: Fix condition.
64063         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
64064         HAVE_PTHREAD_AFFINITY_NP.
64066 2010-11-20  Bruno Haible  <bruno@clisp.org>
64068         Fix a comment.
64069         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
64071 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
64073         ftoastr: don't assume snprintf
64074         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
64075         Implement a subset of snprintf here, by using sprintf safely.
64076         * modules/ftoastr (Depends-on): Remove snprintf.
64078 2010-11-19  Jim Meyering  <meyering@redhat.com>
64080         test-rename.h: fix compilation failure
64081         * tests/test-rename.h (test_rename): Add omitted "}".
64083 2010-11-17  Jim Meyering  <meyering@redhat.com>
64085         maint.mk: add a URL discussing the no-@acronym policy
64086         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
64088 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
64090         ftoastr: depend on snprintf, improve comments
64091         * lib/ftoastr.c: Also mention Loitsch's draft.
64092         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
64093         needed in the current implementation, but it might simplify
64094         speeding up the code later.
64095         * modules/ftoastr: Depend on snprintf; this improves portability.
64096         Suggested by Bruno Haible in the same email.
64098         ftoastr: port to hosts lacking strtof and strtold
64099         Problem reported by Bruno Haible in
64100         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
64101         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
64102         environment and strtold (and presumably strtof) are not available.
64103         * modules/ftoastr (Files): Add m4/c-strtod.m4.
64104         (configure.ac): Require gl_C99_STRTOLD.
64106 2010-11-18  Bruno Haible  <bruno@clisp.org>
64108         c-strtold: Avoid link error on AIX 7.
64109         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
64110         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
64111         (gl_C_STRTOLD): Test whether strtold_l exists.
64112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64114 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64116         intprops: new macro INT_BITS_STRLEN_BOUND
64117         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
64118         ftoastr.h.  This exposes an internal of intprops.h that was formerly
64119         not exposed.  Also, it uses a slightly tighter bound than before;
64120         though this makes no practical difference, we might as well be as
64121         tight as we easily can.
64123         ftoastr: new module, for lossless conversion of floats to short strings
64124         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
64125         * modules/ftoastr: New files.
64127 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64129         bootstrap: port to Solaris sed
64130         * build-aux/bootstrap (get_version): Port to Solaris sed.
64131         See Ralf Wildenhues's note in
64132         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
64134 2010-11-14  Jim Meyering  <meyering@redhat.com>
64136         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
64137         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
64138         and move definition closer to sole use.
64140 2010-11-13  Jim Meyering  <meyering@redhat.com>
64142         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
64143         Now we require at least autoconf-2.59, which means the work-around
64144         is no longer needed.
64145         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
64146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64147         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64148         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64149         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64151 2010-11-13  Bruno Haible  <bruno@clisp.org>
64153         rename, renameat: Avoid test failures at NFS mounted locations.
64154         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
64155         functions.
64156         (test_rename): Use assert_nonexistent.
64157         * tests/test-rename.c: Include <dirent.h>.
64158         * tests/test-renameat.c: Likewise.
64159         Reported by Gary V. Vaughan <gary@gnu.org>.
64161         rename, renameat: Document Linux bug with NFS
64162         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
64163         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
64164         * doc/posix-functions/renameat.texi: Likewise.
64165         Suggested by Eric Blake.
64167 2010-11-13  Bruno Haible  <bruno@clisp.org>
64169         rename test: Add comments.
64170         * tests/test-rename.h (test_rename): Add structure and comments.
64172 2010-11-13  Eric Blake  <eblake@redhat.com>
64174         maintainer-makefile: cover a few more files
64175         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
64176         scripts generated within C files, for libvirt.
64178 2010-11-13  Bruno Haible  <bruno@clisp.org>
64180         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
64181         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
64182         character, return the number of bytes that belong together, not always
64183         1.
64184         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
64185         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
64186         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
64187         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
64188         number of bytes of an invalid character.
64189         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
64190         (main): Invoke it.
64191         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
64192         results.
64193         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
64194         malformed byte sequences.
64195         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
64196         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
64197         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
64198         Reported by Ben Pfaff and Paolo Bonzini.
64200 2010-11-13  Bruno Haible  <bruno@clisp.org>
64202         openat: Work around glibc bug with fchownat() and empty file names.
64203         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
64204         (gl_FUNC_FCHOWNAT): Invoke it.
64205         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
64206         * doc/posix-functions/fchownat.texi: Document the glibc bug.
64207         Reported by Gary V. Vaughan <gary@gnu.org>.
64209 2010-11-13  Bruno Haible  <bruno@clisp.org>
64211         openat: Ensure autoconf macro ordering.
64212         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
64213         gl_USE_SYSTEM_EXTENSIONS.
64214         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
64216 2010-11-13  Bruno Haible  <bruno@clisp.org>
64218         Update comments.
64219         * lib/unistr/u8-check.c: Update file name in comments.
64220         * lib/unistr/u8-mblen.c: Likewise.
64221         * lib/unistr/u8-prev.c: Likewise.
64222         * lib/unistr/u8-strmblen.c: Likewise.
64223         * lib/unistr/u8-strmbtouc.c: Likewise.
64225 2010-11-13  Jim Meyering  <meyering@redhat.com>
64227         tests: avoid test failure on Solaris 10 due to lack of PATH export
64228         * tests/test-update-copyright.sh: Don't forget to export PATH.
64230         init.sh: ensure that IFS is defined, just in case...
64231         * tests/init.sh (setup_): Ensure that IFS is defined,
64232         so that saving and restoring it works as expected.  This
64233         appears to be useful at least for an old version of dash
64234         from a long time ago (RH 6).  See here for details:
64235         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
64237         maint.mk: tighten "test a == b" check
64238         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
64239         test to files that contain something like #!/bin/sh.
64240         Without this, coreutils would get two false positives in
64241         the comments of C source files.
64243 2010-11-12  Eric Blake  <eblake@redhat.com>
64245         bootstrap: fix typo in previous attempt
64246         * build-aux/bootstrap (buildreq): Correct the grouping.
64247         Reported by Paul Eggert.
64249         maintainer-makefile: prohibit test x == x
64250         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
64251         Based on a report by Matthias Bolte.
64253         bootstrap: allow FreeBSD gzip
64254         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
64255         which has no '.' and goes to stderr.
64256         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
64257         Reported by Matthias Bolte.
64259         maintainer-makefile: check for i18n setup
64260         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
64261         will likely work.
64263 2010-11-12  Bruno Haible  <bruno@clisp.org>
64265         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
64266         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
64267         * lib/nanosleep.c (nanosleep): Likewise.
64269 2010-11-11  Bruno Haible  <bruno@clisp.org>
64271         fcntl-h: Fix for use of C++ on glibc systems.
64272         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
64273         also on glibc systems in C++ mode.
64274         Reported by Gary V. Vaughan <gary@gnu.org>.
64276 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64278         mknod: avoid false failure with dash
64279         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
64281 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64283         unlink: Fix "is it should" typo in diagnostic.
64284         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
64285         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
64287 2010-11-11  Bruno Haible  <bruno@clisp.org>
64289         Tests for module 'strerror_r-posix'.
64290         * modules/strerror_r-posix-tests: New file.
64291         * tests/test-strerror_r.c: New file.
64292         * tests/test-string-c++.cc: Check the signature of strerror_r.
64294         New module 'strerror_r-posix'.
64295         * lib/string.in.h (strerror_r): New declaration.
64296         * lib/strerror_r.c: New file.
64297         * m4/strerror_r.m4: New file.
64298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
64299         of strerror_r.
64300         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
64301         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64302         * modules/strerror_r-posix: New file.
64303         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
64304         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64305         * doc/posix-functions/strerror_r.texi: Mention the new module and the
64306         portability problems.
64308 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
64310         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
64311         line is also considered for output. Quoted function name in shell
64312         command, so temporary files for functions like MyClass::operator()
64313         are removed correctly without errors.
64315 2010-11-09  Bruno Haible  <bruno@clisp.org>
64317         * doc/posix-functions/strerror.texi: List more failing platforms.
64319         * doc/posix-functions/strerror.texi: Add a comment.
64321 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64323         fdopendir: fix bug on MacOS X when low on file descriptors
64325         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
64326         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
64327         All callers changed.
64328         (fdopendir): Invoke save_cwd at the top level, not after using
64329         multiple dup() calls to use up file descriptors.  Then retry
64330         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
64331         less than the maximum number of open file descriptors, because
64332         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
64333         on Mac OS X 10.6.4 for tar 1.24
64334         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
64335         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
64336         and for tar 1.25
64337         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
64339 2010-11-07  Bruno Haible  <bruno@clisp.org>
64341         vasnprintf: Support I flag on glibc systems.
64342         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
64343         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
64344         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
64345         snprintf function.
64346         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
64347         glibc systems.
64348         * tests/test-vasnprintf-posix3.c: New file.
64349         * modules/vasnprintf-posix-tests (Files): Add it.
64350         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
64352 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64354         [html] Fix copy/paste bug: Use unique name for compiler warnings.
64355         * MODULES.html.sh: For compiler warnings, use name
64356         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
64358 2010-11-05  Eric Blake  <eblake@redhat.com>
64360         ceil, floor: avoid spurious failure with icc
64361         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
64362         [denormals-as-zero] when optimizing without -mieee-fp option.
64363         * tests/test-floorf2.c (floorf_reference): Likewise.
64364         * tests/test-ceilf1.c (dummy): New function.
64365         (main): Use it to outsmart icc's optimization.
64366         * tests/test-floorf1.c (dummy, main): Likewise.
64368         tests: require working signbit
64369         * modules/ceilf-tests (Depends-on): Add signbit.
64370         * modules/ceill-tests (Depends-on): Likewise.
64371         * modules/floorf-tests (Depends-on): Likewise.
64372         * modules/floorl-tests (Depends-on): Likewise.
64373         * modules/round-tests (Depends-on): Likewise.
64374         * modules/roundf-tests (Depends-on): Likewise.
64375         * modules/roundl-tests (Depends-on): Likewise.
64376         * modules/trunc-tests (Depends-on): Likewise.
64377         * modules/truncf-tests (Depends-on): Likewise.
64378         * modules/truncl-tests (Depends-on): Likewise.
64380         strtod: work around icc bug
64381         * lib/strtod.c (minus_zero): Define to working value.
64382         (strtod): Use it to avoid icc bug.
64384         copysign: enhance tests
64385         * modules/copysign-tests (Files): Add minus-zero.h.
64386         * tests/test-copysign.c (main): Also test zeros.
64388 2010-11-04  Eric Blake  <eblake@redhat.com>
64390         ceil, floor, round, trunc: enhance tests of -0
64391         * tests/test-ceilf1.c (main): Ensure correct sign of result.
64392         * tests/test-ceill.c (main): Likewise.
64393         * tests/test-floorf1.c (main): Likewise.
64394         * tests/test-floorl.c (main): Likewise.
64395         * tests/test-round1.c (main): Likewise.
64396         * tests/test-roundf1.c (main): Likewise.
64397         * tests/test-roundl.c (main): Likewise.
64398         * tests/test-trunc1.c (main): Likewise.
64399         * tests/test-truncf1.c (main): Likewise.
64400         * tests/test-truncl.c (main): Likewise.
64402 2010-11-04  Eric Blake  <eblake@redhat.com>
64404         frexp, tests: work around ICC bug with -zero
64405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
64406         works with more compilers.
64407         * tests/minus-zero.h: New file.
64408         * modules/ceilf-tests (Files): Include it.
64409         * modules/ceill-tests (Files): Likewise.
64410         * modules/floorf-tests (Files): Likewise.
64411         * modules/floorl-tests (Files): Likewise.
64412         * modules/frexp-nolibm-tests (Files): Likewise.
64413         * modules/frexp-tests (Files): Likewise.
64414         * modules/frexpl-nolibm-tests (Files): Likewise.
64415         * modules/frexpl-tests (Files): Likewise.
64416         * modules/isnan-tests (Files): Likewise.
64417         * modules/isnand-nolibm-tests (Files): Likewise.
64418         * modules/isnand-tests (Files): Likewise.
64419         * modules/isnanf-nolibm-tests (Files): Likewise.
64420         * modules/isnanf-tests (Files): Likewise.
64421         * modules/isnanl-nolibm-tests (Files): Likewise.
64422         * modules/isnanl-tests (Files): Likewise.
64423         * modules/round-tests (Files): Likewise.
64424         * modules/roundf-tests (Files): Likewise.
64425         * modules/roundl-tests (Files): Likewise.
64426         * modules/ldexpl-tests (Files): Likewise.
64427         * modules/signbit-tests (Files): Likewise.
64428         * modules/snprintf-posix-tests (Files): Likewise.
64429         * modules/sprintf-posix-tests (Files): Likewise.
64430         * modules/strtod-tests (Files): Likewise.
64431         * modules/trunc-tests (Files): Likewise.
64432         * modules/truncf-tests (Files): Likewise.
64433         * modules/truncl-tests (Files): Likewise.
64434         * modules/vsnprintf-posix-tests (Files): Likewise.
64435         * modules/vsprintf-posix-tests (Files): Likewise.
64436         * modules/vasnprintf-posix-tests (Files): Likewise.
64437         * modules/vasprintf-posix-tests (Files): Likewise.
64438         * tests/test-ceilf1.c (main): Use it.
64439         * tests/test-ceill.c (main): Likewise.
64440         * tests/test-floorf1.c (main): Likewise.
64441         * tests/test-floorl.c (main): Likewise.
64442         * tests/test-frexp.c (main): Likewise.
64443         * tests/test-frexpl.c (main): Likewise.
64444         * tests/test-isnan.c (main): Likewise.
64445         * tests/test-isnand.h (main): Likewise.
64446         * tests/test-isnanf.h (main): Likewise.
64447         * tests/test-isnanl.h (main): Likewise.
64448         * tests/test-ldexpl.c (main): Likewise.
64449         * tests/test-round.c (main): Likewise.
64450         * tests/test-roundf.c (main): Likewise.
64451         * tests/test-roundl.c (main): Likewise.
64452         * tests/test-signbit.c (test_signbitf, test_signbitd)
64453         (test_signbitl): Likewise.
64454         * tests/test-snprintf-posix.h (test_function): Likewise.
64455         * tests/test-sprintf-posix.h (test_function): Likewise.
64456         * tests/test-strtod.c (main): Likewise.
64457         * tests/test-trunc1.c (main): Likewise.
64458         * tests/test-truncf1.c (main): Likewise.
64459         * tests/test-truncl.c (main): Likewise.
64461         isnanl: work around icc bug
64462         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64464 2010-11-03  Eric Blake  <eblake@redhat.com>
64466         tests: fix compiler warnings
64467         * tests/test-getopt.h (test_getopt): Fix condition.
64468         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64469         * tests/test-pipe2.c (main): Likewise.
64470         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64472         utimens: fix broken m4 test
64473         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64475 2010-10-28  Bruno Haible  <bruno@clisp.org>
64477         posix_spawn*, getdtablesize: Relax license.
64478         * modules/posix_spawn (License): Change to LGPLv2+.
64479         * modules/posix_spawnp (License): Likewise.
64480         * modules/posix_spawn-internal (License): Likewise.
64481         * modules/posix_spawnattr_init (License): Likewise.
64482         * modules/posix_spawnattr_getflags (License): Likewise.
64483         * modules/posix_spawnattr_setflags (License): Likewise.
64484         * modules/posix_spawnattr_getpgroup (License): Likewise.
64485         * modules/posix_spawnattr_setpgroup (License): Likewise.
64486         * modules/posix_spawnattr_getschedparam (License): Likewise.
64487         * modules/posix_spawnattr_setschedparam (License): Likewise.
64488         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64489         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64490         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64491         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64492         * modules/posix_spawnattr_getsigmask (License): Likewise.
64493         * modules/posix_spawnattr_setsigmask (License): Likewise.
64494         * modules/posix_spawnattr_destroy (License): Likewise.
64495         * modules/posix_spawn_file_actions_init (License): Likewise.
64496         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64497         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64498         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64499         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64500         * modules/getdtablesize (License): Likewise.
64501         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64503 2010-10-26  Bruno Haible  <bruno@clisp.org>
64505         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64506         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64507         Cygwin and mingw.
64508         Suggested by Eric Blake.
64510 2010-10-26  Bruno Haible  <bruno@clisp.org>
64512         stdio: Work around compilation error due to renameat() on Solaris 10.
64513         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64514         * lib/renameat.c: Don't include <unistd.h> here.
64515         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64516         Reported by Paul Eggert and Eric Blake.
64518 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64520         renameat: port to Solaris 10, which declares renameat in unistd.h
64522         * lib/renameat.c: Include unistd.h before stdio.h, because
64523         Solaris 10 declares renameat in unistd.h.  Problem encountered
64524         when building GNU tar 1.24 on Solaris 10.
64526 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64528         fdopendir: fix C89 compilation
64529         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64530         compilers.
64532 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64534         inttostr: simplify by removing unnecessary redundancy
64535         * lib/anytostr.c: Don't include verify.h.
64536         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64537         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64538         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64539         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64540         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64541         Likewise.
64542         * modules/inttostr (Depends-on): Remove 'verify'.
64544 2010-10-23  Bruno Haible  <bruno@clisp.org>
64546         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64547         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64548         Reported by Eric Blake.
64550 2010-10-23  Bruno Haible  <bruno@clisp.org>
64552         Tests: Fix LOCALE_JA on MirBSD 10.
64553         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64554         to an UTF-8 locale.
64555         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64557         Reported by Eric Blake.
64559 2010-10-21  Bruno Haible  <bruno@clisp.org>
64561         nl_langinfo test: Avoid test failure on NetBSD 5.
64562         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64563         Reported by Eric Blake.
64565 2010-10-21  Eric Blake  <eblake@redhat.com>
64567         c-stack: work around libsigsegv 2.8 bug
64568         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64569         overflow on at least PowerPC64.
64571 2010-10-17  Bruno Haible  <bruno@clisp.org>
64573         userspec: Drop redundant file.
64574         * modules/userspec (Files): Remove lib/inttostr.h.
64576 2010-10-17  Bruno Haible  <bruno@clisp.org>
64578         nl_langinfo tests: Silence some warnings.
64579         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64580         Reported by Jim Meyering.
64582 2010-10-17  Bruno Haible  <bruno@clisp.org>
64584         Make use of GCC's attribute __alloc_size__.
64585         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64586         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64587         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64588         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64589         __alloc_size__.
64590         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64591         Suggested by Jim Meyering.
64593 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64595         bootstrap: anchor .gitignore entries.
64596         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64597         with...
64598         (insert_vc_ignore): ... this new function, which prepends `/' to
64599         all .gitignore entries before passing them to
64600         insert_sorted_if_absent.
64602 2010-10-16  Bruno Haible  <bruno@clisp.org>
64604         nextafter: Fix configure check.
64605         * modules/nextafter (configure.ac): Correct expected prototype.
64607 2010-10-16  Bruno Haible  <bruno@clisp.org>
64609         termios: Update documentation.
64610         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64612 2010-10-16  Bruno Haible  <bruno@clisp.org>
64614         tests: Make them compile with TinyCC.
64615         * tests/test-strstr.c (main): Remove parentheses around array
64616         initializer.
64618 2010-10-15  Eric Blake  <eblake@redhat.com>
64620         ignore-value: make header idempotent
64621         * lib/ignore-value.h: Add double-inclusion guards.
64622         Reported by Stefan Berger.
64624 2010-10-15  Jim Meyering  <meyering@redhat.com>
64626         GNUmakefile: handle "stable" target, not "major"
64627         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64628         lists in maint.mk and announce-gen.  Without this, "make stable"
64629         would fail to ensure that $(VERSION) is up to date.
64631 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64633         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64634         & co.
64636 2010-10-14  Bruno Haible  <bruno@clisp.org>
64638         vasnprintf: Don't set errno to 0.
64639         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64640         block that sets it to 0.
64641         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64643 2010-10-14  Bruno Haible  <bruno@clisp.org>
64645         socketlib: Fix.
64646         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64647         gl_PREREQ_SYS_H_WINSOCK2.
64648         Reported by Ian Beckwith <ianb@erislabs.net>.
64650 2010-10-13  Jim Meyering  <meyering@redhat.com>
64652         test-select-stdin.c: avoid warn_unused_result warnings
64653         * tests/test-select-stdin.c: Include "macros.h".
64654         ASSERT that read and fflush succeed.
64656 2010-10-13  Jim Meyering  <meyering@redhat.com>
64658         git-version-gen: do require git-VC'd files in cwd
64659         * build-aux/git-version-gen: Reject a git version string
64660         if there are no commits associated with the current directory.
64661         This avoids an unlikely false-positive (unrelated dir whose parent
64662         repository also contains a tag matching v*), as pointed out
64663         by Giuseppe Scrivano in
64664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64666 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64668         argv-iter: omit nonconforming declaration
64669         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64670         enum arg_iter_err declaration, which doesn't conform to C99.
64671         Solaris 10 cc warns about this.
64673 2010-10-13  Eric Blake  <eblake@redhat.com>
64675         termios: fix compilation on mingw
64676         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64677         (gl_TERMIOS_H): Adjust it on mingw.
64678         * modules/termios (Makefile.am): Substitute new key.
64679         * lib/termios.in.h (includes): Make include_next conditional.
64680         * doc/posix-headers/termios.texi (termios.h): Update
64681         documentation.
64682         Reported by Daniel P. Berrange.
64684 2010-10-13  Jim Meyering  <meyering@redhat.com>
64686         git-version-gen: don't require that .git/ be in the current dir
64687         * build-aux/git-version-gen: Adjust this script so that it works
64688         when run from any working directory beneath the top-level .git/-
64689         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64690         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64692         test-select: avoid warn_unused_result warnings
64693         * tests/test-select.c: Include "macros.h".
64694         ASSERT that each call to read, write, and pipe succeeds.
64695         While not technically required, also check each "close".
64696         * modules/select-tests (Files): Add tests/macros.h.
64698         test-symlinkat: remove declaration of unused local
64699         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64701         test-inttostr: avoid shadowing warnings
64702         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64703         and use malloc rather than the stack for the same reason as
64704         mentioned in the comment justifying the other allocation.
64706 2010-10-11  Bruno Haible  <bruno@clisp.org>
64708         stdlib: Allow multiple gnulib generated replacements to coexist.
64709         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64710         Reported by Sam Steingold <sds@gnu.org>.
64712 2010-10-11  Jim Meyering  <meyering@redhat.com>
64714         fix a documentation typo
64715         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64717 2010-10-11  Eric Blake  <eblake@redhat.com>
64719         futimens: work around Solaris 11 bug
64720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64721         * tests/test-futimens.h (test_futimens): Enhance, rather than
64722         weaken test.
64723         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64725 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64727         Indentation.
64728         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64729         higher-level operators more to the left.
64731 2010-10-11  Jim Meyering  <meyering@redhat.com>
64733         test-futimens: avoid unwarranted test failure on Solaris 5.11
64734         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64735         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64736         because it tries to dereference the NULL name argument.
64738 2010-10-11  Bruno Haible  <bruno@clisp.org>
64740         Indentation.
64741         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64742         indentation.
64744 2010-10-11  Jim Meyering  <meyering@redhat.com>
64746         spawn.in.h: make indentation consistent with parentheses
64747         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64748         Make indentation consistent with parentheses.
64750 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64752         Fix mismatched parens in previous commit
64753         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64754         parens.
64756 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64758         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64760         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64761         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64762         * lib/malloca.c: Include "verify.h".
64763         (verify1): Remove, replacing with a verify call.
64764         * lib/relocwrapper.c (verify1): Likewise.
64765         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64766         Likewise.
64767         * modules/malloca (Depends-on): Add 'verify'.
64768         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64769         * modules/vasnprintf (Depends-on): Add 'verify'.
64770         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64771         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64772         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64773         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64774         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64775         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64776         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64778         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64780         Formerly the style was sometimes 2*X - 1, because the C standard
64781         was wrongly thought to disallow ?: in integral constant expressions.
64782         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64783         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64784         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64785         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64786         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64787         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64788         verify that time_t cannot be floating.
64790 2010-10-08  Eric Blake  <eblake@redhat.com>
64792         time: enforce recent POSIX ruling that time_t is integral
64793         * lib/time.in.h (__time_t_must_be_integral): Detect any
64794         problematic systems, allowing the rest of gnulib to assume POSIX.
64796 2010-10-08  Jim Meyering  <meyering@redhat.com>
64798         fdopendir: fix a bug on systems lacking openat and /proc support
64799         OpenBSD 4.7 is one such system.  The most noticeable effect was
64800         failure of any application making nontrivial use of fts: rm, du,
64801         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64802           ./rm: traversal failed: `a': Bad file descriptor
64803         Debugging that, you see that even though FD 6 was closed just
64804         prior to the opendir call in fd_clone_opendir, its resulting
64805         dir->dd_fd was 8, rather than the expected value of 6:
64807         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64808         93                close (fd);
64809         (gdb) n
64810         94                dir = fd_clone_opendir (dupfd);
64811         (gdb) n
64812         95                saved_errno = errno;
64813         (gdb) p dir->dd_fd
64814         $11 = 8
64816         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64817         The problem is that on OpenBSD, fd_clone_opendir has to resort
64818         to using the old-style save/restore CWD mechanism, due to its
64819         lack of openat/proc support, and *that* would steal the FD (6)
64820         that opendir was supposed to use.
64822         The fix is to squirrel away the desired FD so that save_cwd uses a
64823         different one, and then free the dest FD right before calling opendir.
64824         That guarantees opendir will use the required file descriptor.
64826         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64828 2010-10-08  Bruno Haible  <bruno@clisp.org>
64830         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64831         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64833 2010-10-08  Bruno Haible  <bruno@clisp.org>
64835         nanosleep: Make replacement POSIX compliant.
64836         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64837         is out of range.
64838         Reported by Jim Meyering.
64840 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64842         bootstrap: add hook for altering gnulib.mk, for Bison
64843         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64844         the Bison bootstrapping process can rewrite file names and variables
64845         in this file before later parts of 'bootstrap' use the file.
64846         Bison wants to include lib/gnulib.mk from the top-level makefile,
64847         so it needs the file names in this file to be relative to the top
64848         level, not relative to lib; plus it needs variable names to be
64849         rewritten.
64850         (slurp): Use the new function.
64852         bootstrap: reformat for readability
64853         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64855 2010-10-08  Eric Blake  <eblake@redhat.com>
64857         docs: update cygwin progress
64858         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64859         1.7.7.
64860         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64861         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64862         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64863         * doc/posix-functions/carg.texi (carg): Likewise.
64864         * doc/posix-functions/cargf.texi (cargf): Likewise.
64865         * doc/posix-functions/casin.texi (casin): Likewise.
64866         * doc/posix-functions/casinf.texi (casinf): Likewise.
64867         * doc/posix-functions/casinh.texi (casinh): Likewise.
64868         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64869         * doc/posix-functions/catan.texi (catan): Likewise.
64870         * doc/posix-functions/catanf.texi (catanf): Likewise.
64871         * doc/posix-functions/catanh.texi (catanh): Likewise.
64872         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64873         * doc/posix-functions/ccos.texi (ccos): Likewise.
64874         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64875         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64876         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64877         * doc/posix-functions/cexp.texi (cexp): Likewise.
64878         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64879         * doc/posix-functions/cimag.texi (cimag): Likewise.
64880         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64881         * doc/posix-functions/clog.texi (clog): Likewise.
64882         * doc/posix-functions/clogf.texi (clogf): Likewise.
64883         * doc/posix-functions/conj.texi (conj): Likewise.
64884         * doc/posix-functions/conjf.texi (conjf): Likewise.
64885         * doc/posix-functions/cpow.texi (cpow): Likewise.
64886         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64887         * doc/posix-functions/cproj.texi (cproj): Likewise.
64888         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64889         * doc/posix-functions/creal.texi (creal): Likewise.
64890         * doc/posix-functions/crealf.texi (crealf): Likewise.
64891         * doc/posix-functions/csin.texi (csin): Likewise.
64892         * doc/posix-functions/csinf.texi (csinf): Likewise.
64893         * doc/posix-functions/csinh.texi (csinh): Likewise.
64894         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64895         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64896         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64897         * doc/posix-functions/ctan.texi (ctan): Likewise.
64898         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64899         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64900         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64901         * doc/posix-headers/complex.texi (complex.h): Likewise.
64903 2010-10-07  Jim Meyering  <meyering@redhat.com>
64905         parse-datetime: avoid compilation failure on OpenBSD 4.7
64906         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64907         This works around a compilation failure on OpenBSD 4.7:
64908         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64910 2010-10-07  Eric Blake  <eblake@redhat.com>
64912         docs: update cygwin progress
64913         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64914         1.7.6.
64915         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64916         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64917         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64918         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64919         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64920         Likewise.
64921         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64922         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64923         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64924         Likewise.
64925         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64926         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64927         Likewise.
64928         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64929         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64930         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64931         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64932         Likewise.
64933         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64934         Likewise.
64935         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64937         docs: update parse-datetime history
64938         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64939         documentation of this function's history and alternatives.
64941         cygwin: use more robust version check
64942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64943         exclude an eventual cygwin 1.9.1.
64944         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64946         (gl_FUNC_STRCASESTR): Likewise.
64947         Reported by Bruno Haible.
64949 2010-10-06  Bruno Haible  <bruno@clisp.org>
64951         string, sys_select: Avoid #including large headers unless necessary.
64952         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64953         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64954         OSF/1, BeOS, Haiku.
64955         Reported by Jim Meyering.
64957 2010-10-05  Eric Blake  <eblake@redhat.com>
64959         memmem, strstr, strcasestr: fix bug with long periodic needle
64960         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64961         periodic needle having false positive.
64962         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64963         and cygwin 1.7.7.
64964         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64966         (gl_FUNC_STRCASESTR): Likewise.
64967         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64968         * tests/test-memmem.c (main): Expose the bug.
64969         * tests/test-strcasestr.c (main): Likewise.
64970         * tests/test-strstr.c (main): Likewise.
64971         * tests/test-c-strcasestr.c (main): Likewise.
64972         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64973         * doc/posix-functions/strstr.texi (strstr): Likewise.
64974         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64975         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64977 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64979         parse-datetime: do some more renaming
64980         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64981         parse_datetime, not get_date.  Mention the renaming.
64982         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64983         in comments.
64984         * m4/bison.m4: Likewise.
64986 2010-10-05  Eric Blake  <eblake@redhat.com>
64988         parse-datetime: better name than get_date
64989         * NEWS: Reword the deprecation notice.
64990         * modules/get_date: Rename to modules/parse-datetime.
64991         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64992         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64993         * lib/get_date.y: Rename to lib/parse-datetime.y.
64994         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64995         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64996         * doc/getdate.texi: Provide fallback wrapper.
64997         * lib/getdate.h: Move guts, and wrap...
64998         * lib/parse-datetime.h: ...new file.
64999         * lib/parse-datetime.y (get_date): Rename...
65000         (parse_datetime): ...to this.
65001         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
65002         (gl_PARSE_DATETIME): ...to this.
65003         * doc/posix-functions/getdate.texi (get_date): Provide fallback
65004         documentation.
65005         * modules/getdate (Files): Provide fallback docs and header.
65006         (Notice, Depends-on): Update references.
65007         * tests/test-parse-datetime.c: Likewise.
65008         * DEPENDENCIES: Likewise.
65009         * MODULES.html.sh (Date and time <time.h>): Likewise.
65010         * doc/parse-datetime.texi (Date input formats)
65011         (Authors of parse_datetime): Likewise.
65012         * modules/parse-datetime (Files, configure.ac, Makefile.am)
65013         (Include): Likewise.
65014         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
65015         * gnulib-tool: Likewise.
65016         * m4/bison.m4 (gl_BISON): Likewise.
65017         Suggested by Bruno Haible.
65019 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65021         more ports to Solaris tr, which needs [] around ranges
65022         * gnulib-tool: Solaris tr needs [] around ranges.
65023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
65024         * tests/test-pipe-filter-gi1.c (main): Likewise.
65025         * tests/test-pipe-filter-ii1.c (main): Likewise.
65027 2010-10-05  Eric Blake  <eblake@redhat.com>
65029         bootstrap: fix Solaris regression
65030         * build-aux/bootstrap (check_versions): Solaris tr still needs []
65031         around ranges.
65032         Reported by Pádraig Brady.
65034         bootstrap: work with pkg-config
65035         * build-aux/bootstrap (check_versions): Also transliterate - in
65036         prerequisite name.
65037         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
65038         prerequisites that were already found, to avoid confusion.
65039         Reported by Justin Clift.
65041         faccessat: remove unused wrappers
65042         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
65043         presence of these wrappers dragged in -lgen on Solaris.
65044         Reported by Clemens Brogi; fix suggested by Paul Eggert.
65046 2010-10-05  Jim Meyering  <meyering@redhat.com>
65048         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
65049         * Makefile (sc_pragma_columns): New syntax-check rule.
65051 2010-10-04  Bruno Haible  <bruno@clisp.org>
65053         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
65054         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
65055         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
65056         Reported by Bruce Korb and Eric Blake.
65058 2010-10-04  Bruno Haible  <bruno@clisp.org>
65060         threadlib: Make option --with-libpth-prefix work.
65061         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
65062         use $LIBPTH, not just -lpth.
65064 2010-10-04  Bruno Haible  <bruno@clisp.org>
65066         Avoid line length limitation from HP NonStop system header files.
65067         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
65068         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
65069         * lib/ctype.in.h: Likewise.
65070         * lib/dirent.in.h: Likewise.
65071         * lib/errno.in.h: Likewise.
65072         * lib/fcntl.in.h: Likewise.
65073         * lib/float.in.h: Likewise.
65074         * lib/getopt.in.h: Likewise.
65075         * lib/iconv.in.h: Likewise.
65076         * lib/inttypes.in.h: Likewise.
65077         * lib/langinfo.in.h: Likewise.
65078         * lib/locale.in.h: Likewise.
65079         * lib/math.in.h: Likewise.
65080         * lib/netdb.in.h: Likewise.
65081         * lib/netinet_in.in.h: Likewise.
65082         * lib/poll.in.h: Likewise.
65083         * lib/pthread.in.h: Likewise.
65084         * lib/pty.in.h: Likewise.
65085         * lib/sched.in.h: Likewise.
65086         * lib/se-selinux.in.h: Likewise.
65087         * lib/search.in.h: Likewise.
65088         * lib/signal.in.h: Likewise.
65089         * lib/spawn.in.h: Likewise.
65090         * lib/stdarg.in.h: Likewise.
65091         * lib/stddef.in.h: Likewise.
65092         * lib/stdint.in.h: Likewise.
65093         * lib/stdio.in.h: Likewise.
65094         * lib/stdlib.in.h: Likewise.
65095         * lib/string.in.h: Likewise.
65096         * lib/strings.in.h: Likewise.
65097         * lib/sys_file.in.h: Likewise.
65098         * lib/sys_ioctl.in.h: Likewise.
65099         * lib/sys_select.in.h: Likewise.
65100         * lib/sys_socket.in.h: Likewise.
65101         * lib/sys_stat.in.h: Likewise.
65102         * lib/sys_time.in.h: Likewise.
65103         * lib/sys_times.in.h: Likewise.
65104         * lib/sys_utsname.in.h: Likewise.
65105         * lib/sys_wait.in.h: Likewise.
65106         * lib/sysexits.in.h: Likewise.
65107         * lib/termios.in.h: Likewise.
65108         * lib/time.in.h: Likewise.
65109         * lib/unistd.in.h: Likewise.
65110         * lib/wchar.in.h: Likewise.
65111         * lib/wctype.in.h: Likewise.
65112         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
65113         * modules/ctype (Makefile.am): Likewise.
65114         * modules/dirent (Makefile.am): Likewise.
65115         * modules/errno (Makefile.am): Likewise.
65116         * modules/fcntl-h (Makefile.am): Likewise.
65117         * modules/float (Makefile.am): Likewise.
65118         * modules/getopt-posix (Makefile.am): Likewise.
65119         * modules/iconv-h (Makefile.am): Likewise.
65120         * modules/inttypes (Makefile.am): Likewise.
65121         * modules/langinfo (Makefile.am): Likewise.
65122         * modules/locale (Makefile.am): Likewise.
65123         * modules/math (Makefile.am): Likewise.
65124         * modules/netdb (Makefile.am): Likewise.
65125         * modules/netinet_in (Makefile.am): Likewise.
65126         * modules/poll-h (Makefile.am): Likewise.
65127         * modules/pthread (Makefile.am): Likewise.
65128         * modules/pty (Makefile.am): Likewise.
65129         * modules/sched (Makefile.am): Likewise.
65130         * modules/search (Makefile.am): Likewise.
65131         * modules/selinux-h (Makefile.am): Likewise.
65132         * modules/signal (Makefile.am): Likewise.
65133         * modules/spawn (Makefile.am): Likewise.
65134         * modules/stdarg (Makefile.am): Likewise.
65135         * modules/stddef (Makefile.am): Likewise.
65136         * modules/stdint (Makefile.am): Likewise.
65137         * modules/stdio (Makefile.am): Likewise.
65138         * modules/stdlib (Makefile.am): Likewise.
65139         * modules/string (Makefile.am): Likewise.
65140         * modules/strings (Makefile.am): Likewise.
65141         * modules/sys_file (Makefile.am): Likewise.
65142         * modules/sys_ioctl (Makefile.am): Likewise.
65143         * modules/sys_select (Makefile.am): Likewise.
65144         * modules/sys_socket (Makefile.am): Likewise.
65145         * modules/sys_stat (Makefile.am): Likewise.
65146         * modules/sys_time (Makefile.am): Likewise.
65147         * modules/sys_times (Makefile.am): Likewise.
65148         * modules/sys_utsname (Makefile.am): Likewise.
65149         * modules/sys_wait (Makefile.am): Likewise.
65150         * modules/sysexits (Makefile.am): Likewise.
65151         * modules/termios (Makefile.am): Likewise.
65152         * modules/time (Makefile.am): Likewise.
65153         * modules/unistd (Makefile.am): Likewise.
65154         * modules/wchar (Makefile.am): Likewise.
65155         * modules/wctype (Makefile.am): Likewise.
65157 2010-10-04  Bruno Haible  <bruno@clisp.org>
65159         read-file tests: Avoid a test failure on NonStop Kernel.
65160         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
65161         a regular file.
65162         Reported by Joachim Schmitz <schmitz@hp.com>.
65164 2010-10-03  Bruno Haible  <bruno@clisp.org>
65166         gnulib-tool: Fixes for --create-testdir with --libtool.
65167         * gnulib-tool (func_get_automake_snippet): Don't augment
65168         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
65169         an executable.
65170         (func_create_testdir): Handle module 'alloca' like func_import.
65171         Reported by Bruce Korb <bruce.korb@gmail.com>.
65173 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65175         Avoid some lines longer than 80 characters.
65176         * lib/stdint.in.h: Break long comment lines.
65177         * lib/math.in.h: Likewise.
65178         (_GL_NUM_UINT_WORDS): New macro, for readability.
65179         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
65180         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
65181         * lib/stdlib.in.h: Likewise.
65182         * lib/spawn.in.h: Likewise.
65183         * lib/sys_socket.in.h: Update an URL.
65184         * lib/sys_stat.in.h: Break long line.
65186 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
65188         Improve pmccabe2html.
65189         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
65190         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
65191         when the sources change. Remove the line in the HTML about "Used
65192         ranges" (which implied that there might be other unused ranges),
65193         rename "Resume" to "Summary" (easier to understand for more users).
65194         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
65195         styles, and some unnecessary blank lines.
65197 2010-10-03  Bruno Haible  <bruno@clisp.org>
65198             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
65200         acl: Add support for ACLs on NonStop Kernel.
65201         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
65202         Check whether the function aclsort() exists.
65203         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
65204         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
65205         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65206         (acl_nontrivial [HAVE_ACLSORT]: New function.
65207         (file_has_acl): Implement for NonStop Kernel.
65208         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65209         (qset_acl): Implement for NonStop Kernel.
65210         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
65211         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65212         (main): Implement for NonStop Kernel.
65213         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
65214         Kernel. Handle this flavor.
65215         * tests/test-set-mode-acl.sh: Likewise.
65216         * tests/test-copy-acl.sh: Likewise.
65217         * tests/test-copy-file.sh: Likewise.
65219 2010-10-03  Bruno Haible  <bruno@clisp.org>
65221         Info about ACLs on NonStop Kernel.
65222         * doc/acl-resources.txt: Add info about NonStop Kernel.
65223         References by Joachim Schmitz <schmitz@hp.com>.
65225 2010-10-02  Bruno Haible  <bruno@clisp.org>
65227         Define missing EDQUOT on NonStop Kernel.
65228         * lib/errno.in.h (EDQUOT): Assign a value if missing.
65229         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
65230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
65231         missing.
65232         * doc/posix-headers/errno.texi: Mention the NSK bug.
65233         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
65234         Reported by Joachim Schmitz <schmitz@hp.com>.
65236 2010-10-02  Bruno Haible  <bruno@clisp.org>
65238         Update doc for POSIX:2008.
65239         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
65240         Update URL of POSIX specification.
65242 2010-10-02  Bruno Haible  <bruno@clisp.org>
65244         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
65245         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
65246         from gnulib, not from Automake.
65248 2010-10-02  Bruno Haible  <bruno@clisp.org>
65250         New module 'system-posix'.
65251         * modules/system-posix: New file.
65252         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
65253         module is present.
65254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65255         GNULIB_SYSTEM_POSIX.
65256         * modules/stdlib (Depends-on): Remove sys_wait.
65257         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
65258         * doc/posix-functions/system.texi: Mention the new module.
65259         * doc/posix-headers/stdlib.texi: Likewise.
65260         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
65261         define test_sys_wait_macros to a no-op.
65262         Reported by Sam Steingold <sds@gnu.org>.
65264 2010-09-30  Bruno Haible  <bruno@clisp.org>
65266         More renaming from 'getdate' to 'get_date'.
65267         * doc/get_date.texi: Renamed from doc/getdate.texi.
65268         * modules/get_date (Files): Update.
65269         * MODULES.html.sh (Date and time <time.h>): Update.
65270         * DEPENDENCIES: Update.
65271         * gnulib-tool: Update comment.
65272         * m4/bison.m4 (gl_BISON): Likewise.
65273         * m4/get_date.m4 (gl_GET_DATE): Likewise.
65275 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
65277         bootstrap: support ACLOCAL_FLAGS during aclocal
65278         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
65279         can add additional -I dir for third-party .m4 files.
65281 2010-09-30  Eric Blake  <eblake@redhat.com>
65283         bootstrap: use glibtoolize on MacOS
65284         * build-aux/bootstrap (check_versions): Convert libtool into
65285         libtoolize.
65286         (tool search): Move libtool check earlier, and look for
65287         glibtoolize for MacOS.
65288         (gnulib_tool_options): Auto-add --libtool when appropriate.
65289         Reported by Justin Clift.
65291         poll: fix typo that broke test on MacOS
65292         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
65293         Reported by Justin Clift.
65295         getdate: rename to get_date
65296         Note: getdate.h is not renamed, to minimize client impact.
65297         * modules/getdate: Mark obsolete.  Move old contents...
65298         * modules/get_date: ...to new module name.
65299         * modules/getdate-tests: Move...
65300         * modules/get_date-tests: ...here.
65301         * m4/getdate.m4: Move...
65302         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
65303         * lib/getdate.y: Move...
65304         * lib/get_date.y: ...here.
65305         * tests/test-getdate.c: Move...
65306         * tests/test-get_date.c: ...here.
65307         * doc/posix-functions/getdate.texi (getdate): Update name.
65308         * NEWS: Mention the change.
65310 2010-09-29  Bruno Haible  <bruno@clisp.org>
65312         Separate the module 'waitpid' from the module 'sys_wait'.
65313         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
65314         present.
65315         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
65316         gl_MODULE_INDICATOR_FOR_TESTS.
65317         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
65318         * modules/sys_wait (Depends-on): Remove waitpid.
65319         (Makefile.am): Substitute GNULIB_WAITPID.
65320         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
65321         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
65322         signature only if the 'waitpid' module is present.
65323         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
65324         * NEWS: Mention the change.
65325         * modules/grantpt (Depends-on): Add waitpid.
65326         * modules/wait-process (Depends-on): Likewise.
65328 2010-09-29  Bruno Haible  <bruno@clisp.org>
65330         More tests for module 'sys_wait'.
65331         * modules/sys_wait-c++-tests: New file.
65332         * tests/test-sys_wait-c++.cc: New file.
65333         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
65334         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65336 2010-09-29  Bruno Haible  <bruno@clisp.org>
65338         New module 'waitpid'.
65339         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
65340         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
65341         Don't include <process.h>.
65342         (waitpid): Declare only, using modern idiom.
65343         * m4/waitpid.m4: New file.
65344         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
65345         * modules/waitpid: New file.
65346         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
65347         (Makefile.am): Update.
65348         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65350 2010-09-28  Bruno Haible  <bruno@clisp.org>
65352         poll: Assume ANSI C.
65353         * lib/poll.c (poll): Use an ANSI C declaration.
65355 2010-09-28  Bruno Haible  <bruno@clisp.org>
65357         poll-h: Create poll.h on all platforms.
65358         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
65359         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
65360         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
65361         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
65362         (gl_REPLACE_POLL_H): Don't set POLL_H.
65363         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
65364         * modules/poll-h (Depends-on): Add include_next.
65365         (Makefile.am): Create poll.h unconditionally. Substitute also
65366         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
65368 2010-09-28  Bruno Haible  <bruno@clisp.org>
65370         Tests for module 'poll-h'.
65371         * modules/poll-h-c++-tests: New file.
65372         * tests/test-poll-h-c++.cc: New file.
65374         Tests for module 'poll-h'.
65375         * modules/poll-h-tests: New file.
65376         * tests/test-poll-h.c: New file.
65378 2010-09-28  Bruno Haible  <bruno@clisp.org>
65380         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
65381         * modules/poll-h (Depends-on): Add 'extensions'.
65383 2010-09-28  Bruno Haible  <bruno@clisp.org>
65385         New module 'poll-h'.
65386         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
65387         (poll): Use modern idiom.
65388         * modules/poll-h: New file.
65389         * modules/poll (Files): Remove lib/poll.in.h.
65390         (Depends-on): Add poll-h.
65391         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
65392         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
65393         * m4/poll_h.m4: New file.
65394         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
65395         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
65396         and invoke gl_REPLACE_POLL_H.
65397         * lib/poll.c: Use common idiom.
65398         * tests/test-poll.c: Likewise.
65399         * doc/posix-headers/poll.texi: Mention the poll-h module.
65400         Suggested by Eric Blake.
65402 2010-09-26  Bruno Haible  <bruno@clisp.org>
65404         sys_wait: Implement WSTOPSIG.
65405         * lib/sys_wait.in.h (WSTOPSIG): New macro.
65406         Reported by Simon Josefsson.
65408 2010-09-26  Simon Josefsson  <simon@josefsson.org>
65410         stdlib, sys_wait: Avoid compilation error on mingw.
65411         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
65413 2010-09-26  Bruno Haible  <bruno@clisp.org>
65415         stdlib tests: Avoid code duplication.
65416         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
65417         * modules/sys_wait-tests (Files): Likewise.
65418         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
65419         * tests/test-stdlib.c: Include test-sys_wait.h.
65420         (main): Invoke test_sys_wait_macros.
65421         * tests/test-sys_wait.c: Include test-sys_wait.h.
65422         (main): Invoke test_sys_wait_macros.
65424 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65426         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65427         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65428         sure Windows sockets are working before calling getaddrinfo.
65429         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65430         * doc/gnulib.texi (Windows sockets): Fix typo.
65432 2010-09-25  Bruno Haible  <bruno@clisp.org>
65434         Tests for module 'regex-quote'.
65435         * modules/regex-quote-tests: New file.
65436         * tests/test-regex-quote.c: New file.
65438         New module 'regex-quote'.
65439         * lib/regex-quote.h: New file.
65440         * lib/regex-quote.c: New file.
65441         * modules/regex-quote: New file.
65442         Suggested by Reuben Thomas <rrt@sc3d.org>.
65444 2010-09-24  Bruno Haible  <bruno@clisp.org>
65446         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65447         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65449 2010-09-23  Bruno Haible  <bruno@clisp.org>
65451         setenv: Relax license.
65452         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65453         Blake.
65454         Requested by Eric Blake.
65456 2010-09-22  Bruno Haible  <bruno@clisp.org>
65458         termios: Relax license.
65459         * modules/termios (License): Change to LGPLv2+.
65460         Requested by Eric Blake.
65462 2010-09-22  Bruno Haible  <bruno@clisp.org>
65464         threadlib: Allow the package to change the default to 'no'.
65465         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65466         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65467         Reported by Paul Eggert.
65469 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65470             Bruno Haible  <bruno@clisp.org>
65472         Fix endless loop in mbmemcasecoll.
65473         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65474         byte.
65475         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65477 2010-09-22  Bruno Haible  <bruno@clisp.org>
65479         Tests for module 'memcoll'.
65480         * modules/memcoll-tests: New file.
65481         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65483         memcoll, xmemcoll: Clarify size vs. length.
65484         * modules/memcoll.c (memcoll0): Clarify specification.
65485         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65486         passed to collate_error.
65488 2010-09-22  Bruno Haible  <bruno@clisp.org>
65490         Tests for module 'memcasecmp'.
65491         * modules/memcasecmp-tests: New file.
65492         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65494 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65496         * lib/pthread.in.h: Add split double-inclusion guard, and include
65497         system <pthread.h> if there is one.  Use @@-style as in other
65498         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65499         pthread.h doesn't.
65500         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65501         (pthread_mutexattr_settype, pthread_mutex_trylock):
65502         New static inline functions, if there's no system <pthread.h>.
65503         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65504         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65505         Approximate with mutexes if the system lacks spinlocks, as in
65506         MacOS.
65507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65508         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65509         @@-style.  Check for spinlocks separately.
65510         (gl_PTHREAD_DEFAULTS): New macro.
65511         * modules/pthread: Redo to use a more typical style for in.h files.
65513 2010-09-21  Eric Blake  <eblake@redhat.com>
65515         net_if: enhance tests
65516         * tests/test-net_if.c (main): Move signature checks earlier.
65517         Print failures to stderr.
65518         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65519         Document the bug that we do not yet fix.
65521 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65523         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65524         about gnulib, not GSS.
65526 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65528         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65529         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65530         for Emacs.
65531         * build-aux/pmccabe2html: Make Makefile.am example code more
65532         cut-and-paste friendly.
65534 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65536         * tests/test-net_if.c: New file.
65537         * modules/net_if-tests: New file.
65539 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65541         pthread: add pthread_spin_destroy
65542         * lib/pthread.in.h (pthread_spin_destroy): New function.
65544 2010-09-19  Bruno Haible  <bruno@clisp.org>
65546         gnulib-tool: Fix --help output.
65547         * gnulib-tool (func_usage): Fix help message.
65548         Reported by Reuben Thomas <rrt@sc3d.org>.
65550 2010-09-18  Jim Meyering  <meyering@redhat.com>
65552         maint.mk: avoid unexpanded \n in two diagnostics
65553         * top/maint.mk (sc_prohibit_always_true_header_tests):
65554         Don't use a literal \n in a halt=... assignment.  It would not be
65555         expanded, and the two \n bytes would appear in the diagnostic output
65556         rather than the desired newline.  Use halt=$$(printf ... instead.
65557         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65559 2010-09-18  Bruno Haible  <bruno@clisp.org>
65561         netinet_in: Doc tweak.
65562         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65563         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65565 2010-09-18  Jim Meyering  <meyering@redhat.com>
65567         init.sh: correct an outdated comment
65568         * tests/init.sh (create_exe_shims_):  s/function/alias/
65570         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65571         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65572         a file named "*.exe" is removed between the glob expansion and the
65573         processing of that oddly named file.
65575 2010-09-17  Eric Blake  <eblake@redhat.com>
65577         mirbsd: add some more support
65578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65579         in BSD family.
65580         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65581         devices as OpenBSD.
65582         * m4/host-os.m4 (mirbsd): Add MirBSD.
65584         tests: fix unportable assumption on sys/wait.h
65585         * tests/test-sys_wait.c (main): Relax test.
65586         * tests/test-stdlib.c (main): Likewise.
65588         init.sh: accommodate directory with no .exes
65589         * tests/init.sh: Accomodate directory containing only scripts.
65591         tests: avoid compiler warning
65592         * tests/test-stdlib.c (main): Use the variable.
65594         fdutimens, fdutimensat: update signature, again
65595         * lib/utimens.h (gl_futimens): Delete, and move signature...
65596         (fdutimens): ...here.
65597         (fdutimensat): Rearrange signature.
65598         (lutimensat): Rename variable for clarity.
65599         * lib/fdutimensat.c (fdutimensat): Update signature.
65600         * lib/utimens.c (fdutimens): Likewise.
65601         (gl_futimens): Delete.
65602         (utimens, lutimens): Update callers.
65603         * lib/futimens.c (futimens): Likewise.
65604         * tests/test-fdutimensat.c: Likewise.
65605         * tests/test-utimens.c: Likewise.
65606         * tests/test-futimens.h: Update comment.
65607         * NEWS: Mention this.
65608         Suggested by Paul Eggert.
65610 2010-09-17  Bruno Haible  <bruno@clisp.org>
65612         Take over the maintenance of some older macros from Autoconf.
65613         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65614         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65615         GNU Autoconf.
65616         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65617         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65619 2010-09-17  Eric Blake  <eblake@redhat.com>
65621         fdutimensat: drop atflag validation
65622         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65623         with valid fd, to close a race scenario where futimens is
65624         unsupported and FILE was replaced by a symlink.
65625         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65626         accordingly.
65627         Suggested by Paul Eggert.
65629 2010-09-16  Bruno Haible  <bruno@clisp.org>
65631         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65632         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65634 2010-09-16  Bruno Haible  <bruno@clisp.org>
65636         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65637         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65638         login_tty exists.
65639         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65641 2010-09-16  Bruno Haible  <bruno@clisp.org>
65643         login_tty: Make the replacement code work on BSD systems.
65644         * lib/login_tty.c: Include <sys/ioctl.h>.
65645         (login_tty): Use ioctl TIOCSCTTY when available.
65646         * modules/login_tty (Depends-on): Add sys_ioctl.
65647         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65649 2010-09-16  Bruno Haible  <bruno@clisp.org>
65651         login_tty: Stricter unit test.
65652         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65653         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65654         and tcgetsid() after login_tty.
65655         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65657 2010-09-16  Bruno Haible  <bruno@clisp.org>
65659         New module 'tcgetsid'.
65660         * lib/tcgetsid.c: New file.
65661         * m4/tcgetsid.m4: New file.
65662         * modules/tcgetsid: New file.
65663         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65664         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65665         GNULIB_TCGETSID, HAVE_TCGETSID.
65666         * lib/termios.in.h: Include <sys/types.h>.
65667         (tcgetsid): New declaration.
65668         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65669         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65670         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65671         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65673 2010-09-16  Bruno Haible  <bruno@clisp.org>
65675         Tests for module 'termios'.
65676         * modules/termios-c++-tests: New file.
65677         * modules/termios-tests: New file.
65678         * tests/test-termios-c++.cc: New file.
65679         * tests/test-termios.c: New file.
65681         New module 'termios'.
65682         * modules/termios: New file.
65683         * lib/termios.in.h: New file.
65684         * m4/termios_h.m4: New file.
65685         * doc/posix-headers/termios.texi: Mention the new module.
65687 2010-09-16  Eric Blake  <eblake@redhat.com>
65689         fdutimensat: add an atflag parameter
65690         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65691         * lib/utimens.h (fdutimensat): Update prototype.
65692         * tests/test-fdutimensat.c: Adjust test to match.
65693         * NEWS: Document the change.
65694         Suggested by Paul Eggert.
65696 2010-09-16  Bruno Haible  <bruno@clisp.org>
65698         Fix typos in comments.
65699         * lib/striconveh.h: Fix typo in comment.
65700         * lib/login_tty.c (login_tty): Likewise.
65702 2010-09-15  Bruno Haible  <bruno@clisp.org>
65704         stdlib: clarify MirBSD WEXITSTATUS bug
65705         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65706         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65708 2010-09-15  Eric Blake  <eblake@redhat.com>
65710         stdlib: work around MirBSD WEXITSTATUS bug
65711         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65712         * modules/stdlib (Depends-on): Add sys_wait.
65713         * tests/test-sys_wait.c (main): Enhance test.
65714         * tests/test-stdlib.c (main): Likewise.
65715         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65717         docs: mention MacOS issue with WEXITSTATUS(constant)
65718         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65719         issue.
65720         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65722         strnlen: add tests
65723         * modules/strnlen-tests: New file.
65724         * tests/test-strnlen.c: Likewise.
65726 2010-09-14  Bruno Haible  <bruno@clisp.org>
65728         unistr/base: Avoid link errors when module 'libunistring' is also used.
65729         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65730         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65731         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65732         Declare also when HAVE_LIBUNISTRING is set.
65733         Reported by Pádraig Brady <P@draigbrady.com>.
65735 2010-09-14  Eric Blake  <eblake@redhat.com>
65737         test-rawmemchr: make more robust
65738         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65739         (Depends-on, configure.ac): Add needed prerequisites to use it.
65740         * modules/memchr-tests (Files, Depends-on, configure.ac):
65741         Likewise, to avoid implicit reliance on memchr module prereqs.
65742         * tests/test-memchr.c (main): Ensure proper masking.
65743         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65744         reads.
65746         memchr: detect glibc Alpha bug
65747         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65748         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65749         Alpha.
65750         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65751         * tests/test-memchr.c (main): Enhance test.
65752         Reported by Nelson H. F. Beebe.
65754 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65756         fts, getcwd, glob: audit for dirfd returning -1
65757         * lib/fts.c (opendir): Remove #define; no longer used.
65758         (opendirat): New arg PDIR_FD.  All callers changed.
65759         (fts_build, _opendir2): Use new opendirat to avoid the need for
65760         dirfd, or for checking whether dirfd returns a negative value.
65761         Don't use opendir; always use openat followed by fdopendir.
65762         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65763         it.
65764         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65765         returns -1 here.
65766         * modules/fts (Depends-on): Remove dirfd.
65767         * modules/getcwd (Depends-on): Likewise.
65769 2010-09-13  Eric Blake  <eblake@redhat.com>
65771         float: fix broken MirBSD header
65772         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65773         * doc/posix-headers/float.texi (float.h): Document it.
65775 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65777         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65778         * lib/fts.c (opendirat): New arg extra_flags.
65779         (__opendir2): Use it to avoid following symlinks when opening
65780         a directory, if symlinks are not supposed to be followed.  See
65781         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65783         fdopendir: preserve argument fd before returning
65784         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65785         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65786         (fdopendir): Use them, arranging for FD to be open to the same
65787         directory that it was when it started.  (It might be temporarily
65788         closed while fdopendir is running, so this not thread- or
65789         signal-safe.)  Be careful to do the right thing even when file
65790         descriptors are scarce and dup fails with errno == EMFILE.  See
65791         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65793 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65795         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65796         * NEWS: Document change.
65797         * m4/regex.m4: Disable test for regoff_t size.
65799 2010-09-13  Jim Meyering  <meyering@redhat.com>
65801         fts: don't operate on an invalid file descriptor after failed dup
65802         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65803         negative file descriptor.
65805 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65807         savedir: add streamsavedir, deprecate fdsavedir
65808         * NEWS: Mention deprecation of fdsavedir.
65809         * lib/savedir.c (streamsavedir): New extern function, whose name
65810         ends in "savedir" to be consistent with the others.  This differs
65811         from savedirstream in that it doesn't close its argument.  The
65812         next version of GNU tar will use this instead of fdsavedir, to
65813         avoid some race conditions and conserve file descriptors.
65814         (savedirstream): Reimplement as a wrapper around streamsavedir.
65815         (fdsavedir): Add a comment deprecating this function.  As far as
65816         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65817         * lib/savedir.h (streamsavedir): New decl.
65818         (fdsavedir): Add a comment deprecating this.
65820 2010-09-10  Bruno Haible  <bruno@clisp.org>
65822         langinfo: Fix last commit.
65823         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65824         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65827 2010-09-10  Bruno Haible  <bruno@clisp.org>
65829         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65830         * lib/progreloc.c (O_EXEC): Define fallback.
65832 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65834         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65835         * NEWS: Document recent changes to fcntl-h.
65836         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65837         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65838         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65839         Similarly for O_SEARCH; this last was already true, but not documented.
65840         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65841         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65842         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65843         Likewise.
65844         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65845         is zero, not whether it is defined.
65846         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65847         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65848         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65850 2010-09-10  Bruno Haible  <bruno@clisp.org>
65852         langinfo, nl_langinfo: Fix for IRIX 5.3.
65853         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65854         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65855         HAVE_LANGINFO_YESEXPR.
65856         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65857         HAVE_LANGINFO_YESEXPR.
65858         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65859         HAVE_LANGINFO_T_FMT_AMPM is 0.
65860         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65861         HAVE_LANGINFO_YESEXPR is 0.
65862         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65863         NOEXPR.
65864         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65865         * doc/posix-functions/nl_langinfo.texi: Likewise.
65866         Reported by Eric Blake.
65868 2010-09-10  Bruno Haible  <bruno@clisp.org>
65870         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65871         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65872         on FreeBSD 8.0 and OpenBSD 4.6.
65873         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65874         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65875         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65876         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65877         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65878         ac_includes_default.
65879         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65881 2010-09-09  Eric Blake  <eblake@redhat.com>
65883         strsignal: work around NetBSD bug
65884         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65885         * lib/string.in.h (includes): Likewise.
65886         * doc/posix-functions/strsignal.texi (strsignal): Document the
65887         bug.
65888         Reported by Nelson H. F. Beebe.
65890         gnulib-tool: work with NetBSD /bin/sh
65891         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65892         (func_get_description, func_get_comment, func_get_status)
65893         (func_get_notice, func_get_applicability, func_get_filelist)
65894         (func_get_dependencies, func_get_autoconf_early_snippet)
65895         (func_get_autoconf_snippet, func_get_automake_snippet)
65896         (func_get_include_directive, func_get_link_directive)
65897         (func_get_license, func_get_maintainer, func_import): Avoid
65898         shell syntax errors from parsing syntax extensions.
65900 2010-09-09  Bruno Haible  <bruno@clisp.org>
65902         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65903         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65904         a reliable way to determine whether the 'alias' command works.
65906 2010-09-08  Jim Meyering  <meyering@redhat.com>
65908         init.sh: penalize a set-x-impaired shell; don't disqualify it
65909         * tests/init.sh: Too many shells corrupt application stderr when
65910         you set -x, so we can't afford to disqualify them, since at least
65911         on Irix-6.5, that would disqualify all bourne shells.
65912         Instead, use a two-pass approach.
65913         On the first pass, try to find a shell that meets the stricter
65914         condition that set -x does not corrupt stderr.
65915         If no shell meets the stricter condition, retest each candidate
65916         shell, but without that extra condition.  Finally, when
65917         VERBOSE=yes is requested and set -x might cause trouble, simply
65918         issue a warning and refrain from enabling debug output.
65920 2010-09-08  Eric Blake  <eblake@redhat.com>
65922         unsetenv: fix OpenBSD bug
65923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65924         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65925         documentation.
65926         Reported by Jim Meyering.
65928         strtod: work around IRIX 6.5 bug
65929         * lib/strtod.c (strtod): Reparse number on shorter string if
65930         exponent parse was invalid.
65931         * tests/test-strtod.c (main): Add check for "0x1p 2".
65932         Reported by Tom G. Christensen.
65934         getopt: optimize previous patch
65935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65936         empty variable.  Speed up awk script.
65937         Reported by Paolo Bonzini.
65939 2010-09-08  Jim Meyering  <meyering@redhat.com>
65941         test.sh: disqualify shells for which set -x corrupts stderr
65942         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65943         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65944         appear in stderr output.  For example, this command:
65945             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65946         prints "P=1" on those two systems:
65948 2010-09-08  Bruno Haible  <bruno@clisp.org>
65950         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65951         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65952         commands, because some shells ignore redirections when there is an
65953         error in the command lookup.
65954         Reported by Eric Blake.
65956 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65958         * lib/regex.h: Fix a mention of `regex_compile' (should be
65959         `re_compile_pattern').
65960         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65961         (re_set_registers): Correct name of parameter in comment.
65963         * doc/regex.texi: Add documentation for missing syntax flags.
65964         Remove commented-out documentation of defunct syntax option
65965         RE_NO_EMPTY_ALTS.
65966         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65967         Add documentation of re_set_registers.
65968         Document trick to re-use a pattern buffer by setting fastmap manually.
65969         Update documentation of struct re_pattern_buffer per public members.
65970         Uncomment documentation of equivalence class operators and
65971         collating symbol operators, since they are now implemented,
65972         Explain leftmost-longest matching in relation to alternatives.
65973         Tidy documentation of substring matching.
65974         Remove POSIX documentation, which is done better in
65975         glibc, and refer the reader there. Keep BSD API documentation, as
65976         that is not readily available elsewhere.
65978 2010-09-07  Eric Blake  <eblake@redhat.com>
65980         getopt: handle POSIXLY_CORRECT set but not exported
65981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65982         export state of POSIXLY_CORRECT, due to bash set -o posix.
65983         Reported by Dustin J. Mitchell.
65985 2010-09-05  Bruno Haible  <bruno@clisp.org>
65987         gnulib-tool: Highlight the changed options.
65988         * gnulib-tool (func_usage): Display the --import, --add-import,
65989         --remove-import explanations in bold font.
65991 2010-09-06  Karl Berry  <karl@gnu.org>
65993         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65995 2010-09-05  Bruno Haible  <bruno@clisp.org>
65997         uniwidth/width: Update comment.
65998         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65999         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
66001 2010-09-05  Bruno Haible  <bruno@clisp.org>
66003         isinf, isnan: Relax license.
66004         * modules/isinf (License): Change from GPL to LGPL, with consent from
66005         Ben Pfaff.
66006         * modules/isnan (License): Likewise.
66007         Requested by Ludovic Courtès.
66009 2010-09-04  Bruno Haible  <bruno@clisp.org>
66011         gnulib-tool: Help migration from --import to --add-import or --update.
66012         * gnulib-tool: Emit a verbose error message when --import is used
66013         without any module name.
66015 2010-09-04  Bruno Haible  <bruno@clisp.org>
66017         Update doc about gnulib-tool.
66018         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
66019         'gnulib-tool --update' in more detail.
66020         Reported by Eric Blake.
66022 2010-09-04  Bruno Haible  <bruno@clisp.org>
66024         gnulib-tool: Change --import. New options --add/remove-import.
66025         * gnulib-tool: New options --add-import, --remove-import.
66026         (func_usage): Document them.
66027         (have_associative): Define always.
66028         (func_import): In import mode, don't merge the specified settings with
66029         the cached settings. Implement remove-import mode.
66030         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
66031         Explain when to use them versus --import.
66032         (Simple update): Use --add-import instead of --import.
66033         * NEWS: Mention the change.
66035 2010-09-04  Bruno Haible  <bruno@clisp.org>
66037         * doc/gnulib-tool.texi (Initial import): Update paragraph about
66038         separate gnulib.mk.
66040 2010-09-04  Bruno Haible  <bruno@clisp.org>
66042         gnulib-tool: Don't talk about CVS any more.
66043         * gnulib-tool (func_usage, func_import): Write "version control"
66044         instead of CVS.
66046 2010-09-04  Jim Meyering  <meyering@redhat.com>
66048         maint.mk: avoid obscure sc_copyright_check failure in coreutils
66049         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
66050         false positives (whose names may be ill-chosen) when searching
66051         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
66052         would cause a false-positive.
66054         avoid coreutils "make distcheck" failure
66055         Coreutils tests with an absolute build directory name that contains
66056         a space.  Not quoting this directory name caused a failure.
66057         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
66058         * tests/test-vc-list-files-cvs.sh: Likewise.
66060 2010-09-04  Bruno Haible  <bruno@clisp.org>
66062         gnulib-tool: Avoid error when run in a package without Makefile.am.
66063         * gnulib-tool: When collecting the m4dirs in a package that does not
66064         have a Makefile.am, eliminate those directories that contain no
66065         gnulib-cache.m4. Fix expression that counts these directories.
66067 2010-09-04  Bruno Haible  <bruno@clisp.org>
66069         update-copyright test: Improve output when perl is missing or too old.
66070         * tests/test-update-copyright.sh: Move test of Perl version down after
66071         the test whether Perl exists. Provide an explanation relating Perl's
66072         error message to Automake's SKIP: message.
66074 2010-09-04  Bruno Haible  <bruno@clisp.org>
66076         Don't augment PATH in TESTS_ENVIRONMENT.
66077         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
66078         set abs_aux_dir instead of augmenting PATH.
66079         * modules/vc-list-files-tests (Makefile.am): Likewise.
66080         * tests/test-update-copyright.sh: Augment PATH here.
66081         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
66082         path_prepend_.
66083         * tests/test-vc-list-files-git.sh: Likewise.
66085 2010-09-04  Jim Meyering  <meyering@redhat.com>
66087         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
66088         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
66090 2010-09-04  Bruno Haible  <bruno@clisp.org>
66092         strdup: Fix compilation error in C++ mode.
66093         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
66094         the macro.
66096 2010-09-04  Bruno Haible  <bruno@clisp.org>
66098         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
66099         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
66100         macro into a function.
66101         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66103 2010-09-04  Bruno Haible  <bruno@clisp.org>
66105         Set PATH_SEPARATOR the same way autoconf does.
66106         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
66107         the value of PATH_SEPARATOR the same way autoconf-generated configure
66108         scripts do.
66109         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
66110         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66112 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
66114         Set PATH_SEPARATOR the same way autoconf does.
66115         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
66116         the same way autoconf-generated configure scripts do.
66117         * posix-modules: Likewise.
66119 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66121         hash: fix safe_hasher const typo
66122         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
66123         const; otherwise, there is a type error later.
66125 2010-09-02  Jim Meyering  <meyering@redhat.com>
66127         test-update-copyright.sh: require perl 5.8.0
66128         * tests/test-update-copyright.sh: Require 5.8.0,
66129         which Tom G. Christensen has confirmed is adequate,
66130         while 5.6.1 is not.
66132 2010-09-02  Eric Blake  <eblake@redhat.com>
66134         tests: init.sh improvements for re-exec'ing with zsh
66135         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
66136         -vx through shell re-exec.
66137         Reported by Tom G. Christensen.
66139         wctype: fix typo in previous commit
66140         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
66141         Reported by Ludovic Courtès.
66143 2010-09-02  Jim Meyering  <meyering@redhat.com>
66145         test-update-copyright.sh: skip test if Perl is too old
66146         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
66147         Reported by Tom G. Christensen.
66149 2010-09-02  Bruno Haible  <bruno@clisp.org>
66151         wctype: Avoid compilation error on IRIX 6.5.30.
66152         * lib/wctype.in.h (iswblank): Declare with a replacement if
66153         REPLACE_ISWBLANK is set.
66154         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
66155         declared. Set REPLACE_ISWBLANK.
66156         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
66157         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
66158         * doc/posix-headers/wctype.texi: Likewise.
66159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66161 2010-09-01  Bruno Haible  <bruno@clisp.org>
66163         New module 'socketlib'.
66164         * modules/socketlib: New file.
66165         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
66166         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
66167         * modules/sockets (Depends-on): Add socketlib.
66168         Suggested by Sam Steingold <sds@gnu.org>.
66170 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66172         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
66174         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
66175         when one needs search access to a directory but not read access.
66176         On systems where it is available, it works in some cases where
66177         O_RDONLY does not, namely on directories that are searchable but
66178         not readable, and which need only to be searchable.  If O_SEARCH
66179         is not available, fall back to the traditional method of using
66180         O_RDONLY.
66182         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
66183         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
66184         when opening a directory that needs only to be searchable.
66185         * lib/chdir-safer.c (chdir_no_follow): Likewise.
66186         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
66187         * lib/openat-proc.c (openat_proc_name): Likewise.
66188         * lib/openat.c (openat_needs_fchdir): Likewise.
66189         * lib/save-cwd.c (save_cwd): Likewise.
66190         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
66192 2010-08-28  Bruno Haible  <bruno@clisp.org>
66194         New module 'host-cpu-c-abi'.
66195         * modules/host-cpu-c-abi: New file.
66196         * m4/host-cpu-c-abi.m4: New file, based on part of
66197         clisp/src/m4/general.m4.
66198         Requested by Sam Steingold <sds@gnu.org>.
66200 2010-08-31  Eric Blake  <eblake@redhat.com>
66201         and Jim Meyering  <meyering@redhat.com>
66203         hash: factor, and guard against misbehaving hasher function
66204         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
66205         of table->hasher's return value.  Also protect against a hash value
66206         so large that adding it to table->bucket results in a NULL pointer.
66207         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
66208         Use it in place of open-coded check-and-abort.
66210 2010-08-30  Bruno Haible  <bruno@clisp.org>
66212         hash: silence spurious clang warning
66213         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
66214         Reported by Eric Blake.
66216 2010-08-30  Eric Blake  <eblake@redhat.com>
66218         strstr, memmem, strcasestr: avoid leaked shell message
66219         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
66220         FreeBSD.
66221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66224         tests: silence clang warning
66225         * tests/test-malloca.c (do_allocation): Avoid dead store.
66227 2010-08-29  Bruno Haible  <bruno@clisp.org>
66229         gettext: Fix recent mistake.
66230         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
66232 2010-08-29  Bruno Haible  <bruno@clisp.org>
66234         selinux-h: Offer a --without-selinux option.
66235         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
66236         --without-selinux was specified, skip all tests and define
66237         HAVE_SELINUX_SELINUX_H to 0.
66238         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
66239         set LIB_SELINUX to empty.
66240         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
66241         gl_LIBSELINUX. If --without-selinux was specified, replace
66242         selinux/context.h.
66243         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
66245 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66246             Bruno Haible  <bruno@clisp.org>
66248         Make the module 'realloc-gnu' work again on AIX and OSF/1.
66249         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
66250         of HAVE_REALLOC.
66251         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
66252         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
66253         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
66254         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66256 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66257             Bruno Haible  <bruno@clisp.org>
66259         Make the module 'calloc-gnu' work again on AIX and OSF/1.
66260         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
66261         HAVE_CALLOC.
66262         * lib/xmalloc.c: Update accordingly.
66263         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
66264         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
66265         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
66267 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66268             Bruno Haible  <bruno@clisp.org>
66270         Make the module 'malloc-gnu' work again on AIX and OSF/1.
66271         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
66272         HAVE_MALLOC.
66273         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
66274         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
66275         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66277 2010-08-29  Bruno Haible  <bruno@clisp.org>
66279         Update modules list.
66280         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66281         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
66282         (String handling <string.h>): Add astrxfrm.
66283         (File system functions): Add readlinkat.
66285 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66287         Tests for module 'realloc-gnu'.
66288         * modules/realloc-gnu-tests: New file.
66289         * tests/test-realloc-gnu.c: New file.
66291         Tests for module 'calloc-gnu'.
66292         * modules/calloc-gnu-tests: New file.
66293         * tests/test-calloc-gnu.c: New file.
66295         Tests for module 'malloc-gnu'.
66296         * modules/malloc-gnu-tests: New file.
66297         * tests/test-malloc-gnu.c: New file.
66299 2010-08-28  Bruno Haible  <bruno@clisp.org>
66301         Rename module 'realloc' -> 'realloc-gnu'.
66302         * modules/realloc-gnu: New file, copied from modules/realloc.
66303         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
66304         obsolete.
66305         * modules/mgetgroups (Depends-on): Update.
66306         * doc/posix-functions/realloc.texi: Update.
66307         * NEWS: Mention the change.
66309         Rename module 'calloc' -> 'calloc-gnu'.
66310         * modules/calloc-gnu: New file, copied from modules/calloc.
66311         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
66312         obsolete.
66313         * doc/posix-functions/calloc.texi: Update.
66314         * NEWS: Mention the change.
66316         Rename module 'malloc' -> 'malloc-gnu'.
66317         * modules/malloc-gnu: New file, copied from modules/malloc.
66318         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
66319         obsolete.
66320         * modules/argp (Depends-on): Update.
66321         * modules/regex (Depends-on): Update.
66322         * doc/posix-functions/malloc.texi: Update.
66323         * NEWS: Mention the change.
66325 2010-08-28  Eric Blake  <eblake@redhat.com>
66327         pread, pwrite: add missing dependency
66328         * modules/pread (Depends-on): Add extensions.
66329         * modules/pwrite (Depends-on): Likewise.
66331 2010-08-28  Bruno Haible  <bruno@clisp.org>
66333         unistr/u*-strchr: Fix tests dependencies.
66334         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
66335         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
66336         Reported by Ian Beckwith <ianb@erislabs.net>.
66338 2010-08-28  Bruno Haible  <bruno@clisp.org>
66340         read-file: Don't occupy too much unused memory.
66341         * lib/read-file.c (fread_file): Shrink the buffer at the end.
66343 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
66344             Eric Blake  <eblake@redhat.com>
66345             Bruno Haible  <bruno@clisp.org>
66347         read-file: Avoid memory reallocations with regular files.
66348         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
66349         (fread_file): With regular files, use the remaining length as the
66350         initial buffer size.  Check against overflow.
66351         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
66352         sys_stat.
66354 2010-08-28  Bruno Haible  <bruno@clisp.org>
66356         ftello: Relax license.
66357         * modules/ftello (License): Relax to LGPLv2+.
66358         Reported by Eric Blake.
66360 2010-08-28  Bruno Haible  <bruno@clisp.org>
66362         Avoid relocwrapper link errors due to gnulib replacement functions.
66363         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
66364         function.
66365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66367 2010-08-28  Bruno Haible  <bruno@clisp.org>
66369         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
66370         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
66371         defined.
66372         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
66373         Suggested by Eric Blake.
66375 2010-08-28  Bruno Haible  <bruno@clisp.org>
66377         sys_socket, netdb: Ensure socklen_t gets defined.
66378         * modules/sys_socket (Depends-on): Add socklen.
66379         * modules/netdb (Depends-on): Likewise.
66380         * modules/getaddrinfo (Depends-on): Remove socklen.
66381         * modules/getsockopt (Depends-on): Likewise.
66382         * modules/setsockopt (Depends-on): Likewise.
66383         * tests/test-sys_socket.c: Check that socklen_t is defined.
66384         * tests/test-netdb.c: Likewise.
66385         * m4/socklen.m4: Update comments.
66386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66388 2010-08-27  Eric Blake  <eblake@redhat.com>
66390         login_tty: add missing dependency
66391         * modules/login_tty (Depends-on): Add pty.
66393 2010-08-26  Eric Blake  <eblake@redhat.com>
66395         lib-symbol-versions: fix m4 quoting
66396         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
66397         format for AC_LINK_IFELSE.
66399         glob: fix compile test
66400         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
66402         btowc: fix missing file
66403         * modules/btowc (Files): Also ship locale-fr.m4.
66405         lseek: fix link test
66406         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
66407         AC_LINK_IFELSE.
66409         include_next: silence autoconf 2.68 warning
66410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
66411         AC_COMPILE_IFELSE as special.
66412         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
66413         autoconf < 2.68.
66415         acl: fix compilation test
66416         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
66417         AC_COMPILE_IFELSE.
66419 2010-08-26  Bruno Haible  <bruno@clisp.org>
66421         Modernize AC_TRY_RUN invocations.
66422         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66423         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66424         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66425         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66426         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66427         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66430         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66431         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66432         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66433         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66434         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66437         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66438         gl_MBRLEN_NUL_RETVAL): Likewise.
66439         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66440         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66441         Likewise.
66442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66443         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66444         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66445         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66446         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66447         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66448         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66449         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66450         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66451         Likewise.
66452         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66453         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66455         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66456         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66457         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66458         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66459         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66460         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66463 2010-08-26  Bruno Haible  <bruno@clisp.org>
66465         Modernize AC_TRY_LINK invocations.
66466         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66467         AC_TRY_LINK.
66468         * m4/argp.m4 (gl_ARGP): Likewise.
66469         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66470         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66472         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66474         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66475         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66476         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66477         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66478         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66479         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66480         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66481         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66482         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66483         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66484         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66485         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66486         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66487         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66488         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66489         Likewise.
66490         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66491         Likewise.
66492         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66493         Likewise.
66494         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66496         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66497         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66498         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66499         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66500         * m4/servent.m4 (gl_SERVENT): Likewise.
66501         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66502         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66504         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66505         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66506         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66507         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66509         * modules/tsearch-tests (configure.ac): Likewise.
66511 2010-08-26  Bruno Haible  <bruno@clisp.org>
66513         Modernize AC_TRY_COMPILE invocations.
66514         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66515         AC_TRY_COMPILE.
66516         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66517         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66518         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66519         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66520         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66521         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66522         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66523         * m4/lock.m4 (gl_LOCK): Likewise.
66524         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66525         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66526         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66527         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66528         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66529         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66530         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66531         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66532         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66533         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66534         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66535         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66536         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66537         extraneous semicolon.
66539 2010-08-26  Jim Meyering  <meyering@redhat.com>
66541         stat-time: relax license LGPL
66542         * modules/stat-time (License): Change from GPL to LGPL,
66543         with consent from all contributors, for use in libguile.
66544         Requested by Ludovic Courtès.
66546 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66548         poll: return immediately on POLLHUP.
66549         * lib/poll.c (poll): Always set timeout before wait_timeout is
66550         computed.
66552 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66554         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66555         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66556         rmdir ("dir/.//"), unlinkat.
66558 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66560         stdbool: avoid spurious failure with modern xlc
66561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66563 2010-08-24  Bruno Haible  <bruno@clisp.org>
66565         getloadavg: simplify code
66566         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66567         gl_have_func. Update comments.
66569 2010-08-24  Eric Blake  <eblake@redhat.com>
66571         getloadavg: don't define SVR4 on cygwin
66572         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66573         only define SVR4 when -lkvm is required.
66574         Reported by Yaakov Selkowitz.
66576 2010-08-24  Bruno Haible  <bruno@clisp.org>
66578         priv-set: fix comment
66579         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66581 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66583         priv-set: fix comments
66584         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66585         to match code, as suggested by David Bartley in:
66586         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66588 2010-08-23  Eric Blake  <eblake@redhat.com>
66590         stdbool: avoid rejecting clang
66591         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66592         * tests/test-stdbool.c: Enable more tests if using the system
66593         <stdbool.h> instead of the gnulib replacement.
66594         (main): Move xlc bug test to a runtime test for all compilers.
66595         Reported by Anders Kaseorg.
66597         argz: fix shell quoting issue
66598         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66599         Reported by Charles Wilson.
66601 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66602             Erik Faye-Lund <kusmabite@gmail.com>
66604         poll, select: handle ERROR_BROKEN_PIPE.
66605         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66606         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66607         * lib/select.c (win32_compute_revents): Do not mark a pipe
66608         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66610 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66612         fts: allow compilation with C++
66613         * lib/fts_.h: Specify extern "C" linkage with C++.
66615 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66617         Fix gnulib-tool sed script de-commentation for AIX sed.
66618         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66619         sed.
66621 2010-08-17  Eric Blake  <eblake@redhat.com>
66623         test-stddef: test for (some) offsetof bugs
66624         * tests/test-stddef.c: Enhance test to ensure correct type of
66625         offsetof.
66626         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66627         that we are not fixing at this time.
66629 2010-08-15  Bruno Haible  <bruno@clisp.org>
66631         stpncpy: Allow stpncpy to be defined as a macro.
66632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66633         if it's already correctly declared.
66634         * lib/string.in.h (stpncpy): Undefine before redefining.
66635         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66637 2010-08-14  Bruno Haible  <bruno@clisp.org>
66639         Rename module 'memxfrm' to 'amemxfrm'.
66640         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66641         (amemxfrm): Renamed from memxfrm.
66642         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66643         (amemxfrm): Renamed from memxfrm.
66644         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66645         * NEWS: Mention the change.
66646         * MODULES.html.sh (String handling <string.h>): Update.
66647         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66648         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66649         * lib/unicase/u16-casexfrm.c: Likewise.
66650         * lib/unicase/u32-casexfrm.c: Likewise.
66651         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66652         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66653         * lib/uninorm/u16-normxfrm.c: Likewise.
66654         * lib/uninorm/u32-normxfrm.c: Likewise.
66655         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66656         memxfrm.
66657         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66658         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66659         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66660         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66661         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66662         Suggested by Paul Eggert.
66664 2010-08-14  Bruno Haible  <bruno@clisp.org>
66666         Tests for module 'astrxfrm'.
66667         * modules/astrxfrm-tests: New file.
66668         * tests/test-astrxfrm.c: New file.
66670         New module 'astrxfrm'.
66671         * lib/astrxfrm.h: New file.
66672         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66673         * modules/astrxfrm: New file.
66675 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66677         regex: Tweak doc.
66678         * doc/regex.texi (Overview): Don't mention regex.c.
66679         (GNU Regular Expression Compiling): Likewise.
66680         (Match-end-of-line Operator): Mention 'not_eol'.
66682 2010-08-14  Brian Gough  <bjg@gnu.org>
66683             Bruno Haible  <bruno@clisp.org>
66685         git-merge-changelog: add doc relating to use with bzr and hg.
66686         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66688 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66690         pthread: fix pthread.h creation for srcdir != builddir
66691         * modules/pthread (Makefile.am): Fix the rule to work also in a
66692         non-srcdir build.
66694 2010-08-13  Karl Berry  <karl@gnu.org>
66696         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66697         * doc/posix-*/*: force line break before @url of POSIX
66698         specifications.
66699         Suggested by Werner Lemberg.
66701 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66703         strtod: fix const diagnostic
66704         * lib/strtod.c (strtod): Don't assign const char * to char *,
66705         as this elicits a warning from GCC when warnings are enabled.
66707 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66708         and Eric Blake  <eblake@redhat.com>
66710         copy-acl: ignore ENOTSUP on HP-UX
66711         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66712         so that it is available for HP-UX.
66713         * lib/copy-acl.c (qcopy_acl): Use it.
66714         Reported by Patrick M. Callahan.
66716 2010-08-10  Eric Blake  <eblake@redhat.com>
66718         open, chown: relax license
66719         * modules/open (License): Change to LGPLv2+, with consent by all
66720         authors, for use in augeas.
66721         * modules/chown (License): Likewise.
66722         * modules/lchown (Likewise): Likewise.
66723         Requested by Adam Stokes.
66725 2010-08-09  Karl Berry  <karl@gnu.org>
66727         * build-aux/ar-lib: new file, import from Automake.
66728         * config/srclist.txt: autocheck for updates.
66730 2010-08-09  Eric Blake  <eblake@redhat.com>
66732         readlinkat: adjust client modules
66733         * modules/areadlinkat (Depends-on): Use readlinkat, not
66734         symlinkat.
66735         * modules/areadlinkat-with-size (Depends-on): Likewise.
66737         mknod: be more vocal about danger of running tests as root
66738         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66739         root, since that is just asking for problems.
66740         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66742         readlinkat: split into its own module
66743         * modules/symlinkat: Split readlinkat...
66744         * modules/readlinkat: ...into separate module.
66745         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66746         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66747         * lib/symlinkat.c (readlinkat): Move...
66748         * lib/readlinkat.c: ...into new file.
66749         * modules/symlinkat-tests: Split readlinkat test...
66750         * modules/readlinkat-tests: ...into separate module.
66751         * tests/test-symlinkat.c: Split...
66752         * tests/test-readlinkat.c: ...into new file.
66753         * NEWS: Document the split.
66754         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66755         * lib/unistd.in.h (readlinkat): Likewise.
66756         Suggested by Bruno Haible.
66758 2010-08-08  Bruno Haible  <bruno@clisp.org>
66760         memxfrm: Speed up.
66761         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66762         that usually only one call to strxfrm is necessary for each string
66763         part.
66764         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66766 2010-08-07  Karl Berry  <karl@gnu.org>
66768         * doc/posix-headers/limits.texi,
66769         * doc/posix-functions/malloc.texi,
66770         * doc/posix-functions/strsignal.texi: missing @item.
66771         * doc/ld-version-script.texi: spurious leading i.
66772         * doc/regex.texi (Interval Operators): no commas inside @var.
66774 2010-08-01  Bruno Haible  <bruno@clisp.org>
66776         Integrate the regex documentation.
66777         * doc/gnulib.texi: Define 'cn' index.
66778         (Regular expressions): New a chapter that includes regex.texi and
66779         regexprops-generic.texi.
66780         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66781         syntax.
66783         Whitespace cleanup.
66784         * doc/regex.texi: Remove trailing spaces.
66786         Add regex documentation.
66787         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66788         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66789         Written by Kathy A. Hargreaves and Karl Berry.
66791 2010-08-01  Bruno Haible  <bruno@clisp.org>
66793         link: Update documentation.
66794         * doc/posix-functions/link.texi: Update regarding Solaris.
66796 2010-07-31  Bruno Haible  <bruno@clisp.org>
66798         Update modules list.
66799         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66800         (String handling <string.h>): Add memcmp2, memxfrm.
66801         (Container data structures): Add xlist, xsublist, xoset.
66802         (Core language properties): Add alignof, unused-parameter.
66803         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66804         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66805         (Unibyte characters <ctype.h>): New section.
66806         (String handling <string.h>): New section.
66807         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66808         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66809         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66810         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66811         tan, tanh, tanl, y0, y1, yn.
66812         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66813         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66814         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66815         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66816         unlockpt, vdprintf, vdprintf-posix.
66817         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66818         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66819         xconcat-filename.
66820         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66821         getdtablesize, pipe2, pipe2-safer.
66822         (Security): New section.
66823         (Networking functions): Add accept4.
66824         (Signal handling): Add sigpipe.
66825         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66826         mbmemcasecoll.
66827         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66828         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66829         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66830         pipe-filter-ii.
66831         (Misc): Add argp-version-etc, login_tty, parse-duration.
66833 2010-07-31  Bruno Haible  <bruno@clisp.org>
66835         Improve doc in MODULES.html.
66836         * modules/linkat (Description): Add the word "function".
66837         * modules/mkfifo (Description): Likewise.
66838         * modules/mknod (Description): Likewise.
66839         * modules/remove (Description): Likewise.
66840         * modules/renameat (Description): Likewise.
66841         * modules/stat (Description): Likewise.
66842         * modules/symlink (Description): Likewise.
66843         * modules/unlink (Description): Likewise.
66845 2010-07-31  Bruno Haible  <bruno@clisp.org>
66847         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66848         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66849         option --enable/disable-c++ instead of --enable/disable-cxx.
66850         * NEWS: Mention the change.
66852 2010-07-31  Bruno Haible  <bruno@clisp.org>
66854         readlink, areadlink: Relax test a bit.
66855         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66856         alternative to ENOTDIR.
66857         * tests/test-areadlink.h (test_areadlink): Likewise.
66858         Reported by Rainer Tammer.
66860 2010-07-31  Bruno Haible  <bruno@clisp.org>
66862         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66863         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66864         character, perform the search using U_STRCHR.
66865         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66866         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66867         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66868         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66869         Suggested by Paolo Bonzini.
66871 2010-07-31  Bruno Haible  <bruno@clisp.org>
66873         unistr/u*-strstr: Fix dependencies.
66874         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66875         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66876         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66878 2010-07-31  Bruno Haible  <bruno@clisp.org>
66880         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66881         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66882         the beginning of the loop.
66883         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66884         cases in 'switch' statement.
66886         unistr/u8-strchr: Fix several bugs.
66887         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66888         the string. When not found, return NULL, not a pointer near the end.
66890         More tests for unistr/u8-strchr.
66891         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66892         that the function does not read past the first occurrence of the byte
66893         being searched.
66894         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66895         * tests/unistr/test-u16-strchr.c (main): New function.
66896         * tests/unistr/test-u32-strchr.c (main): New function.
66898 2010-07-31  Bruno Haible  <bruno@clisp.org>
66900         posix-modules: Ignore backup files of documentation files.
66901         * posix-modules: grep only through files named *.texi.
66903 2010-07-31  Bruno Haible  <bruno@clisp.org>
66905         symlinkat: Fix documentation.
66906         * doc/posix-functions/readlinkat.texi: Fix module name.
66908 2010-07-31  Bruno Haible  <bruno@clisp.org>
66910         fchownat: Replace also when chown has the trailing slash bug.
66911         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66912         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66913         introduced on 2010-04-10.
66914         Reported by Rainer Tammer.
66916 2010-07-31  Bruno Haible  <bruno@clisp.org>
66918         linkat: Work around AIX 7.1 bug.
66919         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66920         whether linkat handles trailing slash correctly. If not, replace linkat
66921         and define LINKAT_TRAILING_SLASH_BUG.
66922         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66923         check whether (fd1,file1) points to a directory if file1 or file2 ends
66924         in a slash. Code taken from lib/link.c.
66925         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66926         Reported by Rainer Tammer.
66928 2010-07-31  Bruno Haible  <bruno@clisp.org>
66930         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66931         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66932         This disables an xlc optimization that was causing wrong test results.
66933         Reported by Rainer Tammer.
66935 2010-07-31  Bruno Haible  <bruno@clisp.org>
66937         iconv: Work around AIX 6.1..7.1 bug.
66938         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66939         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66940         cross-compiling, guess no on all versions of AIX.
66941         Reported by Rainer Tammer.
66943 2010-07-31  Bruno Haible  <bruno@clisp.org>
66945         readlink: Relax test a bit.
66946         * tests/test-readlink.h (test_readlink): Allow different errno value
66947         when readlink is called with a file name that ends in / and refers to
66948         a file.
66949         Suggested by Eric Blake.
66950         Reported by Rainer Tammer.
66952 2010-07-31  Bruno Haible  <bruno@clisp.org>
66954         copysign: Does not require -lm on glibc systems.
66955         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66956         gl_COMMON_DOUBLE_MATHFUNC.
66957         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66959 2010-07-31  Bruno Haible  <bruno@clisp.org>
66961         duplocale: Work around AIX 7.1 bug.
66962         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66963         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66964         * lib/duplocale.c (rpl_duplocale): Update comment.
66965         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66966         Reported by Rainer Tammer.
66968 2010-07-30  Bruno Haible  <bruno@clisp.org>
66970         dirfd: Avoid link error on AIX 7.1.
66971         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66972         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66973         exist, set REPLACE_DIRFD.
66974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66975         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66976         * doc/posix-functions/dirfd.texi: Update.
66977         Reported by Rainer Tammer.
66979 2010-07-30  Eric Blake  <eblake@redhat.com>
66981         strtod: next round of AIX fixes
66982         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66983         exponent.
66984         * tests/test-strtod.c (main): Enhance tests.
66985         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66986         Reported by Rainer Tammer.
66988         futimens: fix configure check
66989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66990         Reported by Bruno Haible.
66992 2010-07-30  Bruno Haible  <bruno@clisp.org>
66994         getline: Update regarding AIX.
66995         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66996         Reported by Rainer Tammer.
66998 2010-07-30  Bruno Haible  <bruno@clisp.org>
67000         wcwidth: Drop replacement on AIX 7.
67001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
67002         AIX 7.
67003         Reported by Rainer Tammer.
67005 2010-07-30  Bruno Haible  <bruno@clisp.org>
67007         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
67008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
67009         a 'char *'.
67010         Reported by Rainer Tammer.
67012 2010-07-30  Bruno Haible  <bruno@clisp.org>
67014         unlink: Update regarding AIX.
67015         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
67016         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
67017         Reported by Rainer Tammer.
67019 2010-07-30  Bruno Haible  <bruno@clisp.org>
67021         symlink: Update regarding AIX.
67022         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
67023         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
67024         Reported by Rainer Tammer.
67026 2010-07-30  Bruno Haible  <bruno@clisp.org>
67028         strndup: Update regarding AIX.
67029         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
67030         AIX 7.
67031         Reported by Rainer Tammer.
67033 2010-07-30  Bruno Haible  <bruno@clisp.org>
67035         stat: Update regarding AIX.
67036         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
67037         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
67038         Reported by Rainer Tammer.
67040 2010-07-30  Bruno Haible  <bruno@clisp.org>
67042         truncl: Fix autoconf test.
67043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
67044         whether truncl works.
67045         Reported by Rainer Tammer.
67047 2010-07-30  Bruno Haible  <bruno@clisp.org>
67049         round: Update regarding AIX.
67050         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
67051         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
67052         Reported by Rainer Tammer.
67054 2010-07-30  Bruno Haible  <bruno@clisp.org>
67056         rename: Update regarding AIX.
67057         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
67058         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
67059         Reported by Rainer Tammer.
67061 2010-07-30  Bruno Haible  <bruno@clisp.org>
67063         printf.m4: Update regarding AIX.
67064         * m4/printf.m4: Update comments regarding AIX.
67065         Reported by Rainer Tammer.
67067 2010-07-30  Bruno Haible  <bruno@clisp.org>
67069         iconv: Update regarding AIX.
67070         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
67071         AIX 7.
67072         Reported by Rainer Tammer.
67074 2010-07-30  Bruno Haible  <bruno@clisp.org>
67076         getopt: Update regarding AIX.
67077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
67078         no on AIX.
67079         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
67080         Reported by Rainer Tammer.
67082 2010-07-30  Bruno Haible  <bruno@clisp.org>
67084         ldexpl; Update regarding AIX.
67085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
67086         on AIX 7.
67087         Reported by Rainer Tammer.
67089 2010-07-30  Bruno Haible  <bruno@clisp.org>
67091         frexpl: Update regarding AIX.
67092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
67093         on AIX 7.
67094         Reported by Rainer Tammer.
67096 2010-07-30  Bruno Haible  <bruno@clisp.org>
67098         open, fopen: Update regarding AIX.
67099         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
67100         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
67101         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
67102         * doc/posix-functions/fopen.texi: Likewise.
67103         Reported by Rainer Tammer.
67105 2010-07-30  Bruno Haible  <bruno@clisp.org>
67107         chown: Update doc regarding AIX.
67108         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
67109         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
67110         Reported by Rainer Tammer.
67112 2010-07-30  Eric Blake  <eblake@redhat.com>
67114         strtod: fix bug in replacement function on AIX
67115         * lib/strtod.c (strtod): Special case broken "0x" parse in
67116         underlying strtod.
67117         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
67118         * doc/posix-functions/strtod.texi (strtod): Likewise.
67119         Reported by Rainer Tammer.
67121 2010-07-30  Bruno Haible  <bruno@clisp.org>
67123         mbrlen: Fix cross-compilation guess for AIX.
67124         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
67125         guess. Leftover from 2008-12-22.
67127 2010-07-30  Bruno Haible  <bruno@clisp.org>
67129         mbrtowc: Fix cross-compilation guess for AIX.
67130         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
67131         guess. Leftover from 2008-12-21.
67133 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
67135         init.sh: work around trap limitation of some shells
67136         * tests/init.sh (setup_): Move exit trap outside of shell function.
67138 2010-07-29  Eric Blake  <eblake@redhat.com>
67140         strtod: aid debugging
67141         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
67142         understanding why strtod is rejected.
67144 2010-07-28  Bruno Haible  <bruno@clisp.org>
67146         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
67147         * lib/unistr/u8-chr.c: Include <string.h>.
67148         * tests/unistr/test-u8-chr.c: Likewise.
67149         * tests/unistr/test-u16-chr.c: Likewise.
67150         * tests/unistr/test-u32-chr.c: Likewise.
67151         * tests/unistr/test-u8-strchr.c: Likewise.
67152         * tests/unistr/test-u16-strchr.c: Likewise.
67153         * tests/unistr/test-u32-strchr.c: Likewise.
67154         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
67155         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
67156         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
67157         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
67159 2010-07-28  Bruno Haible  <bruno@clisp.org>
67161         Use spaces for indentation, not tabs.
67162         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
67164 2010-07-27  Bruno Haible  <bruno@clisp.org>
67166         mbspcasecmp: Fix function specification.
67167         * lib/string.in.h (mbspcasecmp): Fix specification comment.
67168         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
67169         Reported by Eric Blake <eblake@redhat.com>.
67171 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
67173         timespec: use cast and not conditional, as truncation isn't possible
67174         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
67175         instead of a conditional.  Comment about the situation in more detail.
67176         This undoes most of the 2009-10-29 patch.
67178 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
67180         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
67181         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
67182         * lib/unistr/u8-strchr.c: Likewise.
67183         * modules/unistr/u8-chr: Depend on memchr.
67185         unistr/u*-strchr: add tests
67186         * modules/unistr/u8-strchr-tests: New file.
67187         * modules/unistr/u16-strchr-tests: New file.
67188         * modules/unistr/u32-strchr-tests: New file.
67189         * tests/unistr/test-strchr.h: New file.
67190         * tests/unistr/test-u8-strchr.c: New file.
67191         * tests/unistr/test-u16-strchr.c: New file.
67192         * tests/unistr/test-u32-strchr.c: New file.
67194         unistr/u*-chr: test multibyte sequences more
67195         * tests/unistr/test-chr.h: Do complete testing of the characters in the
67196         test vector.
67197         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
67198         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
67199         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
67201         unistr/u*-chr: test multibyte sequences
67202         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
67204         unistr/u*-chr: prepare for multibyte tests
67205         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
67206         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
67207         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
67208         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
67209         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
67210         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
67212 2010-07-18  Bruno Haible  <bruno@clisp.org>
67214         unistr/u8-strchr: Optimize non-ASCII argument case.
67215         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
67216         because the first byte often matches anyway.
67217         Reported by Pádraig Brady <P@draigbrady.com>.
67219 2010-07-15  Karl Berry  <karl@gnu.org>
67221         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
67223 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
67225         getcwd: on Solaris, work better if ancestors are inaccessible
67226         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
67227         buffer and size, try again with a large buffer.  This works better
67228         on Solaris, since its getcwd succeeds even if the path to the root
67229         is inaccessible, and this is helpful in common cases such as .zfs
67230         hidden directories.  Problem reported by J Chapman Flack in
67231         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
67232         Use system getcwd if it's declared, not merely if it's partly
67233         working; use the partly-working test only to avoid needless effort
67234         if the system getcwd fails.
67235         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
67236         comment that was already obsolete and is now even more obsolete.
67237         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
67238         now might call strdup.
67240 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
67242         pthread: Add enough so that coreutils/src/sort.c compiles.
67243         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
67244         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
67245         gnulib. Include <sched.h> and <time.h>, as per POSIX.
67246         Include <sys/types.h>, in case it defines pthread_t.
67247         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
67248         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
67249         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
67250         (pthread_rwlockattr_t, pthread_spinlock_t):
67251         New typedefs, if HAVE_PTHREAD_T is not defined.
67252         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
67253         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
67254         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
67255         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
67256         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
67257         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
67258         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
67259         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
67260         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
67261         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
67262         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
67263         New macros.
67264         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
67265         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
67266         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
67267         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
67268         (pthread_spin_unlock): New dummy functions.
67269         (pthread_create): Return EAGAIN; don't set errno.
67270         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
67271         require AC_C_INLINE.
67272         * modules/pthread (Depends-on): Add sched, time.
67273         (pthread.h): Use AM_V_GEN.
67275 2010-07-13  Bruno Haible  <bruno@clisp.org>
67277         striconveh: Don't malloc memory if the result buffer is sufficient.
67278         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
67279         buffer if its size is sufficient.
67280         Reported by Ludovic Courtès <ludo@gnu.org>.
67282 2010-07-13  Bruno Haible  <bruno@clisp.org>
67284         strtod: Add safety check.
67285         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
67287 2010-07-12  Bruno Haible  <bruno@clisp.org>
67289         Unify tests that set gl_cv_func_ldexpl_no_libm.
67290         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
67291         gl_FUNC_LDEXPL.
67292         (gl_FUNC_LDEXPL): Invoke it.
67293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67295 2010-07-12  Bruno Haible  <bruno@clisp.org>
67297         Unify tests that set gl_cv_func_ldexp_no_libm.
67298         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
67299         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
67300         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
67301         (configure.ac): Simply invoke gl_FUNC_LDEXP.
67302         * modules/strtod (Files): Add m4/ldexp.m4.
67304 2010-07-12  Bruno Haible  <bruno@clisp.org>
67306         Unify tests that set gl_cv_func_frexpl_no_libm.
67307         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
67308         gl_FUNC_FREXPL_NO_LIBM.
67309         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
67310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67312 2010-07-12  Bruno Haible  <bruno@clisp.org>
67314         Unify tests that set gl_cv_func_frexp_no_libm.
67315         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
67316         gl_FUNC_FREXP_NO_LIBM.
67317         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
67318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
67320 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67322         memcoll: clarify sizes versus lengths, document better, and tweak perf
67323         * lib/memcoll.c (strcoll_loop, memcoll0):
67324         Improve quality of descriptive comments.  Name variables
67325         consistently as to whether they are lengths (which do not include
67326         terminating null) versus sizes (which do).
67327         * lib/xmemcoll.c (xmemcoll0): Likewise.
67328         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
67329         returned when s1size == 0; this is easier to compile and saves
67330         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
67332 2010-07-12  Bruno Haible  <bruno@clisp.org>
67334         Tests for module '_Exit'.
67335         * modules/_Exit-tests: New file.
67336         * tests/test-_Exit.sh: New file.
67337         * tests/test-_Exit.c: New file.
67339         New module '_Exit'.
67340         * lib/stdlib.in.h (__attribute__): New macro.
67341         (_Exit): New declaration.
67342         * lib/_Exit.c: New file.
67343         * m4/_Exit.m4: New file.
67344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
67345         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
67346         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
67347         * modules/_Exit: New file.
67348         * tests/test-stdlib-c++.cc (_Exit): Check signature.
67349         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
67351 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67353         strtod: make it more-accurate typically, and don't require libm
67354         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
67355         Include limits.h.  Don't include string.h.
67356         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
67357         (locale_isspace): New function, so that no casts are needed to
67358         check whether *s is a space.
67359         (ldexp): Provide an unused dummy if not available.
67360         (scale_radix_exp, parse_number, underlying_strtod): New functions.
67361         (strtod): Use them.  This implementation prefers to use the
67362         underlying strtod if available, falling back on our own code
67363         only to fix known bugs.  This is more likely to produce an
67364         accurate result.  Also, it avoids the use of libm functions.
67365         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
67366         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
67367         was absent, but it caused a test failure with coreutils.
67368         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
67369         with libm.
67370         * modules/strtod (Makefile.am, Link): libm is no longer needed.
67371         * modules/strtod-tests (Makefile.am): Likewise.
67373 2010-07-11  Pádraig Brady  <P@draigBrady.com>
67374             Bruno Haible  <bruno@clisp.org>
67376         unistr/u8-strchr: Optimize ASCII argument case.
67377         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
67379 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67381         (x)memcoll: minor tweaks
67382         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
67383         is after the type that it qualifies.
67384         (memcoll0): Likewise.
67385         * lib/memcoll.h (memcoll0): Likewise.
67386         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
67387         * lib/xmemcoll.h (xmemcoll0): Likewise.
67388         * lib/memcoll.c (memcoll0): Correct the comment.  This function
67389         differs from memcoll in that the NUL byte is part of the argument.
67390         Omit the abort-checks, as performance is a real issue here.  Plus,
67391         the checks were wrong anyway (an off-by-one error).  Omit local
67392         variable 'diff', as it's a bit clearer that way.
67393         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
67394         no longer needed.
67396 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
67398         (x)memcoll: speedup when input is known to be NUL delimited
67399         * lib/memcoll.c: Include stdlib.
67400         (memcoll0): New function.
67401         (strcoll_loop): New function, refactored for use in both memcoll
67402         and memcoll0.
67403         * lib/memcoll.h (memcoll0): Add prototype.
67404         * lib/xmemcoll.c (xmemcoll0): New function.
67405         (collate_error): New function, refactored for use in both xmemcoll
67406         and xmemcoll0.
67407         * lib/xmemcoll.h (xmemcoll0): Add prototype.
67408         * m4/memcoll.m4: add inline invocation.
67410 2010-07-06  Pádraig Brady  <P@draigBrady.com>
67412         * build-aux/bootstrap: Remove any local translations
67413         from the translation project synchronization directory,
67414         so that local only translations are not distributed.
67416 2010-07-04  Bruno Haible  <bruno@clisp.org>
67418         fsusage: Clarify which code applies to which platforms.
67419         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
67420         platform.
67421         * lib/fsusage.c (get_fs_usage): Likewise.
67423 2010-07-04  Bruno Haible  <bruno@clisp.org>
67425         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67426         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67427         Reported by Martin Lambers <marlam@marlam.de>.
67429 2010-07-04  Jim Meyering  <meyering@redhat.com>
67431         hash: once again explicitly disallow insertion of NULL
67432         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67433         inserting a NULL pointer cannot work with these functions.
67434         Add a comment with details.
67435         This reverts part of the 2010-07-01 commit, 5bef1a35
67436         "hash: extend module to deal with non-pointer keys".
67438 2010-07-01  Bruno Haible  <bruno@clisp.org>
67440         stdbool: Update doc.
67441         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67442         Info from Christian Weisgerber <naddy@mips.inka.de>.
67444 2010-07-01  Jim Meyering  <meyering@redhat.com>
67446         hash: extend module to deal with non-pointer keys
67447         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67448         but that allows insertion of non-pointer entries.
67449         Do not disallow an ENTRY value of NULL.
67450         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67451         * lib/hash.h (hash_insert0): Declare.
67453 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67455         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67456         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67457         not present (i.e. with autoconf 2.59 and when using gettextize, not
67458         gnulib), require AC_GNU_SOURCE instead.
67460 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67462         idpriv-drop: Fix tests.
67463         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67464         not to the test-idpriv-droptemp program.
67466 2010-06-29  Bruno Haible  <bruno@clisp.org>
67468         string: Fix syntax error with g++ 2.96.
67469         * lib/string.in.h (__pure__): Remove definition.
67470         (_GL_ATTRIBUTE_PURE): New macro.
67471         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67472         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67473         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67475 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67477         unitypes: Fix bug introduced on 2010-05-18.
67478         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67480 2010-06-22  Eric Blake  <eblake@redhat.com>
67482         memmem: slight optimization
67483         * lib/str-two-way.h (critical_factorization): Update comments.
67484         Reduce work during factorization phase.
67485         Reported by Carlos Bueno <carlos@bueno.org>.
67487 2010-06-21  Bruno Haible  <bruno@clisp.org>
67489         Fix HAVE_CALLOC_POSIX misnomer.
67490         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67491         !HAVE_CALLOC_POSIX.
67492         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67493         HAVE_CALLOC_POSIX.
67494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67495         instead of HAVE_CALLOC_POSIX.
67496         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67497         HAVE_CALLOC_POSIX.
67499         Use modern idiom for calloc() replacement.
67500         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67501         AC_FUNC_CALLOC.
67502         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67503         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67504         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67505         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67506         (gl_REPLACE_CALLOC): New macro.
67508 2010-06-21  Bruno Haible  <bruno@clisp.org>
67510         Fix HAVE_REALLOC_POSIX misnomer.
67511         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67512         !HAVE_REALLOC_POSIX.
67513         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67514         HAVE_REALLOC_POSIX.
67515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67516         instead of HAVE_REALLOC_POSIX.
67517         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67518         HAVE_REALLOC_POSIX.
67520         Use modern idiom for realloc() replacement.
67521         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67522         AC_FUNC_REALLOC.
67523         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67524         Autoconf's AC_FUNC_REALLOC.
67525         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67526         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67527         (gl_REPLACE_REALLOC): New macro.
67528         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67530 2010-06-21  Bruno Haible  <bruno@clisp.org>
67532         Fix HAVE_MALLOC_POSIX misnomer.
67533         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67534         !HAVE_MALLOC_POSIX.
67535         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67536         HAVE_MALLOC_POSIX.
67537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67538         instead of HAVE_MALLOC_POSIX.
67539         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67540         HAVE_MALLOC_POSIX.
67542         Use modern idiom for malloc() replacement.
67543         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67544         AC_FUNC_MALLOC.
67545         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67546         Autoconf's AC_FUNC_MALLOC.
67547         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67548         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67549         (gl_REPLACE_MALLOC): New macro.
67550         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67552 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67554         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67555         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67556         This macro takes 3 arguments, not 4.
67558 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67560         ipv6: fix detection under mingw
67561         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67562         in6_addr.
67564 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67566         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67567         that strtod() works when cross-compiling to a glibc version known
67568         to work.
67570 2010-06-15  Bruno Haible  <bruno@clisp.org>
67572         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67574 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67576         select: Correct timeout.
67577         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67579 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67581         git-version-gen: init shell var to avoid env var influence
67582         * build-aux/git-version-gen (v): Init shell var to empty.
67584 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67586         priv-set: Don't assume that priv.h exists merely because getppriv does.
67587         See Jan Andersen's bug report about AIX 5L in
67588         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67589         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67590         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67591         * lib/priv-set.h: Likewise.
67592         * tests/test-priv-set.c: Likewise.
67594 2010-06-13  Bruno Haible  <bruno@clisp.org>
67596         relocatable: Make it easier to test whether to install wrappers.
67597         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67598         RELOCATABLE_VIA_WRAPPER.
67600 2010-06-13  Bruno Haible  <bruno@clisp.org>
67602         gnulib-tool: Display specified modules and dependencies differently.
67603         * gnulib-tool (func_show_module_list): New function.
67604         (func_import, func_create_testdir): Invoke it.
67605         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67607 2010-06-13  Bruno Haible  <bruno@clisp.org>
67609         gnulib-tool: Align code of func_import and func_create_testdir.
67610         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67611         specified_modules.
67613 2010-06-12  Jim Meyering  <meyering@redhat.com>
67615         test-inttostr: avoid spurious failure on Solaris 9
67616         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67617         to accept "%ju".  Reported by Bruno Haible.
67619 2010-06-11  Jim Meyering  <meyering@redhat.com>
67621         test-sys_socket: mark variables as used more readably
67622         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67623         as "used" explicitly via (void) statement casts.  This is more
67624         readable than using them in an artificial return expression.
67625         Suggestion from Bruno Haible.
67627 2010-06-11  Bruno Haible  <bruno@clisp.org>
67629         Avoid some more warnings from "gcc -Wwrite-strings".
67630         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67631         to 'const char *'.
67632         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67633         * tests/test-c-strcasestr.c (main): Likewise.
67634         * tests/test-mbscasestr1.c (main): Likewise.
67635         * tests/test-mbscasestr2.c (main): Likewise.
67636         * tests/test-memmem.c (main): Likewise.
67637         * tests/test-strstr.c (main): Likewise.
67638         * tests/test-strcasestr.c (main): Likewise.
67640 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67642         init.sh: change framework_failure_ to fail with status 99, not 1
67643         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67644         automake's parallel-tests rule that this is an unexpected failure,
67645         even if the test is listed in XFAIL_TESTS.
67647 2010-06-11  Jim Meyering  <meyering@redhat.com>
67649         test-inttostr: avoid warnings about 4-6KB literal strings
67650         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67651         Include "macros.h", for its definition of ASSERT.
67652         (CK): s/assert/ASSERT/
67653         * modules/inttostr-tests (Files): Add macros.h.
67655         init.sh: don't use $ME_ or skip_ before they are defined
67656         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67657         their first uses.  Also hoist their companions: warn_, fail_,
67658         framework_failure_, $stderr_fileno.  Prompted by a patch from
67659         Stefano Lattarini.
67661         test-sys_socket: avoid set-but-not-used warnings from gcc
67662         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67663         avoid warning about set-but-not-used variables.
67665         test-xvasprintf: avoid 'const' discard warnings
67666         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67667         "const" when assigning from literal strings.
67668         (test_xasprintf): Add "void" in function argument list to placate
67669         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67671         tests: avoid compilation warnings in argmatch and exclude tests...
67672         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67673         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67674         Since it always exits, declare with the "noreturn" attribute.
67675         * tests/test-argmatch.c: Likewise.
67677         tests: avoid 'const' discard warnings in mbsstr tests
67678         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67679         * tests/test-mbsstr2.c (main): Likewise.
67681         test-verify: avoid warning from gcc's -Wmissing-declarations
67682         * tests/test-verify.c (function): Declare to be static.
67684         test-inttostr.c: include <string.h> for use of strcmp
67685         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67687         test-linkat: avoid failed assertion on "other" architectures
67688         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67689         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67690         sparc: https://bugs.launchpad.net/bugs/591968
67692 2010-06-11  Jim Meyering  <meyering@redhat.com>
67694         printf.m4: avoid autoconf's "Expanded Before Required" warning
67695         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67696         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67697         autoconf warning.
67699 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67701         Replacement header templates are now named with ".in", not "_".
67702         * doc/gnulib-intro.texi: Correct.
67704 2010-06-10  Jim Meyering  <meyering@redhat.com>
67706         inttostr-tests: depend on snprintf, not snprintf-posix
67707         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67708         snprintf-posix, to avoid this aclocal failure:
67709           missing file gnulib-tests/vasnprintf.c
67710           configure.ac:45: error: expected source file, required through \
67711           AC_LIBSOURCES, not found
67713 2010-06-10  Jim Meyering  <meyering@redhat.com>
67715         inttostr: add a new function, inttostr, and tests
67716         The namesake function was not available.  The existence of the
67717         template file, inttostr.c makes its addition nontrivial.
67718         * lib/anytostr.c: Rename from inttostr.c.
67719         (anytostr): Rename from inttostr.
67720         * lib/inttostr.c: New file.
67721         * modules/inttostr (Files): Add anytostr.c.
67722         (Makefile.am): Set lib_SOURCES instead of ...
67723         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67724         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67725         * lib/offtostr.c: Likewise.
67726         * lib/uinttostr.c: Likewise.
67727         * lib/umaxtostr.c: Likewise.
67728         * modules/inttostr-tests: New file.
67729         * tests/test-inttostr.c: New file.  Test these functions.
67731 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67732             Bruno Haible  <bruno@clisp.org>
67734         Add "Extending Gnulib" chapter to manual.
67735         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67736         chapter.
67737         (Extending Gnulib): New chapter.
67738         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67739         chapter.
67741 2010-06-09  Bruno Haible  <bruno@clisp.org>
67743         Avoid relocwrapper link errors due to gnulib replacement functions.
67744         * lib/areadlink.c: Use the system's malloc, realloc functions.
67745         (areadlink): Set errno to ENOMEM explicitly.
67746         * modules/areadlink (Depends-on): Remove malloc-posix.
67747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67749 2010-06-09  Bruno Haible  <bruno@clisp.org>
67751         Avoid relocwrapper link errors due to gnulib replacement functions.
67752         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67753         * lib/malloca.c: Likewise.
67754         * lib/relocatable.c: Likewise.
67755         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67756         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67757         * lib/setenv.c: Use the system's malloc, realloc functions.
67758         * lib/strerror.c: Use the system's sprintf function.
67759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67761 2010-06-04  Bruno Haible  <bruno@clisp.org>
67763         Prefer documented low-level autoconf macro names.
67764         * m4/lib-link.m4: Use m4_translit instead of translit.
67765         * m4/environ.m4: Likewise.
67766         * m4/mathfunc.m4: Likewise.
67767         * m4/onceonly.m4: Likewise.
67768         * m4/stdint.m4: Likewise.
67769         Suggested by Eric Blake.
67771 2010-06-04  Martin Lambers  <marlam@marlam.de>
67772             Bruno Haible  <bruno@clisp.org>
67774         havelib: Allow library names with '+' characters.
67775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67776         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67778 2010-06-09  Bruno Haible  <bruno@clisp.org>
67780         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67781         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67782         realloc failed.
67784 2010-06-08  Peter Simons  <simons@cryp.to>
67786         maint.mk: make the news-check rule more configurable
67787         * top/maint.mk (news-check-lines-spec): New variable.
67788         (news-check): Use "sed -n 1,10p" in place of "head".
67790 2010-06-07  Jim Meyering  <meyering@redhat.com>
67792         do-release-commit-and-tag: fix typo in --help
67793         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67795         regex: avoid new dead-code warning with gcc-4.6.0
67796         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67797         if-block containing a while-loop.  It's been unused for at least
67798         5 years.
67800 2010-06-05  Bruno Haible  <bruno@clisp.org>
67802         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67803         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67805 2010-06-04  Bruno Haible  <bruno@clisp.org>
67807         Update to GNU gettext 0.18.1.
67808         * modules/gettext (configure.ac): Require gettext infrastructure from
67809         version 0.18.1.
67811 2010-06-03  Bruno Haible  <bruno@clisp.org>
67813         Don't use AC_LIBOBJ with file names in subdirectories.
67814         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67815         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67816         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67817         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67818         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67819         gl_LIBUNISTRING_LIBSOURCE.
67820         (Makefile.am): Augment lib_SOURCES here, conditionally.
67821         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67823 2010-06-03  Bruno Haible  <bruno@clisp.org>
67825         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67826         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67827         expansion does not end with a newline.
67828         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67829         unnecessary newline.
67831 2010-06-03  Bruno Haible  <bruno@clisp.org>
67833         Reduce dependencies.
67834         * tests/test-quotearg.h: New file, extracted from
67835         tests/test-quotearg.c.
67836         * tests/test-quotearg-simple.c: New file, extracted from
67837         tests/test-quotearg.c.
67838         * tests/test-quotearg.c: Don't include <ctype.h>.
67839         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67840         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67841         use_quote_double_quotes, use_quotearg_colon): Moved to
67842         tests/test-quotearg.h.
67843         (results_g, flag_results, custom_quotes, custom_results): Moved
67844         to tests/test-quotearg-simple.c.
67845         (main): Moved the part that does not depend on gettext to
67846         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67847         performed.
67848         * modules/quotearg-simple: New file.
67849         * modules/quotearg-simple-tests: New file.
67850         * modules/quotearg (Depends-on): Add quotearg-simple.
67851         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67852         (Files): Add tests/test-quotearg.h.
67853         Reported by Paolo Bonzini.
67855 2010-06-03  Bruno Haible  <bruno@clisp.org>
67857         Reduce dependencies.
67858         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67860 2010-06-03  Bruno Haible  <bruno@clisp.org>
67862         time: Undefine more broken macros.
67863         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67864         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67865         Reported by Eric Blake.
67867 2010-06-03  Bruno Haible  <bruno@clisp.org>
67869         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67870         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67871         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67872         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67873         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67874         Reported by Ludovic Courtès <ludo@gnu.org>.
67876 2010-06-02  Eric Blake  <eblake@redhat.com>
67878         time: work with mingw + pthreads-win32 library
67879         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67880         if timespec is defined only in pthread.h.
67881         * modules/time (Makefile.am): Substitute it.
67882         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67883         <pthread.h>, when needed.
67884         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67885         from the library.
67887 2010-05-31  Bruno Haible  <bruno@clisp.org>
67889         Avoid expanding two macros in the wrong order.
67890         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67891         gl_LIBUNISTRING if it is defined.
67892         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67893         autoconf >= 2.64.
67894         Reported by Ludovic Courtès <ludo@gnu.org>.
67896 2010-05-27  Jim Meyering  <meyering@redhat.com>
67898         maint.mk: also prohibit "#undef" of always-defined symbols
67899         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67900         Allow more than one space before the symbol name.
67901         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67902         the regexp uses alternation.
67904 2010-05-26  Eric Blake  <eblake@redhat.com>
67906         maint.mk: avoid echo -e
67907         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67908         Convert all uses of echo -* to printf.
67909         Reported by Matthias Bolte.
67911 2010-05-25  Bruno Haible  <bruno@clisp.org>
67913         Update to GNU gettext 0.18, part 2.
67914         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67915         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67917 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67919         Add missing include in test-pwrite.c.
67920         * tests/test-pwrite.c: Include string.h, for strcmp.
67922 2010-05-24  Bruno Haible  <bruno@clisp.org>
67924         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67926 2010-05-24  Bruno Haible  <bruno@clisp.org>
67928         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67929         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67930         iconveh_error argument.
67931         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67932         U_STRCONV_TO_LOCALE.
67933         * lib/unistr/u16-strcoll.c: Likewise.
67934         * lib/unistr/u32-strcoll.c: Likewise.
67935         * modules/unistr/u8-strcoll (Depends-on): Add
67936         uniconv/u8-strconv-to-enc, localcharset. Remove
67937         uniconv/u8-strconv-to-locale.
67938         (configure.ac): Bump version number.
67939         * modules/unistr/u16-strcoll (Depends-on): Add
67940         uniconv/u16-strconv-to-enc, localcharset. Remove
67941         uniconv/u16-strconv-to-locale.
67942         (configure.ac): Bump version number.
67943         * modules/unistr/u32-strcoll (Depends-on): Add
67944         uniconv/u32-strconv-to-enc, localcharset. Remove
67945         uniconv/u32-strconv-to-locale.
67946         (configure.ac): Bump version number.
67948 2010-05-24  Bruno Haible  <bruno@clisp.org>
67950         Avoid a test failure on NetBSD 5.0.
67951         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67952         an iconv() bug.
67954 2010-05-24  Bruno Haible  <bruno@clisp.org>
67956         Adjust #include directive style.
67957         * modules/regex (Includes): Recommend to write <regex.h>.
67959 2010-05-24  Bruno Haible  <bruno@clisp.org>
67961         regex: Don't require alloca.
67962         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67963         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67964         only inside if (0).
67966 2010-05-23  Jim Meyering  <meyering@redhat.com>
67968         test-renameat.c: include <sys/stat.h>
67969         * tests/test-renameat.c: Include <sys/stat.h>; required for
67970         definition of S_IS* macros.
67972 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67974         Update maintainer documentation for 'relocatable-prog' module.
67975         * doc/relocatable-maint.texi: Update.
67976         Comments by Bruno Haible.
67978 2010-05-23  Bruno Haible  <bruno@clisp.org>
67980         git-merge-changelog: Enable --split-merged-entry by default.
67981         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67982         (usage): Don't mention this option any more.
67983         Reported by Ralf Wildenhues.
67985 2010-05-23  Jim Meyering  <meyering@redhat.com>
67987         test-pwrite: do not leave behind a test file named "out"
67988         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67989         The trivial-looking use of init.sh is really necessary.
67990         It ensures that the temporary file, "out", is created in
67991         a temporary directory, and removed upon termination.
67992         * tests/test-pwrite.sh: Re-add file.
67993         * modules/pwrite-tests: Reference it.
67995 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67997         Fix output redirection buglet in init.sh.
67998         * tests/init.sh: Fix redirection of stderr.
68000 2010-05-20  Simon Josefsson  <simon@josefsson.org>
68002         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
68004 2010-05-17  Simon Josefsson  <simon@josefsson.org>
68006         * modules/valgrind-tests: New file.
68007         * m4/valgrind-tests.m4: New file.
68008         * doc/valgrind-tests.texi: New file.
68009         * doc/gnulib.texi (Running self-tests under valgrind): New
68010         section.
68012 2010-05-19  Bruno Haible  <bruno@clisp.org>
68014         Clean up dead code in recent commit.
68015         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
68016         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
68017         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
68018         Suggested by Paolo Bonzini.
68020 2010-05-19  Bruno Haible  <bruno@clisp.org>
68022         Avoid valgrind error reports from libunistring.
68023         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
68024         * modules/libunistring (Files): Add it.
68025         * modules/libunistring-optional (Files): Likewise.
68027 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
68028             Bruno Haible  <bruno@clisp.org>
68030         New module 'libunistring-optional'.
68031         * modules/libunistring-optional: New file.
68032         * m4/libunistring-base.m4: New file.
68033         * m4/libunistring-optional.m4: New file.
68034         * lib/unicase.in.h: Renamed from lib/unicase.h.
68035         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
68036         * lib/unictype.in.h: Renamed from lib/unictype.h.
68037         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
68038         * lib/uniname.in.h: Renamed from lib/uniname.h.
68039         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
68040         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
68041         * lib/unistr.in.h: Renamed from lib/unistr.h.
68042         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
68043         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
68044         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
68045         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
68046         gl_LIBUNISTRING. If the library was found, determine the installed
68047         version and set LIBUNISTRING_VERSION.
68048         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
68049         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
68050         handle a configuration option --with-included-libunistring.
68051         * modules/libunistring (Files): Add m4/absolute-header.m4.
68052         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
68053         Add m4/libunistring-base.m4.
68054         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68055         (Makefile.am): Build unicase.h from unicase.in.h.
68056         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
68057         Add m4/libunistring-base.m4.
68058         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68059         (Makefile.am): Build uniconv.h from uniconv.in.h.
68060         * modules/unictype/base (Files): Use unictype.in.h instead of
68061         unictype.h. Add m4/libunistring-base.m4.
68062         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68063         (Makefile.am): Build unictype.h from unictype.in.h.
68064         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
68065         Add m4/libunistring-base.m4.
68066         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68067         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
68068         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
68069         Add m4/libunistring-base.m4.
68070         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68071         (Makefile.am): Build uniname.h from uniname.in.h.
68072         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
68073         Add m4/libunistring-base.m4.
68074         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68075         (Makefile.am): Build uninorm.h from uninorm.in.h.
68076         * modules/unistdio/base (Files): Use unistdio.in.h instead of
68077         unistdio.h. Add m4/libunistring-base.m4.
68078         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68079         (Makefile.am): Build unistdio.h from unistdio.in.h.
68080         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
68081         Add m4/libunistring-base.m4.
68082         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68083         (Makefile.am): Build unistr.h from unistr.in.h.
68084         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
68085         Add m4/libunistring-base.m4.
68086         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68087         (Makefile.am): Build unitypes.h from unitypes.in.h.
68088         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
68089         Add m4/libunistring-base.m4.
68090         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68091         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
68092         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
68093         uniwidth.h. Add m4/libunistring-base.m4.
68094         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68095         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
68096         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
68097         instead of augmenting lib_SOURCES.
68098         * modules/unicase/empty-suffix-context: Likewise.
68099         * modules/unicase/locale-language: Likewise.
68100         * modules/unicase/tolower: Likewise.
68101         * modules/unicase/totitle: Likewise.
68102         * modules/unicase/toupper: Likewise.
68103         * modules/unicase/u8-casecmp: Likewise.
68104         * modules/unicase/u8-casecoll: Likewise.
68105         * modules/unicase/u8-casefold: Likewise.
68106         * modules/unicase/u8-casexfrm: Likewise.
68107         * modules/unicase/u8-ct-casefold: Likewise.
68108         * modules/unicase/u8-ct-tolower: Likewise.
68109         * modules/unicase/u8-ct-totitle: Likewise.
68110         * modules/unicase/u8-ct-toupper: Likewise.
68111         * modules/unicase/u8-is-cased: Likewise.
68112         * modules/unicase/u8-is-casefolded: Likewise.
68113         * modules/unicase/u8-is-lowercase: Likewise.
68114         * modules/unicase/u8-is-titlecase: Likewise.
68115         * modules/unicase/u8-is-uppercase: Likewise.
68116         * modules/unicase/u8-prefix-context: Likewise.
68117         * modules/unicase/u8-suffix-context: Likewise.
68118         * modules/unicase/u8-tolower: Likewise.
68119         * modules/unicase/u8-totitle: Likewise.
68120         * modules/unicase/u8-toupper: Likewise.
68121         * modules/unicase/u16-casecmp: Likewise.
68122         * modules/unicase/u16-casecoll: Likewise.
68123         * modules/unicase/u16-casefold: Likewise.
68124         * modules/unicase/u16-casexfrm: Likewise.
68125         * modules/unicase/u16-ct-casefold: Likewise.
68126         * modules/unicase/u16-ct-tolower: Likewise.
68127         * modules/unicase/u16-ct-totitle: Likewise.
68128         * modules/unicase/u16-ct-toupper: Likewise.
68129         * modules/unicase/u16-is-cased: Likewise.
68130         * modules/unicase/u16-is-casefolded: Likewise.
68131         * modules/unicase/u16-is-lowercase: Likewise.
68132         * modules/unicase/u16-is-titlecase: Likewise.
68133         * modules/unicase/u16-is-uppercase: Likewise.
68134         * modules/unicase/u16-prefix-context: Likewise.
68135         * modules/unicase/u16-suffix-context: Likewise.
68136         * modules/unicase/u16-tolower: Likewise.
68137         * modules/unicase/u16-totitle: Likewise.
68138         * modules/unicase/u16-toupper: Likewise.
68139         * modules/unicase/u32-casecmp: Likewise.
68140         * modules/unicase/u32-casecoll: Likewise.
68141         * modules/unicase/u32-casefold: Likewise.
68142         * modules/unicase/u32-casexfrm: Likewise.
68143         * modules/unicase/u32-ct-casefold: Likewise.
68144         * modules/unicase/u32-ct-tolower: Likewise.
68145         * modules/unicase/u32-ct-totitle: Likewise.
68146         * modules/unicase/u32-ct-toupper: Likewise.
68147         * modules/unicase/u32-is-cased: Likewise.
68148         * modules/unicase/u32-is-casefolded: Likewise.
68149         * modules/unicase/u32-is-lowercase: Likewise.
68150         * modules/unicase/u32-is-titlecase: Likewise.
68151         * modules/unicase/u32-is-uppercase: Likewise.
68152         * modules/unicase/u32-prefix-context: Likewise.
68153         * modules/unicase/u32-suffix-context: Likewise.
68154         * modules/unicase/u32-tolower: Likewise.
68155         * modules/unicase/u32-totitle: Likewise.
68156         * modules/unicase/u32-toupper: Likewise.
68157         * modules/unicase/ulc-casecmp: Likewise.
68158         * modules/unicase/ulc-casecoll: Likewise.
68159         * modules/unicase/ulc-casexfrm: Likewise.
68160         * modules/uniconv/u8-conv-from-enc: Likewise.
68161         * modules/uniconv/u8-conv-to-enc: Likewise.
68162         * modules/uniconv/u8-strconv-from-enc: Likewise.
68163         * modules/uniconv/u8-strconv-from-locale: Likewise.
68164         * modules/uniconv/u8-strconv-to-enc: Likewise.
68165         * modules/uniconv/u8-strconv-to-locale: Likewise.
68166         * modules/uniconv/u16-conv-from-enc: Likewise.
68167         * modules/uniconv/u16-conv-to-enc: Likewise.
68168         * modules/uniconv/u16-strconv-from-enc: Likewise.
68169         * modules/uniconv/u16-strconv-from-locale: Likewise.
68170         * modules/uniconv/u16-strconv-to-enc: Likewise.
68171         * modules/uniconv/u16-strconv-to-locale: Likewise.
68172         * modules/uniconv/u32-conv-from-enc: Likewise.
68173         * modules/uniconv/u32-conv-to-enc: Likewise.
68174         * modules/uniconv/u32-strconv-from-enc: Likewise.
68175         * modules/uniconv/u32-strconv-from-locale: Likewise.
68176         * modules/uniconv/u32-strconv-to-enc: Likewise.
68177         * modules/uniconv/u32-strconv-to-locale: Likewise.
68178         * modules/unictype/bidicategory-byname: Likewise.
68179         * modules/unictype/bidicategory-name: Likewise.
68180         * modules/unictype/bidicategory-of: Likewise.
68181         * modules/unictype/bidicategory-test: Likewise.
68182         * modules/unictype/block-list: Likewise.
68183         * modules/unictype/block-test: Likewise.
68184         * modules/unictype/category-C: Likewise.
68185         * modules/unictype/category-Cc: Likewise.
68186         * modules/unictype/category-Cf: Likewise.
68187         * modules/unictype/category-Cn: Likewise.
68188         * modules/unictype/category-Co: Likewise.
68189         * modules/unictype/category-Cs: Likewise.
68190         * modules/unictype/category-L: Likewise.
68191         * modules/unictype/category-Ll: Likewise.
68192         * modules/unictype/category-Lm: Likewise.
68193         * modules/unictype/category-Lo: Likewise.
68194         * modules/unictype/category-Lt: Likewise.
68195         * modules/unictype/category-Lu: Likewise.
68196         * modules/unictype/category-M: Likewise.
68197         * modules/unictype/category-Mc: Likewise.
68198         * modules/unictype/category-Me: Likewise.
68199         * modules/unictype/category-Mn: Likewise.
68200         * modules/unictype/category-N: Likewise.
68201         * modules/unictype/category-Nd: Likewise.
68202         * modules/unictype/category-Nl: Likewise.
68203         * modules/unictype/category-No: Likewise.
68204         * modules/unictype/category-P: Likewise.
68205         * modules/unictype/category-Pc: Likewise.
68206         * modules/unictype/category-Pd: Likewise.
68207         * modules/unictype/category-Pe: Likewise.
68208         * modules/unictype/category-Pf: Likewise.
68209         * modules/unictype/category-Pi: Likewise.
68210         * modules/unictype/category-Po: Likewise.
68211         * modules/unictype/category-Ps: Likewise.
68212         * modules/unictype/category-S: Likewise.
68213         * modules/unictype/category-Sc: Likewise.
68214         * modules/unictype/category-Sk: Likewise.
68215         * modules/unictype/category-Sm: Likewise.
68216         * modules/unictype/category-So: Likewise.
68217         * modules/unictype/category-Z: Likewise.
68218         * modules/unictype/category-Zl: Likewise.
68219         * modules/unictype/category-Zp: Likewise.
68220         * modules/unictype/category-Zs: Likewise.
68221         * modules/unictype/category-and: Likewise.
68222         * modules/unictype/category-and-not: Likewise.
68223         * modules/unictype/category-byname: Likewise.
68224         * modules/unictype/category-name: Likewise.
68225         * modules/unictype/category-none: Likewise.
68226         * modules/unictype/category-of: Likewise.
68227         * modules/unictype/category-or: Likewise.
68228         * modules/unictype/category-test: Likewise.
68229         * modules/unictype/combining-class: Likewise.
68230         * modules/unictype/ctype-alnum: Likewise.
68231         * modules/unictype/ctype-alpha: Likewise.
68232         * modules/unictype/ctype-blank: Likewise.
68233         * modules/unictype/ctype-cntrl: Likewise.
68234         * modules/unictype/ctype-digit: Likewise.
68235         * modules/unictype/ctype-graph: Likewise.
68236         * modules/unictype/ctype-lower: Likewise.
68237         * modules/unictype/ctype-print: Likewise.
68238         * modules/unictype/ctype-punct: Likewise.
68239         * modules/unictype/ctype-space: Likewise.
68240         * modules/unictype/ctype-upper: Likewise.
68241         * modules/unictype/ctype-xdigit: Likewise.
68242         * modules/unictype/decimal-digit: Likewise.
68243         * modules/unictype/digit: Likewise.
68244         * modules/unictype/mirror: Likewise.
68245         * modules/unictype/numeric: Likewise.
68246         * modules/unictype/property-alphabetic: Likewise.
68247         * modules/unictype/property-ascii-hex-digit: Likewise.
68248         * modules/unictype/property-bidi-arabic-digit: Likewise.
68249         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
68250         * modules/unictype/property-bidi-block-separator: Likewise.
68251         * modules/unictype/property-bidi-boundary-neutral: Likewise.
68252         * modules/unictype/property-bidi-common-separator: Likewise.
68253         * modules/unictype/property-bidi-control: Likewise.
68254         * modules/unictype/property-bidi-embedding-or-override: Likewise.
68255         * modules/unictype/property-bidi-eur-num-separator: Likewise.
68256         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
68257         * modules/unictype/property-bidi-european-digit: Likewise.
68258         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
68259         * modules/unictype/property-bidi-left-to-right: Likewise.
68260         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
68261         * modules/unictype/property-bidi-other-neutral: Likewise.
68262         * modules/unictype/property-bidi-pdf: Likewise.
68263         * modules/unictype/property-bidi-segment-separator: Likewise.
68264         * modules/unictype/property-bidi-whitespace: Likewise.
68265         * modules/unictype/property-byname: Likewise.
68266         * modules/unictype/property-combining: Likewise.
68267         * modules/unictype/property-composite: Likewise.
68268         * modules/unictype/property-currency-symbol: Likewise.
68269         * modules/unictype/property-dash: Likewise.
68270         * modules/unictype/property-decimal-digit: Likewise.
68271         * modules/unictype/property-default-ignorable-code-point: Likewise.
68272         * modules/unictype/property-deprecated: Likewise.
68273         * modules/unictype/property-diacritic: Likewise.
68274         * modules/unictype/property-extender: Likewise.
68275         * modules/unictype/property-format-control: Likewise.
68276         * modules/unictype/property-grapheme-base: Likewise.
68277         * modules/unictype/property-grapheme-extend: Likewise.
68278         * modules/unictype/property-grapheme-link: Likewise.
68279         * modules/unictype/property-hex-digit: Likewise.
68280         * modules/unictype/property-hyphen: Likewise.
68281         * modules/unictype/property-id-continue: Likewise.
68282         * modules/unictype/property-id-start: Likewise.
68283         * modules/unictype/property-ideographic: Likewise.
68284         * modules/unictype/property-ids-binary-operator: Likewise.
68285         * modules/unictype/property-ids-trinary-operator: Likewise.
68286         * modules/unictype/property-ignorable-control: Likewise.
68287         * modules/unictype/property-iso-control: Likewise.
68288         * modules/unictype/property-join-control: Likewise.
68289         * modules/unictype/property-left-of-pair: Likewise.
68290         * modules/unictype/property-line-separator: Likewise.
68291         * modules/unictype/property-logical-order-exception: Likewise.
68292         * modules/unictype/property-lowercase: Likewise.
68293         * modules/unictype/property-math: Likewise.
68294         * modules/unictype/property-non-break: Likewise.
68295         * modules/unictype/property-not-a-character: Likewise.
68296         * modules/unictype/property-numeric: Likewise.
68297         * modules/unictype/property-other-alphabetic: Likewise.
68298         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
68299         * modules/unictype/property-other-grapheme-extend: Likewise.
68300         * modules/unictype/property-other-id-continue: Likewise.
68301         * modules/unictype/property-other-id-start: Likewise.
68302         * modules/unictype/property-other-lowercase: Likewise.
68303         * modules/unictype/property-other-math: Likewise.
68304         * modules/unictype/property-other-uppercase: Likewise.
68305         * modules/unictype/property-paired-punctuation: Likewise.
68306         * modules/unictype/property-paragraph-separator: Likewise.
68307         * modules/unictype/property-pattern-syntax: Likewise.
68308         * modules/unictype/property-pattern-white-space: Likewise.
68309         * modules/unictype/property-private-use: Likewise.
68310         * modules/unictype/property-punctuation: Likewise.
68311         * modules/unictype/property-quotation-mark: Likewise.
68312         * modules/unictype/property-radical: Likewise.
68313         * modules/unictype/property-sentence-terminal: Likewise.
68314         * modules/unictype/property-soft-dotted: Likewise.
68315         * modules/unictype/property-space: Likewise.
68316         * modules/unictype/property-terminal-punctuation: Likewise.
68317         * modules/unictype/property-test: Likewise.
68318         * modules/unictype/property-titlecase: Likewise.
68319         * modules/unictype/property-unassigned-code-value: Likewise.
68320         * modules/unictype/property-unified-ideograph: Likewise.
68321         * modules/unictype/property-uppercase: Likewise.
68322         * modules/unictype/property-variation-selector: Likewise.
68323         * modules/unictype/property-white-space: Likewise.
68324         * modules/unictype/property-xid-continue: Likewise.
68325         * modules/unictype/property-xid-start: Likewise.
68326         * modules/unictype/property-zero-width: Likewise.
68327         * modules/unictype/scripts: Likewise.
68328         * modules/unictype/syntax-c-ident: Likewise.
68329         * modules/unictype/syntax-c-whitespace: Likewise.
68330         * modules/unictype/syntax-java-ident: Likewise.
68331         * modules/unictype/syntax-java-whitespace: Likewise.
68332         * modules/unilbrk/u8-possible-linebreaks: Likewise.
68333         * modules/unilbrk/u8-width-linebreaks: Likewise.
68334         * modules/unilbrk/u16-possible-linebreaks: Likewise.
68335         * modules/unilbrk/u16-width-linebreaks: Likewise.
68336         * modules/unilbrk/u32-possible-linebreaks: Likewise.
68337         * modules/unilbrk/u32-width-linebreaks: Likewise.
68338         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
68339         * modules/unilbrk/ulc-width-linebreaks: Likewise.
68340         * modules/uniname/uniname: Likewise.
68341         * modules/uninorm/canonical-decomposition: Likewise.
68342         * modules/uninorm/composition: Likewise.
68343         * modules/uninorm/decomposing-form: Likewise.
68344         * modules/uninorm/decomposition: Likewise.
68345         * modules/uninorm/filter: Likewise.
68346         * modules/uninorm/nfc: Likewise.
68347         * modules/uninorm/nfd: Likewise.
68348         * modules/uninorm/nfkc: Likewise.
68349         * modules/uninorm/nfkd: Likewise.
68350         * modules/uninorm/u8-normalize: Likewise.
68351         * modules/uninorm/u8-normcmp: Likewise.
68352         * modules/uninorm/u8-normcoll: Likewise.
68353         * modules/uninorm/u8-normxfrm: Likewise.
68354         * modules/uninorm/u16-normalize: Likewise.
68355         * modules/uninorm/u16-normcmp: Likewise.
68356         * modules/uninorm/u16-normcoll: Likewise.
68357         * modules/uninorm/u16-normxfrm: Likewise.
68358         * modules/uninorm/u32-normalize: Likewise.
68359         * modules/uninorm/u32-normcmp: Likewise.
68360         * modules/uninorm/u32-normcoll: Likewise.
68361         * modules/uninorm/u32-normxfrm: Likewise.
68362         * modules/unistdio/u8-asnprintf: Likewise.
68363         * modules/unistdio/u8-asprintf: Likewise.
68364         * modules/unistdio/u8-snprintf: Likewise.
68365         * modules/unistdio/u8-sprintf: Likewise.
68366         * modules/unistdio/u8-u8-asnprintf: Likewise.
68367         * modules/unistdio/u8-u8-asprintf: Likewise.
68368         * modules/unistdio/u8-u8-snprintf: Likewise.
68369         * modules/unistdio/u8-u8-sprintf: Likewise.
68370         * modules/unistdio/u8-u8-vasnprintf: Likewise.
68371         * modules/unistdio/u8-u8-vasprintf: Likewise.
68372         * modules/unistdio/u8-u8-vsnprintf: Likewise.
68373         * modules/unistdio/u8-u8-vsprintf: Likewise.
68374         * modules/unistdio/u8-vasnprintf: Likewise.
68375         * modules/unistdio/u8-vasprintf: Likewise.
68376         * modules/unistdio/u8-vsnprintf: Likewise.
68377         * modules/unistdio/u8-vsprintf: Likewise.
68378         * modules/unistdio/u16-asnprintf: Likewise.
68379         * modules/unistdio/u16-asprintf: Likewise.
68380         * modules/unistdio/u16-snprintf: Likewise.
68381         * modules/unistdio/u16-sprintf: Likewise.
68382         * modules/unistdio/u16-u16-asnprintf: Likewise.
68383         * modules/unistdio/u16-u16-asprintf: Likewise.
68384         * modules/unistdio/u16-u16-snprintf: Likewise.
68385         * modules/unistdio/u16-u16-sprintf: Likewise.
68386         * modules/unistdio/u16-u16-vasnprintf: Likewise.
68387         * modules/unistdio/u16-u16-vasprintf: Likewise.
68388         * modules/unistdio/u16-u16-vsnprintf: Likewise.
68389         * modules/unistdio/u16-u16-vsprintf: Likewise.
68390         * modules/unistdio/u16-vasnprintf: Likewise.
68391         * modules/unistdio/u16-vasprintf: Likewise.
68392         * modules/unistdio/u16-vsnprintf: Likewise.
68393         * modules/unistdio/u16-vsprintf: Likewise.
68394         * modules/unistdio/u32-asnprintf: Likewise.
68395         * modules/unistdio/u32-asprintf: Likewise.
68396         * modules/unistdio/u32-snprintf: Likewise.
68397         * modules/unistdio/u32-sprintf: Likewise.
68398         * modules/unistdio/u32-u32-asnprintf: Likewise.
68399         * modules/unistdio/u32-u32-asprintf: Likewise.
68400         * modules/unistdio/u32-u32-snprintf: Likewise.
68401         * modules/unistdio/u32-u32-sprintf: Likewise.
68402         * modules/unistdio/u32-u32-vasnprintf: Likewise.
68403         * modules/unistdio/u32-u32-vasprintf: Likewise.
68404         * modules/unistdio/u32-u32-vsnprintf: Likewise.
68405         * modules/unistdio/u32-u32-vsprintf: Likewise.
68406         * modules/unistdio/u32-vasnprintf: Likewise.
68407         * modules/unistdio/u32-vasprintf: Likewise.
68408         * modules/unistdio/u32-vsnprintf: Likewise.
68409         * modules/unistdio/u32-vsprintf: Likewise.
68410         * modules/unistdio/ulc-asnprintf: Likewise.
68411         * modules/unistdio/ulc-asprintf: Likewise.
68412         * modules/unistdio/ulc-fprintf: Likewise.
68413         * modules/unistdio/ulc-snprintf: Likewise.
68414         * modules/unistdio/ulc-sprintf: Likewise.
68415         * modules/unistdio/ulc-vasnprintf: Likewise.
68416         * modules/unistdio/ulc-vasprintf: Likewise.
68417         * modules/unistdio/ulc-vfprintf: Likewise.
68418         * modules/unistdio/ulc-vsnprintf: Likewise.
68419         * modules/unistdio/ulc-vsprintf: Likewise.
68420         * modules/unistr/u8-check: Likewise.
68421         * modules/unistr/u8-chr: Likewise.
68422         * modules/unistr/u8-cmp: Likewise.
68423         * modules/unistr/u8-cmp2: Likewise.
68424         * modules/unistr/u8-cpy: Likewise.
68425         * modules/unistr/u8-cpy-alloc: Likewise.
68426         * modules/unistr/u8-endswith: Likewise.
68427         * modules/unistr/u8-mblen: Likewise.
68428         * modules/unistr/u8-mbsnlen: Likewise.
68429         * modules/unistr/u8-mbtouc: Likewise.
68430         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68431         * modules/unistr/u8-mbtoucr: Likewise.
68432         * modules/unistr/u8-move: Likewise.
68433         * modules/unistr/u8-next: Likewise.
68434         * modules/unistr/u8-prev: Likewise.
68435         * modules/unistr/u8-set: Likewise.
68436         * modules/unistr/u8-startswith: Likewise.
68437         * modules/unistr/u8-stpcpy: Likewise.
68438         * modules/unistr/u8-stpncpy: Likewise.
68439         * modules/unistr/u8-strcat: Likewise.
68440         * modules/unistr/u8-strchr: Likewise.
68441         * modules/unistr/u8-strcmp: Likewise.
68442         * modules/unistr/u8-strcoll: Likewise.
68443         * modules/unistr/u8-strcpy: Likewise.
68444         * modules/unistr/u8-strcspn: Likewise.
68445         * modules/unistr/u8-strdup: Likewise.
68446         * modules/unistr/u8-strlen: Likewise.
68447         * modules/unistr/u8-strmblen: Likewise.
68448         * modules/unistr/u8-strmbtouc: Likewise.
68449         * modules/unistr/u8-strncat: Likewise.
68450         * modules/unistr/u8-strncmp: Likewise.
68451         * modules/unistr/u8-strncpy: Likewise.
68452         * modules/unistr/u8-strnlen: Likewise.
68453         * modules/unistr/u8-strpbrk: Likewise.
68454         * modules/unistr/u8-strrchr: Likewise.
68455         * modules/unistr/u8-strspn: Likewise.
68456         * modules/unistr/u8-strstr: Likewise.
68457         * modules/unistr/u8-strtok: Likewise.
68458         * modules/unistr/u8-to-u16: Likewise.
68459         * modules/unistr/u8-to-u32: Likewise.
68460         * modules/unistr/u8-uctomb: Likewise.
68461         * modules/unistr/u16-check: Likewise.
68462         * modules/unistr/u16-chr: Likewise.
68463         * modules/unistr/u16-cmp: Likewise.
68464         * modules/unistr/u16-cmp2: Likewise.
68465         * modules/unistr/u16-cpy: Likewise.
68466         * modules/unistr/u16-cpy-alloc: Likewise.
68467         * modules/unistr/u16-endswith: Likewise.
68468         * modules/unistr/u16-mblen: Likewise.
68469         * modules/unistr/u16-mbsnlen: Likewise.
68470         * modules/unistr/u16-mbtouc: Likewise.
68471         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68472         * modules/unistr/u16-mbtoucr: Likewise.
68473         * modules/unistr/u16-move: Likewise.
68474         * modules/unistr/u16-next: Likewise.
68475         * modules/unistr/u16-prev: Likewise.
68476         * modules/unistr/u16-set: Likewise.
68477         * modules/unistr/u16-startswith: Likewise.
68478         * modules/unistr/u16-stpcpy: Likewise.
68479         * modules/unistr/u16-stpncpy: Likewise.
68480         * modules/unistr/u16-strcat: Likewise.
68481         * modules/unistr/u16-strchr: Likewise.
68482         * modules/unistr/u16-strcmp: Likewise.
68483         * modules/unistr/u16-strcoll: Likewise.
68484         * modules/unistr/u16-strcpy: Likewise.
68485         * modules/unistr/u16-strcspn: Likewise.
68486         * modules/unistr/u16-strdup: Likewise.
68487         * modules/unistr/u16-strlen: Likewise.
68488         * modules/unistr/u16-strmblen: Likewise.
68489         * modules/unistr/u16-strmbtouc: Likewise.
68490         * modules/unistr/u16-strncat: Likewise.
68491         * modules/unistr/u16-strncmp: Likewise.
68492         * modules/unistr/u16-strncpy: Likewise.
68493         * modules/unistr/u16-strnlen: Likewise.
68494         * modules/unistr/u16-strpbrk: Likewise.
68495         * modules/unistr/u16-strrchr: Likewise.
68496         * modules/unistr/u16-strspn: Likewise.
68497         * modules/unistr/u16-strstr: Likewise.
68498         * modules/unistr/u16-strtok: Likewise.
68499         * modules/unistr/u16-to-u32: Likewise.
68500         * modules/unistr/u16-to-u8: Likewise.
68501         * modules/unistr/u16-uctomb: Likewise.
68502         * modules/unistr/u32-check: Likewise.
68503         * modules/unistr/u32-chr: Likewise.
68504         * modules/unistr/u32-cmp: Likewise.
68505         * modules/unistr/u32-cmp2: Likewise.
68506         * modules/unistr/u32-cpy: Likewise.
68507         * modules/unistr/u32-cpy-alloc: Likewise.
68508         * modules/unistr/u32-endswith: Likewise.
68509         * modules/unistr/u32-mblen: Likewise.
68510         * modules/unistr/u32-mbsnlen: Likewise.
68511         * modules/unistr/u32-mbtouc: Likewise.
68512         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68513         * modules/unistr/u32-mbtoucr: Likewise.
68514         * modules/unistr/u32-move: Likewise.
68515         * modules/unistr/u32-next: Likewise.
68516         * modules/unistr/u32-prev: Likewise.
68517         * modules/unistr/u32-set: Likewise.
68518         * modules/unistr/u32-startswith: Likewise.
68519         * modules/unistr/u32-stpcpy: Likewise.
68520         * modules/unistr/u32-stpncpy: Likewise.
68521         * modules/unistr/u32-strcat: Likewise.
68522         * modules/unistr/u32-strchr: Likewise.
68523         * modules/unistr/u32-strcmp: Likewise.
68524         * modules/unistr/u32-strcoll: Likewise.
68525         * modules/unistr/u32-strcpy: Likewise.
68526         * modules/unistr/u32-strcspn: Likewise.
68527         * modules/unistr/u32-strdup: Likewise.
68528         * modules/unistr/u32-strlen: Likewise.
68529         * modules/unistr/u32-strmblen: Likewise.
68530         * modules/unistr/u32-strmbtouc: Likewise.
68531         * modules/unistr/u32-strncat: Likewise.
68532         * modules/unistr/u32-strncmp: Likewise.
68533         * modules/unistr/u32-strncpy: Likewise.
68534         * modules/unistr/u32-strnlen: Likewise.
68535         * modules/unistr/u32-strpbrk: Likewise.
68536         * modules/unistr/u32-strrchr: Likewise.
68537         * modules/unistr/u32-strspn: Likewise.
68538         * modules/unistr/u32-strstr: Likewise.
68539         * modules/unistr/u32-strtok: Likewise.
68540         * modules/unistr/u32-to-u16: Likewise.
68541         * modules/unistr/u32-to-u8: Likewise.
68542         * modules/unistr/u32-uctomb: Likewise.
68543         * modules/uniwbrk/u8-wordbreaks: Likewise.
68544         * modules/uniwbrk/u16-wordbreaks: Likewise.
68545         * modules/uniwbrk/u32-wordbreaks: Likewise.
68546         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68547         * modules/uniwbrk/wordbreak-property: Likewise.
68548         * modules/uniwidth/u8-strwidth: Likewise.
68549         * modules/uniwidth/u8-width: Likewise.
68550         * modules/uniwidth/u16-strwidth: Likewise.
68551         * modules/uniwidth/u16-width: Likewise.
68552         * modules/uniwidth/u32-strwidth: Likewise.
68553         * modules/uniwidth/u32-width: Likewise.
68554         * modules/uniwidth/width: Likewise.
68555         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68556         with $(LIBUNISTRING).
68557         * modules/unicase/ignorable-tests: Likewise.
68558         * modules/unicase/locale-language-tests: Likewise.
68559         * modules/unicase/tolower-tests: Likewise.
68560         * modules/unicase/totitle-tests: Likewise.
68561         * modules/unicase/toupper-tests: Likewise.
68562         * modules/unicase/u8-casecmp-tests: Likewise.
68563         * modules/unicase/u8-casecoll-tests: Likewise.
68564         * modules/unicase/u8-casefold-tests: Likewise.
68565         * modules/unicase/u8-is-cased-tests: Likewise.
68566         * modules/unicase/u8-is-casefolded-tests: Likewise.
68567         * modules/unicase/u8-is-lowercase-tests: Likewise.
68568         * modules/unicase/u8-is-titlecase-tests: Likewise.
68569         * modules/unicase/u8-is-uppercase-tests: Likewise.
68570         * modules/unicase/u8-tolower-tests: Likewise.
68571         * modules/unicase/u8-totitle-tests: Likewise.
68572         * modules/unicase/u8-toupper-tests: Likewise.
68573         * modules/unicase/u16-casecmp-tests: Likewise.
68574         * modules/unicase/u16-casecoll-tests: Likewise.
68575         * modules/unicase/u16-casefold-tests: Likewise.
68576         * modules/unicase/u16-is-cased-tests: Likewise.
68577         * modules/unicase/u16-is-casefolded-tests: Likewise.
68578         * modules/unicase/u16-is-lowercase-tests: Likewise.
68579         * modules/unicase/u16-is-titlecase-tests: Likewise.
68580         * modules/unicase/u16-is-uppercase-tests: Likewise.
68581         * modules/unicase/u16-tolower-tests: Likewise.
68582         * modules/unicase/u16-totitle-tests: Likewise.
68583         * modules/unicase/u16-toupper-tests: Likewise.
68584         * modules/unicase/u32-casecmp-tests: Likewise.
68585         * modules/unicase/u32-casecoll-tests: Likewise.
68586         * modules/unicase/u32-casefold-tests: Likewise.
68587         * modules/unicase/u32-is-cased-tests: Likewise.
68588         * modules/unicase/u32-is-casefolded-tests: Likewise.
68589         * modules/unicase/u32-is-lowercase-tests: Likewise.
68590         * modules/unicase/u32-is-titlecase-tests: Likewise.
68591         * modules/unicase/u32-is-uppercase-tests: Likewise.
68592         * modules/unicase/u32-tolower-tests: Likewise.
68593         * modules/unicase/u32-totitle-tests: Likewise.
68594         * modules/unicase/u32-toupper-tests: Likewise.
68595         * modules/unicase/ulc-casecmp-tests: Likewise.
68596         * modules/unicase/ulc-casecoll-tests: Likewise.
68597         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68598         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68599         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68600         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68601         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68602         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68603         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68604         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68605         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68606         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68607         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68608         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68609         * modules/unictype/bidicategory-byname-tests: Likewise.
68610         * modules/unictype/bidicategory-name-tests: Likewise.
68611         * modules/unictype/bidicategory-of-tests: Likewise.
68612         * modules/unictype/bidicategory-test-tests: Likewise.
68613         * modules/unictype/block-list-tests: Likewise.
68614         * modules/unictype/block-of-tests: Likewise.
68615         * modules/unictype/block-test-tests: Likewise.
68616         * modules/unictype/category-C-tests: Likewise.
68617         * modules/unictype/category-Cc-tests: Likewise.
68618         * modules/unictype/category-Cf-tests: Likewise.
68619         * modules/unictype/category-Cn-tests: Likewise.
68620         * modules/unictype/category-Co-tests: Likewise.
68621         * modules/unictype/category-Cs-tests: Likewise.
68622         * modules/unictype/category-L-tests: Likewise.
68623         * modules/unictype/category-Ll-tests: Likewise.
68624         * modules/unictype/category-Lm-tests: Likewise.
68625         * modules/unictype/category-Lo-tests: Likewise.
68626         * modules/unictype/category-Lt-tests: Likewise.
68627         * modules/unictype/category-Lu-tests: Likewise.
68628         * modules/unictype/category-M-tests: Likewise.
68629         * modules/unictype/category-Mc-tests: Likewise.
68630         * modules/unictype/category-Me-tests: Likewise.
68631         * modules/unictype/category-Mn-tests: Likewise.
68632         * modules/unictype/category-N-tests: Likewise.
68633         * modules/unictype/category-Nd-tests: Likewise.
68634         * modules/unictype/category-Nl-tests: Likewise.
68635         * modules/unictype/category-No-tests: Likewise.
68636         * modules/unictype/category-P-tests: Likewise.
68637         * modules/unictype/category-Pc-tests: Likewise.
68638         * modules/unictype/category-Pd-tests: Likewise.
68639         * modules/unictype/category-Pe-tests: Likewise.
68640         * modules/unictype/category-Pf-tests: Likewise.
68641         * modules/unictype/category-Pi-tests: Likewise.
68642         * modules/unictype/category-Po-tests: Likewise.
68643         * modules/unictype/category-Ps-tests: Likewise.
68644         * modules/unictype/category-S-tests: Likewise.
68645         * modules/unictype/category-Sc-tests: Likewise.
68646         * modules/unictype/category-Sk-tests: Likewise.
68647         * modules/unictype/category-Sm-tests: Likewise.
68648         * modules/unictype/category-So-tests: Likewise.
68649         * modules/unictype/category-Z-tests: Likewise.
68650         * modules/unictype/category-Zl-tests: Likewise.
68651         * modules/unictype/category-Zp-tests: Likewise.
68652         * modules/unictype/category-Zs-tests: Likewise.
68653         * modules/unictype/category-and-not-tests: Likewise.
68654         * modules/unictype/category-and-tests: Likewise.
68655         * modules/unictype/category-byname-tests: Likewise.
68656         * modules/unictype/category-name-tests: Likewise.
68657         * modules/unictype/category-none-tests: Likewise.
68658         * modules/unictype/category-of-tests: Likewise.
68659         * modules/unictype/category-or-tests: Likewise.
68660         * modules/unictype/category-test-withtable-tests: Likewise.
68661         * modules/unictype/combining-class-tests: Likewise.
68662         * modules/unictype/ctype-alnum-tests: Likewise.
68663         * modules/unictype/ctype-alpha-tests: Likewise.
68664         * modules/unictype/ctype-blank-tests: Likewise.
68665         * modules/unictype/ctype-cntrl-tests: Likewise.
68666         * modules/unictype/ctype-digit-tests: Likewise.
68667         * modules/unictype/ctype-graph-tests: Likewise.
68668         * modules/unictype/ctype-lower-tests: Likewise.
68669         * modules/unictype/ctype-print-tests: Likewise.
68670         * modules/unictype/ctype-punct-tests: Likewise.
68671         * modules/unictype/ctype-space-tests: Likewise.
68672         * modules/unictype/ctype-upper-tests: Likewise.
68673         * modules/unictype/ctype-xdigit-tests: Likewise.
68674         * modules/unictype/decimal-digit-tests: Likewise.
68675         * modules/unictype/digit-tests: Likewise.
68676         * modules/unictype/mirror-tests: Likewise.
68677         * modules/unictype/numeric-tests: Likewise.
68678         * modules/unictype/property-alphabetic-tests: Likewise.
68679         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68680         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68681         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68682         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68683         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68684         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68685         * modules/unictype/property-bidi-control-tests: Likewise.
68686         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68687         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68688         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68689         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68690         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68691         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68692         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68693         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68694         * modules/unictype/property-bidi-pdf-tests: Likewise.
68695         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68696         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68697         * modules/unictype/property-byname-tests: Likewise.
68698         * modules/unictype/property-combining-tests: Likewise.
68699         * modules/unictype/property-composite-tests: Likewise.
68700         * modules/unictype/property-currency-symbol-tests: Likewise.
68701         * modules/unictype/property-dash-tests: Likewise.
68702         * modules/unictype/property-decimal-digit-tests: Likewise.
68703         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68704         * modules/unictype/property-deprecated-tests: Likewise.
68705         * modules/unictype/property-diacritic-tests: Likewise.
68706         * modules/unictype/property-extender-tests: Likewise.
68707         * modules/unictype/property-format-control-tests: Likewise.
68708         * modules/unictype/property-grapheme-base-tests: Likewise.
68709         * modules/unictype/property-grapheme-extend-tests: Likewise.
68710         * modules/unictype/property-grapheme-link-tests: Likewise.
68711         * modules/unictype/property-hex-digit-tests: Likewise.
68712         * modules/unictype/property-hyphen-tests: Likewise.
68713         * modules/unictype/property-id-continue-tests: Likewise.
68714         * modules/unictype/property-id-start-tests: Likewise.
68715         * modules/unictype/property-ideographic-tests: Likewise.
68716         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68717         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68718         * modules/unictype/property-ignorable-control-tests: Likewise.
68719         * modules/unictype/property-iso-control-tests: Likewise.
68720         * modules/unictype/property-join-control-tests: Likewise.
68721         * modules/unictype/property-left-of-pair-tests: Likewise.
68722         * modules/unictype/property-line-separator-tests: Likewise.
68723         * modules/unictype/property-logical-order-exception-tests: Likewise.
68724         * modules/unictype/property-lowercase-tests: Likewise.
68725         * modules/unictype/property-math-tests: Likewise.
68726         * modules/unictype/property-non-break-tests: Likewise.
68727         * modules/unictype/property-not-a-character-tests: Likewise.
68728         * modules/unictype/property-numeric-tests: Likewise.
68729         * modules/unictype/property-other-alphabetic-tests: Likewise.
68730         * modules/unictype/property-other-default-ignorable-code-point-tests:
68731         Likewise.
68732         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68733         * modules/unictype/property-other-id-continue-tests: Likewise.
68734         * modules/unictype/property-other-id-start-tests: Likewise.
68735         * modules/unictype/property-other-lowercase-tests: Likewise.
68736         * modules/unictype/property-other-math-tests: Likewise.
68737         * modules/unictype/property-other-uppercase-tests: Likewise.
68738         * modules/unictype/property-paired-punctuation-tests: Likewise.
68739         * modules/unictype/property-paragraph-separator-tests: Likewise.
68740         * modules/unictype/property-pattern-syntax-tests: Likewise.
68741         * modules/unictype/property-pattern-white-space-tests: Likewise.
68742         * modules/unictype/property-private-use-tests: Likewise.
68743         * modules/unictype/property-punctuation-tests: Likewise.
68744         * modules/unictype/property-quotation-mark-tests: Likewise.
68745         * modules/unictype/property-radical-tests: Likewise.
68746         * modules/unictype/property-sentence-terminal-tests: Likewise.
68747         * modules/unictype/property-soft-dotted-tests: Likewise.
68748         * modules/unictype/property-space-tests: Likewise.
68749         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68750         * modules/unictype/property-test-tests: Likewise.
68751         * modules/unictype/property-titlecase-tests: Likewise.
68752         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68753         * modules/unictype/property-unified-ideograph-tests: Likewise.
68754         * modules/unictype/property-uppercase-tests: Likewise.
68755         * modules/unictype/property-variation-selector-tests: Likewise.
68756         * modules/unictype/property-white-space-tests: Likewise.
68757         * modules/unictype/property-xid-continue-tests: Likewise.
68758         * modules/unictype/property-xid-start-tests: Likewise.
68759         * modules/unictype/property-zero-width-tests: Likewise.
68760         * modules/unictype/scripts-tests: Likewise.
68761         * modules/unictype/syntax-c-ident-tests: Likewise.
68762         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68763         * modules/unictype/syntax-java-ident-tests: Likewise.
68764         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68765         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68766         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68767         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68768         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68769         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68770         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68771         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68772         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68773         * modules/uniname/uniname-tests: Likewise.
68774         * modules/uninorm/canonical-decomposition-tests: Likewise.
68775         * modules/uninorm/compat-decomposition-tests: Likewise.
68776         * modules/uninorm/composition-tests: Likewise.
68777         * modules/uninorm/decomposing-form-tests: Likewise.
68778         * modules/uninorm/decomposition-tests: Likewise.
68779         * modules/uninorm/filter-tests: Likewise.
68780         * modules/uninorm/nfc-tests: Likewise.
68781         * modules/uninorm/nfd-tests: Likewise.
68782         * modules/uninorm/nfkc-tests: Likewise.
68783         * modules/uninorm/nfkd-tests: Likewise.
68784         * modules/uninorm/u8-normcmp-tests: Likewise.
68785         * modules/uninorm/u8-normcoll-tests: Likewise.
68786         * modules/uninorm/u16-normcmp-tests: Likewise.
68787         * modules/uninorm/u16-normcoll-tests: Likewise.
68788         * modules/uninorm/u32-normcmp-tests: Likewise.
68789         * modules/uninorm/u32-normcoll-tests: Likewise.
68790         * modules/unistdio/u8-asnprintf-tests: Likewise.
68791         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68792         * modules/unistdio/u8-vasprintf-tests: Likewise.
68793         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68794         * modules/unistdio/u8-vsprintf-tests: Likewise.
68795         * modules/unistdio/u16-asnprintf-tests: Likewise.
68796         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68797         * modules/unistdio/u16-vasprintf-tests: Likewise.
68798         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68799         * modules/unistdio/u16-vsprintf-tests: Likewise.
68800         * modules/unistdio/u32-asnprintf-tests: Likewise.
68801         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68802         * modules/unistdio/u32-vasprintf-tests: Likewise.
68803         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68804         * modules/unistdio/u32-vsprintf-tests: Likewise.
68805         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68806         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68807         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68808         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68809         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68810         * modules/unistr/u8-check-tests: Likewise.
68811         * modules/unistr/u8-chr-tests: Likewise.
68812         * modules/unistr/u8-cmp-tests: Likewise.
68813         * modules/unistr/u8-cmp2-tests: Likewise.
68814         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68815         * modules/unistr/u8-cpy-tests: Likewise.
68816         * modules/unistr/u8-mblen-tests: Likewise.
68817         * modules/unistr/u8-mbsnlen-tests: Likewise.
68818         * modules/unistr/u8-mbtouc-tests: Likewise.
68819         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68820         * modules/unistr/u8-mbtoucr-tests: Likewise.
68821         * modules/unistr/u8-move-tests: Likewise.
68822         * modules/unistr/u8-next-tests: Likewise.
68823         * modules/unistr/u8-prev-tests: Likewise.
68824         * modules/unistr/u8-set-tests: Likewise.
68825         * modules/unistr/u8-stpcpy-tests: Likewise.
68826         * modules/unistr/u8-stpncpy-tests: Likewise.
68827         * modules/unistr/u8-strcat-tests: Likewise.
68828         * modules/unistr/u8-strcmp-tests: Likewise.
68829         * modules/unistr/u8-strcoll-tests: Likewise.
68830         * modules/unistr/u8-strcpy-tests: Likewise.
68831         * modules/unistr/u8-strdup-tests: Likewise.
68832         * modules/unistr/u8-strlen-tests: Likewise.
68833         * modules/unistr/u8-strmblen-tests: Likewise.
68834         * modules/unistr/u8-strmbtouc-tests: Likewise.
68835         * modules/unistr/u8-strncat-tests: Likewise.
68836         * modules/unistr/u8-strncmp-tests: Likewise.
68837         * modules/unistr/u8-strncpy-tests: Likewise.
68838         * modules/unistr/u8-strnlen-tests: Likewise.
68839         * modules/unistr/u8-to-u16-tests: Likewise.
68840         * modules/unistr/u8-to-u32-tests: Likewise.
68841         * modules/unistr/u8-uctomb-tests: Likewise.
68842         * modules/unistr/u16-check-tests: Likewise.
68843         * modules/unistr/u16-chr-tests: Likewise.
68844         * modules/unistr/u16-cmp-tests: Likewise.
68845         * modules/unistr/u16-cmp2-tests: Likewise.
68846         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68847         * modules/unistr/u16-cpy-tests: Likewise.
68848         * modules/unistr/u16-mblen-tests: Likewise.
68849         * modules/unistr/u16-mbsnlen-tests: Likewise.
68850         * modules/unistr/u16-mbtouc-tests: Likewise.
68851         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68852         * modules/unistr/u16-mbtoucr-tests: Likewise.
68853         * modules/unistr/u16-move-tests: Likewise.
68854         * modules/unistr/u16-next-tests: Likewise.
68855         * modules/unistr/u16-prev-tests: Likewise.
68856         * modules/unistr/u16-set-tests: Likewise.
68857         * modules/unistr/u16-stpcpy-tests: Likewise.
68858         * modules/unistr/u16-stpncpy-tests: Likewise.
68859         * modules/unistr/u16-strcat-tests: Likewise.
68860         * modules/unistr/u16-strcmp-tests: Likewise.
68861         * modules/unistr/u16-strcoll-tests: Likewise.
68862         * modules/unistr/u16-strcpy-tests: Likewise.
68863         * modules/unistr/u16-strdup-tests: Likewise.
68864         * modules/unistr/u16-strlen-tests: Likewise.
68865         * modules/unistr/u16-strmblen-tests: Likewise.
68866         * modules/unistr/u16-strmbtouc-tests: Likewise.
68867         * modules/unistr/u16-strncat-tests: Likewise.
68868         * modules/unistr/u16-strncmp-tests: Likewise.
68869         * modules/unistr/u16-strncpy-tests: Likewise.
68870         * modules/unistr/u16-strnlen-tests: Likewise.
68871         * modules/unistr/u16-to-u32-tests: Likewise.
68872         * modules/unistr/u16-to-u8-tests: Likewise.
68873         * modules/unistr/u16-uctomb-tests: Likewise.
68874         * modules/unistr/u32-check-tests: Likewise.
68875         * modules/unistr/u32-chr-tests: Likewise.
68876         * modules/unistr/u32-cmp-tests: Likewise.
68877         * modules/unistr/u32-cmp2-tests: Likewise.
68878         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68879         * modules/unistr/u32-cpy-tests: Likewise.
68880         * modules/unistr/u32-mblen-tests: Likewise.
68881         * modules/unistr/u32-mbsnlen-tests: Likewise.
68882         * modules/unistr/u32-mbtouc-tests: Likewise.
68883         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68884         * modules/unistr/u32-mbtoucr-tests: Likewise.
68885         * modules/unistr/u32-move-tests: Likewise.
68886         * modules/unistr/u32-next-tests: Likewise.
68887         * modules/unistr/u32-prev-tests: Likewise.
68888         * modules/unistr/u32-set-tests: Likewise.
68889         * modules/unistr/u32-stpcpy-tests: Likewise.
68890         * modules/unistr/u32-stpncpy-tests: Likewise.
68891         * modules/unistr/u32-strcat-tests: Likewise.
68892         * modules/unistr/u32-strcmp-tests: Likewise.
68893         * modules/unistr/u32-strcoll-tests: Likewise.
68894         * modules/unistr/u32-strcpy-tests: Likewise.
68895         * modules/unistr/u32-strdup-tests: Likewise.
68896         * modules/unistr/u32-strlen-tests: Likewise.
68897         * modules/unistr/u32-strmblen-tests: Likewise.
68898         * modules/unistr/u32-strmbtouc-tests: Likewise.
68899         * modules/unistr/u32-strncat-tests: Likewise.
68900         * modules/unistr/u32-strncmp-tests: Likewise.
68901         * modules/unistr/u32-strncpy-tests: Likewise.
68902         * modules/unistr/u32-strnlen-tests: Likewise.
68903         * modules/unistr/u32-to-u16-tests: Likewise.
68904         * modules/unistr/u32-to-u8-tests: Likewise.
68905         * modules/unistr/u32-uctomb-tests: Likewise.
68906         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68907         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68908         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68909         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68910         * modules/uniwidth/u8-strwidth-tests: Likewise.
68911         * modules/uniwidth/u8-width-tests: Likewise.
68912         * modules/uniwidth/u16-strwidth-tests: Likewise.
68913         * modules/uniwidth/u16-width-tests: Likewise.
68914         * modules/uniwidth/u32-strwidth-tests: Likewise.
68915         * modules/uniwidth/u32-width-tests: Likewise.
68916         * modules/uniwidth/width-tests: Likewise.
68918 2010-05-18  Richard Jones  <rjones@redhat.com>
68920         doc: users.txt: list hivex
68921         * users.txt: Add hivex.
68923 2010-05-18  Richard Jones  <rjones@redhat.com>
68925         doc: users.txt: list febootstrap
68926         * users.txt: Add febootstrap.
68928 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68930         bootstrap: fix an error when gnulib is not used as a git submodule
68931         * build-aux/bootstrap (gnulib_path): If its length is zero then
68932         assign "gnulib" to it.
68933         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68935 2010-05-16  Bruno Haible  <bruno@clisp.org>
68937         Avoid autoconf warnings about AM_ICONV.
68938         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68939         2.64.
68941 2010-05-16  Bruno Haible  <bruno@clisp.org>
68943         absolute-header: Make the macro usable in more situations.
68944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68945         from gl_ABSOLUTE_HEADER.
68946         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68948 2010-05-16  James Youngman  <jay@gnu.org>
68950         doc: update users.txt
68951         * users.txt: Add CSSC.
68953 2010-05-16  Jim Meyering  <meyering@redhat.com>
68955         init.sh: fix an error in the previous change; add more comments
68956         * tests/init.sh: Compare exit code in loop against 9, not 2.
68957         Patch by Bruno Haible.
68958         Make the two tests more similar by adding an empty "then" clause.
68959         Add comments.
68961         init.sh: avoid unnecessary shell re-exec
68962         * tests/init.sh: Improve the re-exec-required check to first test the
68963         current shell.  If it passes the test, do not search for a shell that
68964         does pass, and do not re-exec.  This test is particularly contorted to
68965         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68966         of $(...) evokes a syntax error and causes immediate shell exit with
68967         status 2.  Bruno Haible reported that the re-exec made it impossible
68968         to single-step through any init.sh-using script.
68970 2010-05-16  Bruno Haible  <bruno@clisp.org>
68972         Fix collision between gnulib's and libintl's printf replacements.
68973         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68974         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68975         (printf): When using GNU C, map the __printf__ function to rpl_printf
68976         via __asm__. When not using GNU C, define rpl_printf instead of
68977         __printf__.
68978         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68979         commit.
68980         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68981         commit.
68982         * m4/asm-underscore.m4: New file.
68983         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68984         * modules/stdio (Files): Add m4/asm-underscore.m4.
68985         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68986         Reported by Ben Pfaff.
68988 2010-05-16  Bruno Haible  <bruno@clisp.org>
68990         verify: Avoid skipping the test on openSUSE 11.0.
68991         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68993 2010-05-13  Bruno Haible  <bruno@clisp.org>
68995         Avoid useless warnings from G++.
68996         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68997         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69000 2010-05-11  Jim Meyering  <meyering@redhat.com>
69002         maint.mk: tweak preceding change
69003         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
69004         regexps tighter by anchoring at EOL, and make the new group "shy"
69005         for slightly decreased overhead.
69007 2010-05-11  Eric Blake  <eblake@redhat.com>
69009         maint.mk: gnulib doesn't guarantee NSIG
69010         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
69012 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69014         test-pwrite.c: Remove unused variable declaration.
69015         * tests/test-pwrite.c (main): Remove read_buf declaration.
69017         Remove useless test-pwrite.sh file.
69018         * tests/test-pwrite.sh: Delete file.
69019         * modules/pwrite-tests: Remove references.
69020         Reported by Bruno Haible.
69022 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69024         init.sh: fix a typo
69025         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
69027 2010-05-10  Jim Meyering  <meyering@redhat.com>
69029         maint.mk: avoid using a temporary file in the always-defined-macros check
69030         * top/maint.mk (.re-defmac): Remove rule.
69031         (gl_trap_): Remove definition.
69032         (sc_prohibit_always-defined_macros): Rewrite not to create and
69033         depend on a temporary file.  Instead, depend on GNU grep's ability
69034         to read a list of regular expressions from stdin when given "-f -".
69036 2010-05-09  Bruno Haible  <bruno@clisp.org>
69038         Update to GNU gettext 0.18, part 1.
69039         * m4/gettext.m4: Update to GNU gettext 0.18.
69040         * m4/intl.m4: Likewise.
69041         * m4/po.m4: Likewise.
69042         * modules/gettext (Files): Add m4/fcntl-o.m4.
69043         (configure.ac): Require gettext infrastructure from version 0.18.
69045 2010-05-09  Jim Meyering  <meyering@redhat.com>
69047         init.sh: enable MALLOC_PERTURB_
69048         * tests/init.sh: Enable glibc's malloc-perturbing option.
69050         maint.mk: improve sc_cross_check_PATH_usage_in_tests
69051         With my recent change in init.sh from the two-line form:
69052             -#   : ${srcdir=.}
69053             -#   . "$srcdir/init.sh"; path_prepend_ .
69054             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
69055         I noticed that using the one-line form would cause this test
69056         to fail with a false-positive, or to stop working altogether,
69057         depending on whether help-version changed or all the tests did.
69058         * top/maint.mk (_hv_regex): Remove this definition.
69059         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
69060         (_hv_regex_strong): Use a stronger regex to check for conformance.
69061         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
69062         Give a separate diagnostic for lack of conforming use.
69064         maint.mk: prohibit definition of symbols defined by gnulib
69065         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
69066         definition of symbols defined by gnulib.
69068 2010-05-09  Bruno Haible  <bruno@clisp.org>
69070         acl: Avoid test failure on Cygwin-hosted mingw.
69071         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
69073 2010-05-09  Bruno Haible  <bruno@clisp.org>
69075         error: Use system's fcntl function.
69076         * lib/error.c (fcntl): Undefine.
69078 2010-05-09  Jim Meyering  <meyering@redhat.com>
69080         verify: adjust formatting to be more consistent
69081         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
69082         argument-list '('s, and after one comma.
69084 2010-05-09  Bruno Haible  <bruno@clisp.org>
69086         error: More reliable output on mingw.
69087         * lib/error.c: Include <windows.h>.
69088         (is_open): New function.
69089         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
69090         defined.
69092 2010-05-09  Bruno Haible  <bruno@clisp.org>
69094         vasnprintf: Fix syntax errors in libintl build on mingw.
69095         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
69096         pad_ourselves and prec_ourselves after use.
69098 2010-05-08  Bruno Haible  <bruno@clisp.org>
69100         * lib/config.charset: Update comments for Cygwin 1.7.
69101         * lib/localcharset.c: Likewise.
69103 2010-05-07  Jim Meyering  <meyering@redhat.com>
69105         init.sh: improve comments
69106         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
69107         . "${srcdir=.}/init.sh"; path_prepend_ .
69108         Add a note about path_prepend_ and the alternative of using
69109         TESTS_ENVIRONMENT.
69111 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69113         exclude: Unescape hashed patterns in wildcard mode.
69114         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
69115         to the hash list.
69116         * tests/test-exclude8.sh: New test case.
69117         * modules/exclude-tests: Add new test.
69119 2010-05-05  Eric Blake  <eblake@redhat.com>
69121         verify: automate tests
69122         * modules/verify-tests: New module.
69123         * tests/test-verify.sh: New file.
69124         * tests/test-verify.c: Guard each negative test with a unique id.
69125         Also avoid warning about unused left hand of comma expressions.
69127 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69129         Further improvements to verify.h, suggested by Eric Blake.
69130         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
69131         the GL_* versions, to avoid collision with OpenGL.
69132         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
69133         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
69134         than testing merely whether it's defined.
69136         Modify verify.h to pacify gcc -Wredundant_decls.
69137         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
69138         These use the prefix "GL_" since they're likely to be useful elsewhere.
69139         We may need to break them out into a different .h file.
69140         (__COUNTER__): Define to 0 if the compiler doesn't support it.
69141         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
69142         of verify_function__.
69144 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69146         Tests for module pwrite.
69147         * modules/pwrite-tests: New file.
69148         * tests/test-pwrite.sh: New file.
69149         * tests/test-pwrite.c: New file.
69151         New module pwrite.
69152         * lib/unistd.in.h (pwrite): New declaration.
69153         * lib/pwrite.c: New file, from glibc with modifications.
69154         * m4/pwrite.m4: New file.
69155         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
69156         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
69157         REPLACE_PWRITE.
69158         * modules/pwrite: New file.
69159         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
69160         REPLACE_PWRITE.
69161         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
69162         * doc/posix-functions/pwrite.texi: Mention the new module.
69164 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69166         pread: Update documentation.
69167         * doc/posix-functions/pread.texi: Mention the 'pread' module.
69169 2010-05-04  Eric Blake  <eblake@redhat.com>
69171         docs: update cygwin progress
69172         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
69173         this bug.
69174         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
69175         Added in cygwin 1.7.2.
69176         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
69177         Likewise.
69178         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
69179         Likewise.
69180         * doc/glibc-functions/dup3.texi (dup3): Likewise.
69181         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
69182         * doc/glibc-functions/accept4.texi (accept4): Likewise.
69183         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
69184         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
69185         Mention nproc module.
69186         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
69187         bug in cygwin 1.7.5 addition.
69188         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
69189         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
69190         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
69191         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
69192         1.7.5.
69193         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
69194         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
69195         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
69196         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
69197         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
69198         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
69199         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
69200         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
69201         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
69202         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
69203         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
69204         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
69205         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
69206         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
69207         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
69208         Likewise.
69209         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
69210         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
69211         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
69212         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
69213         Likewise.
69214         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
69215         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
69216         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
69217         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
69218         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
69219         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
69220         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
69221         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
69222         Likewise.
69223         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
69224         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
69225         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
69226         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
69227         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
69228         Likewise.
69229         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
69230         Likewise.
69231         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
69232         Likewise.
69233         * doc/glibc-functions/xdrrec_endofrecord.texi
69234         (xdrrec_endofrecord): Likewise.
69235         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
69236         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
69237         Likewise.
69238         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
69239         Likewise.
69241 2010-05-04  Jim Meyering  <meyering@redhat.com>
69243         gendocs.sh: make its "-s FILE" option more useful
69244         * build-aux/gendocs.sh: When honoring the -s FILE option, update
69245         $PACKAGE to reflect the probably-different basename of "FILE".
69247 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
69249         bootstrap: don't ignore download_po_files failure
69250         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
69251         failure.
69253 2010-05-03  Jim Meyering  <meyering@redhat.com>
69255         maint.mk: allow to pass options to gendocs.sh
69256         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
69257         (gendocs_options_): New overridable variable.
69259         gnu-web-doc-update: don't ignore configure or build failure
69260         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
69262         announce-gen: backslash-escape '@'s in --help output
69263         * build-aux/announce-gen: Fix syntax errors.
69265         maint.mk, announce-gen: allow project-specific announcement mail headers
69266         * top/maint.mk (translation_project_): Define default.
69267         (announcement_Cc_, announcement_mail_headers_): Likewise.
69268         (announcement): Invoke announce-gen with new --mail-headers option.
69269         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
69271         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
69272         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
69273         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
69274         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
69275         line in the "err2" output file when running "make check" in verbose
69276         mode (i.e., with set -x enabled).
69278 2010-05-03  Bruno Haible  <bruno@clisp.org>
69280         wctob: Fix for weird platforms.
69281         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
69282         argument value.
69284 2010-05-03  Jim Meyering  <meyering@redhat.com>
69286         maint.mk: prohibit unwarranted use of <strings.h>
69287         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
69288         strings.h in a file that does not also use strcasecmp, strncasecmp,
69289         ffs or ffsll.
69291         maint.mk: remove obsolete comments
69292         * top/maint.mk: Remove stale, commented-out rules.
69294 2010-05-02  Bruno Haible  <bruno@clisp.org>
69296         wcwidth: Declare also when it's aliased.
69297         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
69298         macro.
69300 2010-05-02  Bruno Haible  <bruno@clisp.org>
69302         Fix regression from 2010-04-25.
69303         * gnulib-tool (func_modules_transitive_closure): Check the status of
69304         all modules, not only of the tests that are of the form foo-tests where
69305         foo is a module.
69307 2010-05-02  Bruno Haible  <bruno@clisp.org>
69309         wctob: Work around nasty Cygwin 1.7.2 bug.
69310         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
69311         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
69313 2010-05-01  Bruno Haible  <bruno@clisp.org>
69315         fpurge: Sharper test.
69316         * tests/test-fpurge.c (main): Add one more ftell check.
69317         * modules/fpurge-tests (Depends-on): Add ftell.
69318         Suggested by Eric Blake.
69320 2010-05-01  Bruno Haible  <bruno@clisp.org>
69322         ftello: Another test.
69323         * tests/test-ftello3.c: New file.
69324         * modules/ftello-tests (Files): Add it.
69325         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69326         MOSTLYCLEANFILES.
69328         ftell: Another test.
69329         * tests/test-ftell3.c: New file.
69330         * modules/ftell-tests (Files): Add it.
69331         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69332         MOSTLYCLEANFILES.
69334 2010-05-01  Bruno Haible  <bruno@clisp.org>
69336         ftell, ftello: Work around Solaris bug.
69337         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
69338         * lib/ftello.c: Include stdio-impl.h.
69339         (ftello): On Solaris, when _IOWRT is set, compute the result without
69340         looking at _IOREAD.
69341         * modules/ftello (Files): Add lib/stdio-impl.h.
69342         * doc/posix-functions/ftell.texi: Mention Solaris bug.
69343         * doc/posix-functions/ftello.texi: Likewise.
69344         Reported by Eric Blake.
69346 2010-05-01  Bruno Haible  <bruno@clisp.org>
69348         freading: Adapt to special meaning of _IOREAD flag on Solaris.
69349         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
69350         the _IOWRT flag is also set.
69352 2010-05-01  Bruno Haible  <bruno@clisp.org>
69354         Fix doc about a HP-UX stdio bug.
69355         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
69356         * doc/posix-functions/ftello.texi: Likewise.
69358 2010-05-01  Bruno Haible  <bruno@clisp.org>
69360         lseek test: Fix failure on Solaris.
69361         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
69362         output.
69364 2010-04-30  Jim Meyering  <meyering@redhat.com>
69366         bootstrap: don't ignore failure to generate po*/Makevars
69367         * build-aux/bootstrap (with_gettext): Don't ignore failure
69368         to create po/Makevars or runtime-po/Makevars.
69370 2010-04-29  Eric Blake  <eblake@redhat.com>
69372         headers: relax license to LGPLv2+
69373         * modules/fcntl-h (License): Relax license.
69374         * modules/getopt-posix (License): Likewise.
69375         * modules/locale (License): Likewise.
69376         * modules/math (License): Likewise.
69377         * modules/pty (License): Likewise.
69378         * modules/sched (License): Likewise.
69379         * modules/search (License): Likewise.
69380         * modules/spawn (License): Likewise.
69381         * modules/stdarg (License): Likewise.
69382         * modules/sysexits (License): Likewise.
69384 2010-04-29  Jim Meyering  <meyering@redhat.com>
69386         inttypes: relax license to LGPLv2+
69387         * modules/inttypes (License): Relax license.
69389 2010-04-29  Simon Josefsson  <simon@josefsson.org>
69391         * top/maint.mk (indent): Run twice to produce idempotent results.
69393 2010-04-28  Bruno Haible  <bruno@clisp.org>
69395         getdate: Generate getdate.c in the source directory.
69396         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
69397         MOSTLYCLEANFILES.
69398         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
69400 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
69402         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
69403         is not declared as a const *; avoid warnings in that case.
69405 2010-04-28  Eric Blake  <eblake@redhat.com>
69407         canonicalize-lgpl: avoid compiler warning
69408         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
69409         declaration' / 'extraneous semicolon' warning with some compilers.
69410         Reported by Andreas Gruenbacher.
69412 2010-04-28  Jim Meyering  <meyering@redhat.com>
69414         init.sh: ensure a more reliable exit status when exiting via trap
69415         * tests/init.sh (setup_): Don't rely on $? in signal handler.
69416         Inspired by patches from Dmitry V. Levin.
69417         Also trap on signal 3 (SIGQUIT).
69419 2010-04-27  Bruno Haible  <bruno@clisp.org>
69421         Update doc about utimes().
69422         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69423         'utimens' module.
69424         Reported by Andreas Gruenbacher <agruen@suse.de>.
69426 2010-04-27  Eric Blake  <eblake@redhat.com>
69428         full-read, full-write: relax license
69429         * modules/full-read (License): Drop to LGPLv2+.
69430         * modules/full-write (License): Likewise.
69431         * modules/safe-read (License): Likewise.
69432         * modules/safe-write (License): Likewise.
69434         pthread: mention library for linking
69435         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69437 2010-04-27  Jim Meyering  <meyering@redhat.com>
69439         maint.mk: fix a bug introduced in last change
69440         * top/maint.mk (gl_assured_headers_): Now that all names are on
69441         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69442         is not anchored to end of word, it should be adequate.
69444         maint.mk: avoid side-effect in latest syntax-check
69445         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69446         to run commands via $(shell...), and hence to incur cost only when
69447         the new rule is actually run.
69449         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69450         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69451         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69452         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69453         (gl_assured_headers_, az_, AZ_): Define.
69454         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69456 2010-04-26  Jim Meyering  <jim@meyering.net>
69457             Bruno Haible  <bruno@clisp.org>
69459         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69460         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69461         Prompted by an exchange with Gilles Espinasse.
69463 2010-04-26  Jim Meyering  <meyering@redhat.com>
69465         git-version-gen: aesthetic tweak
69466         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69467         so that the command remains on a single line.
69469 2010-04-26  Eric Blake  <eblake@redhat.com>
69471         git-version-gen: allow use on EBCDIC hosts
69472         * build-aux/git-version-gen (dirty): Use literal rather than tying
69473         ourselves to ascii.
69474         Reported by Steve Goetze.
69476 2010-04-25  Bruno Haible  <bruno@clisp.org>
69478         netdb: Add support for GNULIB_POSIXCHECK.
69479         * lib/netdb.in.h: Include warn-on-use.h.
69480         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69481         functions are used when GNULIB_POSIXCHECK is defined and the
69482         getaddrinfo module is not in use.
69483         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69484         freeaddrinfo, gai_strerror, getnameinfo are declared.
69485         * modules/netdb (Depends-on): Add warn-on-use.
69486         (Makefile.am): Include warn-on-use.h in netdb.h.
69488 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69490         build: avoid "make check" failure without .git/ directory
69491         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69492         there is no .git/ directory.
69494 2010-04-25  Bruno Haible  <bruno@clisp.org>
69496         ptsname: Fix misuse of ttyname_r.
69497         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69498         of errno.
69500 2010-04-25  Bruno Haible  <bruno@clisp.org>
69502         ttyname_r: Make it work on Solaris 10.
69503         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69504         if the system function has the POSIX declaration. Test whether the
69505         function fails if the buffer is less than 128 bytes large.
69506         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69507         system's ttyname_r function. Provide a reasonably large buffer.
69508         * modules/ttyname_r (Depends-on): Add extensions.
69509         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69511 2010-04-25  Bruno Haible  <bruno@clisp.org>
69513         Use the 'extensions' module for some more functions on Solaris.
69514         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69515         module.
69516         * doc/posix-functions/ctime_r.texi: Likewise.
69517         * doc/posix-functions/getgrgid_r.texi: Likewise.
69518         * doc/posix-functions/getgrnam_r.texi: Likewise.
69519         * doc/posix-functions/getpwnam_r.texi: Likewise.
69520         * doc/posix-functions/getpwuid_r.texi: Likewise.
69521         * doc/posix-functions/readdir_r.texi: Likewise.
69522         * doc/posix-functions/sigwait.texi: Likewise.
69523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69524         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69526 2010-04-25  Bruno Haible  <bruno@clisp.org>
69528         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69529         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69530         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69531         * lib/ttyname_r.c: Include <limits.h>.
69532         (ttyname_r): Define using the system's ttyname_r function, if it exists
69533         and not on Solaris.
69534         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69535         set.
69536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69537         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69538         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69539         Reported by Simon Josefsson.
69541 2010-04-25  Bruno Haible  <bruno@clisp.org>
69543         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69544         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69545         * doc/posix-functions/ctime_r.texi: Likewise.
69546         * doc/posix-functions/getgrgid_r.texi: Likewise.
69547         * doc/posix-functions/getgrnam_r.texi: Likewise.
69548         * doc/posix-functions/getlogin_r.texi: Likewise.
69549         * doc/posix-functions/getpwnam_r.texi: Likewise.
69550         * doc/posix-functions/getpwuid_r.texi: Likewise.
69551         * doc/posix-functions/readdir_r.texi: Likewise.
69552         * doc/posix-functions/sigwait.texi: Likewise.
69553         * doc/posix-functions/ttyname_r.texi: Likewise.
69554         Reported by Simon Josefsson.
69556 2010-04-25  Bruno Haible  <bruno@clisp.org>
69558         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69559         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69560         also to --create-testdir.
69561         (func_acceptable): Don't consider the status of *-tests modules here.
69562         (func_modules_transitive_closure): Consider it here, before including a
69563         test module.
69564         (func_import, func_create_testdir): Set inc_all_direct_tests,
69565         inc_all_indirect_tests.
69566         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69567         --create-testdir and --create-megatestdir.
69569 2010-04-25  Bruno Haible  <bruno@clisp.org>
69571         gnulib-tool: Add --without-*-tests options.
69572         * gnulib-tool (func_usage): Document the --without-*-tests options.
69573         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69574         excl_unportable_tests): New variables.
69575         Fail if they are specified with --import or --update.
69576         (func_acceptable): Respect the excl_*_tests variables.
69577         (func_import): Set the excl_*_tests variables to empty.
69579 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69580             Bruno Haible  <bruno@clisp.org>
69582         Work around a MacOS X 10.4 bug with openpty.
69583         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69584         * tests/test-openpty.c (main): Close the master side explicitly.
69586 2010-04-25  Bruno Haible  <bruno@clisp.org>
69588         strnlen: Fix a C++ test error on MacOS X and Solaris.
69589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69590         the function is not declared.
69591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69592         Simon Josefsson.
69594 2010-04-24  Bruno Haible  <bruno@clisp.org>
69596         Avoid a gcc warning.
69597         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69598         of correct type for %08lx directive.
69599         Reported by Eric Blake.
69601 2010-04-24  Bruno Haible  <bruno@clisp.org>
69603         vasnprintf: Correct errno value in case of out-of-memory.
69604         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69605         or sprintf. Use the errno value from SNPRINTF or sprintf.
69606         Reported by Ian Beckwith <ianb@erislabs.net>.
69608 2010-04-24  Bruno Haible  <bruno@clisp.org>
69610         ansi-c++-opt: Find correct compiler when cross-compiling.
69611         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69612         AC_CHECK_PROGS.
69613         Reported by Simon Josefsson.
69615 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69617         vc-list-files: Add support for subversion
69618         * build-aux/vc-list-files: Use "svn list" to generate the list of
69619         files controlled by subversion.
69621 2010-04-23  Jim Meyering  <meyering@redhat.com>
69623         vc-list-files tests: convert to use init.sh
69624         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69625         path_prepend_.
69626         Use Exit, not exit.
69627         Use skip_ rather than open coding it.
69628         Remove trap set-up and compare definitions.
69629         * tests/test-vc-list-files-git.sh: Likewise.
69630         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69632 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69634         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69635         backup files.
69637 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69639         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69641 2010-04-20  Eric Blake  <eblake@redhat.com>
69643         tests: be robust to ignored SIGPIPE
69644         * tests/test-select-in.sh: Consume all output.
69645         * tests/test-lseek.sh: Check correct exit status, while avoiding
69646         EPIPE.
69648 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69649             Bruno Haible  <bruno@clisp.org>
69651         visibility: Don't use -fvisibility if it leads to a warning.
69652         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69653         yes, don't pretend that visibility works if it leads to a warning.
69654         Reported by Mike Gran <spk121@yahoo.com>.
69656 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69658         * build-aux/bootstrap: Use "git -h" for testing for supported options
69659         instead of "git --help".  The short-form option only shows a summary,
69660         and doesn't layout the full man page.  Grep for the full option name
69661         in the summary, too.
69663 2010-04-19  Bruno Haible  <bruno@clisp.org>
69665         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69667         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69668         mention of RELOCATABLE_STRIP.
69669         Reported by Sylvain Beucler <beuc@beuc.net>.
69671 2010-04-19  Bruno Haible  <bruno@clisp.org>
69673         * lib/diffseq.h: Fix typo in comment.
69674         Reported by Eric Blake.
69676 2010-04-19  Bruno Haible  <bruno@clisp.org>
69678         ioctl: Move autoconf macro to a .m4 file.
69679         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69680         * modules/ioctl (Files): Add it.
69681         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69682         Reported by Ian Beckwith <ianb@erislabs.net>.
69684 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69685             Bruno Haible  <bruno@clisp.org>
69687         diffseq: Accommodate use-case with abstract arrays.
69688         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69689         is not defined.
69690         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69691         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69693 2010-04-18  Bruno Haible  <bruno@clisp.org>
69695         * doc/posix-headers/stdbool.texi: More precise wording.
69697 2010-04-17  Jim Meyering  <meyering@redhat.com>
69699         maint.mk: use gnu-style indentation in an embedded perl script
69700         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69701         Rename variable: s/two/last_two_bytes/
69703 2010-04-16  Eric Blake  <eblake@redhat.com>
69705         test-stdbool: skip test that fails with Solaris CC
69706         * tests/test-stdbool.c (f): Skip test that causes compilation
69707         error under buggy C++ compiler.
69708         * lib/stdbool.in.h: Document the limitation.
69709         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69711         setenv: allow compilation with C++
69712         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69713         register keyword.
69715         stdint: allow test to pass with C++
69716         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69718         getopt: allow compilation with C++
69719         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69720         struct.
69721         * lib/getopt.c (_getopt_internal_r): Use correct type.
69722         Reported by Dagobert Michelson, via Joel E. Denny.
69724 2010-04-16  Bruno Haible  <bruno@clisp.org>
69726         Override netdb.h always.
69727         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69728         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69729         Reported by Ludovic Courtès <ludo@gnu.org>.
69731 2010-04-15  Bruno Haible  <bruno@clisp.org>
69733         openpty: Fix mistake from 2010-03-21.
69734         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69735         Reported by Simon Josefsson.
69737 2010-04-15  Eric Blake  <eblake@redhat.com>
69739         test-forkpty: fix expected signature
69740         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69741         Reported by Simon Josefsson.
69743 2010-04-15  Jim Meyering  <meyering@redhat.com>
69745         maint.mk: texinfo_suffix_re_: correct the default regexp
69746         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69748         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69749         make it configurable via texinfo_suffix_re_.
69751 2010-04-14  Eric Blake  <eblake@redhat.com>
69753         strtok_r: relax license to LGPLv2+
69754         * modules/strtok_r (License): Relax license.
69755         Reported by Matthias Bolte.
69757 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69759         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69760         version 1.4.4 by default instead of requiring the libgcrypt
69761         version used during build.  This makes it possible to use the
69762         application with older but still binary compatible libgcrypt
69763         versions.
69765 2010-04-13  Eric Blake  <eblake@redhat.com>
69767         getopt-gnu: match recent glibc fixes and posix ruling
69768         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69769         '+' handling, when requesting extensions.
69770         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69771         'W;' handling.
69772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69773         * doc/posix-functions/getopt.texi (getopt): Document this.
69774         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69775         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69776         Likewise.
69778         getopt: merge bug fixes from glibc
69779         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69780         diagnostics.  Honor '+:' correctly.  Reject ';'.
69782         getopt-posix: detect MacOS bug
69783         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69784         optind when missing a required argument.
69785         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69786         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69788         Likewise.
69790         getopt-posix: avoid spurious failure on Solaris
69791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69792         an indicator that setting optind=1 is sufficient for reset.
69794         getopt-posix: avoid spurious failure on FreeBSD
69795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69796         in POSIX mode, since the m4 test uses it.
69798         gnulib-tool: silence warning on BSD sh
69799         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69801 2010-04-13  Jim Meyering  <meyering@redhat.com>
69803         doc: users.txt: GNU patch now uses gnulib
69804         * users.txt: Add patch.
69806 2010-04-12  Jim Meyering  <meyering@redhat.com>
69808         maint.mk: generate more concise timing data for syntax-check rules
69809         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69810         " done" from each line that reports a syntax-check test duration.
69812 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69814         git-version-gen: use "git update-index..." rather than "git status"
69815         * build-aux/git-version-gen: Use git update-index --refresh, not
69816         "git status".  With some versions of git, "git status" would fail
69817         to update the index and result in an unwarranted "-dirty" suffix.
69819 2010-04-11  Jim Meyering  <meyering@redhat.com>
69821         openat: correct formatting (no semantic change)
69822         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69823         Suggested by Bruno Haible.
69825 2010-04-11  Bruno Haible  <bruno@clisp.org>
69827         Stricter declaration checking in testdirs.
69828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69829         If for_tests is true, augment AM_CPPFLAGS to define
69830         GNULIB_STRICT_CHECKING.
69831         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69832         GNULIB_STRICT_CHECKING is defined, verify that the function is
69833         declared.
69835 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69836             Bruno Haible  <bruno@clisp.org>
69838         libunistring: Improve configure output.
69839         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69840         Don't say "consider installing GNU libunistring" when checking again
69841         with libiconv.
69843 2010-04-11  Bruno Haible  <bruno@clisp.org>
69845         libunistring: Correct value of $LTLIBUNISTRING.
69846         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69847         correct the value of $LTLIBUNISTRING.
69849 2010-04-11  Bruno Haible  <bruno@clisp.org>
69851         havelib: Add static libraries to LIBS in the right order.
69852         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69853         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69855 2010-04-11  Bruno Haible  <bruno@clisp.org>
69857         libunistring: Detect libunistring also when it depends on libiconv.
69858         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69859         the second AC_LIB_HAVE_LINKFLAGS invocation.
69861 2010-04-11  James Youngman  <jay@gnu.org>
69863         close-stream: declare local scalars to be "const"
69864         * lib/close-stream.c (close_stream): Make boolean variables const
69865         to document the fact that we set but do not change them.
69867 2010-04-11  Bruno Haible  <bruno@clisp.org>
69869         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69871 2010-04-11  Jim Meyering  <meyering@redhat.com>
69873         maint.mk: don't include dist-check.mk
69874         * top/maint.mk: Remove bogus include directive.
69876         maint.mk: improve empty-line-at-EOF check
69877         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69878         solution, rather than tail+Perl-based one.  The latter would read
69879         a few kilobytes from the end of each file, and did not handle empty
69880         files properly.
69882         maint.mk: print the elapsed time for each syntax-check rule
69883         * top/maint.mk (sc_m_rules_): Save start time in a file.
69884         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69885         (local-check): Interpose the .z rules
69887 2010-04-11  Jim Meyering  <meyering@redhat.com>
69889         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69890         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69891         empty file with one that ends in an empty line.
69893 2010-04-10  Bruno Haible  <bruno@clisp.org>
69895         mkdir: Make it work on mingw64.
69896         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69897         * lib/mkdir.c: Update comment.
69898         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69900 2010-04-10  Bruno Haible  <bruno@clisp.org>
69902         Don't override improved macro from newer autoconf.
69903         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69904         autoconf >= 2.62.
69905         Reported by Joel E. Denny <jdenny@clemson.edu>.
69907 2010-04-10  Jim Meyering  <meyering@redhat.com>
69909         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69910         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69912         maint.mk: correct a diagnostic
69913         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69914         in diagnostic; now use $prohibit.
69916 2010-04-10  Bruno Haible  <address@hidden>
69918         fchownat: Fix a C++ test error on Solaris 8.
69919         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69920         the function does not exist.
69922 2010-04-10  Bruno Haible  <bruno@clisp.org>
69924         vasnprintf: Add more tests.
69925         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69926         (test_function): Test converting an invalid wide string.
69928         vasnprintf: Correct handling of unconvertible wide string arguments.
69929         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69930         VASNPRINTF.
69931         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69932         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69933         smaller than the expected maximum need for the directive. Set errno to
69934         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69935         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69937         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69938         * modules/vasnprintf (Files): Add m4/printf.m4.
69939         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69941 2010-04-10  Bruno Haible  <bruno@clisp.org>
69943         vasnprintf: Fix crash in %ls directive.
69944         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69945         string is passed as argument to %ls, with no precision and no width.
69946         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69948 2010-04-10  Bruno Haible  <bruno@clisp.org>
69950         vasnprintf: Fix multiple test failures on mingw.
69951         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69952         _snprintf, or snwprintf, not _snwprintf.
69954 2010-04-10  Bruno Haible  <bruno@clisp.org>
69956         write: Fix a C++ test error on mingw.
69957         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69959 2010-04-10  Bruno Haible  <bruno@clisp.org>
69961         vasnprintf test: Reduce code duplication.
69962         * tests/test-vasnprintf.c (test_function): New function, extracted from
69963         test_vasnprintf.
69964         (test_vasnprintf, test_asnprintf): Invoke it.
69966 2010-04-10  Bruno Haible  <bruno@clisp.org>
69968         strnlen: Fix warning in C++ mode on MacOS X.
69969         * lib/string.in.h (strnlen): Use the modern idiom.
69970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69971         defining strnlen as a macro already in <config.h>.
69972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69973         REPLACE_STRNLEN.
69974         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69975         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69977 2010-04-08  James Youngman  <jay@gnu.org>
69979         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69980         the example.
69982 2010-04-09  Jim Meyering  <meyering@redhat.com>
69984         maint.mk: print better diagnostic when there is no $(_hv_file)
69985         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69986         announce that when $(_hv_file) (aka help-version) does not exist.
69988         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69989         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69990         not try to interpret its random input bytes.  Jarno Rajahalme reported
69991         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69992         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69993         (mktempd_): Likewise, just in case.
69995         ftruncate: add two years to projected module removal date: 2012
69996         * m4/ftruncate.m4: Adjust comments.
69998         ftruncate: mark module as obsolete; even MinGW provides it, now
69999         * modules/ftruncate (Status): Obsolete.
70000         (Notice): Say that.
70001         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
70002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
70004 2010-04-08  Bruno Haible  <bruno@clisp.org>
70006         Fix side effects from tests-related modules.
70007         * modules/dprintf-posix (Comment): New section.
70008         * modules/fprintf-posix (Comment): Likewise.
70009         * modules/obstack-printf-posix (Comment): Likewise.
70010         * modules/printf-posix (Comment): Likewise.
70011         * modules/snprintf-posix (Comment): Likewise.
70012         * modules/sprintf-posix (Comment): Likewise.
70013         * modules/vasnprintf-posix (Comment): Likewise.
70014         * modules/vasprintf-posix (Comment): Likewise.
70015         * modules/vdprintf-posix (Comment): Likewise.
70016         * modules/vfprintf-posix (Comment): Likewise.
70017         * modules/vprintf-posix (Comment): Likewise.
70018         * modules/vsnprintf-posix (Comment): Likewise.
70019         * modules/vsprintf-posix (Comment): Likewise.
70020         * modules/xprintf-posix (Comment): Likewise.
70021         * modules/xvasprintf-posix (Comment): Likewise.
70022         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
70023         * modules/floorf-tests (Depends-on): Likewise.
70024         * modules/round-tests (Depends-on): Likewise.
70025         * modules/roundf-tests (Depends-on): Likewise.
70026         * modules/trunc-tests (Depends-on): Likewise.
70027         * modules/truncf-tests (Depends-on): Likewise.
70028         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
70029         'fprintf-posix' module is not present.
70030         * tests/test-floorf2.c (check): Likewise.
70031         * tests/test-trunc2.c (check): Likewise.
70032         * tests/test-truncf2.c (check): Likewise.
70033         * tests/test-round2.c (equal): Likewise.
70034         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70036 2010-04-07  Karl Berry  <karl@gnu.org>
70038         * config/srclist.txt,
70039         * config/srclistvars.sh,
70040         * config/srclist-update: doc fixes.
70042 2010-04-07  Jim Meyering  <meyering@redhat.com>
70044         maint.mk: add a PATH crosschecking syntax-check rule
70045         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
70046         Useful if you use a test like the one in help-version (coreutils,
70047         diffutils, grep, gzip) that ensures $(VERSION) matches what is
70048         printed by prog --version.
70050 2010-04-06  Bruno Haible  <bruno@clisp.org>
70052         Fix link error on mingw.
70053         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
70054         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
70056 2010-04-06  Bruno Haible  <bruno@clisp.org>
70058         Assume rmdir exists.
70059         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
70061 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
70063         doc: update users.txt
70064         * users.txt: Add gcal.
70066 2010-04-06  Jim Meyering  <meyering@redhat.com>
70068         init.sh: simply unset TMPDIR rather than risking env -i
70069         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
70070         although it probably works fine on all Unix-based systems, some
70071         systems (Cygwin?) cannot tolerate a totally cleared environment.
70072         Suggestion from Eric Blake.
70074 2010-04-06  Jim Meyering  <meyering@redhat.com>
70076         init.sh: portability fix: use env's POSIX-specified -i option not -u
70077         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
70078         than unportable env -u.  Solaris 5.11's env lacks support for -u.
70080 2010-04-05  Bruno Haible  <bruno@clisp.org>
70082         btowc: Work around Cygwin 1.7.2 bug.
70083         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
70084         does not map NUL to 0.
70085         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
70087 2010-04-05  Bruno Haible  <bruno@clisp.org>
70089         Make the multithread modules work on Cygwin 1.7.2.
70090         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
70091         imported symbols can be declared weak, so that it returns "no" on
70092         Cygwin 1.7.2.
70094 2010-04-05  Bruno Haible  <bruno@clisp.org>
70096         Use the module 'strncat'.
70097         * modules/unistr/u8-strncat (Depends-on): Add strncat.
70099         Tests for module 'strncat'.
70100         * modules/strncat-tests: New file.
70101         * tests/test-strncat.c: New file.
70103         New module 'strncat'.
70104         * lib/string.in.h (strncat): New declaration.
70105         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
70106         * m4/strncat.m4: New file, based on m4/memchr.m4.
70107         * modules/strncat: New file.
70108         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
70109         is declared.
70110         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
70111         REPLACE_STRNCAT.
70112         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
70113         REPLACE_STRNCAT.
70114         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
70115         module.
70116         * tests/test-string-c++.cc: Check signature of strncat.
70118 2010-04-05  Jim Meyering  <meyering@redhat.com>
70120         xstrtoumax-tests: convert to use init.sh
70121         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
70122         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70123         Use Exit, not exit.
70124         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70126         xstrtoimax-tests: convert to use init.sh
70127         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
70128         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70129         Use Exit, not exit.
70130         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70132 2010-04-05  Bruno Haible  <bruno@clisp.org>
70134         sys_socket: Avoid #define replacements in C++ mode.
70135         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
70136         warning to the function if possible, rather than #defining the symbol
70137         to a dysfunctional alias.
70139 2010-04-05  Bruno Haible  <bruno@clisp.org>
70141         fseeko: Fix C++ test error on mingw.
70142         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
70143         gl_FUNC_FSEEKO.
70144         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
70145         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
70146         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
70147         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
70149 2010-04-05  Bruno Haible  <bruno@clisp.org>
70151         duplocale: Improve test output.
70152         * tests/test-duplocale.c (main): Print reason for skipped test.
70154 2010-04-05  Bruno Haible  <bruno@clisp.org>
70156         Assume rmdir exists.
70157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
70158         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
70160 2010-04-05  Bruno Haible  <bruno@clisp.org>
70162         Fix link error on Solaris 8 with cc.
70163         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
70165 2010-04-05  Bruno Haible  <bruno@clisp.org>
70167         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70168         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
70170 2010-04-05  Bruno Haible  <bruno@clisp.org>
70172         vasprintf: Update documentation.
70173         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
70175 2010-04-05  Bruno Haible  <bruno@clisp.org>
70177         ptsname: Improve test.
70178         * tests/test-ptsname.c (main): Also try the various master names of BSD
70179         systems.
70181 2010-04-05  Bruno Haible  <bruno@clisp.org>
70183         memchr: Avoid a possible C++ test error.
70184         * lib/string.in.h (memchr): Provide declaration if function is missing.
70185         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
70186         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
70187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
70188         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
70190 2010-04-05  Bruno Haible  <bruno@clisp.org>
70192         strtok_r: Improve idiom.
70193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
70194         AC_LIBOBJ is used.
70196 2010-04-05  Bruno Haible  <bruno@clisp.org>
70198         strdup: Improve idiom.
70199         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
70200         AC_LIBOBJ is used.
70201         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
70202         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
70203         when AC_LIBOBJ is used.
70205 2010-04-05  Bruno Haible  <bruno@clisp.org>
70207         mbsinit, mbrtowc, wcrtomb: Improve idioms.
70208         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
70209         don't set REPLACE_MBSINIT to 1.
70210         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
70211         don't set REPLACE_MBRTOWC to 1.
70212         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
70213         exist, don't set REPLACE_MBSRTOWCS to 1.
70214         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
70215         exist, don't set REPLACE_MBSNRTOWCS to 1.
70216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
70217         don't set REPLACE_WCRTOMB to 1.
70218         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
70219         exist, don't set REPLACE_WCSRTOMBS to 1.
70220         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
70221         exist, don't set REPLACE_WCSNRTOMBS to 1.
70223 2010-04-05  Bruno Haible  <bruno@clisp.org>
70225         ldexpl: Improve idiom.
70226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
70227         make sure to set HAVE_DECL_LDEXPL to 0.
70229 2010-04-05  Jim Meyering  <meyering@redhat.com>
70231         xstrtol-tests: convert to use init.sh
70232         * modules/xstrtol-tests (Files): Add tests/init.sh.
70233         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70234         Use Exit, not exit.
70235         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70237         atexit-tests: convert to use init.sh
70238         * modules/atexit-tests (Files): Add tests/init.sh.
70239         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70240         Use Exit, not exit.
70241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70243         init.sh: fix typo
70244         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
70246         init.sh: make it easier for a test script to write to the tty, ...
70247         when using automake's parallel-tests mode.
70248         * tests/init.sh (stderr_fileno_): Define overridable variable.
70249         (warn_): New function, to use it.
70250         (fail_, skip_, framework_failure_): Use warn_.
70252 2010-04-04  Bruno Haible  <bruno@clisp.org>
70254         btowc: Avoid warning.
70255         * lib/btowc.c: Include <stdlib.h>.
70256         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
70258 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70259             Bruno Haible  <bruno@clisp.org>
70261         wchar: Port to NetBSD 1.5.
70262         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
70263         * lib/wctype.in.h (WEOF): Likewise.
70265 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70266             Bruno Haible  <bruno@clisp.org>
70268         Port extended stdio to NetBSD 1.5.
70269         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
70270         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
70271         older.
70273 2010-04-04  Bruno Haible  <bruno@clisp.org>
70275         string: Remove unused substitution.
70276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70277         HAVE_DECL_STRERROR.
70278         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
70280 2010-04-04  Bruno Haible  <bruno@clisp.org>
70282         strtod: Avoid a possible C++ test error.
70283         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
70284         set REPLACE_STRTOD.
70286 2010-04-04  Bruno Haible  <bruno@clisp.org>
70288         strerror: Update documentation.
70289         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
70291 2010-04-04  Bruno Haible  <bruno@clisp.org>
70293         stdio: Fix some C++ test errors on Solaris 8 with GCC.
70294         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
70295         _GL_CXXALIAS_SYS_CAST.
70297 2010-04-04  Bruno Haible  <bruno@clisp.org>
70299         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70300         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
70301         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
70302         REPLACE_FREXPL to 1.
70303         * doc/posix-functions/frexpl.texi: Update documentation.
70305 2010-04-04  Bruno Haible  <bruno@clisp.org>
70307         math: Fix some C++ test errors on Solaris 8 and Cygwin.
70308         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
70310 2010-04-04  Bruno Haible  <bruno@clisp.org>
70312         Implement nanosleep for native Windows.
70313         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
70315 2010-04-04  Bruno Haible  <bruno@clisp.org>
70317         math: Fix some C++ test errors on Solaris 8.
70318         * lib/math.in.h (truncf, trunc): Use simpler idiom.
70320 2010-04-04  Bruno Haible  <bruno@clisp.org>
70322         math: Fix some C++ test errors on Cygwin.
70323         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
70324         truncl): Provide declaration if the system does not have it.
70325         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
70326         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
70327         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
70328         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
70329         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
70330         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
70331         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
70332         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
70333         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
70334         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
70335         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
70336         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
70337         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
70338         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
70339         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
70340         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
70341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
70342         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70343         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70344         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
70345         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70346         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70348 2010-04-04  Bruno Haible  <bruno@clisp.org>
70350         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
70351         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
70352         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
70353         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
70354         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70355         * m4/isinf.m4 (gl_ISINF): Likewise.
70356         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
70358 2010-04-04  Bruno Haible  <bruno@clisp.org>
70360         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
70361         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
70363 2010-04-04  Bruno Haible  <bruno@clisp.org>
70365         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
70366         * modules/tmpfile (configure.ac): Update.
70368         tmpfile: Fix C++ test error on mingw.
70369         * lib/stdio.in.h (tmpfile): New declaration.
70370         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
70371         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
70372         * modules/tmpfile (Depends-on): Add stdio.
70373         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70374         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
70375         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
70376         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
70377         REPLACE_TMPFILE.
70378         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
70380 2010-04-04  Bruno Haible  <bruno@clisp.org>
70382         ioctl: Fix C++ test error on mingw.
70383         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
70384         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
70385         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
70387 2010-04-03  Bruno Haible  <bruno@clisp.org>
70389         wcwidth: Fix C++ test error on mingw.
70390         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
70391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
70392         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
70394 2010-04-03  Bruno Haible  <bruno@clisp.org>
70396         nanosleep: Fix C++ test error on mingw.
70397         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
70398         * lib/time.in.h (nanosleep): Use modern idiom.
70399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
70400         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
70401         REPLACE_NANOSLEEP to 1.
70402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
70403         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
70405 2010-04-03  Bruno Haible  <bruno@clisp.org>
70407         strptime: Fix C++ test error on mingw.
70408         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
70409         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
70410         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
70411         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
70412         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
70413         not REPLACE_STRPTIME.
70414         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
70415         REPLACE_STRPTIME.
70417 2010-04-03  Bruno Haible  <bruno@clisp.org>
70419         timegm: Fix C++ test error on mingw.
70420         * lib/time.in.h (timegm): Use modern idiom.
70421         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70422         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70424         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70426 2010-04-03  Bruno Haible  <bruno@clisp.org>
70428         timegm: Assume declaration if function exists.
70429         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70430         if it exists. Don't clobber ac_cv_func_timegm.
70432 2010-04-03  Bruno Haible  <bruno@clisp.org>
70434         time_r: Fix C++ test error on mingw.
70435         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70436         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70437         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70438         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70439         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70441 2010-04-03  Bruno Haible  <bruno@clisp.org>
70443         time_r: Minor updates.
70444         * modules/time_r (Description): Mention the provided functions.
70445         * lib/time_r.c: Don't include <string.h>.
70446         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70447         * doc/posix-functions/localtime_r.texi: Likewise.
70449 2010-04-03  Bruno Haible  <bruno@clisp.org>
70451         time: Fix regression introduced on 2010-03-08.
70452         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70453         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70455 2010-04-03  Jim Meyering  <meyering@redhat.com>
70457         maint.mk: don't silently disable project-specific syntax-check rules
70458         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70459         that they need to convert their project-specific syntax-check rules
70460         to use the new _sc_search_regexp.
70462 2010-04-03  Bruno Haible  <bruno@clisp.org>
70464         fchdir: Fix regression introduced on 2010-03-08.
70465         * lib/unistd.in.h (fchdir): Fix declaration.
70466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70468         REPLACE_FCHDIR.
70469         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70470         REPLACE_FCHDIR.
70472 2010-04-03  Bruno Haible  <bruno@clisp.org>
70474         getpagesize: Fix C++ test error on mingw.
70475         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70476         system does not declare the function.
70477         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70478         declared.
70479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70480         HAVE_DECL_GETPAGESIZE.
70481         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70483 2010-04-03  Bruno Haible  <bruno@clisp.org>
70485         stdio: Make C++ tests work on mingw.
70486         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70487         does not declare the function.
70489 2010-04-03  Bruno Haible  <bruno@clisp.org>
70491         ftello: Fix C++ test error on mingw.
70492         * lib/stdio.in.h (ftello): Use modern idiom.
70493         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70494         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70495         is missing and that it needs to be replaced.
70496         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70498         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70500 2010-04-03  Bruno Haible  <bruno@clisp.org>
70502         fseeko: Fix C++ test error on mingw.
70503         * lib/stdio.in.h (fseeko): Use modern idiom.
70504         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70506         is missing and that it needs to be replaced.
70507         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70509         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70511 2010-04-03  Bruno Haible  <bruno@clisp.org>
70513         mkstemp: Fix C++ test error on mingw.
70514         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70516         function is missing and that it needs to be replaced.
70517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70518         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70520 2010-04-03  Bruno Haible  <bruno@clisp.org>
70522         stpncpy: Fix C++ test error on mingw.
70523         * lib/string.in.h (stpncpy): Use modern idiom.
70524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70525         function is missing and that it needs to be replaced.
70526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70527         REPLACE_STPNCPY.
70528         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70530 2010-04-03  Bruno Haible  <bruno@clisp.org>
70532         sys_stat: Fix C++ test error on mingw.
70533         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70534         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70536 2010-04-03  Bruno Haible  <bruno@clisp.org>
70538         pty: Update doc.
70539         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70541 2010-04-03  Bruno Haible  <bruno@clisp.org>
70543         unistd: Fix C++ test error on mingw.
70544         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70546 2010-04-03  Bruno Haible  <bruno@clisp.org>
70548         Update doc regarding mingw.
70549         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70550         * doc/glibc-functions/login_tty.texi: Likewise.
70551         * doc/glibc-functions/forkpty.texi: Likewise.
70553 2010-04-03  Bruno Haible  <bruno@clisp.org>
70555         stdlib: Avoid compilation failure of c-strtold on mingw.
70556         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70558 2010-04-03  Bruno Haible  <bruno@clisp.org>
70560         locale: Make C++ tests work on Cygwin and mingw.
70561         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70562         cannot provide the function.
70563         Reported by Simon Josefsson.
70565 2010-04-03  Bruno Haible  <bruno@clisp.org>
70567         localename: Port to MacOS X 10.6.
70568         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70569         memory layout of the locales in MacOS X 10.6 as well.
70570         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70572 2010-04-02  Bruno Haible  <bruno@clisp.org>
70574         gnulib-tool: Ensure that long-running tests are executed last.
70575         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70576         running tests after the one for the other tests.
70578 2010-04-02  Bruno Haible  <bruno@clisp.org>
70580         gnulib-tool: Ensure the tests in the main directory are executed first.
70581         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70582         start with the current directory.
70584 2010-04-02  Bruno Haible  <bruno@clisp.org>
70586         Tests for module 'havelib', moved here from GNU gettext.
70587         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70588         modifications.
70589         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70590         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70591         with modifications.
70592         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70593         modifications.
70594         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70595         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70596         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70597         with modifications.
70598         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70599         with modifications.
70600         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70601         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70602         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70603         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70604         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70605         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70606         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70607         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70608         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70609         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70610         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70611         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70612         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70613         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70614         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70615         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70616         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70617         with modifications.
70618         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70619         with modifications.
70620         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70621         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70622         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70623         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70624         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70625         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70626         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70627         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70628         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70629         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70630         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70631         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70632         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70633         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70634         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70635         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70636         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70637         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70638         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70639         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70640         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70641         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70642         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70643         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70644         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70645         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70646         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70647         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70648         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70649         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70650         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70651         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70652         * tests/havelib/rpathx/rpathx.c: New file, from
70653         gettext/autoconf-lib-link.
70654         * tests/havelib/rpathx/Makefile.am: New file, from
70655         gettext/autoconf-lib-link.
70656         * tests/havelib/rpathx/configure.ac: New file, from
70657         gettext/autoconf-lib-link with modifications.
70658         * tests/havelib/rpathy/rpathy.c: New file, from
70659         gettext/autoconf-lib-link.
70660         * tests/havelib/rpathy/Makefile.am: New file, from
70661         gettext/autoconf-lib-link.
70662         * tests/havelib/rpathy/configure.ac: New file, from
70663         gettext/autoconf-lib-link with modifications.
70664         * tests/havelib/rpathz/rpathz.c: New file, from
70665         gettext/autoconf-lib-link.
70666         * tests/havelib/rpathz/Makefile.am: New file, from
70667         gettext/autoconf-lib-link.
70668         * tests/havelib/rpathz/configure.ac: New file, from
70669         gettext/autoconf-lib-link with modifications.
70670         * tests/havelib/rpathlx/usex.c: New file, from
70671         gettext/autoconf-lib-link.
70672         * tests/havelib/rpathlx/Makefile.am: New file, from
70673         gettext/autoconf-lib-link.
70674         * tests/havelib/rpathlx/configure.ac: New file, from
70675         gettext/autoconf-lib-link with modifications.
70676         * tests/havelib/rpathly/usey.c: New file, from
70677         gettext/autoconf-lib-link.
70678         * tests/havelib/rpathly/Makefile.am: New file, from
70679         gettext/autoconf-lib-link.
70680         * tests/havelib/rpathly/configure.ac: New file, from
70681         gettext/autoconf-lib-link with modifications.
70682         * tests/havelib/rpathlz/usez.c: New file, from
70683         gettext/autoconf-lib-link.
70684         * tests/havelib/rpathlz/Makefile.am: New file, from
70685         gettext/autoconf-lib-link.
70686         * tests/havelib/rpathlz/configure.ac: New file, from
70687         gettext/autoconf-lib-link with modifications.
70688         * tests/havelib/rpathlyx/usey.c: New file, from
70689         gettext/autoconf-lib-link.
70690         * tests/havelib/rpathlyx/Makefile.am: New file, from
70691         gettext/autoconf-lib-link.
70692         * tests/havelib/rpathlyx/configure.ac: New file, from
70693         gettext/autoconf-lib-link with modifications.
70694         * tests/havelib/rpathlzyx/usez.c: New file, from
70695         gettext/autoconf-lib-link.
70696         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70697         gettext/autoconf-lib-link.
70698         * tests/havelib/rpathlzyx/configure.ac: New file, from
70699         gettext/autoconf-lib-link with modifications.
70700         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70701         with modifications.
70703 2010-04-02  Bruno Haible  <bruno@clisp.org>
70705         gnulib-tool: Create distributed built sources also for the tests.
70706         * gnulib-tool (func_create_testdir): Also generate distributed built
70707         sources in the tests directory.
70709 2010-04-02  Bruno Haible  <bruno@clisp.org>
70711         gnulib-tool: Obey user's environment variables.
70712         * gnulib-tool (func_create_testdir): When creating built sources,
70713         respect the environment variables for autoconf, automake, etc. given by
70714         the user.
70716 2010-04-02  Bruno Haible  <bruno@clisp.org>
70718         gnulib-tool: Provide the value of --m4-base to modules.
70719         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70720         of gl_m4_base.
70722 2010-04-02  Eric Blake  <eblake@redhat.com>
70724         maint.mk: fix some fallout
70725         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70726         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70728 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70730         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70731         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70732         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70733         (sc_cast_of_x_alloc_return_value): Likewise.
70734         (sc_cast_of_alloca_return_value): Likewise.
70735         (sc_space_tab): Likewise.
70736         (sc_prohibit_atoi_atof): Likewise.
70737         (sc_prohibit_magic_number_exit): Likewise.
70738         (sc_error_exit_success): Likewise.
70739         (sc_file_system): Likewise.
70740         (sc_prohibit_have_config_h): Likewise.
70741         (sc_require_config_h): Likewise.
70742         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70743         (sc_obsolete_symbols): Likewise.
70744         (sc_changelog): Likewise.
70745         (sc_program_name): Likewise.
70746         (sc_the_the): Likewise.
70747         (sc_trailing_blank): Likewise.
70748         (sc_two_space_separator_in_usage): Likewise.
70749         (sc_useless_cpp_parens): Likewise.
70750         (sc_GPL_version): Likewise.
70751         (sc_GFDL_version): Likewise.
70752         (sc_texinfo_acronym): Likewise.
70753         (sc_prohibit_cvs_keyword): Likewise.
70754         (sc_prohibit_stat_st_blocks): Likewise.
70755         (sc_prohibit_S_IS_definition): Likewise.
70756         (sc_redundant_const): Likewise.
70757         (sc_makefile_TAB_only_indentation): Likewise.
70758         (sc_m4_quote_check): Likewise.
70759         (sc_makefile_path_separator_check): Likewise.
70760         (sc_copyright_check): Likewise.
70761         (sc_Wundef_boolean): Likewise.
70762         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70764         maint.mk: match 0 or more whitespace-before-function-call '('
70765         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70766         that have zero or two-and-more spaces between the function name
70767         and the open parenthesis.
70768         (sc_error_message_warn_fatal): Likewise.
70769         (sc_error_message_uppercase): Likewise.
70770         (sc_error_message_period): Likewise.
70772 2010-03-31  Eric Blake  <eblake@redhat.com>
70774         maint.mk: check for [ as well as test
70775         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70776         Based on a libvirt report by Matthias Bolte.
70778         gnumakefile: don't squelch _version output
70779         * top/GNUmakefile (_version): Create one-shot dependency rather
70780         than using $(shell) when version must be regenerated.
70781         (_autoreconf): Run verbosely, by default.
70783         sys_time: avoid compiler warnings
70784         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70785         unconditional, fixing regression from 2010-03-29.
70786         Reported by Simon Josefsson.
70788 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70790         maint.mk: s/_header_without_use/_sc_header_without_use/
70791         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70792         (sc_prohibit_assert_without_use): Use the new name.
70793         (sc_prohibit_close_stream_without_use): Likewise.
70794         (sc_prohibit_getopt_without_use): Likewise.
70795         (sc_prohibit_quotearg_without_use): Likewise.
70796         (sc_prohibit_quote_without_use): Likewise.
70797         (sc_prohibit_long_options_without_use): Likewise.
70798         (sc_prohibit_inttostr_without_use): Likewise.
70799         (sc_prohibit_ignore_value_without_use): Likewise.
70800         (sc_prohibit_error_without_use): Likewise.
70801         (sc_prohibit_xalloc_without_use): Likewise.
70802         (sc_prohibit_hash_without_use): Likewise.
70803         (sc_prohibit_hash_pjw_without_use): Likewise.
70804         (sc_prohibit_safe_read_without_use): Likewise.
70805         (sc_prohibit_argmatch_without_use): Likewise.
70806         (sc_prohibit_canonicalize_without_use): Likewise.
70807         (sc_prohibit_root_dev_ino_without_use): Likewise.
70808         (sc_prohibit_openat_without_use): Likewise.
70809         (sc_prohibit_c_ctype_without_use): Likewise.
70810         (sc_prohibit_signal_without_use): Likewise.
70811         (sc_prohibit_intprops_without_use): Likewise.
70813 2010-03-30  Eric Blake  <eblake@redhat.com>
70815         maint: improve module indicators
70816         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70817         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70818         columns, and avoid extra macro expansion.
70820         fdopendir: work around FreeBSD bug
70821         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70822         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70823         * modules/dirent (Makefile.am): Substitute it.
70824         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70825         declaration.
70826         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70827         fix.
70828         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70830 2010-03-29  Bruno Haible  <bruno@clisp.org>
70832         Emit #pragma system_header after the inclusion guard, not before.
70833         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70834         guard that spans the entire file, not before. This enables an
70835         optimization in GCC's preprocessor.
70836         * lib/ctype.in.h: Likewise.
70837         * lib/dirent.in.h: Likewise.
70838         * lib/errno.in.h: Likewise.
70839         * lib/float.in.h: Likewise.
70840         * lib/getopt.in.h: Likewise.
70841         * lib/iconv.in.h: Likewise.
70842         * lib/langinfo.in.h: Likewise.
70843         * lib/locale.in.h: Likewise.
70844         * lib/math.in.h: Likewise.
70845         * lib/netdb.in.h: Likewise.
70846         * lib/netinet_in.in.h: Likewise.
70847         * lib/pty.in.h: Likewise.
70848         * lib/sched.in.h: Likewise.
70849         * lib/se-selinux.in.h: Likewise.
70850         * lib/search.in.h: Likewise.
70851         * lib/spawn.in.h: Likewise.
70852         * lib/stdarg.in.h: Likewise.
70853         * lib/stdint.in.h: Likewise.
70854         * lib/string.in.h: Likewise.
70855         * lib/strings.in.h: Likewise.
70856         * lib/sys_file.in.h: Likewise.
70857         * lib/sys_ioctl.in.h: Likewise.
70858         * lib/sys_time.in.h: Likewise.
70859         * lib/sys_times.in.h: Likewise.
70860         * lib/sys_utsname.in.h: Likewise.
70861         * lib/sys_wait.in.h: Likewise.
70862         * lib/sysexits.in.h: Likewise.
70863         * lib/wctype.in.h: Likewise.
70865 2010-03-28  James Youngman  <jay@gnu.org>
70867         save-cwd: don't leak a file descriptor when the caller execs.
70868         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70869         saved file descriptor.
70870         * modules/save-cwd (Depends-on): Depend on cloexec.
70872 2010-03-29  Bruno Haible  <bruno@clisp.org>
70874         Remove vestiges of fts-lgpl module.
70875         * lib/fts_.h: Assume GNULIB_FTS is 1.
70876         * lib/fts.c: Likewise.
70877         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70879 2010-03-28  Bruno Haible  <bruno@clisp.org>
70881         Fix definition of tests witness macro.
70882         * gnulib-tool (func_import): Fix definition of witness macro.
70884 2010-03-28  Bruno Haible  <bruno@clisp.org>
70886         Fix ioctl's protoype on glibc systems.
70887         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70888         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70889         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70890         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70891         signature. If not, arrange to replace the ioctl function.
70892         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70893         REPLACE_IOCTL.
70894         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70895         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70896         Reported by Ludovic Courtès <ludo@gnu.org>.
70898 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70900         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70901         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70902         made it so grep -r --include=GLOB* ... did not work.
70904 2010-03-26  Jim Meyering  <meyering@redhat.com>
70905             Eric Blake  <eblake@redhat.com>
70907         maint.mk: prohibit use of test's -o and -a operators
70908         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70910 2010-03-28  Bruno Haible  <bruno@clisp.org>
70912         Remove unused GNULIB_XYZ macro definitions.
70913         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70914         invocation.
70916 2010-03-28  Bruno Haible  <bruno@clisp.org>
70918         Mark privileged tests modules.
70919         * modules/idpriv-drop-tests (Status): New section.
70920         * modules/idpriv-droptemp-tests (Status): New section.
70922 2010-03-28  Bruno Haible  <bruno@clisp.org>
70924         Split C++ tests into separate tests modules.
70925         * modules/dirent-c++-tests: New file, extracted from
70926         modules/dirent-tests.
70927         * modules/dirent-tests: Depend on it.
70928         * modules/fcntl-h-c++-tests: New file, extracted from
70929         modules/fcntl-h-tests.
70930         * modules/fcntl-h-tests: Depend on it.
70931         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70932         * modules/glob-tests: Depend on it.
70933         * modules/iconv-h-c++-tests: New file, extracted from
70934         modules/iconv-h-tests.
70935         * modules/iconv-h-tests: Depend on it.
70936         * modules/langinfo-c++-tests: New file, extracted from
70937         modules/langinfo-tests.
70938         * modules/langinfo-tests: Depend on it.
70939         * modules/locale-c++-tests: New file, extracted from
70940         modules/locale-tests.
70941         * modules/locale-tests: Depend on it.
70942         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70943         * modules/math-tests: Depend on it.
70944         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70945         * modules/pty-tests: Depend on it.
70946         * modules/search-c++-tests: New file, extracted from
70947         modules/search-tests.
70948         * modules/search-tests: Depend on it.
70949         * modules/signal-c++-tests: New file, extracted from
70950         modules/signal-tests.
70951         * modules/signal-tests: Depend on it.
70952         * modules/spawn-c++-tests: New file, extracted from
70953         modules/spawn-tests.
70954         * modules/spawn-tests: Depend on it.
70955         * modules/stdio-c++-tests: New file, extracted from
70956         modules/stdio-tests.
70957         * modules/stdio-tests: Depend on it.
70958         * modules/stdlib-c++-tests: New file, extracted from
70959         modules/stdlib-tests.
70960         * modules/stdlib-tests: Depend on it.
70961         * modules/string-c++-tests: New file, extracted from
70962         modules/string-tests.
70963         * modules/string-tests: Depend on it.
70964         * modules/sys_ioctl-c++-tests: New file, extracted from
70965         modules/sys_ioctl-tests.
70966         * modules/sys_ioctl-tests: Depend on it.
70967         * modules/sys_select-c++-tests: New file, extracted from
70968         modules/sys_select-tests.
70969         * modules/sys_select-tests: Depend on it.
70970         * modules/sys_socket-c++-tests: New file, extracted from
70971         modules/sys_socket-tests.
70972         * modules/sys_socket-tests: Depend on it.
70973         * modules/sys_stat-c++-tests: New file, extracted from
70974         modules/sys_stat-tests.
70975         * modules/sys_stat-tests: Depend on it.
70976         * modules/sys_time-c++-tests: New file, extracted from
70977         modules/sys_time-tests.
70978         * modules/sys_time-tests: Depend on it.
70979         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70980         * modules/time-tests: Depend on it.
70981         * modules/unistd-c++-tests: New file, extracted from
70982         modules/unistd-tests.
70983         * modules/unistd-tests: Depend on it.
70984         * modules/wchar-c++-tests: New file, extracted from
70985         modules/wchar-tests.
70986         * modules/wchar-tests: Depend on it.
70987         * modules/wctype-c++-tests: New file, extracted from
70988         modules/wctype-tests.
70989         * modules/wctype-tests: Depend on it.
70990         Reported by Simon Josefsson.
70992 2010-03-28  Bruno Haible  <bruno@clisp.org>
70994         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70995         * gnulib-tool (func_exists_module): New function, extracted from
70996         func_verify_module.
70997         (func_verify_module): Use it.
70998         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70999         'foo' only if 'foo' exists.
71000         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
71001         module.
71003 2010-03-28  Bruno Haible  <bruno@clisp.org>
71005         gnulib-tool: Add support for special categories of tests.
71006         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
71007         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
71008         (func_usage): Document them.
71009         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
71010         inc_unportable_tests, inc_all_tests): New variables.
71011         (func_acceptable): Consider these variables.
71012         (func_modules_transitive_closure): Make it work when the 'Status' field
71013         consists of multiple words.
71014         (func_import): Store and restore the values of inc_cxx_tests,
71015         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
71016         inc_all_tests in gnulib-comp.m4.
71017         (func_create_testdir): Set inc_all_tests to true.
71018         * doc/gnulib.texi (Extra tests modules): New section.
71019         Suggested by Jim Meyering.
71021 2010-03-28  Bruno Haible  <bruno@clisp.org>
71023         ansi-c++-opt: Allow turning off the C++ build by default.
71024         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
71025         gl_CXX_CHOICE_DEFAULT_NO is defined.
71026         Requested by Eric Blake.
71028 2010-03-28  Bruno Haible  <bruno@clisp.org>
71030         unistd: Avoid #define replacements in C++ mode.
71031         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
71032         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
71033         setsockopt, shutdown, select): In C++, attach a warning to the function
71034         if possible, rather than #defining the symbol to a dysfunctional alias.
71035         Reported by John W. Eaton <jwe@gnu.org>.
71037 2010-03-28  Bruno Haible  <bruno@clisp.org>
71039         Fix link errors on mingw.
71040         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
71041         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
71042         $(LIBSOCKET).
71043         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
71044         $(LIBSOCKET).
71046 2010-03-28  Bruno Haible  <bruno@clisp.org>
71047             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71049         lib-ignore: Determine different options for different compilers.
71050         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
71051         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
71052         Add comments.
71053         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
71054         * NEWS: Mention the change.
71056 2010-03-27  Bruno Haible  <bruno@clisp.org>
71058         Remove unused GNULIB_XYZ macro definitions.
71059         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
71060         * modules/fseek (configure.ac): Likewise.
71061         * modules/ioctl (configure.ac): Likewise.
71062         * modules/open (configure.ac): Likewise.
71063         * modules/stdlib-safer (configure.ac): Likewise.
71065 2010-03-27  Bruno Haible  <bruno@clisp.org>
71067         Add a remark about certain modules.
71068         * modules/malloc (Comment): New section.
71069         * modules/realloc (Comment): Likewise.
71070         * modules/sigpipe (Comment): Likewise.
71072 2010-03-27  Bruno Haible  <bruno@clisp.org>
71074         Resolve conflict between the two kinds of module indicators.
71075         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
71076         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
71077         * modules/canonicalize (configure.ac): Invoke
71078         gl_MODULE_INDICATOR_FOR_TESTS.
71079         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
71080         GNULIB_XYZ.
71081         * tests/test-dirent-c++.cc: Likewise.
71082         * tests/test-dirent-safer.c: Likewise.
71083         * tests/test-dup2.c: Likewise.
71084         * tests/test-fchdir.c: Likewise.
71085         * tests/test-fcntl-h-c++.cc: Likewise.
71086         * tests/test-getopt.c: Likewise.
71087         * tests/test-getopt.h: Likewise.
71088         * tests/test-langinfo-c++.cc: Likewise.
71089         * tests/test-locale-c++.cc: Likewise.
71090         * tests/test-math-c++.cc: Likewise.
71091         * tests/test-pty-c++.cc: Likewise.
71092         * tests/test-search-c++.cc: Likewise.
71093         * tests/test-signal-c++.cc: Likewise.
71094         * tests/test-spawn-c++.cc: Likewise.
71095         * tests/test-stdio-c++.cc: Likewise.
71096         * tests/test-stdlib-c++.cc: Likewise.
71097         * tests/test-string-c++.cc: Likewise.
71098         * tests/test-sys_ioctl-c++.cc: Likewise.
71099         * tests/test-sys_select-c++.cc: Likewise.
71100         * tests/test-sys_socket-c++.cc: Likewise.
71101         * tests/test-sys_stat-c++.cc: Likewise.
71102         * tests/test-sys_time-c++.cc: Likewise.
71103         * tests/test-time-c++.cc: Likewise.
71104         * tests/test-unistd-c++.cc: Likewise.
71105         * tests/test-wchar-c++.cc: Likewise.
71106         * tests/uninorm/test-u8-nfc.c: Likewise.
71107         * tests/uninorm/test-u8-nfd.c: Likewise.
71108         * tests/uninorm/test-u8-nfkc.c: Likewise.
71109         * tests/uninorm/test-u8-nfkd.c: Likewise.
71110         * tests/uninorm/test-u16-nfc.c: Likewise.
71111         * tests/uninorm/test-u16-nfd.c: Likewise.
71112         * tests/uninorm/test-u16-nfkc.c: Likewise.
71113         * tests/uninorm/test-u16-nfkd.c: Likewise.
71114         * tests/uninorm/test-u32-nfc.c: Likewise.
71115         * tests/uninorm/test-u32-nfc-big.c: Likewise.
71116         * tests/uninorm/test-u32-nfd.c: Likewise.
71117         * tests/uninorm/test-u32-nfd-big.c: Likewise.
71118         * tests/uninorm/test-u32-nfkc.c: Likewise.
71119         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
71120         * tests/uninorm/test-u32-nfkd.c: Likewise.
71121         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
71122         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71124 2010-03-27  Bruno Haible  <bruno@clisp.org>
71126         Distinguish two kinds of module indicators.
71127         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
71128         gl_MODULE_INDICATOR.
71129         (gl_MODULE_INDICATOR): New macro.
71130         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71131         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
71132         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71133         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71134         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71135         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71136         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71137         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71138         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71139         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71141         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71143         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71144         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71145         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71147         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71148         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71149         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71150         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71151         * modules/cloexec (configure.ac): Likewise.
71152         * modules/getopt-gnu (configure.ac): Likewise.
71153         * modules/uninorm/u8-normalize (configure.ac): Likewise.
71154         * modules/uninorm/u16-normalize (configure.ac): Likewise.
71155         * modules/uninorm/u32-normalize (configure.ac): Likewise.
71156         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
71158 2010-03-27  Bruno Haible  <bruno@clisp.org>
71160         New module description field 'Comment'.
71161         * gnulib-tool: New option --extract-comment.
71162         (func_usage): Document it.
71163         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
71164         (func_get_comment): New function.
71165         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
71167 2010-03-27  Bruno Haible  <bruno@clisp.org>
71169         Addendum to 2010-02-07 commit.
71170         * gnulib-tool (func_usage): Document --extract-applicability option.
71172 2010-03-27  Bruno Haible  <bruno@clisp.org>
71174         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
71175         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
71176         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
71177         rather than link errors.
71179 2010-03-27  Bruno Haible  <bruno@clisp.org>
71181         Avoid side effects from tests-related modules on the compilation of lib.
71182         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
71183         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
71184         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
71185         parameter. Emit into AM_CPPFLAGS a definition of the designated C
71186         macro.
71187         (func_import): Define a witness macro. Assign it a value that depends
71188         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
71189         tests-related modules.
71190         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
71191         Reported by Jim Meyering.
71193 2010-03-27  Bruno Haible  <bruno@clisp.org>
71195         Factorize common .m4 code.
71196         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
71197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
71198         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
71199         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
71200         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71201         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
71202         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
71203         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71204         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71205         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71206         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
71207         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71208         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71209         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71210         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71211         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
71212         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71213         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71215         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
71216         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
71217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71218         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71221         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71222         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
71223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
71224         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
71225         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71226         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71227         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71229 2010-03-27  Bruno Haible  <bruno@clisp.org>
71231         Fix a compilation error on Cygwin with g++ >= 4.3.
71232         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
71233         if it is undefined or if we alias it to chmod.
71234         (lstat): Don't warn about the use of this function if it is undefined
71235         or if we alias it to stat.
71236         Reported by Simon Josefsson.
71238 2010-03-27  Bruno Haible  <bruno@clisp.org>
71240         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
71241         * modules/getlogin (configure.ac): Update.
71243         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
71244         * modules/getlogin_r (configure.ac): Update.
71246         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
71247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
71248         * modules/inet_ntop (configure.ac): Update.
71250         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
71251         * modules/inet_pton (configure.ac): Update.
71253         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
71254         * modules/mbslen (configure.ac): Update.
71256         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
71257         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
71258         * modules/forkpty (configure.ac): Update.
71259         * modules/openpty (configure.ac): Update.
71261 2010-03-26  Simon Josefsson  <simon@josefsson.org>
71263         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
71264         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
71266 2010-03-25  Eric Blake  <eblake@redhat.com>
71268         maint: use pragma consistently across replacement headers
71269         * lib/ctype.in.h (system_header): Hoist for consistent placement.
71270         * lib/dirent.in.h (system_header): Likewise.
71271         * lib/errno.in.h (system_header): Likewise.
71272         * lib/float.in.h (system_header): Likewise.
71273         * lib/getopt.in.h (system_header): Likewise.
71274         * lib/iconv.in.h (system_header): Likewise.
71275         * lib/inttypes.in.h (system_header): Likewise.
71276         * lib/langinfo.in.h (system_header): Likewise.
71277         * lib/locale.in.h (system_header): Likewise.
71278         * lib/math.in.h (system_header): Likewise.
71279         * lib/netdb.in.h (system_header): Likewise.
71280         * lib/netinet_in.in.h (system_header): Likewise.
71281         * lib/pty.in.h (system_header): Likewise.
71282         * lib/sched.in.h (system_header): Likewise.
71283         * lib/se-selinux.in.h (system_header): Likewise.
71284         * lib/search.in.h (system_header): Likewise.
71285         * lib/spawn.in.h (system_header): Likewise.
71286         * lib/stdarg.in.h (system_header): Likewise.
71287         * lib/stdint.in.h (system_header): Likewise.
71288         * lib/string.in.h (system_header): Likewise.
71289         * lib/strings.in.h (system_header): Likewise.
71290         * lib/sys_file.in.h (system_header): Likewise.
71291         * lib/sys_ioctl.in.h (system_header): Likewise.
71292         * lib/sys_socket.in.h (system_header): Likewise.
71293         * lib/sys_times.in.h (system_header): Likewise.
71294         * lib/sys_utsname.in.h (system_header): Likewise.
71295         * lib/sys_wait.in.h (system_header): Likewise.
71296         * lib/sysexits.in.h (system_header): Likewise.
71297         * lib/unistd.in.h (system_header): Likewise.
71298         * lib/wctype.in.h (system_header): Likewise.
71300         arpa/inet: fix mingw compilation warning
71301         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
71302         Reported by Matthew Bolte.
71304 2010-03-25  Bruno Haible  <bruno@clisp.org>
71306         Avoid collision between gnulib wrapper and libintl wrapper.
71307         * lib/printf.c (printf): Don't define if a printf wrapper is already
71308         defined in intl/printf.c.
71309         Reported by Michel Boaventura <michel@michelboaventura.com>.
71311 2010-03-25  Bruno Haible  <bruno@clisp.org>
71313         Use ANSI C.
71314         * lib/readutmp.h (getutent): Provide ANSI C prototype.
71316 2010-03-25  Bruno Haible  <bruno@clisp.org>
71318         Minor formatting changes.
71319         * lib/acosl.c: Insert space before function argument list.
71320         * lib/argz.c: Likewise.
71321         * lib/asinl.c: Likewise.
71322         * lib/expl.c: Likewise.
71323         * lib/gen-uni-tables.c: Likewise.
71324         * lib/gettext.h: Likewise.
71325         * lib/glthread/lock.h: Likewise.
71326         * lib/tanl.c: Likewise.
71327         * lib/uniname/uniname.c: Likewise.
71328         * tests/test-idpriv-drop.c: Likewise.
71329         * tests/test-idpriv-droptemp.c: Likewise.
71330         * tests/test-lock.c: Likewise.
71331         * tests/test-tls.c: Likewise.
71332         * lib/argp-help.c: Insert space before function-like macro argument
71333         list.
71334         * lib/memcmp.c: Likewise.
71335         * tests/test-base64.c: Likewise.
71336         * lib/localename.c: Insert space before sizeof's argument list.
71337         * lib/safe-alloc.h: Likewise.
71338         * lib/file-set.h: Insert space before macro argument list.
71339         * tests/test-argp.c: Likewise.
71340         * lib/argp-namefrob.h: Insert space before function parameter list.
71341         * lib/getaddrinfo.c: Likewise.
71342         * lib/netdb.in.h: Likewise.
71343         * lib/parse-duration.h: Likewise.
71344         * lib/parse-duration.c: Likewise.
71345         * lib/poll.c: Likewise.
71346         * lib/select.c: Likewise.
71347         * lib/trim.h: Likewise.
71348         * tests/test-usleep.c: Likewise.
71349         * lib/ldexpl.c: Insert space before function parameter list and before
71350         function argument list.
71351         * lib/logl.c: Likewise.
71352         * lib/sqrtl.c: Likewise.
71353         * lib/trim.c: Likewise.
71354         * lib/cosl.c: Use GNU style indentation. Insert space before function
71355         argument list.
71356         * lib/sinl.c: Likewise.
71357         * lib/tsearch.c: Insert space after 'for'.
71358         Reported by Jim Meyering.
71360 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
71362         * maint.mk (sc_Wundef_boolean): Check for the presence of the
71363         config header before grepping, as it's not present before
71364         autoreconf/configure are run.  Reported by Simon Josefsson.
71366 2010-03-23  Bruno Haible  <bruno@clisp.org>
71368         pt_chown: Make it work with automake < 1.11.
71369         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
71370         Reported by Simon Josefsson.
71372 2010-03-23  Bruno Haible  <bruno@clisp.org>
71374         pt_chown: Don't depend on GPLed modules.
71375         * lib/pt_chown.c: Don't include idpriv.h.
71376         (main): Don't drop privileges.
71377         * modules/pt_chown (Depends-on): Remove idpriv-drop.
71378         Reported by Simon Josefsson.
71380 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71382         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
71383         suggestions from karl@freefriends.org (Karl Berry).
71385 2010-03-22  Eric Blake  <eblake@redhat.com>
71387         gethostname: further tweaks
71388         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
71389         are overriding gethostname.
71390         Suggested by Bruno Haible.
71392 2010-03-21  Bruno Haible  <bruno@clisp.org>
71394         Fix comments.
71395         * lib/forkpty.c (rpl_forkpty): Fix comment.
71396         * lib/openpty.c (rpl_openpty): Likewise.
71397         Reported by Eric Blake.
71399 2010-03-22  Eric Blake  <eblake@redhat.com>
71401         gethostname: fix build on mingw
71402         * lib/unistd.in.h (includes): Work around fact that mingw
71403         <winsock2.h> re-includes <unistd.h>, by avoiding any
71404         redeclarations if we are being included by <winsock2.h>.
71405         Reported by Matthias Bolte.
71407 2010-03-21  Bruno Haible  <bruno@clisp.org>
71409         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71410         * lib/forkpty.c (forkpty): New replacement function, from glibc with
71411         modifications.
71412         * lib/pty.in.h (forkpty): Update declaration. Add comments.
71413         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
71414         provide the replacement.
71415         * modules/forkpty (Depends-on): Add openpty, login_tty.
71416         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
71417         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
71418         * doc/glibc-functions/forkpty.texi: More supported platforms.
71419         * config/srclist.txt: Add forkpty.c (commented).
71421 2010-03-21  Bruno Haible  <bruno@clisp.org>
71423         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71424         (Makefile.am): Verify that PTY_LIB is defined.
71426         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71428 2010-03-21  Bruno Haible  <bruno@clisp.org>
71430         Tests for module 'login_tty'.
71431         * modules/login_tty-tests: New file.
71432         * tests/test-login_tty.c: New file.
71434         New module 'login_tty'.
71435         * lib/login_tty.c: New file.
71436         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71437         * modules/login_tty: New file.
71438         * doc/glibc-functions/login_tty.texi: Mention the new module.
71440 2010-03-21  Bruno Haible  <bruno@clisp.org>
71442         login_tty: Documentation.
71443         * doc/glibc-functions/login_tty.texi: New file.
71444         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71446 2010-03-21  Bruno Haible  <bruno@clisp.org>
71448         pty: Consistent macro naming.
71449         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71450         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71451         * modules/pty (configure.ac): Update.
71453 2010-03-21  Bruno Haible  <bruno@clisp.org>
71455         Tests for openpty: Make stricter.
71456         * tests/test-openpty.c (main): Add test of canonical processing and
71457         erase.
71458         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71460         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71461         * lib/openpty.c (openpty): New replacement function.
71462         * lib/pty.in.h: Include <termios.h>.
71463         (openpty): Update declaration. Add comments.
71464         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71465         is not declared, arrange to provide the replacement. Check for _getpty
71466         and posix_openpt.
71467         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71469         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71470         * modules/pty-tests (test_pty_c___LDADD): New variable.
71471         * doc/glibc-functions/openpty.texi: More supported platforms.
71473 2010-03-21  Bruno Haible  <bruno@clisp.org>
71475         setenv: Tweaks.
71476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71477         the test program.
71478         * doc/posix-functions/setenv.texi: Update platforms list.
71480 2010-03-21  Bruno Haible  <bruno@clisp.org>
71482         New module 'unlockpt'.
71483         * lib/unlockpt.c: New file, from glibc with modifications.
71484         * m4/unlockpt.m4: New file.
71485         * modules/unlockpt: New file.
71486         * lib/stdlib.in.h (unlockpt): New declaration.
71487         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71488         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71489         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71490         HAVE_UNLOCKPT.
71491         * doc/posix-functions/unlockpt.texi: Mention the new module.
71492         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71493         * config/srclist.txt: Add unlockpt.c (commented).
71495 2010-03-21  Jim Meyering  <meyering@redhat.com>
71497         maint.mk: prohibit inclusion of "intprops.h" without use
71498         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71500 2010-03-21  Bruno Haible  <bruno@clisp.org>
71502         New module 'grantpt'.
71503         * lib/grantpt.c: New file, from glibc with modifications.
71504         * m4/grantpt.m4: New file.
71505         * modules/grantpt: New file.
71506         * lib/stdlib.in.h (grantpt): New declaration.
71507         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71508         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71509         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71510         HAVE_GRANTPT.
71511         * doc/posix-functions/grantpt.texi: Mention the new module.
71512         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71513         * config/srclist.txt: Add grantpt.c (commented).
71515 2010-03-21  Bruno Haible  <bruno@clisp.org>
71517         New module 'pt_chown'.
71518         * lib/pt_chown.c: New file, from glibc with modifications.
71519         * lib/pty-private.h: New file, from glibc with modifications.
71520         * modules/pt_chown: New file.
71521         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71523 2010-03-21  Bruno Haible  <bruno@clisp.org>
71525         Tests for module 'ptsname'.
71526         * modules/ptsname-tests: New file.
71527         * tests/test-ptsname.c: New file.
71529         New module 'ptsname'.
71530         * lib/ptsname.c: New file, from glibc with modifications.
71531         * m4/ptsname.m4: New file.
71532         * modules/ptsname: New file.
71533         * lib/stdlib.in.h (ptsname): New declaration.
71534         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71535         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71536         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71537         HAVE_PTSNAME.
71538         * doc/posix-functions/ptsname.texi: Mention the new module.
71539         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71540         * config/srclist.txt: Add ptsname.c (commented).
71542 2010-03-21  Bruno Haible  <bruno@clisp.org>
71544         Tests for module 'ttyname_r'.
71545         * modules/ttyname_r-tests: New file.
71546         * tests/test-ttyname_r.c: New file.
71548         New module 'ttyname_r'.
71549         * lib/ttyname_r.c: New file.
71550         * m4/ttyname_r.m4: New file.
71551         * modules/ttyname_r: New file.
71552         * lib/unistd.in.h (ttyname_r): New declaration.
71553         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71554         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71555         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71556         HAVE_TTYNAME_R.
71557         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71558         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71560 2010-03-20  Bruno Haible  <bruno@clisp.org>
71562         signal: Undefine macro definitions in C++ mode.
71563         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71564         sigfillset): Undefine macro definitions from the system header in C++
71565         mode.
71566         Reported by John W. Eaton <jwe@gnu.org>.
71568 2010-03-20  Bruno Haible  <bruno@clisp.org>
71570         Ensure no #include statements inside extern "C" { ... }.
71571         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71572         contain #include statements.
71573         * lib/time.in.h: Likewise.
71575 2010-03-20  Bruno Haible  <bruno@clisp.org>
71577         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71578         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71579         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71580         Reported by John W. Eaton <jwe@gnu.org>.
71582 2010-03-20  Bruno Haible  <bruno@clisp.org>
71584         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71585         Reported by Jim Meyering.
71587 2010-03-20  Bruno Haible  <bruno@clisp.org>
71589         pipe: Set errno upon failure.
71590         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71591         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71592         errno value in error message.
71594 2010-03-20  Bruno Haible  <bruno@clisp.org>
71595             Jim Meyering  <meyering@redhat.com>
71597         lchown: Avoid "unused variable" warning.
71598         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71600 2010-03-20  Bruno Haible  <bruno@clisp.org>
71602         Work around unlink() bug on MacOS X 10.5.6.
71603         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71604         attempting to unlink a parent directory.
71605         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71606         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71607         activate for the replacement function.
71608         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71610 2010-03-20  Bruno Haible  <bruno@clisp.org>
71612         Fix link errors on Solaris 8.
71613         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71614         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71616 2010-03-19  Jim Meyering  <meyering@redhat.com>
71618         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71619         The _LIBC implementation of build_range_exp correctly honors the
71620         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71621         However, the non-_LIBC implementation would ignore that syntax-bit
71622         flag and return REG_ERANGE unconditionally.
71623         This change makes it honor that flag.
71624         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71625         Make two pointer parameters "const".
71626         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71627         (parse_bracket_exp): Update caller.
71629         regex.m4: correct the reversed range endpoint ([b-a]) test
71630         * m4/regex.m4: When requiring that [b-a] evoke failure,
71631         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71632         test pass once again for x86-based systems.
71634 2010-03-19  Bruno Haible  <bruno@clisp.org>
71636         scandir: Fix link error on Solaris 8.
71637         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71638         macros.
71640 2010-03-19  Bruno Haible  <bruno@clisp.org>
71642         getusershell: Fix documentation.
71643         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71644         module.
71645         * doc/glibc-functions/setusershell.texi: Likewise.
71647         getusershell: Provide declaration, missing on Solaris 9.
71648         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71649         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71650         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71651         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71653         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71654         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71655         HAVE_GETUSERSHELL.
71656         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71658 2010-03-19  Bruno Haible  <bruno@clisp.org>
71660         wctype: Provide iswblank function.
71661         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71662         exists and is fine.
71663         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71664         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71665         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71666         * doc/posix-functions/iswblank.texi: Update.
71668 2010-03-19  Bruno Haible  <bruno@clisp.org>
71670         Tests of module 'pty' in C++ mode.
71671         * modules/pty-tests: New file.
71672         * tests/test-pty-c++.cc: New file.
71673         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71675 2010-03-19  Eric Blake  <eblake@redhat.com>
71677         logb: fix documentation
71678         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71679         1.5 declaration bug.
71681         forkpty, openpty: prefer glibc's const-safe prototype
71682         * lib/forkpty.c (rpl_forkpty): New file.
71683         * lib/openpty.c (rpl_openpty): Likewise.
71684         * modules/forkpty (Files): Distribute it.
71685         * modules/openpty (Files): Likewise.
71686         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71687         check...
71688         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71689         replacement for non-const BSD signature.
71690         * modules/pty (Makefile.am): Substitute witnesses.
71691         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71692         * tests/test-forkpty.c: Update signature check.
71693         * tests/test-openpty.c: Likewise.
71694         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71695         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71697         forkpty, openpty: split functions into new modules
71698         * modules/pty (Makefile.am): Substitute new witnesses.
71699         (Libraries): Move library detection...
71700         * modules/forkpty: ...into new module.
71701         * modules/openpty: Another new module.
71702         * modules/pty-tests: Rename and split...
71703         * modules/forkpty-tests: ...to this...
71704         * modules/openpty-tests: ...and this.
71705         * tests/test-pty.c: Rename and split...
71706         * tests/test-forkpty.c: ...to this...
71707         * tests/test-openpty.c: ...and this.
71708         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71709         (gl_PTY): Split library searching...
71710         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71711         (gl_FORKPTY, gl_OPENPTY): New macros.
71712         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71713         * NEWS: Mention the split.
71714         * MODULES.html.sh (Misc): Document the modules.
71715         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71716         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71718         pty: improve replacement header
71719         * lib/pty.in.h: New file.
71720         * modules/pty (Files): Ship it.
71721         (Makefile.am): Always build replacement.
71722         * m4/pty.m4: Rename...
71723         * m4/pty_h.m4: ...to this.
71724         (gl_PTY): Modernize setting of witness macros; update check of
71725         forkpty to take proper advantage of cache.
71726         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71728         getopt: avoid compiler warning
71729         * lib/getopt.c (attribute_hidden): Remove unused macro.
71731 2010-03-18  Bruno Haible  <bruno@clisp.org>
71733         Fix link errors on Solaris 8.
71734         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71735         * modules/search-tests (test_search_c___LDADD): Likewise.
71736         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71737         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71738         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71739         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71740         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71741         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71742         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71744 2010-03-18  Bruno Haible  <bruno@clisp.org>
71746         Fix bug introduced on 2010-03-14.
71747         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71748         (gl_SPAWN_H): Require it.
71749         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71750         Reported by Simon Josefsson.
71752 2010-03-18  Bruno Haible  <bruno@clisp.org>
71754         Fix typo introduced on 2009-12-31.
71755         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71756         posix_spawn_file_actions_adddup2.
71758 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71759         and Eric Blake  <eblake@redhat.com>
71761         test-vc-list-files-git: make more robust
71762         * tests/test-vc-list-files-git.sh: Unset problematic environment
71763         variables.  Chain commands together.
71765 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71767         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71768         `AC_CHECK_DECL' invocation.
71770 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71772         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71773         appears before executable statements. Suggested by Petr Sumbera
71774         <Petr.Sumbera@Sun.COM>.
71776 2010-03-14  Bruno Haible  <bruno@clisp.org>
71778         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71779         portability problems. Instead use a simpler test.
71780         (main): Check that invalid arguments are rejected only on Linux.
71782 2010-03-14  Bruno Haible  <bruno@clisp.org>
71784         Fix bug introduced on 2009-12-31.
71785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71786         gl_PREREQ_SYS_H_WINSOCK2 always.
71787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71788         SYS_SOCKET_H variable.
71789         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71790         Update comments.
71791         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71793         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71795         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71797 2010-03-14  Bruno Haible  <bruno@clisp.org>
71799         Fix values returned by sinl, cosl.
71800         * lib/trigl.h: Add specification comments.
71801         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71802         that combines the values from the precomputed table with the values of
71803         the Chebyshev polynomials.
71805 2010-03-14  Bruno Haible  <bruno@clisp.org>
71807         Fix compilation error when modules 'posix_spawn[p]' are not used.
71808         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71811 2010-03-14  Bruno Haible  <bruno@clisp.org>
71813         Fix compilation error on mingw when module 'time_r' is not used.
71814         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71815         is 1.
71816         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71817         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71818         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71819         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71821 2010-03-14  Bruno Haible  <bruno@clisp.org>
71823         Fix compilation error with Sun C.
71824         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71825         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71826         instead of GCC specific ULONG_LONG_MAX.
71827         * lib/xstrtoll.c: Likewise.
71828         * lib/xstrtoull.c: Likewise.
71830 2010-03-13  Bruno Haible  <bruno@clisp.org>
71832         Allow the user to disable C++ code and tests.
71833         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71834         (gl_PROG_ANSI_CXX): Require it.
71836 2010-03-13  Bruno Haible  <bruno@clisp.org>
71838         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71839         cases.
71841 2010-03-13  Bruno Haible  <bruno@clisp.org>
71843         Test that gnulib does not break the standard C++ headers.
71844         * tests/test-locale-c++2.cc: New file.
71845         * modules/locale-tests (Files): Add it.
71846         (Makefile.am): Compile it for test-locale-c++.
71847         * tests/test-math-c++2.cc: New file.
71848         * modules/math-tests (Files): Add it.
71849         (Makefile.am): Compile it for test-math-c++.
71850         * tests/test-signal-c++2.cc: New file.
71851         * modules/signal-tests (Files): Add it.
71852         (Makefile.am): Compile it for test-signal-c++.
71853         * tests/test-stdio-c++2.cc: New file.
71854         * modules/stdio-tests (Files): Add it.
71855         (Makefile.am): Compile it for test-stdio-c++.
71856         * tests/test-stdlib-c++2.cc: New file.
71857         * modules/stdlib-tests (Files): Add it.
71858         (Makefile.am): Compile it for test-stdlib-c++.
71859         * tests/test-string-c++2.cc: New file.
71860         * modules/string-tests (Files): Add it.
71861         (Makefile.am): Compile it for test-string-c++.
71862         * tests/test-time-c++2.cc: New file.
71863         * modules/time-tests (Files): Add it.
71864         (Makefile.am): Compile it for test-time-c++.
71865         Reported by John W. Eaton <jwe@gnu.org>.
71867 2010-03-13  Bruno Haible  <bruno@clisp.org>
71869         * gnulib-tool (func_usage): Clarify which options are available for
71870         --create-testdir and --create-megatestdir.
71872 2010-03-13  Bruno Haible  <bruno@clisp.org>
71874         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71875         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71876         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71877         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71878         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71879         when appropriate.
71880         Reported by Jim Meyering.
71882 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71884         * gnulib-tool (func_import): Explain origin of code.
71886 2010-03-12  Bruno Haible  <bruno@clisp.org>
71888         Fix problem with automake's definition of CXXLINK.
71889         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71890         Reported by Simon Josefsson and Ludovic Courtès.
71892 2010-03-12  Bruno Haible  <bruno@clisp.org>
71894         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71895         stable releases.
71897 2010-03-11  Bruno Haible  <bruno@clisp.org>
71899         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71900         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71901         whether the system provides one variant or multiple variants of the
71902         function.
71903         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71904         C++ compilers.
71905         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71906         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71907         Reported by Jim Meyering.
71909 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71911         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71913 2010-03-08  Bruno Haible  <bruno@clisp.org>
71915         gnulib-tool: Add support for --libtool in --create-testdir.
71916         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71917         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71919 2010-03-08  Eric Blake  <eblake@redhat.com>
71921         gnulib-tool.texi: mention possibility of git submodule
71922         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71923         submodules.
71924         * doc/.gitignore: Ignore another generated file.
71926 2010-03-08  Karl Berry  <karl@gnu.org>
71928         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71929         of committing gnulib files while skipping others.
71931 2010-03-07  Bruno Haible  <bruno@clisp.org>
71933         Tests of module 'wctype' in C++ mode.
71934         * tests/test-wctype-c++.cc: New file.
71935         * modules/wctype-tests (Files): Add it and tests/signature.h.
71936         (Depends-on): Add ansi-c++-opt.
71937         (Makefile.am): Arrange to compile and run test-wctype-c++.
71939         Tests of module 'wchar' in C++ mode.
71940         * tests/test-wchar-c++.cc: New file.
71941         * modules/wchar-tests (Files): Add it and tests/signature.h.
71942         (Depends-on): Add ansi-c++-opt.
71943         (Makefile.am): Arrange to compile and run test-wchar-c++.
71944         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71945         gl_MODULE_INDICATOR.
71947         Tests of module 'unistd' in C++ mode.
71948         * tests/test-unistd-c++.cc: New file.
71949         * modules/unistd-tests (Files): Add it and tests/signature.h.
71950         (Depends-on): Add ansi-c++-opt.
71951         (Makefile.am): Arrange to compile and run test-unistd-c++.
71952         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71953         gl_MODULE_INDICATOR.
71955         Tests of module 'time' in C++ mode.
71956         * tests/test-time-c++.cc: New file.
71957         * modules/time-tests (Files): Add it and tests/signature.h.
71958         (Depends-on): Add ansi-c++-opt.
71959         (Makefile.am): Arrange to compile and run test-time-c++.
71960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71962         Tests of module 'sys_time' in C++ mode.
71963         * tests/test-sys_time-c++.cc: New file.
71964         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71965         (Depends-on): Add ansi-c++-opt.
71966         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71967         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71968         gl_MODULE_INDICATOR.
71970         Tests of module 'sys_stat' in C++ mode.
71971         * tests/test-sys_stat-c++.cc: New file.
71972         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71973         (Depends-on): Add ansi-c++-opt.
71974         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71975         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71976         gl_MODULE_INDICATOR.
71978         Tests of module 'sys_socket' in C++ mode.
71979         * tests/test-sys_socket-c++.cc: New file.
71980         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71981         (Depends-on): Add ansi-c++-opt.
71982         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71984         gl_MODULE_INDICATOR.
71986         Tests of module 'sys_select' in C++ mode.
71987         * tests/test-sys_select-c++.cc: New file.
71988         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71989         (Depends-on): Add ansi-c++-opt.
71990         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71991         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71992         gl_MODULE_INDICATOR.
71994         Tests of module 'sys_ioctl' in C++ mode.
71995         * tests/test-sys_ioctl-c++.cc: New file.
71996         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71997         (Depends-on): Add ansi-c++-opt.
71998         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
72000         gl_MODULE_INDICATOR.
72002         Tests of module 'string' in C++ mode.
72003         * tests/test-string-c++.cc: New file.
72004         * modules/string-tests (Files): Add it and tests/signature.h.
72005         (Depends-on): Add ansi-c++-opt.
72006         (Makefile.am): Arrange to compile and run test-string-c++.
72007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
72008         gl_MODULE_INDICATOR.
72010         Tests of module 'stdlib' in C++ mode.
72011         * tests/test-stdlib-c++.cc: New file.
72012         * modules/stdlib-tests (Files): Add it and tests/signature.h.
72013         (Depends-on): Add ansi-c++-opt.
72014         (Makefile.am): Arrange to compile and run test-stdlib-c++.
72015         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
72016         gl_MODULE_INDICATOR.
72018         Tests of module 'stdio' in C++ mode.
72019         * tests/test-stdio-c++.cc: New file.
72020         * modules/stdio-tests (Files): Add it and tests/signature.h.
72021         (Depends-on): Add ansi-c++-opt.
72022         (Makefile.am): Arrange to compile and run test-stdio-c++.
72023         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
72024         gl_MODULE_INDICATOR.
72026         Tests of module 'spawn' in C++ mode.
72027         * tests/test-spawn-c++.cc: New file.
72028         * modules/spawn-tests (Files): Add it and tests/signature.h.
72029         (Depends-on): Add ansi-c++-opt.
72030         (Makefile.am): Arrange to compile and run test-spawn-c++.
72031         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
72032         gl_MODULE_INDICATOR.
72034         Tests of module 'signal' in C++ mode.
72035         * tests/test-signal-c++.cc: New file.
72036         * modules/signal-tests (Files): Add it and tests/signature.h.
72037         (Depends-on): Add ansi-c++-opt.
72038         (Makefile.am): Arrange to compile and run test-signal-c++.
72039         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
72040         gl_MODULE_INDICATOR.
72042         Tests of module 'search' in C++ mode.
72043         * tests/test-search-c++.cc: New file.
72044         * modules/search-tests (Files): Add it and tests/signature.h.
72045         (Depends-on): Add ansi-c++-opt.
72046         (Makefile.am): Arrange to compile and run test-search-c++.
72047         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
72048         gl_MODULE_INDICATOR.
72050         Tests of module 'math' in C++ mode.
72051         * tests/test-math-c++.cc: New file.
72052         * modules/math-tests (Files): Add it and tests/signature.h.
72053         (Depends-on): Add ansi-c++-opt.
72054         (Makefile.am): Arrange to compile and run test-math-c++.
72055         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
72057         Tests of module 'locale' in C++ mode.
72058         * tests/test-locale-c++.cc: New file.
72059         * modules/locale-tests (Files): Add it and tests/signature.h.
72060         (Depends-on): Add ansi-c++-opt.
72061         (Makefile.am): Arrange to compile and run test-locale-c++.
72062         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
72063         gl_MODULE_INDICATOR.
72065         Tests of module 'langinfo' in C++ mode.
72066         * tests/test-langinfo-c++.cc: New file.
72067         * modules/langinfo-tests (Files): Add it and tests/signature.h.
72068         (Depends-on): Add ansi-c++-opt.
72069         (Makefile.am): Arrange to compile and run test-langinfo-c++.
72070         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
72071         gl_MODULE_INDICATOR.
72073         Tests of module 'iconv-h' in C++ mode.
72074         * tests/test-iconv-h-c++.cc: New file.
72075         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
72076         (Depends-on): Add ansi-c++-opt.
72077         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
72079         Tests of module 'glob' in C++ mode.
72080         * tests/test-glob-c++.cc: New file.
72081         * modules/glob-tests (Files): Add it.
72082         (Depends-on): Add ansi-c++-opt.
72083         (Makefile.am): Arrange to compile and run test-glob-c++.
72085         Tests of module 'fcntl-h' in C++ mode.
72086         * tests/test-fcntl-h-c++.cc: New file.
72087         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
72088         (Depends-on): Add ansi-c++-opt.
72089         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
72090         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
72091         gl_MODULE_INDICATOR.
72093         Tests of module 'dirent' in C++ mode.
72094         * tests/test-dirent-c++.cc: New file.
72095         * modules/dirent-tests (Files): Add it and tests/signature.h.
72096         (Depends-on): Add ansi-c++-opt.
72097         (Makefile.am): Arrange to compile and run test-dirent-c++.
72098         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
72099         gl_MODULE_INDICATOR.
72101         New module 'ansi-c++-opt'.
72102         * modules/ansi-c++-opt: New file.
72103         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
72105         Document C++ namespace mode.
72106         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
72108         wctype: Avoid #define replacements in C++ mode.
72109         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
72110         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
72111         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
72112         In C++, define a namespaced alias symbol.
72113         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
72114         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
72115         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
72116         rule.
72118         wchar: Avoid #define replacements in C++ mode.
72119         * lib/wchar.in.h: Include c++defs.h.
72120         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
72121         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
72122         symbol.
72123         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
72124         * modules/wchar (Depends-on): Add c++defs.
72125         (Makefile.am): Update wchar.h rule.
72127         unistd: Avoid #define replacements in C++ mode.
72128         * lib/unistd.in.h: Include c++defs.h.
72129         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
72130         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
72131         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
72132         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
72133         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
72134         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
72135         symbol.
72136         (environ): Update.
72137         * modules/unistd (Depends-on): Add c++defs.
72138         (Makefile.am): Update unistd.h rule.
72140         time: Avoid #define replacements in C++ mode.
72141         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
72142         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
72143         define a namespaced alias symbol.
72144         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
72145         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
72146         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
72147         * modules/time (Depends-on): Add c++defs, warn-on-use.
72148         (Makefile.am): Update time.h rule.
72149         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72150         * modules/nanosleep (configure.ac): Likewise.
72151         * modules/strptime (configure.ac): Likewise.
72152         * modules/timegm (configure.ac): Likewise.
72154         sys_time: Avoid #define replacements in C++ mode.
72155         * lib/sys_time.in.h: Include c++defs.h.
72156         (gettimeofday): In C++, define a namespaced alias symbol.
72157         * modules/sys_time (Depends-on): Add c++defs.
72158         (Makefile.am): Update sys/time.h rule.
72160         sys_stat: Avoid #define replacements in C++ mode.
72161         * lib/sys_stat.in.h: Include c++defs.h.
72162         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
72163         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
72164         namespaced alias symbol.
72165         In C++, define a namespaced alias symbol.
72166         * modules/sys_stat (Depends-on): Add c++defs.
72167         (Makefile.am): Update sys/stat.h rule.
72169         sys_socket: Avoid #define replacements in C++ mode.
72170         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
72171         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
72172         definitions also when the system has a <sys/socket.h>.
72173         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72174         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
72175         In C++, define a namespaced alias symbol.
72176         * modules/sys_socket (Depends-on): Add c++defs.
72177         (Makefile.am): Update sys/socket.h rule.
72179         sys_select: Avoid #define replacements in C++ mode.
72180         * lib/sys_select.in.h: Include c++defs.h. Enable the function
72181         definitions also when the system has a <sys/select.h>.
72182         (select): In C++, define a namespaced alias symbol.
72183         * modules/sys_select (Depends-on): Add c++defs.
72184         (Makefile.am): Update sys/select.h rule.
72186         sys_ioctl: Avoid #define replacements in C++ mode.
72187         * lib/sys_ioctl.in.h: Include c++defs.h.
72188         (ioctl): In C++, define a namespaced alias symbol.
72189         * modules/sys_ioctl (Depends-on): Add c++defs.
72190         (Makefile.am): Update sys/ioctl.h rule.
72192         string: Avoid #define replacements in C++ mode.
72193         * lib/string.in.h: Include c++defs.h.
72194         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
72195         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72196         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72197         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
72198         strsignal, strverscmp): In C++, define a namespaced alias symbol.
72199         * modules/string (Depends-on): Add c++defs.
72200         (Makefile.am): Update string.h rule.
72202         stdlib: Avoid #define replacements in C++ mode.
72203         * lib/stdlib.in.h: Include c++defs.h.
72204         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
72205         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
72206         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
72207         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
72208         symbol.
72209         * modules/stdlib (Depends-on): Add c++defs.
72210         (Makefile.am): Update stdlib.h rule.
72212         stdio: Avoid #define replacements in C++ mode.
72213         * lib/stdio.in.h: Include c++defs.h.
72214         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
72215         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
72216         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
72217         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
72218         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
72219         namespaced alias symbol.
72220         * modules/stdio (Depends-on): Add c++defs.
72221         (Makefile.am): Update stdio.h rule.
72223         spawn: Avoid #define replacements in C++ mode.
72224         * lib/spawn.in.h: Include c++defs.h.
72225         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72226         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72227         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72228         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72229         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72230         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72231         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72232         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72233         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72234         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72235         In C++, define a namespaced alias symbol.
72236         * modules/spawn (Depends-on): Add c++defs.
72237         (Makefile.am): Update spawn.h rule.
72239         signal: Avoid #define replacements in C++ mode.
72240         * lib/signal.in.h: Include c++defs.h.
72241         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72242         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
72243         namespaced alias symbol.
72244         * modules/signal (Depends-on): Add c++defs.
72245         (Makefile.am): Update signal.h rule.
72247         search: Avoid #define replacements in C++ mode.
72248         * lib/search.in.h: Include c++defs.h.
72249         (_gl_search_compar_fn, _gl_search_action_fn): New types.
72250         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
72251         symbol.
72252         * modules/search (Depends-on): Add c++defs.
72253         (Makefile.am): Update search.h rule.
72255         math: Avoid #define replacements in C++ mode.
72256         * lib/math.in.h: Include c++defs.h.
72257         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
72258         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
72259         trunc, truncl): In C++, define a namespaced alias symbol.
72260         * modules/math (Depends-on): Add c++defs.
72261         (Makefile.am): Update math.h rule.
72263         locale: Avoid #define replacements in C++ mode.
72264         * lib/locale.in.h: Include c++defs.h.
72265         (duplocale): In C++, define a namespaced alias symbol.
72266         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
72267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
72268         * modules/locale (Depends-on): Add c++defs.
72269         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
72271         langinfo: Avoid #define replacements in C++ mode.
72272         * lib/langinfo.in.h: Include c++defs.h.
72273         (nl_langinfo): In C++, define a namespaced alias symbol.
72274         * modules/langinfo (Depends-on): Add c++defs.
72275         (Makefile.am): Update langinfo.h rule.
72277         iconv-h: Avoid #define replacements in C++ mode.
72278         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
72279         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
72280         symbol.
72281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72282         whenever iconv is present.
72283         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
72284         (Makefile.am): Update iconv.h rule.
72286         glob: Avoid #define replacements in C++ mode.
72287         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
72288         (_gl_glob_errfunc_fn): New type.
72289         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
72290         symbol.
72291         * modules/glob (Depends-on): Add c++defs, warn-on-use.
72292         (Makefile.am): Update glob.h rule.
72294         fcntl-h: Avoid #define replacements in C++ mode.
72295         * lib/fcntl.in.h: Include c++defs.h.
72296         (fcntl, open, openat): In C++, define a namespaced alias symbol.
72297         * modules/fcntl-h (Depends-on): Add c++defs.
72298         (Makefile.am): Update fcntl.h rule.
72300         dirent: Avoid #define replacements in C++ mode.
72301         * lib/dirent.in.h: Include c++defs.h.
72302         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
72303         namespaced alias symbol.
72304         (dirfd): Update declaration.
72305         * modules/dirent (Depends-on): Add c++defs.
72306         (Makefile.am): Update dirent.h rule.
72308         ctype: Make it usable in C++ code.
72309         * lib/ctype.in.h: Include c++defs.h.
72310         (isblank): Declare as extern "C".
72311         * modules/ctype (Depends-on): Add c++defs.
72312         (Makefile.am): Update ctype.h rule.
72314         New module 'c++defs'.
72315         * modules/c++defs: New file.
72316         * build-aux/c++defs.h: New file.
72317         Reported by John W. Eaton <jwe@gnu.org>.
72319 2010-03-07  Bruno Haible  <bruno@clisp.org>
72321         logb: Provide missing declaration for Cygwin.
72322         * lib/math.in.h (logb): New declaration.
72323         * m4/logb.m4: New file.
72324         * modules/logb (Files): Add m4/logb.m4.
72325         (Depends-on): Add math.
72326         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
72327         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
72328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
72329         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
72330         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
72332 2010-03-07  Bruno Haible  <bruno@clisp.org>
72334         Fix test-cond link error.
72335         * tests/test-cond.c: Include <stdio.h>.
72337 2010-03-07  Bruno Haible  <bruno@clisp.org>
72339         Fix test-dirent-safer link error.
72340         * modules/dirent-safer-tests (Makefile.am): Define
72341         test_dirent_safer_LDADD.
72343 2010-03-07  Bruno Haible  <bruno@clisp.org>
72345         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
72346         among default module list.
72348 2010-03-07  Bruno Haible  <bruno@clisp.org>
72350         Fix link error on platforms with GNU libiconv.
72351         * modules/unistr/u8-strcoll-tests (Makefile): Define
72352         test_u8_strcoll_LDADD.
72353         * modules/unistr/u16-strcoll-tests (Makefile): Define
72354         test_u16_strcoll_LDADD.
72355         * modules/unistr/u32-strcoll-tests (Makefile): Define
72356         test_u32_strcoll_LDADD.
72358 2010-03-07  Bruno Haible  <bruno@clisp.org>
72360         Use POSIX declarations for socket functions.
72361         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
72362         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
72363         rpl_sendto): Change declaration to match POSIX.
72364         * lib/connect.c (rpl_connect): Likewise.
72365         * lib/accept.c (rpl_accept): Likewise.
72366         * lib/bind.c (rpl_bind): Likewise.
72367         * lib/getpeername.c (rpl_getpeername): Likewise.
72368         * lib/getsockname.c (rpl_getsockname): Likewise.
72369         * lib/recv.c (rpl_recv): Likewise.
72370         * lib/send.c (rpl_send): Likewise.
72371         * lib/recvfrom.c (rpl_recvfrom): Likewise.
72372         * lib/sendto.c (rpl_sendto): Likewise.
72374 2010-03-06  Bruno Haible  <bruno@clisp.org>
72376         Clarify access, euidaccess, faccessat.
72377         * doc/posix-functions/faccessat.texi: Mention security problem under
72378         "Other problems", not "Portability problems".
72379         * doc/posix-functions/access.texi: Likewise. Mention a related security
72380         problem.
72381         * doc/glibc-functions/euidaccess.texi: Mention security problems.
72382         * lib/euidaccess.c: Add comments about platforms.
72383         * lib/unistd.in.h (access, euidaccess): Add warnings.
72385 2010-03-07  Bruno Haible  <bruno@clisp.org>
72387         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
72388         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
72389         (POSIX_SPAWN_SETSCHEDULER): Likewise.
72390         (POSIX_SPAWN_USEVFORK): Define in a way that works when
72391         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72392         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
72393         declare when POSIX_SPAWN_SETSCHEDULER is zero.
72394         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
72395         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
72396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
72397         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
72398         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
72399         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
72400         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
72401         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
72402         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
72403         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
72404         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
72405         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
72406         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
72407         Likewise.
72408         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72409         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
72410         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
72411         Likewise.
72412         * tests/test-spawn.c (main): Make it work when
72413         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72415 2010-03-07  Bruno Haible  <bruno@clisp.org>
72417         Fix incorrect Makefile.am generation in German locale.
72418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72419         Execute sed command with character range in C locale.
72421 2010-03-06  Bruno Haible  <bruno@clisp.org>
72423         Tests for module 'iconv-h'.
72424         * modules/iconv-h-tests: New file.
72425         * tests/test-iconv-h.c: New file.
72427         New module 'iconv-h'.
72428         * modules/iconv-h: New file.
72429         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72430         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72431         (configure.ac): Remove gl_ICONV_H.
72432         (Makefile.am): Remove rule for iconv.h.
72434 2010-03-06  Bruno Haible  <bruno@clisp.org>
72436         More consistent naming of *.m4 files.
72437         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72438         * modules/wctype (Files): Update.
72440         More consistent naming of *.m4 files.
72441         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72442         * modules/wchar (Files): Update.
72444 2010-03-06  Jim Meyering  <meyering@redhat.com>
72446         euidaccess: relax license to LGPLv2+
72447         * modules/euidaccess (License): Relax to LGPLv2+.
72449 2010-03-06  Bruno Haible  <bruno@clisp.org>
72451         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72452         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72453         (Makefile.am): Augment lib_SOURCES instead.
72455 2010-03-04  Jim Meyering  <meyering@redhat.com>
72457         utime: remove obsolete module
72458         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72459         unnecessary for years, and has been marked as obsolete for 10 months.
72460         * modules/utime: Remove file.
72461         * lib/utime.c: Remove file.
72462         * m4/utime.m4: Remove file.
72463         * m4/utimes-null.m4: Remove file.
72464         * doc/posix-functions/utime.texi (utime): Remove reference to
72465         the module.  Move the sole "fixed by gnulib" item into the
72466         "problems not fixed by Gnulib" list.
72467         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72469 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72471         * modules/exit (License): Relax license to LGPLv2+.
72472         (Status): Mark as obsolete.
72473         * NEWS: Mention deprecated 'exit' module.
72474         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72475         of now obsolete 'exit'.
72477 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72479         fts-lgpl: remove unused module
72480         * modules/fts-lgpl: Remove.
72481         * MODULES.html.sh (func_all_modules): Adjust.
72482         * check-module (find_included_lib_files): Adjust.
72483         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72485 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72487         copy-acl: enhance Solaris ACL error handling
72488         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72489         * lib/set-mode-acl.c (qset_acl): Likewise.
72491 2010-03-02  Bruno Haible  <bruno@clisp.org>
72493         spawn: Don't override the system defined values on FreeBSD 8.
72494         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72495         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72496         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72497         if HAVE_POSIX_SPAWN is 1.
72498         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72500 2010-03-01  Bruno Haible  <bruno@clisp.org>
72502         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72503         regarding Automake.
72505 2010-02-25  Bruno Haible  <bruno@clisp.org>
72507         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72508         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72509         setting, not afterwards.
72510         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72512 2010-02-24  Eric Blake  <eblake@redhat.com>
72514         bootstrap, git-version-gen: use timestamp
72515         * build-aux/git-version-gen (scriptversion): Force UTC.
72516         * build-aux/bootstrap (scriptversion): New variable.
72518         bootstrap: allow older git
72519         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72520         older than 1.6.4.  Requested by the libvirt project.
72522 2010-02-23  Eric Blake  <eblake@redhat.com>
72524         warn-on-use: work with old autoconf
72525         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72526         AS_VAR semantics of autoconf 2.60.
72527         Reported by Bruno Haible.
72529         bootstrap: improve some comments
72530         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72531         clarification comments.
72533         gettimeofday: provide correct function
72534         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72535         when replacement is declared, otherwise provide gettimeofday.
72536         Reported by Michael Goffioul.
72538 2010-02-23  Jim Meyering  <meyering@redhat.com>
72540         lib-ignore: relax license to "unlimited", not LGPLv2+
72541         * modules/lib-ignore (License): Relax to "unlimited".
72543 2010-02-23  Jim Meyering  <meyering@redhat.com>
72545         lib-ignore: relax license to LGPLv2+
72546         * modules/lib-ignore (License): Relax to LGPLv2+.
72548 2010-02-22  Eric Blake  <eblake@redhat.com>
72550         lseek: avoid bash 3.2 broken pipe bug
72551         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72552         warning from bash 3.2.
72553         Reported by Ben Pfaff, with analysis from Bruno Haible.
72555         bootstrap: support non-FSF copyright holder
72556         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72557         bootstrap.conf override of COPYRIGHT_HOLDER.
72558         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72560         bootstrap: interoperate with gettext 0.14.1
72561         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72563         bootstrap: allow for alternate submodule location
72564         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72565         hardcoding submodule location.
72566         (gnulib_mk): Allow direct use of Makefile.am.
72568         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72569         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72570         rather than reconfiguring where the submodule points.
72572         gettimeofday: restore support for platforms that lack function
72573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72574         replacement if function is missing.
72575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72576         * modules/sys_time (Makefile.am): Substitute it.
72577         * lib/sys_time.in.h (gettimeofday): Check it.
72578         Reported by Michael Goffioul.
72580 2010-02-21  Bruno Haible  <bruno@clisp.org>
72582         * lib/stdio.in.h (obstack_printf): Fix typo.
72584 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72586         vc-list-files: use bzr ls's -R option
72587         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72588         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72590 2010-02-21  Jim Meyering  <meyering@redhat.com>
72592         init.sh: fix EXEEXT shims to work also for names like test-prog
72593         * tests/init.sh: Re-exec a better shell, when needed.
72594         If the current shell lacks support for posix $(...), an init.sh-using
72595         test will now try to find a shell that supports that.  If EXEEXT is
72596         nonempty, we also require support for hyphen-in-alias-name and shell
72597         substitutions like ${var#glob}.  Failure to find such a shell results
72598         in a skipped test.
72600 2010-02-21  Bruno Haible  <bruno@clisp.org>
72602         Really work around "broken pipe" error message from bash 3.2.
72603         * gnulib-tool (func_reset_sigpipe): Remove function.
72604         (echo): In bash 3.2, define to a function that uses printf.
72605         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72607 2010-02-20  Bruno Haible  <bruno@clisp.org>
72609         Restore support for automake 1.9.6 with autoconf 2.61.
72610         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72611         Reported by James Youngman <jay@gnu.org>.
72613 2010-02-20  Bruno Haible  <bruno@clisp.org>
72615         Improve *printf warning condition.
72616         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72617         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72618         and the function is overridden due to SIGPIPE emulation.
72620 2010-02-20  Bruno Haible  <bruno@clisp.org>
72622         * lib/stdio.in.h: Tweak comments.
72624 2010-02-19  Bruno Haible  <bruno@clisp.org>
72626         Make it easier to find modules. New gnulib-tool option '--find'.
72627         * gnulib-tool: New option --find.
72628         (func_usage): Document it.
72629         (func_sanitize_modulelist): New function, extracted from
72630         func_all_modules.
72631         (func_all_modules): Invoke it.
72632         * doc/gnulib-tool.texi (Which modules?): New node.
72634 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72636         * lib/sys_select.in.h: Provide select replacement even if
72637         sys/select.h exists on a system, for Interix.
72639 2010-02-18  Jim Meyering  <meyering@redhat.com>
72641         init.sh: don't use $(...) just yet
72642         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72643         to accommodate e.g., Solaris' /bin/sh.
72645 2010-02-17  Bruno Haible  <bruno@clisp.org>
72647         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72648         Reported by Ludovic Courtès <ludo@gnu.org>.
72650 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72652         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72653         linking with -lintl.
72655 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72657         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72658         if not provided by the system's netdb.h.  Reported by
72659         ludo@gnu.org (Ludovic Courtès).
72661 2010-02-15  Jim Meyering  <meyering@redhat.com>
72663         init.sh: improve portability and efficiency
72664         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72665         "dummy" in a for loop.
72666         Use '!', not '^' to select the complement of a character set used
72667         in a "case" statement.
72668         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72669         Suggestions from Eric Blake.
72671         init.sh: automatically accommodate programs with the .exe suffix
72672         Automatically arrange for an invocation of "prog" to execute the
72673         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72674         may use the simpler "prog", yet still work when built on a system
72675         that requires specifying the added suffix.
72676         Do this by constructing a function named "prog" that invokes
72677         "prog.exe" for each .exe file in selected directories.
72678         * tests/init.sh (find_exe_basenames_): New function.
72679         (create_exe_shim_functions_): New function.
72680         (path_prepend_): Use it.
72682         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72683         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72684         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72686 2010-02-14  Jim Meyering  <meyering@redhat.com>
72688         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72689         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72690         (sc_prohibit_hash_pjw_without_use): New rule.
72692         maint.mk: allow the default upload destination dir to be overridden
72693         * top/maint.mk (upload_dest_dir_): Define with a default that
72694         preserves the status quo.
72695         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72696         Reported by Peter Simons.
72698         maint.mk: prohibit inclusion of "hash.h" without_use
72699         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72701 2010-02-10  Jim Meyering  <meyering@redhat.com>
72703         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72704         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72706 2010-02-09  Eric Blake  <ebb9@byu.net>
72707         and Bruno Haible  <bruno@clisp.org>
72709         obstack-printf-posix: ensure declaration
72710         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72711         extracted from gl_FUNC_OBSTACK_PRINTF.
72712         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72713         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72714         Likewise.
72715         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72716         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72717         0.
72719 2010-02-08  Bruno Haible  <bruno@clisp.org>
72721         gnulib-tool: Fix typo in 2010-02-07 commit.
72722         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72723         Reported by Eric Blake.
72725 2010-02-07  Bruno Haible  <bruno@clisp.org>
72727         gnulib-tool: Fix up caching patches.
72728         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72729         option --no-cache. Use associative arrays when supported by the shell.
72730         (sed_comments): New variable.
72731         (modcache): Renamed from do_cache.
72732         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72733         abbreviate unnecessarily.
72734         (have_associative): New variable.
72735         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72736         way also for ksh and zsh.
72737         (func_init_sed_convert_to_cache_statements): New function, extracted
72738         from func_cache_lookup_module. Add support for associative arrays.
72739         Don't set the c_MODULE_cached variable here. Ignore all lines before
72740         the first field header. Remove only the final newline, not all trailing
72741         newlines. Support empty fields correctly. Limit the use of 'eval' to
72742         assignments.
72743         (func_get_description, func_get_status, func_get_notice,
72744         func_get_applicability, func_get_filelist, func_get_dependencies,
72745         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72746         func_get_automake_snippet, func_get_include_directive,
72747         func_get_link_directive, func_get_license, func_get_maintainer):
72748         Update documentation. List the unoptimized code first. Add support for
72749         associative arrays. Limit the use of 'eval' to assignments.
72750         (func_get_applicability): Undo stylistic pessimisations.
72751         (func_get_automake_snippet, func_get_include_directive): Reduce code
72752         duplication.
72753         (func_modules_transitive_closure, func_modules_add_dummy,
72754         func_modules_notice, func_modules_to_filelist, func_add_file,
72755         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72756         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72757         func_create_testdir, func_create_megatestdir): Update documentation.
72759 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72761         * gnulib-tool (func_cache_lookup_module): Store the module name
72762         belonging to the cache variable; error out if two different
72763         module names map to the same cache variable name.
72765 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72767         gnulib-tool: Make caching optional.
72768         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72769         Update matching short versions of --no-changelog.
72770         (func_usage): Update.
72771         (sed_extract_cache_prog): Renamed from ...
72772         (sed_extract_prog): ... this; revert to old extraction script.
72773         (func_get_description, func_get_status)
72774         (func_get_notice, func_get_applicability, func_get_filelist)
72775         (func_get_dependencies, func_get_autoconf_early_snippet)
72776         (func_get_autoconf_snippet, func_get_automake_snippet)
72777         (func_get_include_directive, func_get_link_directive)
72778         (func_get_license, func_get_maintainer): If $do_cache is false,
72779         use old, non-caching extraction scripts.
72780         Suggestion by Bruno Haible.
72782 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72784         gnulib-tool: cache module metainformation.
72785         * gnulib-tool (sed_extract_prog): Match newline before each
72786         header, and rewrite header to a shell variable suffix.
72787         (func_cache_var, func_cache_lookup_module): New functions,
72788         to turn a module name into a cache variable prefix, and to
72789         look up and cache module metainformation.
72790         (func_get_description, func_get_status)
72791         (func_get_notice, func_get_applicability, func_get_filelist)
72792         (func_get_dependencies, func_get_autoconf_early_snippet)
72793         (func_get_autoconf_snippet, func_get_automake_snippet)
72794         (func_get_include_directive, func_get_link_directive)
72795         (func_get_license, func_get_maintainer): Use
72796         func_cache_lookup_module.
72798 2010-02-07  Bruno Haible  <bruno@clisp.org>
72800         fnctl: Fix missing dependency.
72801         * modules/fcntl (Depends-on): Add getdtablesize.
72802         Reported by John W. Eaton <jwe@gnu.org>.
72804 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72806         Argp: fix recognition of short alias options.
72808         * lib/argp-parse.c (convert_options): Fix improper use of
72809         `|' between character values.
72810         * tests/test-argp.c (group1_option): New alias option
72811         --read (-r).
72812         (group1_parser): Special handling for 'r'.
72813         (test15): New test case.
72814         (test_fun): Add test15.
72815         * tests/test-argp-2.sh: Update expected --help and --usage
72816         outputs.
72818 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72820         * tests/test-argp.c: Fix indentation.
72822 2010-02-04  Eric Blake  <ebb9@byu.net>
72824         gettimeofday: expose type of second argument
72825         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72826         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72827         * tests/test-gettimeofday.c: Use it to silence warning.
72828         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72829         the issue.
72831 2010-02-03  Jim Meyering  <meyering@redhat.com>
72833         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72834         * lib/regcomp.c (TYPE_SIGNED): Define.
72835         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72837         regcomp.c: avoid a new -Wshadow warning
72838         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72840 2010-02-01  Jim Meyering  <meyering@redhat.com>
72842         removing useless parentheses in cpp #define directives
72843         For motivation, see commit c0221df4, "define STREQ(a,b)
72844         consistently, removing useless parentheses"
72845         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72846         * lib/mountlist.c (MNT_IGNORE): Likewise.
72847         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72849 2010-02-01  Eric Blake  <ebb9@byu.net>
72851         sys_time: use link-warning
72852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72853         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72854         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72855         * modules/sys_time (Depends-on): Add warn-on-use.
72856         (Makefile.am): Always build replacement.
72857         (configure.ac): Update substitutions.
72858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72859         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72860         bother with SYS_TIME_H.
72861         * modules/gettimeofday (configure.ac): Declare indicator.
72862         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72863         in use.
72865         closein-tests: silence compiler warning
72866         * tests/test-closein.c (main): Ignore fread result.
72867         * modules/closein-tests (Depends-on): Add ignore-value.
72869         tests: silence warning about system return
72870         * tests/test-areadlink-with-size.c (main): Ignore system result.
72871         * tests/test-areadlink.c (main): Likewise.
72872         * tests/test-areadlinkat-with-size.c (main): Likewise.
72873         * tests/test-areadlinkat.c (main): Likewise.
72874         * tests/test-canonicalize-lgpl.c (main): Likewise.
72875         * tests/test-canonicalize.c (main): Likewise.
72876         * tests/test-chown.c (main): Likewise.
72877         * tests/test-fchownat.c (main): Likewise.
72878         * tests/test-fdutimensat.c (main): Likewise.
72879         * tests/test-fstatat.c (main): Likewise.
72880         * tests/test-futimens.c (main): Likewise.
72881         * tests/test-lchown.c (main): Likewise.
72882         * tests/test-link.c (main): Likewise.
72883         * tests/test-linkat.c (main): Likewise.
72884         * tests/test-lstat.c (main): Likewise.
72885         * tests/test-mkdir.c (main): Likewise.
72886         * tests/test-mkdirat.c (main): Likewise.
72887         * tests/test-mkfifo.c (main): Likewise.
72888         * tests/test-mkfifoat.c (main): Likewise.
72889         * tests/test-mknod.c (main): Likewise.
72890         * tests/test-readlink.c (main): Likewise.
72891         * tests/test-remove.c (main): Likewise.
72892         * tests/test-rename.c (main): Likewise.
72893         * tests/test-renameat.c (main): Likewise.
72894         * tests/test-rmdir.c (main): Likewise.
72895         * tests/test-symlink.c (main): Likewise.
72896         * tests/test-symlinkat.c (main): Likewise.
72897         * tests/test-unlink.c (main): Likewise.
72898         * tests/test-unlinkat.c (main): Likewise.
72899         * tests/test-utimens.c (main): Likewise.
72900         * tests/test-utimensat.c (main): Likewise.
72901         * modules/areadlink-tests (Depends-on): Add ignore-value.
72902         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72903         * modules/areadlinkat-tests (Depends-on): Likewise.
72904         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72905         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72906         * modules/canonicalize-tests (Depends-on): Likewise.
72907         * modules/chown-tests (Depends-on): Likewise.
72908         * modules/fdutimensat-tests (Depends-on): Likewise.
72909         * modules/futimens-tests (Depends-on): Likewise.
72910         * modules/lchown-tests (Depends-on): Likewise.
72911         * modules/link-tests (Depends-on): Likewise.
72912         * modules/linkat-tests (Depends-on): Likewise.
72913         * modules/lstat-tests (Depends-on): Likewise.
72914         * modules/mkdir-tests (Depends-on): Likewise.
72915         * modules/mkfifo-tests (Depends-on): Likewise.
72916         * modules/mkfifoat-tests (Depends-on): Likewise.
72917         * modules/mknod-tests (Depends-on): Likewise.
72918         * modules/openat-tests (Depends-on): Likewise.
72919         * modules/readlink-tests (Depends-on): Likewise.
72920         * modules/remove-tests (Depends-on): Likewise.
72921         * modules/rename-tests (Depends-on): Likewise.
72922         * modules/renameat-tests (Depends-on): Likewise.
72923         * modules/rmdir-tests (Depends-on): Likewise.
72924         * modules/symlink-tests (Depends-on): Likewise.
72925         * modules/symlinkat-tests (Depends-on): Likewise.
72926         * modules/unlink-tests (Depends-on): Likewise.
72927         * modules/utimens-tests (Depends-on): Likewise.
72928         * modules/utimensat-tests (Depends-on): Likewise.
72930 2010-01-31  Bruno Haible  <bruno@clisp.org>
72932         Perform the same test for many <math.h> functions.
72933         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72934         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72935         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72936         of gl_MATHFUNC.
72937         * modules/acos (configure.ac): Likewise.
72938         * modules/asin (configure.ac): Likewise.
72939         * modules/atan (configure.ac): Likewise.
72940         * modules/atan2 (configure.ac): Likewise.
72941         * modules/cbrt (configure.ac): Likewise.
72942         * modules/copysign (configure.ac): Likewise.
72943         * modules/cos (configure.ac): Likewise.
72944         * modules/cosh (configure.ac): Likewise.
72945         * modules/erf (configure.ac): Likewise.
72946         * modules/erfc (configure.ac): Likewise.
72947         * modules/exp (configure.ac): Likewise.
72948         * modules/fmod (configure.ac): Likewise.
72949         * modules/hypot (configure.ac): Likewise.
72950         * modules/j0 (configure.ac): Likewise.
72951         * modules/j1 (configure.ac): Likewise.
72952         * modules/jn (configure.ac): Likewise.
72953         * modules/lgamma (configure.ac): Likewise.
72954         * modules/log (configure.ac): Likewise.
72955         * modules/log10 (configure.ac): Likewise.
72956         * modules/log1p (configure.ac): Likewise.
72957         * modules/pow (configure.ac): Likewise.
72958         * modules/remainder (configure.ac): Likewise.
72959         * modules/sin (configure.ac): Likewise.
72960         * modules/sinh (configure.ac): Likewise.
72961         * modules/tan (configure.ac): Likewise.
72962         * modules/tanh (configure.ac): Likewise.
72963         * modules/y0 (configure.ac): Likewise.
72964         * modules/y1 (configure.ac): Likewise.
72965         * modules/yn (configure.ac): Likewise.
72966         Suggested by Paolo Bonzini.
72968 2010-01-31  Bruno Haible  <bruno@clisp.org>
72970         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72972 2010-01-31  Bruno Haible  <bruno@clisp.org>
72974         Work around getdelim() bug on FreeBSD 8.0.
72975         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72976         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72977         not work.
72978         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72979         is 1.
72980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72981         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72982         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72983         a non-zero size.
72984         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72986 2010-01-31  Bruno Haible  <bruno@clisp.org>
72988         Work around getline() bug on FreeBSD 8.0.
72989         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72990         and a non-zero size.
72991         * tests/test-getline.c (main): Likewise.
72992         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72993         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72995 2010-01-28  Eric Blake  <ebb9@byu.net>
72997         regex: fix build failure
72998         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72999         platforms.
73001 2010-01-28  Jim Meyering  <meyering@redhat.com>
73003         regex: do not ignore memory allocation failure
73004         * lib/regex_internal.c (create_cd_newstate): Detect
73005         re_node_set_init_copy failure.   Extracted from glibc commit
73006         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73008         regex: sync more white-space changes from libc
73009         * lib/regex_internal.c: White-space only changes.
73010         * lib/regexec.c: Likewise.
73012         regex: add many uses of __attribute_warn_unused_result__
73013         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
73014         * lib/regexec.c: Likewise.
73015         Extracted from a messy glibc commit.
73017         regcomp.c: spelling and merge-artifact from glibc
73018         * lib/regcomp.c: Merge remainder of glibc's
73019         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73021         regcomp.c: sync white-space changes from glibc
73022         * lib/regcomp.c: Merge to accommodate white space
73023         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73025         regcomp.c: do not ignore internal return values
73026         * lib/regcomp.c: Do not ignore internal return values.
73027         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
73028         but without its white-space changes and spelling fixes.
73030         regex_internal.h: define __attribute_warn_unused_result__
73031         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
73033         maint: add a syntax-check rule to check for vulnerable Makefile.in
73034         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
73036 2010-01-27  Jim Meyering  <meyering@redhat.com>
73038         ncftpput-ftp: clean up spaces
73039         * build-aux/ncftpput-ftp: Make Copyright line consistent.
73040         Remove trailing blanks.
73042 2010-01-27  Simon Josefsson  <simon@josefsson.org>
73044         * build-aux/git-version-gen: Fix copyright statement.
73045         * build-aux/gnupload: Likewise.
73046         * tests/test-arcfour.c: Likewise.
73047         * tests/test-arctwo.c: Likewise.
73048         * tests/test-count-one-bits.c: Likewise.
73049         * tests/test-crc.c: Likewise.
73050         * tests/test-des.c: Likewise.
73051         * tests/test-gc-arcfour.c: Likewise.
73052         * tests/test-gc-arctwo.c: Likewise.
73053         * tests/test-gc-des.c: Likewise.
73054         * tests/test-gc-hmac-md5.c: Likewise.
73055         * tests/test-gc-hmac-sha1.c: Likewise.
73056         * tests/test-gc-md2.c: Likewise.
73057         * tests/test-gc-md4.c: Likewise.
73058         * tests/test-gc-md5.c: Likewise.
73059         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73060         * tests/test-gc-rijndael.c: Likewise.
73061         * tests/test-gc-sha1.c: Likewise.
73062         * tests/test-gc.c: Likewise.
73063         * tests/test-gethostname.c: Likewise.
73064         * tests/test-gettimeofday.c: Likewise.
73065         * tests/test-hash.c: Likewise.
73066         * tests/test-hmac-md5.c: Likewise.
73067         * tests/test-hmac-sha1.c: Likewise.
73068         * tests/test-md2.c: Likewise.
73069         * tests/test-md4.c: Likewise.
73070         * tests/test-md5.c: Likewise.
73071         * tests/test-memchr.c: Likewise.
73072         * tests/test-memchr2.c: Likewise.
73073         * tests/test-memcmp.c: Likewise.
73074         * tests/test-memmem.c: Likewise.
73075         * tests/test-memrchr.c: Likewise.
73076         * tests/test-rawmemchr.c: Likewise.
73077         * tests/test-read-file.c: Likewise.
73078         * tests/test-rijndael.c: Likewise.
73079         * tests/test-sockets.c: Likewise.
73080         * tests/test-strchrnul.c: Likewise.
73081         * tests/test-strstr.c: Likewise.
73082         * tests/test-strtod.c: Likewise.
73083         * build-aux/ncftpput-ftp: Likewise.
73085 2010-01-26  Eric Blake  <ebb9@byu.net>
73087         ignore-value: update recommended header name
73088         * modules/ignore-value (Include): Only use <> for headers that
73089         exist in glibc.
73091 2010-01-26  Jim Meyering  <meyering@redhat.com>
73093         test-userspec.c: avoid compiler warnings
73094         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
73095         and "initialization discards qualifiers..." warnings.
73096         Put the first "uid" in its own scope, and make char* members "const".
73098 2010-01-25  Bruno Haible  <bruno@clisp.org>
73100         gnulib-tool: Make warning diagnostics consistent.
73101         * gnulib-tool (func_warning): New function.
73102         Use it everywhere where gnulib-tool produces output to stderr and it is
73103         not a fatal error.
73105 2010-01-25  Bruno Haible  <bruno@clisp.org>
73107         Fix test dependencies.
73108         * modules/xstrtol-tests (Depends-on): Add inttypes.
73109         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
73111 2010-01-25  Pádraig Brady  <P@draigBrady.com>
73113         syntax-check: detect incorrect boolean macro values in config.h
73114         * modules/maintainer-makefile (configure.ac): Parameterize the location
73115         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
73116         The logic is from Eric Blake and the location indicated by Jim Meyering.
73117         Note the more natural CONFIG_HEADER name is prohibited by automake
73118         for backwards compatibility reasons.
73119         * top/maint.mk (sc_Wundef_boolean): New rule.
73121 2010-01-25  Jim Meyering  <meyering@redhat.com>
73123         bootstrap: detect MacOS 10.6's shasum, too
73124         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
73125         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
73127 2010-01-23  Jim Meyering  <meyering@redhat.com>
73129         xstrtoll: new module
73130         * modules/xstrtoll: New file.
73131         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
73132         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
73133         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
73134         ./configure fails if you use this module and lack "long long".
73135         * modules/xstrtoll-tests: New module.
73136         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
73137         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
73138         new init.sh-based test framework.
73140 2010-01-24  Bruno Haible  <bruno@clisp.org>
73142         Tests for module 'yn'.
73143         * modules/yn-tests: New file.
73144         * tests/test-yn.c: New file.
73146         Tests for module 'y1'.
73147         * modules/y1-tests: New file.
73148         * tests/test-y1.c: New file.
73150         Tests for module 'y0'.
73151         * modules/y0-tests: New file.
73152         * tests/test-y0.c: New file.
73154         Tests for module 'tanh'.
73155         * modules/tanh-tests: New file.
73156         * tests/test-tanh.c: New file.
73158         Tests for module 'tan'.
73159         * modules/tan-tests: New file.
73160         * tests/test-tan.c: New file.
73162         Tests for module 'sqrt'.
73163         * modules/sqrt-tests: New file.
73164         * tests/test-sqrt.c: New file.
73166         Tests for module 'sinh'.
73167         * modules/sinh-tests: New file.
73168         * tests/test-sinh.c: New file.
73170         Tests for module 'sin'.
73171         * modules/sin-tests: New file.
73172         * tests/test-sin.c: New file.
73174         Tests for module 'rint'.
73175         * modules/rint-tests: New file.
73176         * tests/test-rint.c: New file.
73178         Tests for module 'remainder'.
73179         * modules/remainder-tests: New file.
73180         * tests/test-remainder.c: New file.
73182         Tests for module 'pow'.
73183         * modules/pow-tests: New file.
73184         * tests/test-pow.c: New file.
73186         Tests for module 'nextafter'.
73187         * modules/nextafter-tests: New file.
73188         * tests/test-nextafter.c: New file.
73190         Tests for module 'modf'.
73191         * modules/modf-tests: New file.
73192         * tests/test-modf.c: New file.
73194         Tests for module 'logb'.
73195         * modules/logb-tests: New file.
73196         * tests/test-logb.c: New file.
73198         Tests for module 'log1p'.
73199         * modules/log1p-tests: New file.
73200         * tests/test-log1p.c: New file.
73202         Tests for module 'log10'.
73203         * modules/log10-tests: New file.
73204         * tests/test-log10.c: New file.
73206         Tests for module 'log'.
73207         * modules/log-tests: New file.
73208         * tests/test-log.c: New file.
73210         Tests for module 'lgamma'.
73211         * modules/lgamma-tests: New file.
73212         * tests/test-lgamma.c: New file.
73214         Tests for module 'ldexp'.
73215         * modules/ldexp-tests: New file.
73216         * tests/test-ldexp.c: New file.
73218         Tests for module 'jn'.
73219         * modules/jn-tests: New file.
73220         * tests/test-jn.c: New file.
73222         Tests for module 'j1'.
73223         * modules/j1-tests: New file.
73224         * tests/test-j1.c: New file.
73226         Tests for module 'j0'.
73227         * modules/j0-tests: New file.
73228         * tests/test-j0.c: New file.
73230         Tests for module 'hypot'.
73231         * modules/hypot-tests: New file.
73232         * tests/test-hypot.c: New file.
73234         Tests for module 'fmod'.
73235         * modules/fmod-tests: New file.
73236         * tests/test-fmod.c: New file.
73238         Tests for module 'fabs'.
73239         * modules/fabs-tests: New file.
73240         * tests/test-fabs.c: New file.
73242         Tests for module 'exp'.
73243         * modules/exp-tests: New file.
73244         * tests/test-exp.c: New file.
73246         Tests for module 'erfc'.
73247         * modules/erfc-tests: New file.
73248         * tests/test-erfc.c: New file.
73250         Tests for module 'erf'.
73251         * modules/erf-tests: New file.
73252         * tests/test-erf.c: New file.
73254         Tests for module 'cosh'.
73255         * modules/cosh-tests: New file.
73256         * tests/test-cosh.c: New file.
73258         Tests for module 'cos'.
73259         * modules/cos-tests: New file.
73260         * tests/test-cos.c: New file.
73262         Tests for module 'copysign'.
73263         * modules/copysign-tests: New file.
73264         * tests/test-copysign.c: New file.
73266         Tests for module 'cbrt'.
73267         * modules/cbrt-tests: New file.
73268         * tests/test-cbrt.c: New file.
73270         Tests for module 'atan2'.
73271         * modules/atan2-tests: New file.
73272         * tests/test-atan2.c: New file.
73274         Tests for module 'atan'.
73275         * modules/atan-tests: New file.
73276         * tests/test-atan.c: New file.
73278         Tests for module 'asin'.
73279         * modules/asin-tests: New file.
73280         * tests/test-asin.c: New file.
73282         Tests for module 'acos'.
73283         * modules/acos-tests: New file.
73284         * tests/test-acos.c: New file.
73286 2010-01-24  Bruno Haible  <bruno@clisp.org>
73288         Fix tests for common <math.h> functions.
73289         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
73290         code snippet that references the function pointer, rather than merely
73291         calling the function. Substitute the FUNC_LIBM variable.
73292         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
73293         * modules/acos (configure.ac): Likewise.
73294         * modules/asin (configure.ac): Likewise.
73295         * modules/atan (configure.ac): Likewise.
73296         * modules/atan2 (configure.ac): Likewise.
73297         * modules/cbrt (configure.ac): Likewise.
73298         * modules/copysign (configure.ac): Likewise.
73299         * modules/cos (configure.ac): Likewise.
73300         * modules/cosh (configure.ac): Likewise.
73301         * modules/erf (configure.ac): Likewise.
73302         * modules/erfc (configure.ac): Likewise.
73303         * modules/exp (configure.ac): Likewise.
73304         * modules/fabs (configure.ac): Likewise.
73305         * modules/fmod (configure.ac): Likewise.
73306         * modules/hypot (configure.ac): Likewise.
73307         * modules/j0 (configure.ac): Likewise.
73308         * modules/j1 (configure.ac): Likewise.
73309         * modules/jn (configure.ac): Likewise.
73310         * modules/ldexp (configure.ac): Likewise.
73311         * modules/lgamma (configure.ac): Likewise.
73312         * modules/log (configure.ac): Likewise.
73313         * modules/log10 (configure.ac): Likewise.
73314         * modules/log1p (configure.ac): Likewise.
73315         * modules/logb (configure.ac): Likewise.
73316         * modules/modf (configure.ac): Likewise.
73317         * modules/nextafter (configure.ac): Likewise.
73318         * modules/pow (configure.ac): Likewise.
73319         * modules/remainder (configure.ac): Likewise.
73320         * modules/rint (configure.ac): Likewise.
73321         * modules/sin (configure.ac): Likewise.
73322         * modules/sinh (configure.ac): Likewise.
73323         * modules/tan (configure.ac): Likewise.
73324         * modules/tanh (configure.ac): Likewise.
73325         * modules/y0 (configure.ac): Likewise.
73326         * modules/y1 (configure.ac): Likewise.
73327         * modules/yn (configure.ac): Likewise.
73329 2010-01-24  Bruno Haible  <bruno@clisp.org>
73331         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
73332         * tests/test-acosl.c (x): New variable.
73333         (main): Store argument in x and fetch it from x.
73334         * tests/test-asinl.c (x): New variable.
73335         (main): Store argument in x and fetch it from x.
73336         * tests/test-atanl.c (x): New variable.
73337         (main): Store argument in x and fetch it from x.
73338         * tests/test-cosl.c (x): New variable.
73339         (main): Store argument in x and fetch it from x.
73340         * tests/test-expl.c (x): New variable.
73341         (main): Store argument in x and fetch it from x.
73342         * tests/test-logl.c (x): New variable.
73343         (main): Store argument in x and fetch it from x.
73344         * tests/test-sinl.c (x): New variable.
73345         (main): Store argument in x and fetch it from x.
73346         * tests/test-sqrtl.c (x): New variable.
73347         (main): Store argument in x and fetch it from x.
73348         * tests/test-tanl.c (x): New variable.
73349         (main): Store argument in x and fetch it from x.
73351 2010-01-24  Bruno Haible  <bruno@clisp.org>
73353         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
73354         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
73355         assignments to the initial TESTS_ENVIRONMENT.
73356         * doc/gnulib.texi (Unit test modules): Document it.
73357         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
73358         TESTS_ENVIRONMENT.
73359         * modules/btowc-tests (Makefile.am): Likewise.
73360         * modules/c-stack-tests (Makefile.am): Likewise.
73361         * modules/c-strcase-tests (Makefile.am): Likewise.
73362         * modules/copy-file-tests (Makefile.am): Likewise.
73363         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
73364         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
73365         * modules/mbrtowc-tests (Makefile.am): Likewise.
73366         * modules/mbscasecmp-tests (Makefile.am): Likewise.
73367         * modules/mbscasestr-tests (Makefile.am): Likewise.
73368         * modules/mbschr-tests (Makefile.am): Likewise.
73369         * modules/mbscspn-tests (Makefile.am): Likewise.
73370         * modules/mbsinit-tests (Makefile.am): Likewise.
73371         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
73372         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
73373         * modules/mbspbrk-tests (Makefile.am): Likewise.
73374         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
73375         * modules/mbsrchr-tests (Makefile.am): Likewise.
73376         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
73377         * modules/mbsspn-tests (Makefile.am): Likewise.
73378         * modules/mbsstr-tests (Makefile.am): Likewise.
73379         * modules/nl_langinfo-tests (Makefile.am): Likewise.
73380         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
73381         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
73382         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
73383         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
73384         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
73385         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
73386         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
73387         * modules/wcrtomb-tests (Makefile.am): Likewise.
73388         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
73389         * modules/wcsrtombs-tests (Makefile.am): Likewise.
73390         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
73391         assignments from TESTS_ENVIRONMENT.
73392         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
73393         augmentation.
73394         * modules/argp-version-etc-tests (Makefile.am): Likewise.
73395         * modules/atexit-tests (Makefile.am): Likewise.
73396         * modules/binary-io-tests (Makefile.am): Likewise.
73397         * modules/closein-tests (Makefile.am): Likewise.
73398         * modules/dprintf-posix-tests (Makefile.am): Likewise.
73399         * modules/exclude-tests (Makefile.am): Likewise.
73400         * modules/fflush-tests (Makefile.am): Likewise.
73401         * modules/fpending-tests (Makefile.am): Likewise.
73402         * modules/fprintf-posix-tests (Makefile.am): Likewise.
73403         * modules/freadahead-tests (Makefile.am): Likewise.
73404         * modules/freadptr-tests (Makefile.am): Likewise.
73405         * modules/freadseek-tests (Makefile.am): Likewise.
73406         * modules/fseek-tests (Makefile.am): Likewise.
73407         * modules/fseeko-tests (Makefile.am): Likewise.
73408         * modules/ftell-tests (Makefile.am): Likewise.
73409         * modules/ftello-tests (Makefile.am): Likewise.
73410         * modules/idpriv-drop-tests (Makefile.am): Likewise.
73411         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
73412         * modules/lseek-tests (Makefile.am): Likewise.
73413         * modules/parse-duration-tests (Makefile.am): Likewise.
73414         * modules/perror-tests (Makefile.am): Likewise.
73415         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
73416         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
73417         * modules/pipe-tests (Makefile.am): Likewise.
73418         * modules/pread-tests (Makefile.am): Likewise.
73419         * modules/printf-posix-tests (Makefile.am): Likewise.
73420         * modules/select-tests (Makefile.am): Likewise.
73421         * modules/sigpipe-tests (Makefile.am): Likewise.
73422         * modules/tsearch-tests (Makefile.am): Likewise.
73423         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73424         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73425         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73426         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73427         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73428         * modules/version-etc-tests (Makefile.am): Likewise.
73429         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73430         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73431         * modules/xalloc-die-tests (Makefile.am): Likewise.
73432         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73433         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73434         * modules/xstrtol-tests (Makefile.am): Likewise.
73435         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73436         * modules/yesno-tests (Makefile.am): Likewise.
73437         Suggested by Jim Meyering.
73439 2010-01-24  Bruno Haible  <bruno@clisp.org>
73441         More documentation.
73442         * doc/gnulib.texi (Writing modules): New chapter.
73443         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73444         the new chapter.
73446 2010-01-24  Jim Meyering  <meyering@redhat.com>
73448         maint.mk: do not prepend "./" after filtering
73449         * top/maint.mk (_prepend_srcdir_prefix): New variable
73450         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73451         "./" when $(srcdir) is ".".
73453         define STREQ(a,b) consistently, removing useless parentheses
73454         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73455         since the only risk is that "a" or "b" contains an unparenthesized
73456         comma, but if either did that, STREQ would have 3 or more arguments.
73457         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73458         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73459         * lib/hash-triple.c (STREQ): Likewise.
73460         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73461         * lib/getugroups.c (STREQ): Likewise.
73463 2010-01-23  Jim Meyering  <meyering@redhat.com>
73465         maint.mk: fix syntax-check in a non-srcdir build directory
73466         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73467         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73469 2010-01-22  Jim Meyering  <meyering@redhat.com>
73471         userspec: add unit tests
73472         * tests/test-userspec.c: New file.
73473         * modules/userspec-tests: Likewise.
73475 2010-01-21  Jim Meyering  <meyering@redhat.com>
73477         maint.mk: handle source file names containing "." robustly
73478         * top/maint.mk (_dot_escaped_srcdir): Define.
73479         (VC_LIST): Use it in LHS of sed substitution.
73481 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73483         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73484         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73485         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73486         from a non-srcdir build.
73488 2010-01-20  Eric Blake  <ebb9@byu.net>
73490         warn-on-use: use instead of link-warning
73491         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73492         * modules/unistd (Depends-on, Makefile.am): Likewise.
73493         * modules/arpa_inet (Depends-on): Replace link-warning with
73494         warn-on-use.
73495         (Makefile.am): Update rules accordingly.
73496         * modules/ctype (Depends-on, Makefile.am): Likewise.
73497         * modules/dirent (Depends-on, Makefile.am): Likewise.
73498         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73499         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73500         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73501         * modules/locale (Depends-on, Makefile.am): Likewise.
73502         * modules/math (Depends-on, Makefile.am): Likewise.
73503         * modules/search (Depends-on, Makefile.am): Likewise.
73504         * modules/signal (Depends-on, Makefile.am): Likewise.
73505         * modules/spawn (Depends-on, Makefile.am): Likewise.
73506         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73507         * modules/string (Depends-on, Makefile.am): Likewise.
73508         * modules/strings (Depends-on, Makefile.am): Likewise.
73509         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73510         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73511         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73512         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73513         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73514         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73515         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73516         * modules/wchar (Depends-on, Makefile.am): Likewise.
73517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73518         should be poisoned.
73519         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73520         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73521         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73522         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73523         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73524         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73525         * m4/math_h.m4 (gl_MATH_H): Likewise.
73526         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73527         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73528         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73529         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73530         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73531         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73532         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73533         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73534         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73538         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73539         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73540         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73541         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73542         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73543         GL_LINK_WARNING.
73544         * lib/ctype.in.h: Likewise.
73545         * lib/dirent.in.h: Likewise.
73546         * lib/fcntl.in.h: Likewise.
73547         * lib/inttypes.in.h: Likewise.
73548         * lib/langinfo.in.h: Likewise.
73549         * lib/locale.in.h: Likewise.
73550         * lib/math.in.h: Likewise.
73551         * lib/search.in.h: Likewise.
73552         * lib/signal.in.h: Likewise.
73553         * lib/spawn.in.h: Likewise.
73554         * lib/stdio.in.h: Likewise.
73555         * lib/stdlib.in.h: Likewise.
73556         * lib/string.in.h: Likewise.
73557         * lib/strings.in.h: Likewise.
73558         * lib/sys_file.in.h: Likewise.
73559         * lib/sys_ioctl.in.h: Likewise.
73560         * lib/sys_select.in.h: Likewise.
73561         * lib/sys_socket.in.h: Likewise.
73562         * lib/sys_stat.in.h: Likewise.
73563         * lib/sys_times.in.h: Likewise.
73564         * lib/sys_utsname.in.h: Likewise.
73565         * lib/unistd.in.h: Likewise.
73566         * lib/wchar.in.h: Likewise.
73568 2010-01-20  Bruno Haible  <bruno@clisp.org>
73570         Avoid duplicate -lm.
73571         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73572         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73574         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73575         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73576         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73577         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73578         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73579         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73580         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73581         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73582         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73583         Reported by Paolo Bonzini.
73585 2010-01-19  Bruno Haible  <bruno@clisp.org>
73587         langinfo, nl_langinfo: Relicense under LGPLv2+.
73588         * modules/langinfo (License): Change to LGPLv2+.
73589         * modules/nl_langinfo (License): Likewise.
73590         Patch by David Lutterkort <lutter@redhat.com>.
73592 2010-01-19  Bruno Haible  <bruno@clisp.org>
73594         Avoid compilation error with cc on OSF/1 5.1.
73595         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73596         statement, not before.
73597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73599 2010-01-18  Bruno Haible  <bruno@clisp.org>
73601         Avoid a link error due to the __printf__ symbol.
73602         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73603         and 2.6.x.
73604         (__format__, __printf__): Remove definitions.
73605         * lib/argp-fmtstream.h: Likewise.
73606         * lib/argp.h: Likewise.
73607         * lib/error.h: Likewise.
73608         * lib/vasnprintf.h: Likewise.
73609         * lib/xprintf.h: Likewise.
73610         * lib/xvasprintf.h: Likewise.
73611         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73613 2010-01-18  Bruno Haible  <bruno@clisp.org>
73615         Tests for module 'tanl'.
73616         * modules/tanl-tests: New file.
73617         * tests/test-tanl.c: New file.
73619         Tests for module 'sqrtl'.
73620         * modules/sqrtl-tests: New file.
73621         * tests/test-sqrtl.c: New file.
73623         Tests for module 'sinl'.
73624         * modules/sinl-tests: New file.
73625         * tests/test-sinl.c: New file.
73627         Tests for module 'logl'.
73628         * modules/logl-tests: New file.
73629         * tests/test-logl.c: New file.
73631         Tests for module 'expl'.
73632         * modules/expl-tests: New file.
73633         * tests/test-expl.c: New file.
73635         Tests for module 'cosl'.
73636         * modules/cosl-tests: New file.
73637         * tests/test-cosl.c: New file.
73639         Tests for module 'atanl'.
73640         * modules/atanl-tests: New file.
73641         * tests/test-atanl.c: New file.
73643         Tests for module 'asinl'.
73644         * modules/asinl-tests: New file.
73645         * tests/test-asinl.c: New file.
73647         Tests for module 'acosl'.
73648         * modules/acosl-tests: New file.
73649         * tests/test-acosl.c: New file.
73651         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73652         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73653         tanl): Use the standard gnulib idiom.
73654         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73655         * lib/sinl.c: Likewise.
73656         * lib/tanl.c: Don't include trigl.c.
73657         (kernel_tanl): Make static.
73658         * lib/sincosl.c: Include trigl.h first.
73659         * lib/trigl.c: Likewise.
73660         * m4/acosl.m4: New file.
73661         * m4/asinl.m4: New file.
73662         * m4/atanl.m4: New file.
73663         * m4/cosl.m4: New file.
73664         * m4/expl.m4: New file.
73665         * m4/logl.m4: New file.
73666         * m4/sinl.m4: New file.
73667         * m4/sqrtl.m4: New file.
73668         * m4/tanl.m4: New file.
73669         * m4/mathl.m4: Remove file.
73670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73671         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73672         Don't initialize GNULIB_MATHL.
73673         * modules/acosl: New file.
73674         * modules/asinl: New file.
73675         * modules/atanl: New file.
73676         * modules/cosl: New file.
73677         * modules/expl: New file.
73678         * modules/logl: New file.
73679         * modules/sinl: New file.
73680         * modules/sqrtl: New file.
73681         * modules/tanl: New file.
73682         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73683         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73684         substitute GNULIB_MATHL.
73685         * modules/mathl: Rewritten.
73686         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73687         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73688         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73689         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73690         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73691         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73692         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73693         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73694         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73696 2010-01-18  Bruno Haible  <bruno@clisp.org>
73698         sqrt: Make gl_FUNC_SQRT requirable.
73699         * m4/sqrt.m4: New file.
73700         * modules/sqrt (Files): Add it.
73701         (configure.ac): Invoke gl_FUNC_SQRT.
73703 2010-01-18  Bruno Haible  <bruno@clisp.org>
73705         New modules for common <math.h> functions.
73706         * m4/mathfunc.m4: New file.
73707         * modules/acos: New file.
73708         * modules/asin: New file.
73709         * modules/atan: New file.
73710         * modules/atan2: New file.
73711         * modules/cbrt: New file.
73712         * modules/copysign: New file.
73713         * modules/cos: New file.
73714         * modules/cosh: New file.
73715         * modules/erf: New file.
73716         * modules/erfc: New file.
73717         * modules/exp: New file.
73718         * modules/fabs: New file.
73719         * modules/fmod: New file.
73720         * modules/hypot: New file.
73721         * modules/j0: New file.
73722         * modules/j1: New file.
73723         * modules/jn: New file.
73724         * modules/ldexp: New file.
73725         * modules/lgamma: New file.
73726         * modules/log: New file.
73727         * modules/log10: New file.
73728         * modules/log1p: New file.
73729         * modules/logb: New file.
73730         * modules/modf: New file.
73731         * modules/nextafter: New file.
73732         * modules/pow: New file.
73733         * modules/remainder: New file.
73734         * modules/rint: New file.
73735         * modules/sin: New file.
73736         * modules/sinh: New file.
73737         * modules/sqrt: New file.
73738         * modules/tan: New file.
73739         * modules/tanh: New file.
73740         * modules/y0: New file.
73741         * modules/y1: New file.
73742         * modules/yn: New file.
73743         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73744         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73745         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73746         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73747         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73748         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73749         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73750         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73751         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73752         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73753         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73754         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73755         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73756         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73757         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73758         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73759         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73760         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73761         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73762         * doc/posix-functions/log.texi: Mention the 'log' module.
73763         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73764         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73765         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73766         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73767         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73768         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73769         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73770         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73771         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73772         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73773         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73774         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73775         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73776         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73777         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73778         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73780 2010-01-18  Jim Meyering  <meyering@redhat.com>
73782         ignore-value: relax license to LGPLv2+
73783         * modules/ignore-value (License): Relax to LGPLv2+.
73785         getdate: don't leak when TZ contains two or more '"'s
73786         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73787         double quote in TZ after the first one.
73789         readtokens: do not leak internal token_lengths buffer
73790         * lib/readtokens.c (readtokens): Free the local, lengths,
73791         when the supplied "token_lengths" parameter is NULL.
73793 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73795         Fix a couple of missing LIBTHREAD link failures on AIX.
73796         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73797         $(LIBTHREAD).
73798         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73800         Link test-poll against INET_PTON_LIB.
73801         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73802         for inet_pton on Solaris 10.
73804 2010-01-17  Bruno Haible  <bruno@clisp.org>
73806         unistdio/*-sprintf: Fix typo in module description.
73807         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73808         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73809         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73810         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73811         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73812         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73813         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73816 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73818         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73819         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73820         variables in shell case patterns, for AIX and HP-UX ksh.
73822         Split large sed scripts, for HP-UX sed.
73823         * modules/stdio: Split sed scripts around 50 sed commands,
73824         to avoid HP-UX limit of 99 commands, in the near future.
73825         * modules/string: Likewise.
73826         * modules/unistd: Likewise.
73828         gnulib-tool: avoid writing in the current directory.
73829         * gnulib-tool (func_emit_lib_Makefile_am)
73830         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73831         not in the current directory, so concurrent gnulib-tool
73832         instances do not interfere.
73834 2010-01-16  Jim Meyering  <meyering@redhat.com>
73836         doc: update users.txt
73837         * users.txt: Add grep.
73838         (diffutils, gzip): Update URLs.
73840 2010-01-12  Bruno Haible  <bruno@clisp.org>
73842         posix_spawn: Avoid test failure on Cygwin.
73843         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73844         characters.
73845         Reported by Simon Josefsson.
73847 2010-01-12  Bruno Haible  <bruno@clisp.org>
73849         * tests/test-cond.c (main): When skipping the test, show the reason.
73851 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73853         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73855 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73857         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73858         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73860 2010-01-12  Eric Blake  <ebb9@byu.net>
73862         build: guarantee AS_VAR_IF
73863         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73864         (gl_AS_VAR_IF): Move...
73865         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73866         Reported by Simon Josefsson.
73868 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73870         * lib/stdio.in.h: Fix typo.
73872 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73874         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73875         libgpg-error.
73877 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73879         * tests/test-xalloc-die.sh: Use $EXEEXT.
73881 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73882             Bruno Haible  <bruno@clisp.org>
73884         getlogin, getlogin_r: Avoid test failure.
73885         * tests/test-getlogin.c: Include <stdio.h>.
73886         (main): Skip the test when the function fails because stdin is not a
73887         tty.
73888         * tests/test-getlogin_r.c: Include <stdio.h>.
73889         (main): Skip the test when the function fails because stdin is not a
73890         tty.
73892 2010-01-11  Eric Blake  <ebb9@byu.net>
73894         tests: avoid more large file warnings
73895         * tests/test-fflush.c: Avoid warning about ftell use.
73896         * tests/test-fseek.c: Avoid warning about fseek use.
73898 2010-01-10  Bruno Haible  <bruno@clisp.org>
73900         nproc: Work better on Linux when /proc and /sys are not mounted.
73901         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73902         as lower bound when, on glibc/Linux systems,
73903         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73904         Suggested by Pádraig Brady <P@draigbrady.com>.
73905         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73907         nproc: Refactor.
73908         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73909         extracted from num_processors.
73910         (num_processors): Call it.
73912 2010-01-11  Jim Meyering  <meyering@redhat.com>
73914         utimecmp: avoid new warning from upcoming gcc-4.5.0
73915         * lib/utimecmp.c (BILLION): Define using #define rather than an
73916         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73918 2010-01-11  Eric Blake  <ebb9@byu.net>
73920         math: add portability warnings for classification macros
73921         * modules/math (Depends-on): Add warn-on-use.
73922         (Makefile.am): Provide new substitutions.
73923         * m4/math_h.m4 (gl_MATH_H): Require inline.
73924         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73925         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73926         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73927         implement warnings.
73929         unistd: warn on use of environ without module
73930         * modules/unistd (Depends-on): Add warn-on-use.
73931         (Makefile.am): Provide new substitutions.
73932         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73933         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73935         stdio: warn on suspicious uses
73936         * modules/stdio (Depends-on): Add warn-on-use.
73937         (Makefile.am): Provide new substitutions.
73938         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73939         fseeko.
73940         * lib/stdio.in.h (gets): Always warn on use.
73941         (fseek, ftell): Adjust when warnings are issued, and honor
73942         _GL_NO_LARGE_FILES as a way to silence the warning.
73943         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73944         any warning about large file offsets.
73945         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73946         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73947         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73948         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73949         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73950         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73951         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73952         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73954         warn-on-use: new module
73955         * modules/warn-on-use: New file.
73956         * build-aux/warn-on-use.h: Likewise.
73957         * m4/warn-on-use.m4: Likewise.
73958         * MODULES.html.sh (Support for building): Mention it.
73960 2010-01-10  Bruno Haible  <bruno@clisp.org>
73962         Tests for module 'unistr/u32-strdup'.
73963         * modules/unistr/u32-strdup-tests: New file.
73964         * tests/unistr/test-u32-strdup.c: New file.
73966         Tests for module 'unistr/u16-strdup'.
73967         * modules/unistr/u16-strdup-tests: New file.
73968         * tests/unistr/test-u16-strdup.c: New file.
73970         Tests for module 'unistr/u8-strdup'.
73971         * modules/unistr/u8-strdup-tests: New file.
73972         * tests/unistr/test-u8-strdup.c: New file.
73973         * tests/unistr/test-strdup.h: New file.
73975         Tests for module 'unistr/u32-strncmp'.
73976         * modules/unistr/u32-strncmp-tests: New file.
73977         * tests/unistr/test-u32-strncmp.c: New file.
73979         Tests for module 'unistr/u16-strncmp'.
73980         * modules/unistr/u16-strncmp-tests: New file.
73981         * tests/unistr/test-u16-strncmp.c: New file.
73983         Tests for module 'unistr/u8-strncmp'.
73984         * modules/unistr/u8-strncmp-tests: New file.
73985         * tests/unistr/test-u8-strncmp.c: New file.
73986         * tests/unistr/test-strncmp.h: New file.
73988         Tests for module 'unistr/u32-strcoll'.
73989         * modules/unistr/u32-strcoll-tests: New file.
73990         * tests/unistr/test-u32-strcoll.c: New file.
73992         Tests for module 'unistr/u16-strcoll'.
73993         * modules/unistr/u16-strcoll-tests: New file.
73994         * tests/unistr/test-u16-strcoll.c: New file.
73996         Tests for module 'unistr/u8-strcoll'.
73997         * modules/unistr/u8-strcoll-tests: New file.
73998         * tests/unistr/test-u8-strcoll.c: New file.
74000         Tests for module 'unistr/u32-strcmp'.
74001         * modules/unistr/u32-strcmp-tests: New file.
74002         * tests/unistr/test-u32-strcmp.c: New file.
74003         * tests/unistr/test-u32-strcmp.h: New file.
74005         Tests for module 'unistr/u16-strcmp'.
74006         * modules/unistr/u16-strcmp-tests: New file.
74007         * tests/unistr/test-u16-strcmp.c: New file.
74008         * tests/unistr/test-u16-strcmp.h: New file.
74010         Tests for module 'unistr/u8-strcmp'.
74011         * modules/unistr/u8-strcmp-tests: New file.
74012         * tests/unistr/test-u8-strcmp.c: New file.
74013         * tests/unistr/test-u8-strcmp.h: New file.
74014         * tests/unistr/test-strcmp.h: New file.
74016         Tests for module 'unistr/u32-strncat'.
74017         * modules/unistr/u32-strncat-tests: New file.
74018         * tests/unistr/test-u32-strncat.c: New file.
74020         Tests for module 'unistr/u16-strncat'.
74021         * modules/unistr/u16-strncat-tests: New file.
74022         * tests/unistr/test-u16-strncat.c: New file.
74024         Tests for module 'unistr/u8-strncat'.
74025         * modules/unistr/u8-strncat-tests: New file.
74026         * tests/unistr/test-u8-strncat.c: New file.
74027         * tests/unistr/test-strncat.h: New file.
74029         Tests for module 'unistr/u32-strcat'.
74030         * modules/unistr/u32-strcat-tests: New file.
74031         * tests/unistr/test-u32-strcat.c: New file.
74033         Tests for module 'unistr/u16-strcat'.
74034         * modules/unistr/u16-strcat-tests: New file.
74035         * tests/unistr/test-u16-strcat.c: New file.
74037         Tests for module 'unistr/u8-strcat'.
74038         * modules/unistr/u8-strcat-tests: New file.
74039         * tests/unistr/test-u8-strcat.c: New file.
74040         * tests/unistr/test-strcat.h: New file.
74042         Tests for module 'unistr/u32-stpncpy'.
74043         * modules/unistr/u32-stpncpy-tests: New file.
74044         * tests/unistr/test-u32-stpncpy.c: New file.
74046         Tests for module 'unistr/u16-stpncpy'.
74047         * modules/unistr/u16-stpncpy-tests: New file.
74048         * tests/unistr/test-u16-stpncpy.c: New file.
74050         Tests for module 'unistr/u8-stpncpy'.
74051         * modules/unistr/u8-stpncpy-tests: New file.
74052         * tests/unistr/test-u8-stpncpy.c: New file.
74053         * tests/unistr/test-stpncpy.h: New file.
74055         Tests for module 'unistr/u32-strncpy'.
74056         * modules/unistr/u32-strncpy-tests: New file.
74057         * tests/unistr/test-u32-strncpy.c: New file.
74059         Tests for module 'unistr/u16-strncpy'.
74060         * modules/unistr/u16-strncpy-tests: New file.
74061         * tests/unistr/test-u16-strncpy.c: New file.
74063         Tests for module 'unistr/u8-strncpy'.
74064         * modules/unistr/u8-strncpy-tests: New file.
74065         * tests/unistr/test-u8-strncpy.c: New file.
74066         * tests/unistr/test-strncpy.h: New file.
74068         Tests for module 'unistr/u32-stpcpy'.
74069         * modules/unistr/u32-stpcpy-tests: New file.
74070         * tests/unistr/test-u32-stpcpy.c: New file.
74072         Tests for module 'unistr/u16-stpcpy'.
74073         * modules/unistr/u16-stpcpy-tests: New file.
74074         * tests/unistr/test-u16-stpcpy.c: New file.
74076         Tests for module 'unistr/u8-stpcpy'.
74077         * modules/unistr/u8-stpcpy-tests: New file.
74078         * tests/unistr/test-u8-stpcpy.c: New file.
74079         * tests/unistr/test-stpcpy.h: New file.
74081         Tests for module 'unistr/u32-strcpy'.
74082         * modules/unistr/u32-strcpy-tests: New file.
74083         * tests/unistr/test-u32-strcpy.c: New file.
74085         Tests for module 'unistr/u16-strcpy'.
74086         * modules/unistr/u16-strcpy-tests: New file.
74087         * tests/unistr/test-u16-strcpy.c: New file.
74089         Tests for module 'unistr/u8-strcpy'.
74090         * modules/unistr/u8-strcpy-tests: New file.
74091         * tests/unistr/test-u8-strcpy.c: New file.
74092         * tests/unistr/test-strcpy.h: New file.
74094         Tests for module 'unistr/u32-strnlen'.
74095         * modules/unistr/u32-strnlen-tests: New file.
74096         * tests/unistr/test-u32-strnlen.c: New file.
74098         Tests for module 'unistr/u16-strnlen'.
74099         * modules/unistr/u16-strnlen-tests: New file.
74100         * tests/unistr/test-u16-strnlen.c: New file.
74102         Tests for module 'unistr/u8-strnlen'.
74103         * modules/unistr/u8-strnlen-tests: New file.
74104         * tests/unistr/test-u8-strnlen.c: New file.
74105         * tests/unistr/test-strnlen.h: New file.
74107         Tests for module 'unistr/u32-strlen'.
74108         * modules/unistr/u32-strlen-tests: New file.
74109         * tests/unistr/test-u32-strlen.c: New file.
74111         Tests for module 'unistr/u16-strlen'.
74112         * modules/unistr/u16-strlen-tests: New file.
74113         * tests/unistr/test-u16-strlen.c: New file.
74115         Tests for module 'unistr/u8-strlen'.
74116         * modules/unistr/u8-strlen-tests: New file.
74117         * tests/unistr/test-u8-strlen.c: New file.
74119         Tests for module 'unistr/u32-prev'.
74120         * modules/unistr/u32-prev-tests: New file.
74121         * tests/unistr/test-u32-prev.c: New file.
74123         Tests for module 'unistr/u16-prev'.
74124         * modules/unistr/u16-prev-tests: New file.
74125         * tests/unistr/test-u16-prev.c: New file.
74127         Tests for module 'unistr/u8-prev'.
74128         * modules/unistr/u8-prev-tests: New file.
74129         * tests/unistr/test-u8-prev.c: New file.
74131         Tests for module 'unistr/u32-next'.
74132         * modules/unistr/u32-next-tests: New file.
74133         * tests/unistr/test-u32-next.c: New file.
74135         Tests for module 'unistr/u16-next'.
74136         * modules/unistr/u16-next-tests: New file.
74137         * tests/unistr/test-u16-next.c: New file.
74139         Tests for module 'unistr/u8-next'.
74140         * modules/unistr/u8-next-tests: New file.
74141         * tests/unistr/test-u8-next.c: New file.
74143         Tests for module 'unistr/u32-strmbtouc'.
74144         * modules/unistr/u32-strmbtouc-tests: New file.
74145         * tests/unistr/test-u32-strmbtouc.c: New file.
74147         Tests for module 'unistr/u16-strmbtouc'.
74148         * modules/unistr/u16-strmbtouc-tests: New file.
74149         * tests/unistr/test-u16-strmbtouc.c: New file.
74151         Tests for module 'unistr/u8-strmbtouc'.
74152         * modules/unistr/u8-strmbtouc-tests: New file.
74153         * tests/unistr/test-u8-strmbtouc.c: New file.
74155         Tests for module 'unistr/u32-strmblen'.
74156         * modules/unistr/u32-strmblen-tests: New file.
74157         * tests/unistr/test-u32-strmblen.c: New file.
74159         Tests for module 'unistr/u16-strmblen'.
74160         * modules/unistr/u16-strmblen-tests: New file.
74161         * tests/unistr/test-u16-strmblen.c: New file.
74163         Tests for module 'unistr/u8-strmblen'.
74164         * modules/unistr/u8-strmblen-tests: New file.
74165         * tests/unistr/test-u8-strmblen.c: New file.
74167         Tests for module 'unistr/u32-cpy-alloc'.
74168         * modules/unistr/u32-cpy-alloc-tests: New file.
74169         * tests/unistr/test-u32-cpy-alloc.c: New file.
74171         Tests for module 'unistr/u16-cpy-alloc'.
74172         * modules/unistr/u16-cpy-alloc-tests: New file.
74173         * tests/unistr/test-u16-cpy-alloc.c: New file.
74175         Tests for module 'unistr/u8-cpy-alloc'.
74176         * modules/unistr/u8-cpy-alloc-tests: New file.
74177         * tests/unistr/test-u8-cpy-alloc.c: New file.
74178         * tests/unistr/test-cpy-alloc.h: New file.
74180         Tests for module 'unistr/u32-mbsnlen'.
74181         * modules/unistr/u32-mbsnlen-tests: New file.
74182         * tests/unistr/test-u32-mbsnlen.c: New file.
74184         Tests for module 'unistr/u16-mbsnlen'.
74185         * modules/unistr/u16-mbsnlen-tests: New file.
74186         * tests/unistr/test-u16-mbsnlen.c: New file.
74188         Tests for module 'unistr/u8-mbsnlen'.
74189         * modules/unistr/u8-mbsnlen-tests: New file.
74190         * tests/unistr/test-u8-mbsnlen.c: New file.
74192         Tests for module 'unistr/u32-chr'.
74193         * modules/unistr/u32-chr-tests: New file.
74194         * tests/unistr/test-u32-chr.c: New file.
74196         Tests for module 'unistr/u16-chr'.
74197         * modules/unistr/u16-chr-tests: New file.
74198         * tests/unistr/test-u16-chr.c: New file.
74200         Tests for module 'unistr/u8-chr'.
74201         * modules/unistr/u8-chr-tests: New file.
74202         * tests/unistr/test-u8-chr.c: New file.
74203         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
74205         Tests for module 'unistr/u32-cmp2'.
74206         * modules/unistr/u32-cmp2-tests: New file.
74207         * tests/unistr/test-u32-cmp2.c: New file.
74209         Tests for module 'unistr/u16-cmp2'.
74210         * modules/unistr/u16-cmp2-tests: New file.
74211         * tests/unistr/test-u16-cmp2.c: New file.
74213         Tests for module 'unistr/u8-cmp2'.
74214         * modules/unistr/u8-cmp2-tests: New file.
74215         * tests/unistr/test-u8-cmp2.c: New file.
74216         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
74218         Tests for module 'unistr/u32-cmp'.
74219         * modules/unistr/u32-cmp-tests: New file.
74220         * tests/unistr/test-u32-cmp.c: New file.
74222         Tests for module 'unistr/u16-cmp'.
74223         * modules/unistr/u16-cmp-tests: New file.
74224         * tests/unistr/test-u16-cmp.c: New file.
74226         Tests for module 'unistr/u8-cmp'.
74227         * modules/unistr/u8-cmp-tests: New file.
74228         * tests/unistr/test-u8-cmp.c: New file.
74229         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
74231         Tests for module 'unistr/u32-set'.
74232         * modules/unistr/u32-set-tests: New file.
74233         * tests/unistr/test-u32-set.c: New file.
74235         Tests for module 'unistr/u16-set'.
74236         * modules/unistr/u16-set-tests: New file.
74237         * tests/unistr/test-u16-set.c: New file.
74239         Tests for module 'unistr/u8-set'.
74240         * modules/unistr/u8-set-tests: New file.
74241         * tests/unistr/test-u8-set.c: New file.
74242         * tests/unistr/test-set.h: New file.
74244         Tests for module 'unistr/u32-move'.
74245         * modules/unistr/u32-move-tests: New file.
74246         * tests/unistr/test-u32-move.c: New file.
74248         Tests for module 'unistr/u16-move'.
74249         * modules/unistr/u16-move-tests: New file.
74250         * tests/unistr/test-u16-move.c: New file.
74252         Tests for module 'unistr/u8-move'.
74253         * modules/unistr/u8-move-tests: New file.
74254         * tests/unistr/test-u8-move.c: New file.
74255         * tests/unistr/test-move.h: New file.
74257         Tests for module 'unistr/u32-cpy'.
74258         * modules/unistr/u32-cpy-tests: New file.
74259         * tests/unistr/test-u32-cpy.c: New file.
74261         Tests for module 'unistr/u16-cpy'.
74262         * modules/unistr/u16-cpy-tests: New file.
74263         * tests/unistr/test-u16-cpy.c: New file.
74265         Tests for module 'unistr/u8-cpy'.
74266         * modules/unistr/u8-cpy-tests: New file.
74267         * tests/unistr/test-u8-cpy.c: New file.
74268         * tests/unistr/test-cpy.h: New file.
74270 2010-01-09  Bruno Haible  <bruno@clisp.org>
74272         Tests for module 'unistr/u32-uctomb'.
74273         * modules/unistr/u32-uctomb-tests: New file.
74274         * tests/unistr/test-u32-uctomb.c: New file.
74276         Tests for module 'unistr/u16-uctomb'.
74277         * modules/unistr/u16-uctomb-tests: New file.
74278         * tests/unistr/test-u16-uctomb.c: New file.
74280         Tests for module 'unistr/u8-uctomb'.
74281         * modules/unistr/u8-uctomb-tests: New file.
74282         * tests/unistr/test-u8-uctomb.c: New file.
74284         Tests for module 'unistr/u32-mbtoucr'.
74285         * modules/unistr/u32-mbtoucr-tests: New file.
74286         * tests/unistr/test-u32-mbtoucr.c: New file.
74288         Tests for module 'unistr/u16-mbtoucr'.
74289         * modules/unistr/u16-mbtoucr-tests: New file.
74290         * tests/unistr/test-u16-mbtoucr.c: New file.
74292         Tests for module 'unistr/u8-mbtoucr'.
74293         * modules/unistr/u8-mbtoucr-tests: New file.
74294         * tests/unistr/test-u8-mbtoucr.c: New file.
74296         Tests for module 'unistr/u32-mbtouc'.
74297         * modules/unistr/u32-mbtouc-tests: New file.
74298         * tests/unistr/test-u32-mbtouc.c: New file.
74300         Tests for module 'unistr/u16-mbtouc'.
74301         * modules/unistr/u16-mbtouc-tests: New file.
74302         * tests/unistr/test-u16-mbtouc.c: New file.
74304         Tests for module 'unistr/u8-mbtouc'.
74305         * modules/unistr/u8-mbtouc-tests: New file.
74306         * tests/unistr/test-u8-mbtouc.c: New file.
74308         Tests for module 'unistr/u32-mbtouc-unsafe'.
74309         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
74310         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
74311         * tests/unistr/test-u32-mbtouc.h: New file.
74313         Tests for module 'unistr/u16-mbtouc-unsafe'.
74314         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
74315         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
74316         * tests/unistr/test-u16-mbtouc.h: New file.
74318         Tests for module 'unistr/u8-mbtouc-unsafe'.
74319         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
74320         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
74321         * tests/unistr/test-u8-mbtouc.h: New file.
74323         Tests for module 'unistr/u32-mblen'.
74324         * modules/unistr/u32-mblen-tests: New file.
74325         * tests/unistr/test-u32-mblen.c: New file.
74327         Tests for module 'unistr/u16-mblen'.
74328         * modules/unistr/u16-mblen-tests: New file.
74329         * tests/unistr/test-u16-mblen.c: New file.
74331         Tests for module 'unistr/u8-mblen'.
74332         * modules/unistr/u8-mblen-tests: New file.
74333         * tests/unistr/test-u8-mblen.c: New file.
74335         Tests for module 'unistr/u32-to-u16'.
74336         * modules/unistr/u32-to-u16-tests: New file.
74337         * tests/unistr/test-u32-to-u16.c: New file.
74339         Tests for module 'unistr/u32-to-u8'.
74340         * modules/unistr/u32-to-u8-tests: New file.
74341         * tests/unistr/test-u32-to-u8.c: New file.
74343         Tests for module 'unistr/u16-to-u32'.
74344         * modules/unistr/u16-to-u32-tests: New file.
74345         * tests/unistr/test-u16-to-u32.c: New file.
74347         Tests for module 'unistr/u16-to-u8'.
74348         * modules/unistr/u16-to-u8-tests: New file.
74349         * tests/unistr/test-u16-to-u8.c: New file.
74351         Tests for module 'unistr/u8-to-u32'.
74352         * modules/unistr/u8-to-u32-tests: New file.
74353         * tests/unistr/test-u8-to-u32.c: New file.
74355         Tests for module 'unistr/u8-to-u16'.
74356         * modules/unistr/u8-to-u16-tests: New file.
74357         * tests/unistr/test-u8-to-u16.c: New file.
74359         Tests for module 'unistr/u32-check'.
74360         * modules/unistr/u32-check-tests: New file.
74361         * tests/unistr/test-u32-check.c: New file.
74363         Tests for module 'unistr/u16-check'.
74364         * modules/unistr/u16-check-tests: New file.
74365         * tests/unistr/test-u16-check.c: New file.
74367         Tests for module 'unistr/u8-check'.
74368         * modules/unistr/u8-check-tests: New file.
74369         * tests/unistr/test-u8-check.c: New file.
74371         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
74372         (category_equals): New function.
74373         (main): Add more tests.
74374         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
74376         * tests/unictype/test-bidi_byname.c (main): Add more tests.
74378 2010-01-10  Bruno Haible  <bruno@clisp.org>
74380         unistr/u*-strcoll: Try harder to distinguish different strings.
74381         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
74382         compare s1 and s2 to see if they are different.
74384 2010-01-10  Bruno Haible  <bruno@clisp.org>
74386         unistr/u*-stpncpy: Fix the return value.
74387         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
74388         description of the return value consistent with stpncpy in glibc.
74389         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
74390         written non-NUL unit.
74392 2010-01-10  Bruno Haible  <bruno@clisp.org>
74394         unistr/u*-next: Add missing dependencies.
74395         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
74396         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
74397         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
74399 2010-01-10  Bruno Haible  <bruno@clisp.org>
74401         unistr/u8-mbsnlen: Fix return value for incomplete character.
74402         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
74403         u8_mblen.
74404         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
74405         Remove unistr/u8-mblen.
74406         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
74407         u16_mblen.
74408         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
74409         Remove unistr/u16-mblen.
74411 2010-01-10  Bruno Haible  <bruno@clisp.org>
74413         wchar: Fix compilation error when <wchar.h> is used from coreutils.
74414         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
74415         Reported by Brian Gough <bjg@gnu.org> and
74416         Chris Clayton <chris2553@googlemail.com> via
74417         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
74419 2010-01-09  Bruno Haible  <bruno@clisp.org>
74421         unistr/u16-to-u32: Reject invalid input.
74422         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74423         u16_mbtouc.
74424         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74425         Remove unistr/u16-mbtouc.
74427         unistr/u16-to-u8: Reject invalid input.
74428         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74429         u16_mbtouc.
74430         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74431         Remove unistr/u16-mbtouc.
74433         unistr/u8-to-u32: Reject invalid input.
74434         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74435         u8_mbtouc.
74436         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74437         Remove unistr/u8-mbtouc.
74439         unistr/u8-to-u16: Reject invalid input.
74440         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74441         u8_mbtouc.
74442         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74443         Remove unistr/u8-mbtouc.
74445 2010-01-09  Bruno Haible  <bruno@clisp.org>
74447         Tests for module 'getlogin'.
74448         * modules/getlogin-tests: New file.
74449         * tests/test-getlogin.c: New file.
74451         New module 'getlogin'.
74452         * lib/unistd.in.h (getlogin): New declaration.
74453         * lib/getlogin.c: New file.
74454         * m4/getlogin.m4: New file.
74455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74456         HAVE_GETLOGIN.
74457         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74458         HAVE_GETLOGIN.
74459         * modules/getlogin: New file.
74460         * doc/posix-functions/getlogin.texi: Mention the new module.
74461         Reported by John W. Eaton <jwe@gnu.org>.
74463 2010-01-09  Bruno Haible  <bruno@clisp.org>
74465         getlogin_r: Support for native Windows.
74466         * lib/getlogin_r.c: Include <windows.h>
74467         (getlogin_r): Implement for native Windows.
74468         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74469         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74470         via John W. Eaton <jwe@gnu.org>.
74472 2010-01-09  Bruno Haible  <bruno@clisp.org>
74474         getlogin_r: Small fixes.
74475         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74476         succeeds.
74477         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74478         before testing whether getlogin_r is declared. No need to set
74479         HAVE_DECL_GETLOGIN_R to 1.
74480         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74482 2010-01-09  Bruno Haible  <bruno@clisp.org>
74484         * lib/unistd.in.h (getlogin_r): Add comment.
74486 2010-01-09  Bruno Haible  <bruno@clisp.org>
74488         Tests for module 'getlogin_r'.
74489         * modules/getlogin_r-tests: New file.
74490         * tests/test-getlogin_r.c: New file.
74492 2010-01-09  Jim Meyering  <meyering@redhat.com>
74494         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74495         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74496         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74498 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74500         * lib/dup2.c (rpl_dup2): Improve comment.
74502 2010-01-08  Eric Blake  <ebb9@byu.net>
74504         maint.mk: allow packages to add makefile @@ exceptions
74505         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74506         (sc_makefile_check): Rename...
74507         (sc_makefile_at_at_check): ...to this, and use hook.
74509         dup2: work around mingw bug
74510         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74511         Reported by Simon Josefsson.
74513 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74515         glob: Fix C++ compilation.
74516         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74517         C++.
74519 2010-01-07  Bruno Haible  <bruno@clisp.org>
74521         Fix indentation of wctype.in.h, broken since 2007-01-06.
74522         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74524 2010-01-07  Bruno Haible  <bruno@clisp.org>
74526         mbslen: Avoid collision with system function.
74527         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74528         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74529         * m4/mbslen.m4: New file.
74530         * modules/mbslen (Files): Add it.
74531         (configure.ac): Invoke gl_MBSLEN.
74532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74533         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74534         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74535         via Ian Beckwith <ianb@erislabs.net>.
74537 2010-01-07  Bruno Haible  <bruno@clisp.org>
74539         dirent: Document the last fix.
74540         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74542 2010-01-07  Bruno Haible  <bruno@clisp.org>
74544         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74545         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74546         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74547         va_list are defined.
74548         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74549         Reported by Eric Blake.
74551 2010-01-07  Bruno Haible  <bruno@clisp.org>
74553         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74554         * modules/xlist (Depends-on): Add 'list',
74555         * modules/xoset (Depends-on): Add 'oset'.
74556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74558 2010-01-07  Bruno Haible  <bruno@clisp.org>
74560         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74561         * doc/posix-functions/strncasecmp.texi: Likewise.
74563 2010-01-07  Bruno Haible  <bruno@clisp.org>
74565         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74567 2010-01-07  John W. Eaton  <jwe@octave.org>
74569         wctype: allow C++ use
74570         * lib/wctype.in.h: Add extern "C" block for C++.
74572 2010-01-06  Eric Blake  <ebb9@byu.net>
74574         maint.mk: detect incorrect GFDL usage
74575         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74577 2010-01-06  Jim Meyering  <meyering@redhat.com>
74578         and Eric Blake  <ebb9@byu.net>
74580         maint.mk: ignore multi-line copyright in NEWS
74581         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74583 2010-01-06  Eric Blake  <ebb9@byu.net>
74585         select: add missing dependency
74586         * modules/select-tests (Depends-on): Move sockets dependency...
74587         * modules/select (Depends-on): ...here.
74588         Reported by Ian Beckwith.
74590         doc: regenerate INSTALL
74591         * doc/INSTALL: Reflect recent autoconf update.
74592         * doc/INSTALL.ISO: Likewise.
74593         * doc/INSTALL.UTF-8: Likewise.
74595         pread: fix compilation on glibc
74596         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74597         Reported by Ralf Wildenhues.
74599         dirent: fix test failure
74600         * lib/dirent.in.h (includes): Guarantee ino_t.
74601         Reported by Ralf Wildenhues.
74603 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74605         linkat, renameat: avoid bad free
74606         * lib/at-func2.c (at_func2): Fix typo.
74607         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74609 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74611         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74612         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74613         to avoid failure of symlink test later.
74615 2010-01-06  Eric Blake  <ebb9@byu.net>
74617         stdio, unistd: guarantee ssize_t
74618         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74619         2008 are exposed when needed.
74620         * lib/stdio.in.h (includes): Likewise.
74621         Reported by Ralf Wildenhues.
74623 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74625         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74626         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74627         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74629 2010-01-06  Jim Meyering  <meyering@redhat.com>
74631         readtokens: this module *does* require xalloc.h
74632         It uses only functions that were omitted by the old syntax-check rule.
74633         * lib/readtokens.c: Include "xalloc.h" once again.
74634         * modules/readtokens (Depends-on): Add xalloc.
74635         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74637 2010-01-05  Eric Blake  <ebb9@byu.net>
74639         maint: support 'make announcement' from a VPATH build
74640         * top/maint.mk (announcement): Look for correct NEWS file.
74642 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74644         utimens (fdutimens): ignore a negative FD, per contract
74645         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74646         when we have a valid file descriptor.  Otherwise, using a brand
74647         new glibc (with just-patched futimens that now fails with EBADF)
74648         would cause this function to fail with ENOSYS.
74649         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74650         See also http://bugzilla.redhat.com/552320.
74652 2010-01-05  Eric Blake  <ebb9@byu.net>
74654         strcase: document what it provides
74655         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74656         gnulib module.
74657         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74658         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74660 2010-01-05  Jim Meyering  <meyering@redhat.com>
74662         maint: remove useless inclusions of "xalloc.h"
74663         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74664         * lib/readtokens.c: Likewise.
74665         * lib/same.c: Likewise.
74666         * modules/getloadavg (Depends-on): Remove xalloc.
74667         * modules/readtokens: Likewise.
74668         * modules/same: Likewise.
74670         maint.mk: include 4 more function names in alloca.h-checking regexp
74671         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74672         regexp.  Before, we would give a false-positive (saying alloca.h
74673         is included unnecessarily) when the only uses involved omitted symbols.
74675         xalloc.h: use consistent formatting
74676         * lib/xalloc.h: Move declarations to start in the first column.
74678 2010-01-05  Eric Blake  <ebb9@byu.net>
74680         mkdir: avoid xalloc
74681         * lib/mkdir.c (includes): Drop unused header.
74682         Reported by John W. Eaton.
74684 2010-01-04  Jim Meyering  <meyering@redhat.com>
74686         nl_langinfo: avoid configure-time syntax error
74687         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74688         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74689         the empty string.  Don't let that provoke a shell syntax error.
74691         regcomp, regexec, fnmatch: avoid array bounds read error
74692         * lib/regcomp.c (build_equiv_class): From glibc:
74693         Use only the low 24 bits of a findidx return value as an index
74694         into the weights array.  Patch by Ulrich Drepper:
74695         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74696         * lib/regexec.c (check_node_accept_bytes): Likewise.
74697         * lib/fnmatch_loop.c (FCT): Likewise.
74699         regcomp: skip collseq lookup when there are no rules
74700         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74701         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74703         regcomp: recognize ill-formed { } expressions
74704         * lib/regcomp.c (parse_dup_op): From glibc:
74705         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74707         regcomp: fix typo in comment
74708         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74709         s/satisfy/satisfies/.
74711         regcomp: sync from glibc: remove dead store
74712         * lib/regcomp.c (duplicate_node_closure): Remove useless
74713         search_duplicated_node call and dead store.
74715         regcomp: sync from glibc; always use nl_langinfo
74716         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74717         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74718         * modules/regex (Depends-on): Add nl_langinfo.
74720 2010-01-04  Eric Blake  <ebb9@byu.net>
74722         fdopendir: fix configure test
74723         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74725 2010-01-01  Bruno Haible  <bruno@clisp.org>
74727         wchar: Remove unused configure check.
74728         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74730 2010-01-01  Eric Blake  <ebb9@byu.net>
74732         headers: make check of system header explicit
74733         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74734         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74735         ourselves.
74736         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74740         internals.
74741         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74742         missing.
74743         Suggested by Bruno Haible.
74745 2010-01-01  Jim Meyering  <meyering@redhat.com>
74747         ChangeLog: tweak to eliminate unnecessary copyright line
74748         * ChangeLog: Remove a copyright line that was mistakenly updated
74749         by today's update-copyright run.  Reported by Eric Blake.
74751         test-update-copyright: don't let envvar setting cause test failure
74752         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74754 2010-01-01  Bruno Haible  <bruno@clisp.org>
74756         localename: Avoid gcc warning.
74757         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74758         function if it is not used.
74760 2010-01-01  Jim Meyering  <meyering@redhat.com>
74762         update nearly all FSF copyright year lists to include 2010
74763         Use the same procedure as for 2009, outlined in
74764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74766         version-etc: set COPYRIGHT_YEAR to 2010
74767         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74769 2009-12-31  Eric Blake  <ebb9@byu.net>
74771         doc: correct availability of cygwin 1.5.x getopt
74772         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74773         variables.
74774         * doc/posix-functions/opterr.texi (opterr): Likewise.
74775         * doc/posix-functions/optind.texi (optind): Likewise.
74776         * doc/posix-functions/optopt.texi (optopt): Likewise.
74777         * doc/posix-functions/tzname.texi (tzname): Likewise.
74779         openat: update maintainer
74780         * modules/openat (Maintainer): Add myself.
74782         utimens: avoid shadowing warning
74783         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74784         buffers into one, to avoid shadowing, as well as avoiding a
74785         redundant stat.
74786         Reported by Jim Meyering.
74788         test-dup2: avoid compiler warning
74789         * tests/test-dup2.c (is_inheritable): Only define if used.
74791 2010-01-01  Bruno Haible  <bruno@clisp.org>
74793         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74794         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74795         defined, use wctomb instead of wcrtomb.
74797 2010-01-01  Bruno Haible  <bruno@clisp.org>
74799         iconv: Reject native Solaris iconv.
74800         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74801         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74803 2009-12-31  Bruno Haible  <bruno@clisp.org>
74805         * tests/test-signal.c (main): Remove test of 'SIG'.
74807 2009-12-31  Bruno Haible  <bruno@clisp.org>
74809         spawn: Fix incomplete fix.
74810         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74811         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74812         warnings for GNULIB_POSIXCHECK again.
74813         Reported by Eric Blake.
74815 2009-12-31  Bruno Haible  <bruno@clisp.org>
74817         Avoid namespace pollution on glibc systems.
74818         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74819         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74820         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74821         glibc systems.
74823 2009-12-31  Bruno Haible  <bruno@clisp.org>
74825         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74826         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74827         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74828         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74829         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74830         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74831         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74833 2009-12-31  Bruno Haible  <bruno@clisp.org>
74835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74836         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74837         afterwards.
74839 2009-12-31  Bruno Haible  <bruno@clisp.org>
74841         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74842         SYS_UTSNAME_H.
74844 2009-12-31  Bruno Haible  <bruno@clisp.org>
74846         spawn: Fix misapplied patch.
74847         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74848         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74849         warnings for GNULIB_POSIXCHECK.
74851 2009-12-31  Bruno Haible  <bruno@clisp.org>
74853         times: Update after sys_times changed.
74854         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74855         * modules/times (Files): Add it.
74856         (configure.ac): Invoke gl_FUNC_TIMES.
74858 2009-12-31  Bruno Haible  <bruno@clisp.org>
74860         Use AC_C_INLINE where necessary.
74861         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74862         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74864         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74865         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74866         * m4/mbiter.m4 (gl_MBITER): Likewise.
74867         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74868         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74869         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74870         * modules/u64 (configure.ac): Likewise.
74872 2009-12-31  Bruno Haible  <bruno@clisp.org>
74874         Use AC_C_INLINE instead of module 'inline' where possible.
74875         * modules/inline (Description): Clarify purpose.
74876         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74877         * modules/count-one-bits (Depends-on): Remove inline.
74878         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74879         * modules/openat (Depends-on): Remove inline.
74880         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74881         instead of depending on module 'inline'.
74882         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74883         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74884         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74885         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74886         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74887         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74888         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74889         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74890         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74891         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74892         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74893         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74894         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74895         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74896         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74897         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74898         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74899         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74900         Likewise.
74901         * modules/unictype/property-ascii-hex-digit (Depends-on,
74902         configure.ac): Likewise.
74903         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74904         configure.ac): Likewise.
74905         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74906         configure.ac): Likewise.
74907         * modules/unictype/property-bidi-block-separator (Depends-on,
74908         configure.ac): Likewise.
74909         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74910         configure.ac): Likewise.
74911         * modules/unictype/property-bidi-common-separator (Depends-on,
74912         configure.ac): Likewise.
74913         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74914         Likewise.
74915         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74916         configure.ac): Likewise.
74917         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74918         configure.ac): Likewise.
74919         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74920         configure.ac): Likewise.
74921         * modules/unictype/property-bidi-european-digit (Depends-on,
74922         configure.ac): Likewise.
74923         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74924         configure.ac): Likewise.
74925         * modules/unictype/property-bidi-left-to-right (Depends-on,
74926         configure.ac): Likewise.
74927         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74928         configure.ac): Likewise.
74929         * modules/unictype/property-bidi-other-neutral (Depends-on,
74930         configure.ac): Likewise.
74931         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74932         Likewise.
74933         * modules/unictype/property-bidi-segment-separator (Depends-on,
74934         configure.ac): Likewise.
74935         * modules/unictype/property-bidi-whitespace (Depends-on,
74936         configure.ac): Likewise.
74937         * modules/unictype/property-combining (Depends-on, configure.ac):
74938         Likewise.
74939         * modules/unictype/property-composite (Depends-on, configure.ac):
74940         Likewise.
74941         * modules/unictype/property-currency-symbol (Depends-on,
74942         configure.ac): Likewise.
74943         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74944         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74945         Likewise.
74946         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74947         configure.ac): Likewise.
74948         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74949         Likewise.
74950         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74951         Likewise.
74952         * modules/unictype/property-extender (Depends-on, configure.ac):
74953         Likewise.
74954         * modules/unictype/property-format-control (Depends-on, configure.ac):
74955         Likewise.
74956         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74957         Likewise.
74958         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74959         Likewise.
74960         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74961         Likewise.
74962         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74963         Likewise.
74964         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74965         Likewise.
74966         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74967         Likewise.
74968         * modules/unictype/property-id-start (Depends-on, configure.ac):
74969         Likewise.
74970         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74971         Likewise.
74972         * modules/unictype/property-ids-binary-operator (Depends-on,
74973         configure.ac): Likewise.
74974         * modules/unictype/property-ids-trinary-operator (Depends-on,
74975         configure.ac): Likewise.
74976         * modules/unictype/property-ignorable-control (Depends-on,
74977         configure.ac): Likewise.
74978         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74979         Likewise.
74980         * modules/unictype/property-join-control (Depends-on, configure.ac):
74981         Likewise.
74982         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74983         Likewise.
74984         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74985         Likewise.
74986         * modules/unictype/property-logical-order-exception (Depends-on,
74987         configure.ac): Likewise.
74988         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74989         Likewise.
74990         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74991         * modules/unictype/property-non-break (Depends-on, configure.ac):
74992         Likewise.
74993         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74994         Likewise.
74995         * modules/unictype/property-numeric (Depends-on, configure.ac):
74996         Likewise.
74997         * modules/unictype/property-other-alphabetic (Depends-on,
74998         configure.ac): Likewise.
74999         * modules/unictype/property-other-default-ignorable-code-point
75000         (Depends-on, configure.ac): Likewise.
75001         * modules/unictype/property-other-grapheme-extend (Depends-on,
75002         configure.ac): Likewise.
75003         * modules/unictype/property-other-id-continue (Depends-on,
75004         configure.ac): Likewise.
75005         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
75006         Likewise.
75007         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
75008         Likewise.
75009         * modules/unictype/property-other-math (Depends-on, configure.ac):
75010         Likewise.
75011         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
75012         Likewise.
75013         * modules/unictype/property-paired-punctuation (Depends-on,
75014         configure.ac): Likewise.
75015         * modules/unictype/property-paragraph-separator (Depends-on,
75016         configure.ac): Likewise.
75017         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
75018         Likewise.
75019         * modules/unictype/property-pattern-white-space (Depends-on,
75020         configure.ac): Likewise.
75021         * modules/unictype/property-private-use (Depends-on, configure.ac):
75022         Likewise.
75023         * modules/unictype/property-punctuation (Depends-on, configure.ac):
75024         Likewise.
75025         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
75026         Likewise.
75027         * modules/unictype/property-radical (Depends-on, configure.ac):
75028         Likewise.
75029         * modules/unictype/property-sentence-terminal (Depends-on,
75030         configure.ac): Likewise.
75031         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
75032         Likewise.
75033         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
75034         * modules/unictype/property-terminal-punctuation (Depends-on,
75035         configure.ac): Likewise.
75036         * modules/unictype/property-titlecase (Depends-on, configure.ac):
75037         Likewise.
75038         * modules/unictype/property-unassigned-code-value (Depends-on,
75039         configure.ac): Likewise.
75040         * modules/unictype/property-unified-ideograph (Depends-on,
75041         configure.ac): Likewise.
75042         * modules/unictype/property-uppercase (Depends-on, configure.ac):
75043         Likewise.
75044         * modules/unictype/property-variation-selector (Depends-on,
75045         configure.ac): Likewise.
75046         * modules/unictype/property-white-space (Depends-on, configure.ac):
75047         Likewise.
75048         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
75049         Likewise.
75050         * modules/unictype/property-xid-start (Depends-on, configure.ac):
75051         Likewise.
75052         * modules/unictype/property-zero-width (Depends-on, configure.ac):
75053         Likewise.
75054         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
75055         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
75056         Likewise.
75058 2009-12-31  Bruno Haible  <bruno@clisp.org>
75060         Remove unnecessary AC_C_INLINE invocation.
75061         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
75062         since 2009-08-21.
75064 2009-12-31  Jim Meyering  <meyering@redhat.com>
75066         maint.mk: don't require explicit gpg_key_ID in cfg.mk
75067         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
75068         With this change, we can all remove the gpg_key_ID = ... definition
75069         from our respective cfg.mk files.
75071         maint.mk: create announcement template in ~/, not in /tmp
75072         * top/maint.mk (emit_upload_commands): Adjust.
75073         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
75074         Remove temporary file, .ci-msg.
75076 2009-12-31  Eric Blake  <ebb9@byu.net>
75078         link-warning: always build headers with link warnings
75079         * modules/arpa_inet (Makefile.am): Always build replacement
75080         header.
75081         * modules/ctype (Makefile.am): Likewise.
75082         * modules/dirent (Makefile.am): Likewise.
75083         * modules/inttypes (Makefile.am): Likewise.
75084         * modules/langinfo (Makefile.am): Likewise.
75085         * modules/locale (Makefile.am): Likewise.
75086         * modules/spawn (Makefile.am): Likewise.
75087         * modules/sys_file (Makefile.am): Likewise.
75088         * modules/sys_ioctl (Makefile.am): Likewise.
75089         * modules/sys_select (Makefile.am): Likewise.
75090         * modules/sys_socket (Makefile.am): Likewise.
75091         * modules/sys_times (Makefile.am): Likewise.
75092         * modules/sys_utsname (Makefile.am): Likewise.
75093         * modules/sys_wait (Makefile.am): Likewise.
75094         * modules/wchar (Makefile.am): Likewise.
75095         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
75096         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
75097         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
75098         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
75099         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
75100         Likewise.
75101         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75102         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
75103         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
75104         Likewise.
75105         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
75106         Likewise.
75107         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
75108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
75109         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
75110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
75112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75113         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75114         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
75115         (gl_WCHAR_H_DEFAULTS): Likewise.
75117 2009-12-31  Eric Blake  <ebb9@byu.net>
75119         signal, spawn: use link warnings
75120         * lib/signal.in.h (sigset_t): Make unconditional.
75121         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
75122         (sigpending, sigprocmask, sigaction): Add link warnings.
75123         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
75124         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
75125         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
75126         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
75127         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
75128         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
75129         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
75130         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
75131         (posix_spawn_file_actions_destroy)
75132         (posix_spawn_file_actions_addopen)
75133         (posix_spawn_file_actions_addclose)
75134         (posix_spawn_file_actions_adddup2): Likewise.
75135         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
75136         * tests/test-signal.c (main): Enhance test.
75138         spawn: improve wrapper support
75139         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
75140         (gl_SPAWN_H_DEFAULTS): New defaults.
75141         * modules/spawn (Makefile.am): Substitute them.
75142         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
75143         Only declare if missing or broken.
75145         sys_times, sys_utsname: use include_next
75146         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
75147         header.
75148         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
75149         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75150         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75151         * modules/sys_times (Depends-on): Add include_next.
75152         (Makefile.am): Substitute additional values.
75153         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
75154         * lib/sys_times.in.h (includes): Include native header, if
75155         available.
75156         * lib/sys_utsname.in.h (includes): Likewise.
75157         * tests/test-sys_times.c (main): Enhance test.
75159         fdutimensat: revert prior patch
75160         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
75161         utimens.h.
75162         Reported by Bruno Haible.
75164 2009-12-30  Eric Blake  <ebb9@byu.net>
75166         sys_wait: drop link-warning dependency
75167         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
75168         link-warning efforts.
75169         * lib/sys_wait.in.h: Likewise.
75171         fdutimensat: remove bogus dependency
75172         * modules/fdutimensat (Depends-on): Drop inline.
75174         unistd: fix typo
75175         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
75177 2009-12-30  Bruno Haible  <bruno@clisp.org>
75179         Fix compilation error with Solaris cc.
75180         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
75181         * lib/unicase/u16-is-invariant.c: Likewise.
75182         * lib/unicase/u32-is-invariant.c: Likewise.
75183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75185 2009-12-30  Bruno Haible  <bruno@clisp.org>
75187         Fix test crash.
75188         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
75189         locales.
75190         Reported by Simon Josefsson <simon@josefsson.org>.
75192 2009-12-30  Bruno Haible  <bruno@clisp.org>
75194         Fix compilation error on most platforms.
75195         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
75196         Reported by Simon Josefsson <simon@josefsson.org>
75197         and Nelson H. F. Beebe <beebe@math.utah.edu>.
75199 2009-12-30  Eric Blake  <ebb9@byu.net>
75201         futimens, utimensat: work around ntfs-3g bug
75202         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
75203         a ctime bug is present, and expand workaround to cover ntfs-3g.
75204         * lib/utimens.c (fdutimens, lutimens): Likewise.
75205         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
75206         (validate_timespec): Adjust return value.
75207         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
75208         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75209         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
75211 2009-12-29  Eric Blake  <ebb9@byu.net>
75213         link-warning: make usage consistent
75214         * modules/ctype (Depends-on): Add link-warning.
75215         (Makefile.am): Update rules accordingly.
75216         * modules/langinfo (Depends-on, Makefile.am): Likewise.
75217         * modules/locale (Depends-on, Makefile.am): Likewise.
75218         * modules/sys_file (Makefile.am): Likewise.
75219         * modules/getopt-posix (Makefile.am): Delete unused link warning
75220         efforts.
75221         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
75222         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
75223         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
75224         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
75226         stdio: remove unused variables
75227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
75228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
75229         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
75231         tests: test more substitute headers
75232         * modules/ctype-tests: New file.
75233         * modules/dirent-tests: Likewise.
75234         * modules/spawn-tests: Likewise.
75235         * modules/sys_file-tests: Likewise.
75236         * modules/sys_ioctl-tests: Likewise.
75237         * modules/sys_wait-tests: Likewise.
75238         * tests/test-ctype.c: Likewise.
75239         * tests/test-dirent.c: Likewise.
75240         * tests/test-spawn.c: Likewise.
75241         * tests/test-sys_file.c: Likewise.
75242         * tests/test-sys_ioctl.c: Likewise.
75243         * tests/test-sys_wait.c: Likewise.
75244         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
75245         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
75246         whether or not flock is in use.
75248         tests: remove License section from module
75249         * modules/arpa_inet-tests: Remove unneeded section.
75250         * modules/byteswap-tests: Likewise.
75251         * modules/ceilf-tests: Likewise.
75252         * modules/ceill-tests: Likewise.
75253         * modules/crypto/des-tests: Likewise.
75254         * modules/crypto/gc-arcfour-tests: Likewise.
75255         * modules/crypto/gc-arctwo-tests: Likewise.
75256         * modules/crypto/gc-des-tests: Likewise.
75257         * modules/crypto/gc-hmac-md5-tests: Likewise.
75258         * modules/crypto/gc-hmac-sha1-tests: Likewise.
75259         * modules/crypto/gc-md2-tests: Likewise.
75260         * modules/crypto/gc-md4-tests: Likewise.
75261         * modules/crypto/gc-md5-tests: Likewise.
75262         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
75263         * modules/crypto/gc-rijndael-tests: Likewise.
75264         * modules/crypto/gc-sha1-tests: Likewise.
75265         * modules/crypto/gc-tests: Likewise.
75266         * modules/crypto/md2-tests: Likewise.
75267         * modules/crypto/md4-tests: Likewise.
75268         * modules/fcntl-h-tests: Likewise.
75269         * modules/floorf-tests: Likewise.
75270         * modules/floorl-tests: Likewise.
75271         * modules/frexp-nolibm-tests: Likewise.
75272         * modules/frexp-tests: Likewise.
75273         * modules/frexpl-nolibm-tests: Likewise.
75274         * modules/frexpl-tests: Likewise.
75275         * modules/getaddrinfo-tests: Likewise.
75276         * modules/inttypes-tests: Likewise.
75277         * modules/isfinite-tests: Likewise.
75278         * modules/isinf-tests: Likewise.
75279         * modules/ldexpl-tests: Likewise.
75280         * modules/locale-tests: Likewise.
75281         * modules/math-tests: Likewise.
75282         * modules/netdb-tests: Likewise.
75283         * modules/netinet_in-tests: Likewise.
75284         * modules/printf-frexp-tests: Likewise.
75285         * modules/printf-frexpl-tests: Likewise.
75286         * modules/priv-set-tests: Likewise.
75287         * modules/random_r-tests: Likewise.
75288         * modules/round-tests: Likewise.
75289         * modules/roundf-tests: Likewise.
75290         * modules/roundl-tests: Likewise.
75291         * modules/search-tests: Likewise.
75292         * modules/select-tests: Likewise.
75293         * modules/signal-tests: Likewise.
75294         * modules/stdbool-tests: Likewise.
75295         * modules/stddef-tests: Likewise.
75296         * modules/stdint-tests: Likewise.
75297         * modules/stdio-tests: Likewise.
75298         * modules/stdlib-tests: Likewise.
75299         * modules/string-tests: Likewise.
75300         * modules/strings-tests: Likewise.
75301         * modules/sys_select-tests: Likewise.
75302         * modules/sys_socket-tests: Likewise.
75303         * modules/sys_stat-tests: Likewise.
75304         * modules/sys_time-tests: Likewise.
75305         * modules/sys_utsname-tests: Likewise.
75306         * modules/sysexits-tests: Likewise.
75307         * modules/time-tests: Likewise.
75308         * modules/trunc-tests: Likewise.
75309         * modules/truncf-tests: Likewise.
75310         * modules/truncl-tests: Likewise.
75311         * modules/tsearch-tests: Likewise.
75312         * modules/unistd-tests: Likewise.
75313         * modules/wchar-tests: Likewise.
75314         * modules/wctype-tests: Likewise.
75316         tests: fix license on several tests
75317         * tests/test-des.c: Update to GPLv3+.
75318         * tests/test-flock.c: Likewise.
75319         * tests/test-fsync.c: Likewise.
75320         * tests/test-futimens.h: Likewise.
75321         * tests/test-gc-arcfour.c: Likewise.
75322         * tests/test-gc-arctwo.c: Likewise.
75323         * tests/test-gc-des.c: Likewise.
75324         * tests/test-gc-hmac-md5.c: Likewise.
75325         * tests/test-gc-hmac-sha1.c: Likewise.
75326         * tests/test-gc-md2.c: Likewise.
75327         * tests/test-gc-md4.c: Likewise.
75328         * tests/test-gc-md5.c: Likewise.
75329         * tests/test-gc-pbkdf2-sha1.c: Likewise.
75330         * tests/test-gc-rijndael.c: Likewise.
75331         * tests/test-gc-sha1.c: Likewise.
75332         * tests/test-gc.c: Likewise.
75333         * tests/test-getcwd.c: Likewise.
75334         * tests/test-link.c: Likewise.
75335         * tests/test-link.h: Likewise.
75336         * tests/test-lutimens.h: Likewise.
75337         * tests/test-md2.c: Likewise.
75338         * tests/test-md4.c: Likewise.
75339         * tests/test-mkdir.h: Likewise.
75340         * tests/test-rename.c: Likewise.
75341         * tests/test-rename.h: Likewise.
75342         * tests/test-safe-alloc.c: Likewise.
75343         * tests/test-utimens-common.h: Likewise.
75344         * tests/test-utimens.h: Likewise.
75346         maint: sync license texts
75347         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
75348         * doc/gpl-3.0.texi: Revert copyright year update.
75349         * doc/lgpl-3.0.texi: Likewise.
75351 2009-12-29  Jim Meyering  <meyering@redhat.com>
75353         update nearly all FSF copyright year lists to include 2009
75354         The files named by the following are exempted:
75355             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
75356               test -f "$dst" && { echo "$dst"; continue; }
75357               test -d "$dst" || continue
75358               echo "$dst"/$(basename "$src")
75359             done > exempt
75360             git ls-files tests/unictype >> exempt
75361         In the remaining files, convert to all-interval notation if
75362         - there is already at least one year interval like 2000-2003
75363         - the file is maintained by me
75364         - the file is in lib/uni*/, where that style already prevails
75365         Otherwise, use update-copyright's default.
75367 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75368         and Eric Blake  <ebb9@byu.net>
75370         tests: don't require debug system() to pass
75371         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
75372         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75373         * tests/test-unlink.h (test_unlink_func): Likewise.
75374         * tests/test-fstatat.c (main): ...into callers.
75375         * tests/test-lstat.c (main): Likewise.
75376         * tests/test-rmdir.c (main): Likewise.
75377         * tests/test-unlink.c (main): Likewise.
75378         * tests/test-unlinkat.c (main): Likewise.
75379         * tests/test-areadlink-with-size.c (main): Don't require a
75380         debug-only system call to pass, aiding cross-testing to mingw.
75381         * tests/test-areadlink.c (main): Likewise.
75382         * tests/test-areadlinkat-with-size.c (main): Likewise.
75383         * tests/test-areadlinkat.c (main): Likewise.
75384         * tests/test-canonicalize-lgpl.c (main): Likewise.
75385         * tests/test-canonicalize.c (main): Likewise.
75386         * tests/test-chown.c (main): Likewise.
75387         * tests/test-fchownat.c (main): Likewise.
75388         * tests/test-lchown.c (main): Likewise.
75389         * tests/test-fdutimensat.c (main): Likewise.
75390         * tests/test-futimens.c (main): Likewise.
75391         * tests/test-link.c (main): Likewise.
75392         * tests/test-linkat.c (main): Likewise.
75393         * tests/test-mkdir.c (main): Likewise.
75394         * tests/test-mkdirat.c (main): Likewise.
75395         * tests/test-mkfifo.c (main): Likewise.
75396         * tests/test-mkfifoat.c (main): Likewise.
75397         * tests/test-mknod.c (main): Likewise.
75398         * tests/test-readlink.c (main): Likewise.
75399         * tests/test-remove.c (main): Likewise.
75400         * tests/test-rename.c (main): Likewise.
75401         * tests/test-renameat.c (main): Likewise.
75402         * tests/test-symlink.c (main): Likewise.
75403         * tests/test-symlinkat.c (main): Likewise.
75404         * tests/test-utimens.c (main): Likewise.
75405         * tests/test-utimensat.c (main): Likewise.
75407 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75409         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
75410         on $(UNUSED_PARAMETER_H) to avoid build failure.
75412 2009-12-28  Jim Meyering  <meyering@redhat.com>
75414         update-copyright: you may specify a max. line length other than 72
75415         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75417         maint: use consistent FSF copyright line syntax
75418         * lib/posixtm.c: Add missing comma in FSF copyright line.
75419         * lib/posixtm.h: Likewise.
75420         * lib/getugroups.c: Add missing ", Inc.".
75422         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75423         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75424         FSF copyright line.  Remove trailing blanks.
75426 2009-12-28  Eric Blake  <ebb9@byu.net>
75428         test-dup2: reduce dependencies
75429         * modules/cloexec (Configure.ac): Set witness.
75430         * modules/dup2-tests (Depends-on): Drop cloexec.
75431         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75432         not present.
75433         Suggested by Bruno Haible.
75435 2009-12-26  Bruno Haible  <bruno@clisp.org>
75437         Remove an unneeded dependency.
75438         * modules/fseterr (Depends-on): Remove dup2.
75440 2009-12-26  Eric Blake  <ebb9@byu.net>
75442         tests: use macros.h in more places
75443         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75444         (ASSERT_STREAM): Provide default of stderr.
75445         * tests/test-dirent-safer.c: Include macros.h, using alternate
75446         stream for assertions.
75447         * tests/test-dup-safer.c: Likewise.
75448         * tests/test-freopen-safer.c: Likewise.
75449         * tests/test-getopt.c: Likewise.
75450         * tests/test-openat-safer.c: Likewise.
75451         * tests/test-pipe.c: Likewise.
75452         * tests/test-popen-safer.c: Likewise.
75453         * modules/dirent-safer-tests (Files): Include macros.h.
75454         * modules/unistd-safer-tests (Files): Likewise.
75455         * modules/freopen-safer-tests (Files): Likewise.
75456         * modules/getopt-posix-tests (Files): Likewise.
75457         * modules/openat-safer-tests (Files): Likewise.
75458         * modules/pipe-tests (Files): Likewise.
75460 2009-12-26  Bruno Haible  <bruno@clisp.org>
75462         javacomp-script: Portability fix.
75463         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75464         that it also works on Solaris.
75466 2009-12-26  Bruno Haible  <bruno@clisp.org>
75468         localename: Fix storage allocation of gl_locale_name_thread's result.
75469         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75470         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75471         all platforms that have 'uselocale'.
75472         (gl_locale_name_thread_unsafe): New function, extracted from
75473         gl_locale_name_thread.
75474         (gl_locale_name_thread): Call struniq on all platforms that have
75475         'uselocale'.
75476         * tests/test-localename.c (test_locale_name_thread): Check that the
75477         resulting strings are permanently allocated.
75478         * modules/localename-tests (Depends-on): Add strdup.
75480 2009-12-26  Bruno Haible  <bruno@clisp.org>
75482         * tests/test-localename.c (categories): Fill in the strings.
75484 2009-12-26  Jim Meyering  <meyering@redhat.com>
75486         isdir: complete the removal of m4/isdir.m4
75487         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75489         isdir: clean up, since at least grep still uses it
75490         * lib/isdir.c: Include "isdir.h".
75491         (S_ISDIR): Remove now-unneeded definition.
75492         * modules/isdir (Files): Add lib/isdir.h.
75493         * lib/isdir.h: New file, with declaration.
75494         * m4/isdir.m4: Remove file -- unneeded.
75496 2009-12-25  Bruno Haible  <bruno@clisp.org>
75498         selinux-h: Make generated .h files standalone.
75499         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75500         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75501         * lib/se-selinux.in.h: Likewise.
75502         * modules/selinux-h (Depends-on): Add unused-parameter.
75503         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75504         selinux/selinux.h and selinux/context.h.
75505         Suggested by Eric Blake.
75507 2009-12-25  Bruno Haible  <bruno@clisp.org>
75509         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75510         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75511         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75512         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75513         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75515 2009-12-24  Bruno Haible  <bruno@clisp.org>
75517         openat: Fix warning.
75518         * lib/openat-proc.c: Include <unistd.h>.
75520 2009-12-24  Bruno Haible  <bruno@clisp.org>
75522         New module 'unused-parameter'.
75523         * build-aux/unused-parameter.h: New file, extracted from earlier
75524         gnulib-common.m4.
75525         * modules/unused-parameter: New file.
75526         * lib/unistr.h: Include unused-parameter.h.
75527         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75528         _GL_UNUSED.
75529         * modules/unistr/base (Depends-on): Add unused-parameter.
75531 2009-12-24  Bruno Haible  <bruno@clisp.org>
75533         Add missing dependencies to 'extensions' module.
75534         * m4/extensions.m4: Add comment.
75535         * modules/accept4 (Depends-on): Add extensions.
75536         * modules/dup3 (Depends-on): Likewise.
75537         * modules/fcntl (Depends-on): Likewise.
75538         * modules/futimens (Depends-on): Likewise.
75539         * modules/mknod (Depends-on): Likewise.
75540         * modules/pipe2 (Depends-on): Likewise.
75541         * modules/stat-time (Depends-on): Likewise.
75542         * modules/strcasestr-simple (Depends-on): Likewise.
75543         * modules/strsignal (Depends-on): Likewise.
75544         * modules/utimensat (Depends-on): Likewise.
75545         * modules/localcharset (Depends-on): Likewise. Needed because of
75546         gl_FCNTL_O_FLAGS.
75547         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75548         AC_TYPE_MBSTATE_T.
75549         * modules/wcsnrtombs (Depends-on): Likewise.
75550         * modules/wcsrtombs (Depends-on): Likewise.
75552 2009-12-24  Bruno Haible  <bruno@clisp.org>
75554         binary-io: Avoid gcc warning due to SET_BINARY.
75555         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75556         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75558 2009-12-24  Bruno Haible  <bruno@clisp.org>
75560         Avoid future namespace pollution on glibc systems.
75561         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75562         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75563         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75564         glibc systems.
75566 2009-12-24  Bruno Haible  <bruno@clisp.org>
75568         Refactor common macros used in tests.
75569         * tests/macros.h: New file.
75570         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75571         and/or <stdlib.h>, if appropriate.
75572         (ASSERT, SIZEOF): Remove macros.
75573         * tests/test-areadlink-with-size.c: Likewise.
75574         * tests/test-areadlinkat.c: Likewise.
75575         * tests/test-areadlinkat-with-size.c: Likewise.
75576         * tests/test-argmatch.c: Likewise.
75577         * tests/test-argv-iter.c: Likewise.
75578         * tests/test-array-mergesort.c: Likewise.
75579         * tests/test-array_list.c: Likewise.
75580         * tests/test-array_oset.c: Likewise.
75581         * tests/test-avltree_list.c: Likewise.
75582         * tests/test-avltree_oset.c: Likewise.
75583         * tests/test-avltreehash_list.c: Likewise.
75584         * tests/test-base64.c: Likewise.
75585         * tests/test-binary-io.c: Likewise.
75586         * tests/test-bitrotate.c: Likewise.
75587         * tests/test-btowc.c: Likewise.
75588         * tests/test-byteswap.c: Likewise.
75589         * tests/test-c-ctype.c: Likewise.
75590         * tests/test-c-stack.c: Likewise.
75591         * tests/test-c-strcasecmp.c: Likewise.
75592         * tests/test-c-strcasestr.c: Likewise.
75593         * tests/test-c-strncasecmp.c: Likewise.
75594         * tests/test-c-strstr.c: Likewise.
75595         * tests/test-canonicalize-lgpl.c: Likewise.
75596         * tests/test-canonicalize.c: Likewise.
75597         * tests/test-carray_list.c: Likewise.
75598         * tests/test-ceilf1.c: Likewise.
75599         * tests/test-ceilf2.c: Likewise.
75600         * tests/test-ceill.c: Likewise.
75601         * tests/test-chown.c: Likewise.
75602         * tests/test-cloexec.c: Likewise.
75603         * tests/test-copy-acl.c: Likewise.
75604         * tests/test-copy-file.c: Likewise.
75605         * tests/test-count-one-bits.c: Likewise.
75606         * tests/test-dprintf-posix.c: Likewise.
75607         * tests/test-dup2.c: Likewise.
75608         * tests/test-dup3.c: Likewise.
75609         * tests/test-duplocale.c: Likewise.
75610         * tests/test-fbufmode.c: Likewise.
75611         * tests/test-fchdir.c: Likewise.
75612         * tests/test-fchownat.c: Likewise.
75613         * tests/test-fcntl-safer.c: Likewise.
75614         * tests/test-fcntl.c: Likewise.
75615         * tests/test-fdopendir.c: Likewise.
75616         * tests/test-fdutimensat.c: Likewise.
75617         * tests/test-fflush2.c: Likewise.
75618         * tests/test-file-has-acl.c: Likewise.
75619         * tests/test-filevercmp.c: Likewise.
75620         * tests/test-flock.c: Likewise.
75621         * tests/test-floorf1.c: Likewise.
75622         * tests/test-floorf2.c: Likewise.
75623         * tests/test-floorl.c: Likewise.
75624         * tests/test-fnmatch.c: Likewise.
75625         * tests/test-fopen.h: Likewise.
75626         * tests/test-fpending.c: Likewise.
75627         * tests/test-fprintf-posix.c: Likewise.
75628         * tests/test-fpurge.c: Likewise.
75629         * tests/test-freadable.c: Likewise.
75630         * tests/test-freadahead.c: Likewise.
75631         * tests/test-freading.c: Likewise.
75632         * tests/test-freadptr.c: Likewise.
75633         * tests/test-freadptr2.c: Likewise.
75634         * tests/test-freadseek.c: Likewise.
75635         * tests/test-freopen.c: Likewise.
75636         * tests/test-frexp.c: Likewise.
75637         * tests/test-frexpl.c: Likewise.
75638         * tests/test-fseek.c: Likewise.
75639         * tests/test-fseeko.c: Likewise.
75640         * tests/test-fstatat.c: Likewise.
75641         * tests/test-fstrcmp.c: Likewise.
75642         * tests/test-fsync.c: Likewise.
75643         * tests/test-ftell.c: Likewise.
75644         * tests/test-ftello.c: Likewise.
75645         * tests/test-func.c: Likewise.
75646         * tests/test-futimens.c: Likewise.
75647         * tests/test-fwritable.c: Likewise.
75648         * tests/test-fwriting.c: Likewise.
75649         * tests/test-getcwd.c: Likewise.
75650         * tests/test-getdate.c: Likewise.
75651         * tests/test-getdelim.c: Likewise.
75652         * tests/test-getdtablesize.c: Likewise.
75653         * tests/test-getgroups.c: Likewise.
75654         * tests/test-getline.c: Likewise.
75655         * tests/test-getndelim2.c: Likewise.
75656         * tests/test-glob.c: Likewise.
75657         * tests/test-hash.c: Likewise.
75658         * tests/test-i-ring.c: Likewise.
75659         * tests/test-iconv-utf.c: Likewise.
75660         * tests/test-iconv.c: Likewise.
75661         * tests/test-idpriv-drop.c: Likewise.
75662         * tests/test-idpriv-droptemp.c: Likewise.
75663         * tests/test-inet_ntop.c: Likewise.
75664         * tests/test-inet_pton.c: Likewise.
75665         * tests/test-isblank.c: Likewise.
75666         * tests/test-isfinite.c: Likewise.
75667         * tests/test-isinf.c: Likewise.
75668         * tests/test-isnan.c: Likewise.
75669         * tests/test-isnand.h: Likewise.
75670         * tests/test-isnanf.h: Likewise.
75671         * tests/test-isnanl.h: Likewise.
75672         * tests/test-lchown.c: Likewise.
75673         * tests/test-ldexpl.c: Likewise.
75674         * tests/test-link.c: Likewise.
75675         * tests/test-linkat.c: Likewise.
75676         * tests/test-linked_list.c: Likewise.
75677         * tests/test-linkedhash_list.c: Likewise.
75678         * tests/test-localename.c: Likewise.
75679         * tests/test-lseek.c: Likewise.
75680         * tests/test-lstat.c: Likewise.
75681         * tests/test-mbmemcasecmp.c: Likewise.
75682         * tests/test-mbmemcasecoll.c: Likewise.
75683         * tests/test-mbrtowc.c: Likewise.
75684         * tests/test-mbscasecmp.c: Likewise.
75685         * tests/test-mbscasestr1.c: Likewise.
75686         * tests/test-mbscasestr2.c: Likewise.
75687         * tests/test-mbscasestr3.c: Likewise.
75688         * tests/test-mbscasestr4.c: Likewise.
75689         * tests/test-mbschr.c: Likewise.
75690         * tests/test-mbscspn.c: Likewise.
75691         * tests/test-mbsinit.c: Likewise.
75692         * tests/test-mbsncasecmp.c: Likewise.
75693         * tests/test-mbsnrtowcs.c: Likewise.
75694         * tests/test-mbspbrk.c: Likewise.
75695         * tests/test-mbspcasecmp.c: Likewise.
75696         * tests/test-mbsrchr.c: Likewise.
75697         * tests/test-mbsrtowcs.c: Likewise.
75698         * tests/test-mbsspn.c: Likewise.
75699         * tests/test-mbsstr1.c: Likewise.
75700         * tests/test-mbsstr2.c: Likewise.
75701         * tests/test-mbsstr3.c: Likewise.
75702         * tests/test-memchr.c: Likewise.
75703         * tests/test-memchr2.c: Likewise.
75704         * tests/test-memcmp.c: Likewise.
75705         * tests/test-memmem.c: Likewise.
75706         * tests/test-memrchr.c: Likewise.
75707         * tests/test-mkdir.c: Likewise.
75708         * tests/test-mkdirat.c: Likewise.
75709         * tests/test-mkfifo.c: Likewise.
75710         * tests/test-mkfifoat.c: Likewise.
75711         * tests/test-mknod.c: Likewise.
75712         * tests/test-nanosleep.c: Likewise.
75713         * tests/test-nl_langinfo.c: Likewise.
75714         * tests/test-obstack-printf.c: Likewise.
75715         * tests/test-open.c: Likewise.
75716         * tests/test-openat.c: Likewise.
75717         * tests/test-pipe-filter-gi1.c: Likewise.
75718         * tests/test-pipe-filter-gi2-main.c: Likewise.
75719         * tests/test-pipe-filter-ii1.c: Likewise.
75720         * tests/test-pipe-filter-ii2-main.c: Likewise.
75721         * tests/test-pipe2.c: Likewise.
75722         * tests/test-popen.h: Likewise.
75723         * tests/test-posixtm.c: Likewise.
75724         * tests/test-pread.c: Likewise.
75725         * tests/test-printf-frexp.c: Likewise.
75726         * tests/test-printf-frexpl.c: Likewise.
75727         * tests/test-printf-posix.c: Likewise.
75728         * tests/test-priv-set.c: Likewise.
75729         * tests/test-quotearg.c: Likewise.
75730         * tests/test-random_r.c: Likewise.
75731         * tests/test-rawmemchr.c: Likewise.
75732         * tests/test-rbtree_list.c: Likewise.
75733         * tests/test-rbtree_oset.c: Likewise.
75734         * tests/test-rbtreehash_list.c: Likewise.
75735         * tests/test-readlink.c: Likewise.
75736         * tests/test-remove.c: Likewise.
75737         * tests/test-rename.c: Likewise.
75738         * tests/test-renameat.c: Likewise.
75739         * tests/test-rmdir.c: Likewise.
75740         * tests/test-round1.c: Likewise.
75741         * tests/test-roundf1.c: Likewise.
75742         * tests/test-roundl.c: Likewise.
75743         * tests/test-safe-alloc.c: Likewise.
75744         * tests/test-sameacls.c: Likewise.
75745         * tests/test-set-mode-acl.c: Likewise.
75746         * tests/test-setenv.c: Likewise.
75747         * tests/test-sigaction.c: Likewise.
75748         * tests/test-signbit.c: Likewise.
75749         * tests/test-sleep.c: Likewise.
75750         * tests/test-snprintf-posix.c: Likewise.
75751         * tests/test-snprintf.c: Likewise.
75752         * tests/test-sprintf-posix.c: Likewise.
75753         * tests/test-stat-time.c: Likewise.
75754         * tests/test-stat.c: Likewise.
75755         * tests/test-strcasestr.c: Likewise.
75756         * tests/test-strchrnul.c: Likewise.
75757         * tests/test-strerror.c: Likewise.
75758         * tests/test-striconv.c: Likewise.
75759         * tests/test-striconveh.c: Likewise.
75760         * tests/test-striconveha.c: Likewise.
75761         * tests/test-strsignal.c: Likewise.
75762         * tests/test-strstr.c: Likewise.
75763         * tests/test-strtod.c: Likewise.
75764         * tests/test-strverscmp.c: Likewise.
75765         * tests/test-symlink.c: Likewise.
75766         * tests/test-symlinkat.c: Likewise.
75767         * tests/test-trunc1.c: Likewise.
75768         * tests/test-trunc2.c: Likewise.
75769         * tests/test-truncf1.c: Likewise.
75770         * tests/test-truncf2.c: Likewise.
75771         * tests/test-truncl.c: Likewise.
75772         * tests/test-uname.c: Likewise.
75773         * tests/test-unlink.c: Likewise.
75774         * tests/test-unlinkat.c: Likewise.
75775         * tests/test-unsetenv.c: Likewise.
75776         * tests/test-usleep.c: Likewise.
75777         * tests/test-utimens.c: Likewise.
75778         * tests/test-utimensat.c: Likewise.
75779         * tests/test-vasnprintf-posix.c: Likewise.
75780         * tests/test-vasnprintf-posix2.c: Likewise.
75781         * tests/test-vasnprintf.c: Likewise.
75782         * tests/test-vasprintf-posix.c: Likewise.
75783         * tests/test-vasprintf.c: Likewise.
75784         * tests/test-vdprintf-posix.c: Likewise.
75785         * tests/test-vfprintf-posix.c: Likewise.
75786         * tests/test-vprintf-posix.c: Likewise.
75787         * tests/test-vsnprintf-posix.c: Likewise.
75788         * tests/test-vsnprintf.c: Likewise.
75789         * tests/test-vsprintf-posix.c: Likewise.
75790         * tests/test-wcrtomb.c: Likewise.
75791         * tests/test-wcsnrtombs.c: Likewise.
75792         * tests/test-wcsrtombs.c: Likewise.
75793         * tests/test-wctype.c: Likewise.
75794         * tests/test-wcwidth.c: Likewise.
75795         * tests/test-xfprintf-posix.c: Likewise.
75796         * tests/test-xmemdup0.c: Likewise.
75797         * tests/test-xprintf-posix.c: Likewise.
75798         * tests/test-xvasprintf.c: Likewise.
75799         * tests/unicase/test-locale-language.c: Likewise.
75800         * tests/unicase/test-mapping-part1.h: Likewise.
75801         * tests/unicase/test-predicate-part1.h: Likewise.
75802         * tests/unicase/test-u8-casecmp.c: Likewise.
75803         * tests/unicase/test-u8-casecoll.c: Likewise.
75804         * tests/unicase/test-u8-casefold.c: Likewise.
75805         * tests/unicase/test-u8-is-cased.c: Likewise.
75806         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75807         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75808         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75809         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75810         * tests/unicase/test-u8-tolower.c: Likewise.
75811         * tests/unicase/test-u8-totitle.c: Likewise.
75812         * tests/unicase/test-u8-toupper.c: Likewise.
75813         * tests/unicase/test-u16-casecmp.c: Likewise.
75814         * tests/unicase/test-u16-casecoll.c: Likewise.
75815         * tests/unicase/test-u16-casefold.c: Likewise.
75816         * tests/unicase/test-u16-is-cased.c: Likewise.
75817         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75818         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75819         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75820         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75821         * tests/unicase/test-u16-tolower.c: Likewise.
75822         * tests/unicase/test-u16-totitle.c: Likewise.
75823         * tests/unicase/test-u16-toupper.c: Likewise.
75824         * tests/unicase/test-u32-casecmp.c: Likewise.
75825         * tests/unicase/test-u32-casecoll.c: Likewise.
75826         * tests/unicase/test-u32-casefold.c: Likewise.
75827         * tests/unicase/test-u32-is-cased.c: Likewise.
75828         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75829         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75830         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75831         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75832         * tests/unicase/test-u32-tolower.c: Likewise.
75833         * tests/unicase/test-u32-totitle.c: Likewise.
75834         * tests/unicase/test-u32-toupper.c: Likewise.
75835         * tests/unicase/test-ulc-casecmp.c: Likewise.
75836         * tests/unicase/test-ulc-casecoll.c: Likewise.
75837         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75838         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75839         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75840         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75841         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75842         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75843         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75844         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75845         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75846         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75847         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75848         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75849         * tests/unictype/test-bidi_byname.c: Likewise.
75850         * tests/unictype/test-bidi_name.c: Likewise.
75851         * tests/unictype/test-bidi_of.c: Likewise.
75852         * tests/unictype/test-bidi_test.c: Likewise.
75853         * tests/unictype/test-block_list.c: Likewise.
75854         * tests/unictype/test-block_of.c: Likewise.
75855         * tests/unictype/test-block_test.c: Likewise.
75856         * tests/unictype/test-categ_and.c: Likewise.
75857         * tests/unictype/test-categ_and_not.c: Likewise.
75858         * tests/unictype/test-categ_byname.c: Likewise.
75859         * tests/unictype/test-categ_name.c: Likewise.
75860         * tests/unictype/test-categ_none.c: Likewise.
75861         * tests/unictype/test-categ_of.c: Likewise.
75862         * tests/unictype/test-categ_or.c: Likewise.
75863         * tests/unictype/test-categ_test_withtable.c: Likewise.
75864         * tests/unictype/test-combining.c: Likewise.
75865         * tests/unictype/test-decdigit.c: Likewise.
75866         * tests/unictype/test-digit.c: Likewise.
75867         * tests/unictype/test-mirror.c: Likewise.
75868         * tests/unictype/test-numeric.c: Likewise.
75869         * tests/unictype/test-pr_byname.c: Likewise.
75870         * tests/unictype/test-pr_test.c: Likewise.
75871         * tests/unictype/test-predicate-part1.h: Likewise.
75872         * tests/unictype/test-scripts.c: Likewise.
75873         * tests/unictype/test-sy_c_ident.c: Likewise.
75874         * tests/unictype/test-sy_java_ident.c: Likewise.
75875         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75876         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75877         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75878         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75879         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75880         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75881         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75882         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75883         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75884         * tests/uninorm/test-compat-decomposition.c: Likewise.
75885         * tests/uninorm/test-composition.c: Likewise.
75886         * tests/uninorm/test-decomposing-form.c: Likewise.
75887         * tests/uninorm/test-decomposition.c: Likewise.
75888         * tests/uninorm/test-u8-nfc.c: Likewise.
75889         * tests/uninorm/test-u8-nfd.c: Likewise.
75890         * tests/uninorm/test-u8-nfkc.c: Likewise.
75891         * tests/uninorm/test-u8-nfkd.c: Likewise.
75892         * tests/uninorm/test-u8-normcmp.c: Likewise.
75893         * tests/uninorm/test-u8-normcoll.c: Likewise.
75894         * tests/uninorm/test-u16-nfc.c: Likewise.
75895         * tests/uninorm/test-u16-nfd.c: Likewise.
75896         * tests/uninorm/test-u16-nfkc.c: Likewise.
75897         * tests/uninorm/test-u16-nfkd.c: Likewise.
75898         * tests/uninorm/test-u16-normcmp.c: Likewise.
75899         * tests/uninorm/test-u16-normcoll.c: Likewise.
75900         * tests/uninorm/test-u32-nfc.c: Likewise.
75901         * tests/uninorm/test-u32-nfd.c: Likewise.
75902         * tests/uninorm/test-u32-nfkc.c: Likewise.
75903         * tests/uninorm/test-u32-nfkd.c: Likewise.
75904         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75905         * tests/uninorm/test-u32-normcmp.c: Likewise.
75906         * tests/uninorm/test-u32-normcoll.c: Likewise.
75907         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75908         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75909         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75910         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75911         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75912         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75913         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75914         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75915         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75916         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75917         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75918         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75919         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75920         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75921         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75922         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75923         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75924         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75925         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75926         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75927         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75928         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75929         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75930         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75931         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75932         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75933         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75934         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75935         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75936         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75937         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75938         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75939         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75940         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75941         * tests/uniwidth/test-u8-width.c: Likewise.
75942         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75943         * tests/uniwidth/test-u16-width.c: Likewise.
75944         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75945         * tests/uniwidth/test-u32-width.c: Likewise.
75946         * tests/uniwidth/test-uc_width.c: Likewise.
75947         * tests/uniwidth/test-uc_width2.c: Likewise.
75948         * modules/acl-tests (Files): Add tests/macros.h.
75949         * modules/areadlink-tests (Files): Likewise.
75950         * modules/areadlink-with-size-tests (Files): Likewise.
75951         * modules/areadlinkat-tests (Files): Likewise.
75952         * modules/areadlinkat-with-size-tests (Files): Likewise.
75953         * modules/argmatch-tests (Files): Likewise.
75954         * modules/argv-iter-tests (Files): Likewise.
75955         * modules/array-list-tests (Files): Likewise.
75956         * modules/array-mergesort-tests (Files): Likewise.
75957         * modules/array-oset-tests (Files): Likewise.
75958         * modules/avltree-list-tests (Files): Likewise.
75959         * modules/avltree-oset-tests (Files): Likewise.
75960         * modules/avltreehash-list-tests (Files): Likewise.
75961         * modules/base64-tests (Files): Likewise.
75962         * modules/binary-io-tests (Files): Likewise.
75963         * modules/bitrotate-tests (Files): Likewise.
75964         * modules/btowc-tests (Files): Likewise.
75965         * modules/byteswap-tests (Files): Likewise.
75966         * modules/c-ctype-tests (Files): Likewise.
75967         * modules/c-stack-tests (Files): Likewise.
75968         * modules/c-strcase-tests (Files): Likewise.
75969         * modules/c-strcasestr-tests (Files): Likewise.
75970         * modules/c-strstr-tests (Files): Likewise.
75971         * modules/canonicalize-lgpl-tests (Files): Likewise.
75972         * modules/canonicalize-tests (Files): Likewise.
75973         * modules/carray-list-tests (Files): Likewise.
75974         * modules/ceilf-tests (Files): Likewise.
75975         * modules/ceill-tests (Files): Likewise.
75976         * modules/chown-tests (Files): Likewise.
75977         * modules/cloexec-tests (Files): Likewise.
75978         * modules/copy-file-tests (Files): Likewise.
75979         * modules/count-one-bits-tests (Files): Likewise.
75980         * modules/dprintf-posix-tests (Files): Likewise.
75981         * modules/dup2-tests (Files): Likewise.
75982         * modules/dup3-tests (Files): Likewise.
75983         * modules/duplocale-tests (Files): Likewise.
75984         * modules/fbufmode-tests (Files): Likewise.
75985         * modules/fchdir-tests (Files): Likewise.
75986         * modules/fcntl-safer-tests (Files): Likewise.
75987         * modules/fcntl-tests (Files): Likewise.
75988         * modules/fdopendir-tests (Files): Likewise.
75989         * modules/fdutimensat-tests (Files): Likewise.
75990         * modules/fflush-tests (Files): Likewise.
75991         * modules/filevercmp-tests (Files): Likewise.
75992         * modules/flock-tests (Files): Likewise.
75993         * modules/floorf-tests (Files): Likewise.
75994         * modules/floorl-tests (Files): Likewise.
75995         * modules/fnmatch-tests (Files): Likewise.
75996         * modules/fopen-safer-tests (Files): Likewise.
75997         * modules/fopen-tests (Files): Likewise.
75998         * modules/fpending-tests (Files): Likewise.
75999         * modules/fprintf-posix-tests (Files): Likewise.
76000         * modules/fpurge-tests (Files): Likewise.
76001         * modules/freadable-tests (Files): Likewise.
76002         * modules/freadahead-tests (Files): Likewise.
76003         * modules/freading-tests (Files): Likewise.
76004         * modules/freadptr-tests (Files): Likewise.
76005         * modules/freadseek-tests (Files): Likewise.
76006         * modules/freopen-tests (Files): Likewise.
76007         * modules/frexp-nolibm-tests (Files): Likewise.
76008         * modules/frexp-tests (Files): Likewise.
76009         * modules/frexpl-nolibm-tests (Files): Likewise.
76010         * modules/frexpl-tests (Files): Likewise.
76011         * modules/fseek-tests (Files): Likewise.
76012         * modules/fseeko-tests (Files): Likewise.
76013         * modules/fstrcmp-tests (Files): Likewise.
76014         * modules/fsync-tests (Files): Likewise.
76015         * modules/ftell-tests (Files): Likewise.
76016         * modules/ftello-tests (Files): Likewise.
76017         * modules/func-tests (Files): Likewise.
76018         * modules/futimens-tests (Files): Likewise.
76019         * modules/fwritable-tests (Files): Likewise.
76020         * modules/fwriting-tests (Files): Likewise.
76021         * modules/getcwd-tests (Files): Likewise.
76022         * modules/getdate-tests (Files): Likewise.
76023         * modules/getdelim-tests (Files): Likewise.
76024         * modules/getdtablesize-tests (Files): Likewise.
76025         * modules/getgroups-tests (Files): Likewise.
76026         * modules/getline-tests (Files): Likewise.
76027         * modules/getndelim2-tests (Files): Likewise.
76028         * modules/glob-tests (Files): Likewise.
76029         * modules/hash-tests (Files): Likewise.
76030         * modules/i-ring-tests (Files): Likewise.
76031         * modules/iconv-tests (Files): Likewise.
76032         * modules/iconv_open-utf-tests (Files): Likewise.
76033         * modules/idpriv-drop-tests (Files): Likewise.
76034         * modules/idpriv-droptemp-tests (Files): Likewise.
76035         * modules/inet_ntop-tests (Files): Likewise.
76036         * modules/inet_pton-tests (Files): Likewise.
76037         * modules/isblank-tests (Files): Likewise.
76038         * modules/isfinite-tests (Files): Likewise.
76039         * modules/isinf-tests (Files): Likewise.
76040         * modules/isnan-tests (Files): Likewise.
76041         * modules/isnand-nolibm-tests (Files): Likewise.
76042         * modules/isnand-tests (Files): Likewise.
76043         * modules/isnanf-nolibm-tests (Files): Likewise.
76044         * modules/isnanf-tests (Files): Likewise.
76045         * modules/isnanl-nolibm-tests (Files): Likewise.
76046         * modules/isnanl-tests (Files): Likewise.
76047         * modules/lchown-tests (Files): Likewise.
76048         * modules/ldexpl-tests (Files): Likewise.
76049         * modules/link-tests (Files): Likewise.
76050         * modules/linkat-tests (Files): Likewise.
76051         * modules/linked-list-tests (Files): Likewise.
76052         * modules/linkedhash-list-tests (Files): Likewise.
76053         * modules/localename-tests (Files): Likewise.
76054         * modules/lseek-tests (Files): Likewise.
76055         * modules/lstat-tests (Files): Likewise.
76056         * modules/mbmemcasecmp-tests (Files): Likewise.
76057         * modules/mbmemcasecoll-tests (Files): Likewise.
76058         * modules/mbrtowc-tests (Files): Likewise.
76059         * modules/mbscasecmp-tests (Files): Likewise.
76060         * modules/mbscasestr-tests (Files): Likewise.
76061         * modules/mbschr-tests (Files): Likewise.
76062         * modules/mbscspn-tests (Files): Likewise.
76063         * modules/mbsinit-tests (Files): Likewise.
76064         * modules/mbsncasecmp-tests (Files): Likewise.
76065         * modules/mbsnrtowcs-tests (Files): Likewise.
76066         * modules/mbspbrk-tests (Files): Likewise.
76067         * modules/mbspcasecmp-tests (Files): Likewise.
76068         * modules/mbsrchr-tests (Files): Likewise.
76069         * modules/mbsrtowcs-tests (Files): Likewise.
76070         * modules/mbsspn-tests (Files): Likewise.
76071         * modules/mbsstr-tests (Files): Likewise.
76072         * modules/memchr-tests (Files): Likewise.
76073         * modules/memchr2-tests (Files): Likewise.
76074         * modules/memcmp-tests (Files): Likewise.
76075         * modules/memmem-tests (Files): Likewise.
76076         * modules/memrchr-tests (Files): Likewise.
76077         * modules/mkdir-tests (Files): Likewise.
76078         * modules/mkfifo-tests (Files): Likewise.
76079         * modules/mkfifoat-tests (Files): Likewise.
76080         * modules/mknod-tests (Files): Likewise.
76081         * modules/nanosleep-tests (Files): Likewise.
76082         * modules/nl_langinfo-tests (Files): Likewise.
76083         * modules/obstack-printf-tests (Files): Likewise.
76084         * modules/open-tests (Files): Likewise.
76085         * modules/openat-tests (Files): Likewise.
76086         * modules/pipe-filter-gi-tests (Files): Likewise.
76087         * modules/pipe-filter-ii-tests (Files): Likewise.
76088         * modules/pipe2-tests (Files): Likewise.
76089         * modules/popen-safer-tests (Files): Likewise.
76090         * modules/popen-tests (Files): Likewise.
76091         * modules/posixtm-tests (Files): Likewise.
76092         * modules/pread-tests (Files): Likewise.
76093         * modules/printf-frexp-tests (Files): Likewise.
76094         * modules/printf-frexpl-tests (Files): Likewise.
76095         * modules/printf-posix-tests (Files): Likewise.
76096         * modules/priv-set-tests (Files): Likewise.
76097         * modules/quotearg-tests (Files): Likewise.
76098         * modules/random_r-tests (Files): Likewise.
76099         * modules/rawmemchr-tests (Files): Likewise.
76100         * modules/rbtree-list-tests (Files): Likewise.
76101         * modules/rbtree-oset-tests (Files): Likewise.
76102         * modules/rbtreehash-list-tests (Files): Likewise.
76103         * modules/readlink-tests (Files): Likewise.
76104         * modules/remove-tests (Files): Likewise.
76105         * modules/rename-tests (Files): Likewise.
76106         * modules/renameat-tests (Files): Likewise.
76107         * modules/rmdir-tests (Files): Likewise.
76108         * modules/round-tests (Files): Likewise.
76109         * modules/roundf-tests (Files): Likewise.
76110         * modules/roundl-tests (Files): Likewise.
76111         * modules/safe-alloc-tests (Files): Likewise.
76112         * modules/setenv-tests (Files): Likewise.
76113         * modules/sigaction-tests (Files): Likewise.
76114         * modules/signbit-tests (Files): Likewise.
76115         * modules/sleep-tests (Files): Likewise.
76116         * modules/snprintf-posix-tests (Files): Likewise.
76117         * modules/snprintf-tests (Files): Likewise.
76118         * modules/sprintf-posix-tests (Files): Likewise.
76119         * modules/stat-tests (Files): Likewise.
76120         * modules/stat-time-tests (Files): Likewise.
76121         * modules/strcasestr-tests (Files): Likewise.
76122         * modules/strchrnul-tests (Files): Likewise.
76123         * modules/strerror-tests (Files): Likewise.
76124         * modules/striconv-tests (Files): Likewise.
76125         * modules/striconveh-tests (Files): Likewise.
76126         * modules/striconveha-tests (Files): Likewise.
76127         * modules/strsignal-tests (Files): Likewise.
76128         * modules/strstr-tests (Files): Likewise.
76129         * modules/strtod-tests (Files): Likewise.
76130         * modules/strverscmp-tests (Files): Likewise.
76131         * modules/symlink-tests (Files): Likewise.
76132         * modules/symlinkat-tests (Files): Likewise.
76133         * modules/trunc-tests (Files): Likewise.
76134         * modules/truncf-tests (Files): Likewise.
76135         * modules/truncl-tests (Files): Likewise.
76136         * modules/uname-tests (Files): Likewise.
76137         * modules/unicase/cased-tests (Files): Likewise.
76138         * modules/unicase/ignorable-tests (Files): Likewise.
76139         * modules/unicase/locale-language-tests (Files): Likewise.
76140         * modules/unicase/tolower-tests (Files): Likewise.
76141         * modules/unicase/totitle-tests (Files): Likewise.
76142         * modules/unicase/toupper-tests (Files): Likewise.
76143         * modules/unicase/u8-casecmp-tests (Files): Likewise.
76144         * modules/unicase/u8-casecoll-tests (Files): Likewise.
76145         * modules/unicase/u8-casefold-tests (Files): Likewise.
76146         * modules/unicase/u8-is-cased-tests (Files): Likewise.
76147         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
76148         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
76149         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
76150         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
76151         * modules/unicase/u8-tolower-tests (Files): Likewise.
76152         * modules/unicase/u8-totitle-tests (Files): Likewise.
76153         * modules/unicase/u8-toupper-tests (Files): Likewise.
76154         * modules/unicase/u16-casecmp-tests (Files): Likewise.
76155         * modules/unicase/u16-casecoll-tests (Files): Likewise.
76156         * modules/unicase/u16-casefold-tests (Files): Likewise.
76157         * modules/unicase/u16-is-cased-tests (Files): Likewise.
76158         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
76159         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
76160         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
76161         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
76162         * modules/unicase/u16-tolower-tests (Files): Likewise.
76163         * modules/unicase/u16-totitle-tests (Files): Likewise.
76164         * modules/unicase/u16-toupper-tests (Files): Likewise.
76165         * modules/unicase/u32-casecmp-tests (Files): Likewise.
76166         * modules/unicase/u32-casecoll-tests (Files): Likewise.
76167         * modules/unicase/u32-casefold-tests (Files): Likewise.
76168         * modules/unicase/u32-is-cased-tests (Files): Likewise.
76169         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
76170         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
76171         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
76172         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
76173         * modules/unicase/u32-tolower-tests (Files): Likewise.
76174         * modules/unicase/u32-totitle-tests (Files): Likewise.
76175         * modules/unicase/u32-toupper-tests (Files): Likewise.
76176         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
76177         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
76178         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
76179         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
76180         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
76181         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
76182         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
76183         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
76184         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
76185         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
76186         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
76187         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
76188         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
76189         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
76190         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
76191         * modules/unictype/bidicategory-name-tests (Files): Likewise.
76192         * modules/unictype/bidicategory-of-tests (Files): Likewise.
76193         * modules/unictype/bidicategory-test-tests (Files): Likewise.
76194         * modules/unictype/block-list-tests (Files): Likewise.
76195         * modules/unictype/block-of-tests (Files): Likewise.
76196         * modules/unictype/block-test-tests (Files): Likewise.
76197         * modules/unictype/category-C-tests (Files): Likewise.
76198         * modules/unictype/category-Cc-tests (Files): Likewise.
76199         * modules/unictype/category-Cf-tests (Files): Likewise.
76200         * modules/unictype/category-Cn-tests (Files): Likewise.
76201         * modules/unictype/category-Co-tests (Files): Likewise.
76202         * modules/unictype/category-Cs-tests (Files): Likewise.
76203         * modules/unictype/category-L-tests (Files): Likewise.
76204         * modules/unictype/category-Ll-tests (Files): Likewise.
76205         * modules/unictype/category-Lm-tests (Files): Likewise.
76206         * modules/unictype/category-Lo-tests (Files): Likewise.
76207         * modules/unictype/category-Lt-tests (Files): Likewise.
76208         * modules/unictype/category-Lu-tests (Files): Likewise.
76209         * modules/unictype/category-M-tests (Files): Likewise.
76210         * modules/unictype/category-Mc-tests (Files): Likewise.
76211         * modules/unictype/category-Me-tests (Files): Likewise.
76212         * modules/unictype/category-Mn-tests (Files): Likewise.
76213         * modules/unictype/category-N-tests (Files): Likewise.
76214         * modules/unictype/category-Nd-tests (Files): Likewise.
76215         * modules/unictype/category-Nl-tests (Files): Likewise.
76216         * modules/unictype/category-No-tests (Files): Likewise.
76217         * modules/unictype/category-P-tests (Files): Likewise.
76218         * modules/unictype/category-Pc-tests (Files): Likewise.
76219         * modules/unictype/category-Pd-tests (Files): Likewise.
76220         * modules/unictype/category-Pe-tests (Files): Likewise.
76221         * modules/unictype/category-Pf-tests (Files): Likewise.
76222         * modules/unictype/category-Pi-tests (Files): Likewise.
76223         * modules/unictype/category-Po-tests (Files): Likewise.
76224         * modules/unictype/category-Ps-tests (Files): Likewise.
76225         * modules/unictype/category-S-tests (Files): Likewise.
76226         * modules/unictype/category-Sc-tests (Files): Likewise.
76227         * modules/unictype/category-Sk-tests (Files): Likewise.
76228         * modules/unictype/category-Sm-tests (Files): Likewise.
76229         * modules/unictype/category-So-tests (Files): Likewise.
76230         * modules/unictype/category-Z-tests (Files): Likewise.
76231         * modules/unictype/category-Zl-tests (Files): Likewise.
76232         * modules/unictype/category-Zp-tests (Files): Likewise.
76233         * modules/unictype/category-Zs-tests (Files): Likewise.
76234         * modules/unictype/category-and-not-tests (Files): Likewise.
76235         * modules/unictype/category-and-tests (Files): Likewise.
76236         * modules/unictype/category-byname-tests (Files): Likewise.
76237         * modules/unictype/category-name-tests (Files): Likewise.
76238         * modules/unictype/category-none-tests (Files): Likewise.
76239         * modules/unictype/category-of-tests (Files): Likewise.
76240         * modules/unictype/category-or-tests (Files): Likewise.
76241         * modules/unictype/category-test-withtable-tests (Files): Likewise.
76242         * modules/unictype/combining-class-tests (Files): Likewise.
76243         * modules/unictype/ctype-alnum-tests (Files): Likewise.
76244         * modules/unictype/ctype-alpha-tests (Files): Likewise.
76245         * modules/unictype/ctype-blank-tests (Files): Likewise.
76246         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
76247         * modules/unictype/ctype-digit-tests (Files): Likewise.
76248         * modules/unictype/ctype-graph-tests (Files): Likewise.
76249         * modules/unictype/ctype-lower-tests (Files): Likewise.
76250         * modules/unictype/ctype-print-tests (Files): Likewise.
76251         * modules/unictype/ctype-punct-tests (Files): Likewise.
76252         * modules/unictype/ctype-space-tests (Files): Likewise.
76253         * modules/unictype/ctype-upper-tests (Files): Likewise.
76254         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
76255         * modules/unictype/decimal-digit-tests (Files): Likewise.
76256         * modules/unictype/digit-tests (Files): Likewise.
76257         * modules/unictype/mirror-tests (Files): Likewise.
76258         * modules/unictype/numeric-tests (Files): Likewise.
76259         * modules/unictype/property-alphabetic-tests (Files): Likewise.
76260         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
76261         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
76262         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
76263         Likewise.
76264         * modules/unictype/property-bidi-block-separator-tests (Files):
76265         Likewise.
76266         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
76267         Likewise.
76268         * modules/unictype/property-bidi-common-separator-tests (Files):
76269         Likewise.
76270         * modules/unictype/property-bidi-control-tests (Files): Likewise.
76271         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
76272         Likewise.
76273         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
76274         Likewise.
76275         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
76276         Likewise.
76277         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
76278         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
76279         Likewise.
76280         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
76281         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
76282         Likewise.
76283         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
76284         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
76285         * modules/unictype/property-bidi-segment-separator-tests (Files):
76286         Likewise.
76287         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
76288         * modules/unictype/property-byname-tests (Files): Likewise.
76289         * modules/unictype/property-combining-tests (Files): Likewise.
76290         * modules/unictype/property-composite-tests (Files): Likewise.
76291         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
76292         * modules/unictype/property-dash-tests (Files): Likewise.
76293         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
76294         * modules/unictype/property-default-ignorable-code-point-tests (Files):
76295         Likewise.
76296         * modules/unictype/property-deprecated-tests (Files): Likewise.
76297         * modules/unictype/property-diacritic-tests (Files): Likewise.
76298         * modules/unictype/property-extender-tests (Files): Likewise.
76299         * modules/unictype/property-format-control-tests (Files): Likewise.
76300         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
76301         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
76302         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
76303         * modules/unictype/property-hex-digit-tests (Files): Likewise.
76304         * modules/unictype/property-hyphen-tests (Files): Likewise.
76305         * modules/unictype/property-id-continue-tests (Files): Likewise.
76306         * modules/unictype/property-id-start-tests (Files): Likewise.
76307         * modules/unictype/property-ideographic-tests (Files): Likewise.
76308         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
76309         * modules/unictype/property-ids-trinary-operator-tests (Files):
76310         Likewise.
76311         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
76312         * modules/unictype/property-iso-control-tests (Files): Likewise.
76313         * modules/unictype/property-join-control-tests (Files): Likewise.
76314         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
76315         * modules/unictype/property-line-separator-tests (Files): Likewise.
76316         * modules/unictype/property-logical-order-exception-tests (Files):
76317         Likewise.
76318         * modules/unictype/property-lowercase-tests (Files): Likewise.
76319         * modules/unictype/property-math-tests (Files): Likewise.
76320         * modules/unictype/property-non-break-tests (Files): Likewise.
76321         * modules/unictype/property-not-a-character-tests (Files): Likewise.
76322         * modules/unictype/property-numeric-tests (Files): Likewise.
76323         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
76324         * modules/unictype/property-other-default-ignorable-code-point-tests
76325         (Files): Likewise.
76326         * modules/unictype/property-other-grapheme-extend-tests (Files):
76327         Likewise.
76328         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
76329         * modules/unictype/property-other-id-start-tests (Files): Likewise.
76330         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
76331         * modules/unictype/property-other-math-tests (Files): Likewise.
76332         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
76333         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
76334         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
76335         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
76336         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
76337         * modules/unictype/property-private-use-tests (Files): Likewise.
76338         * modules/unictype/property-punctuation-tests (Files): Likewise.
76339         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
76340         * modules/unictype/property-radical-tests (Files): Likewise.
76341         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
76342         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
76343         * modules/unictype/property-space-tests (Files): Likewise.
76344         * modules/unictype/property-terminal-punctuation-tests (Files):
76345         Likewise.
76346         * modules/unictype/property-test-tests (Files): Likewise.
76347         * modules/unictype/property-titlecase-tests (Files): Likewise.
76348         * modules/unictype/property-unassigned-code-value-tests (Files):
76349         Likewise.
76350         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
76351         * modules/unictype/property-uppercase-tests (Files): Likewise.
76352         * modules/unictype/property-variation-selector-tests (Files): Likewise.
76353         * modules/unictype/property-white-space-tests (Files): Likewise.
76354         * modules/unictype/property-xid-continue-tests (Files): Likewise.
76355         * modules/unictype/property-xid-start-tests (Files): Likewise.
76356         * modules/unictype/property-zero-width-tests (Files): Likewise.
76357         * modules/unictype/scripts-tests (Files): Likewise.
76358         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
76359         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
76360         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
76361         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
76362         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
76363         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
76364         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
76365         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
76366         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
76367         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
76368         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
76369         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
76370         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
76371         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
76372         * modules/uninorm/composition-tests (Files): Likewise.
76373         * modules/uninorm/decomposing-form-tests (Files): Likewise.
76374         * modules/uninorm/decomposition-tests (Files): Likewise.
76375         * modules/uninorm/filter-tests (Files): Likewise.
76376         * modules/uninorm/nfc-tests (Files): Likewise.
76377         * modules/uninorm/nfd-tests (Files): Likewise.
76378         * modules/uninorm/nfkc-tests (Files): Likewise.
76379         * modules/uninorm/nfkd-tests (Files): Likewise.
76380         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
76381         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
76382         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
76383         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
76384         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
76385         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
76386         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
76387         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
76388         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
76389         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
76390         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
76391         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
76392         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
76393         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
76394         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
76395         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
76396         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
76397         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
76398         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
76399         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
76400         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
76401         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
76402         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
76403         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
76404         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
76405         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
76406         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
76407         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
76408         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
76409         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
76410         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
76411         * modules/uniwidth/u8-width-tests (Files): Likewise.
76412         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
76413         * modules/uniwidth/u16-width-tests (Files): Likewise.
76414         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
76415         * modules/uniwidth/u32-width-tests (Files): Likewise.
76416         * modules/uniwidth/width-tests (Files): Likewise.
76417         * modules/unlink-tests (Files): Likewise.
76418         * modules/unsetenv-tests (Files): Likewise.
76419         * modules/usleep-tests (Files): Likewise.
76420         * modules/utimens-tests (Files): Likewise.
76421         * modules/utimensat-tests (Files): Likewise.
76422         * modules/vasnprintf-posix-tests (Files): Likewise.
76423         * modules/vasnprintf-tests (Files): Likewise.
76424         * modules/vasprintf-posix-tests (Files): Likewise.
76425         * modules/vasprintf-tests (Files): Likewise.
76426         * modules/vdprintf-posix-tests (Files): Likewise.
76427         * modules/vfprintf-posix-tests (Files): Likewise.
76428         * modules/vprintf-posix-tests (Files): Likewise.
76429         * modules/vsnprintf-posix-tests (Files): Likewise.
76430         * modules/vsnprintf-tests (Files): Likewise.
76431         * modules/vsprintf-posix-tests (Files): Likewise.
76432         * modules/wcrtomb-tests (Files): Likewise.
76433         * modules/wcsnrtombs-tests (Files): Likewise.
76434         * modules/wcsrtombs-tests (Files): Likewise.
76435         * modules/wctype-tests (Files): Likewise.
76436         * modules/wcwidth-tests (Files): Likewise.
76437         * modules/xmemdup0-tests (Files): Likewise.
76438         * modules/xprintf-posix-tests (Files): Likewise.
76439         * modules/xvasprintf-tests (Files): Likewise.
76441 2009-12-24  Eric Blake  <ebb9@byu.net>
76443         test-nanosleep: fix typo
76444         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76445         patch.
76446         Reported by Bruno Haible.
76448 2009-12-24  Bruno Haible  <bruno@clisp.org>
76450         Reduce namespace pollution on glibc systems.
76451         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76452         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76453         systems.
76454         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76455         <getopt.h> on glibc systems.
76456         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76457         systems.
76458         * lib/fcntl.c: Include <unistd.h> here instead.
76460 2009-12-24  Bruno Haible  <bruno@clisp.org>
76462         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76464 2009-12-24  Eric Blake  <ebb9@byu.net>
76466         tests: add signature checks
76467         * tests/signature.h (SIGNATURE_CHECK): New file.
76468         * modules/atexit-tests (Files): Use it.
76469         * modules/btowc-tests (Files): Likewise.
76470         * modules/canonicalize-lgpl-tests (Files): Likewise.
76471         * modules/ceilf-tests (Files): Likewise.
76472         * modules/ceill-tests (Files): Likewise.
76473         * modules/chown-tests (Files): Likewise.
76474         * modules/dprintf-posix-tests (Files): Likewise.
76475         * modules/dup2-tests (Files): Likewise.
76476         * modules/dup3-tests (Files): Likewise.
76477         * modules/duplocale-tests (Files): Likewise.
76478         * modules/fchdir-tests (Files): Likewise.
76479         * modules/fcntl-tests (Files): Likewise.
76480         * modules/fdopendir-tests (Files): Likewise.
76481         * modules/fflush-tests (Files): Likewise.
76482         * modules/flock-tests (Files): Likewise.
76483         * modules/floorf-tests (Files): Likewise.
76484         * modules/floorl-tests (Files): Likewise.
76485         * modules/fnmatch-tests (Files): Likewise.
76486         * modules/fopen-tests (Files): Likewise.
76487         * modules/fprintf-posix-tests (Files): Likewise.
76488         * modules/freopen-tests (Files): Likewise.
76489         * modules/frexp-nolibm-tests (Files): Likewise.
76490         * modules/frexp-tests (Files): Likewise.
76491         * modules/frexpl-nolibm-tests (Files): Likewise.
76492         * modules/frexpl-tests (Files): Likewise.
76493         * modules/fseek-tests (Files): Likewise.
76494         * modules/fseeko-tests (Files): Likewise.
76495         * modules/fsync-tests (Files): Likewise.
76496         * modules/ftell-tests (Files): Likewise.
76497         * modules/ftello-tests (Files): Likewise.
76498         * modules/futimens-tests (Files): Likewise.
76499         * modules/getaddrinfo-tests (Files): Likewise.
76500         * modules/getcwd-tests (Files): Likewise.
76501         * modules/getdelim-tests (Files): Likewise.
76502         * modules/getdtablesize-tests (Files): Likewise.
76503         * modules/getgroups-tests (Files): Likewise.
76504         * modules/gethostname-tests (Files): Likewise.
76505         * modules/getline-tests (Files): Likewise.
76506         * modules/getopt-posix-tests (Files): Likewise.
76507         * modules/gettimeofday-tests (Files): Likewise.
76508         * modules/glob-tests (Files): Likewise.
76509         * modules/iconv-tests (Files): Likewise.
76510         * modules/inet_ntop-tests (Files): Likewise.
76511         * modules/inet_pton-tests (Files): Likewise.
76512         * modules/isblank-tests (Files): Likewise.
76513         * modules/lchown-tests (Files): Likewise.
76514         * modules/ldexpl-tests (Files): Likewise.
76515         * modules/link-tests (Files): Likewise.
76516         * modules/linkat-tests (Files): Likewise.
76517         * modules/lseek-tests (Files): Likewise.
76518         * modules/lstat-tests (Files): Likewise.
76519         * modules/mbrtowc-tests (Files): Likewise.
76520         * modules/mbsinit-tests (Files): Likewise.
76521         * modules/mbsnrtowcs-tests (Files): Likewise.
76522         * modules/mbsrtowcs-tests (Files): Likewise.
76523         * modules/memchr-tests (Files): Likewise.
76524         * modules/memcmp-tests (Files): Likewise.
76525         * modules/memmem-tests (Files): Likewise.
76526         * modules/memrchr-tests (Files): Likewise.
76527         * modules/mkdir-tests (Files): Likewise.
76528         * modules/mkfifo-tests (Files): Likewise.
76529         * modules/mkfifoat-tests (Files): Likewise.
76530         * modules/mknod-tests (Files): Likewise.
76531         * modules/nanosleep-tests (Files): Likewise.
76532         * modules/nl_langinfo-tests (Files): Likewise.
76533         * modules/obstack-printf-tests (Files): Likewise.
76534         * modules/open-tests (Files): Likewise.
76535         * modules/openat-tests (Files): Likewise.
76536         * modules/perror-tests (Files): Likewise.
76537         * modules/pipe2-tests (Files): Likewise.
76538         * modules/poll-tests (Files): Likewise.
76539         * modules/popen-tests (Files): Likewise.
76540         * modules/posix_spawn-tests (Files): Likewise.
76541         * modules/posix_spawnp-tests (Files): Likewise.
76542         * modules/pread-tests (Files): Likewise.
76543         * modules/printf-posix-tests (Files): Likewise.
76544         * modules/pty-tests (Files): Likewise.
76545         * modules/random_r-tests (Files): Likewise.
76546         * modules/rawmemchr-tests (Files): Likewise.
76547         * modules/readlink-tests (Files): Likewise.
76548         * modules/remove-tests (Files): Likewise.
76549         * modules/rename-tests (Files): Likewise.
76550         * modules/renameat-tests (Files): Likewise.
76551         * modules/rmdir-tests (Files): Likewise.
76552         * modules/round-tests (Files): Likewise.
76553         * modules/roundf-tests (Files): Likewise.
76554         * modules/roundl-tests (Files): Likewise.
76555         * modules/select-tests (Files): Likewise.
76556         * modules/setenv-tests (Files): Likewise.
76557         * modules/sigaction-tests (Files): Likewise.
76558         * modules/sleep-tests (Files): Likewise.
76559         * modules/snprintf-posix-tests (Files): Likewise.
76560         * modules/snprintf-tests (Files): Likewise.
76561         * modules/sprintf-posix-tests (Files): Likewise.
76562         * modules/stat-tests (Files): Likewise.
76563         * modules/strcasestr-tests (Files): Likewise.
76564         * modules/strchrnul-tests (Files): Likewise.
76565         * modules/strerror-tests (Files): Likewise.
76566         * modules/strsignal-tests (Files): Likewise.
76567         * modules/strstr-tests (Files): Likewise.
76568         * modules/strtod-tests (Files): Likewise.
76569         * modules/strverscmp-tests (Files): Likewise.
76570         * modules/symlink-tests (Files): Likewise.
76571         * modules/symlinkat-tests (Files): Likewise.
76572         * modules/times-tests (Files): Likewise.
76573         * modules/trunc-tests (Files): Likewise.
76574         * modules/truncf-tests (Files): Likewise.
76575         * modules/truncl-tests (Files): Likewise.
76576         * modules/tsearch-tests (Files): Likewise.
76577         * modules/uname-tests (Files): Likewise.
76578         * modules/unlink-tests (Files): Likewise.
76579         * modules/unsetenv-tests (Files): Likewise.
76580         * modules/usleep-tests (Files): Likewise.
76581         * modules/utimensat-tests (Files): Likewise.
76582         * modules/vasprintf-tests (Files): Likewise.
76583         * modules/vdprintf-posix-tests (Files): Likewise.
76584         * modules/vfprintf-posix-tests (Files): Likewise.
76585         * modules/vprintf-posix-tests (Files): Likewise.
76586         * modules/vsnprintf-posix-tests (Files): Likewise.
76587         * modules/vsnprintf-tests (Files): Likewise.
76588         * modules/vsprintf-posix-tests (Files): Likewise.
76589         * modules/wcrtomb-tests (Files): Likewise.
76590         * modules/wcsnrtombs-tests (Files): Likewise.
76591         * modules/wcsrtombs-tests (Files): Likewise.
76592         * modules/wcwidth-tests (Files): Likewise.
76593         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76594         * tests/test-isinf.c (isinf): Likewise.
76595         * tests/test-isnan.c (isnan): Likewise.
76596         * tests/test-signbit.c (signbit): Likewise.
76597         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76598         declaration, either as macro or with correct signature.
76599         (select): Ensure function under test is declared with correct
76600         signature in correct header.
76601         * tests/test-atexit.c (atexit): Likewise.
76602         * tests/test-btowc.c (btowc): Likewise.
76603         * tests/test-canonicalize-lgpl.c (realpath)
76604         (canonicalize_file_name): Likewise.
76605         * tests/test-ceilf1.c (ceilf): Likewise.
76606         * tests/test-ceill.c (ceill): Likewise.
76607         * tests/test-chown.c (chown): Likewise.
76608         * tests/test-dprintf-posix.c (dprintf): Likewise.
76609         * tests/test-dup2.c (dup2): Likewise.
76610         * tests/test-dup3.c (dup3): Likewise.
76611         * tests/test-duplocale.c (duplocale): Likewise.
76612         * tests/test-fchdir.c (fchdir): Likewise.
76613         * tests/test-fchownat.c (fchownat): Likewise.
76614         * tests/test-fcntl.c (fcntl): Likewise.
76615         * tests/test-fdopendir.c (fdopendir): Likewise.
76616         * tests/test-fflush.c (fflush): Likewise.
76617         * tests/test-flock.c (flock): Likewise.
76618         * tests/test-floorf1.c (floorf): Likewise.
76619         * tests/test-floorl.c (floorl): Likewise.
76620         * tests/test-fnmatch.c (fnmatch): Likewise.
76621         * tests/test-fopen.c (fopen): Likewise.
76622         * tests/test-fprintf-posix.c (fprintf): Likewise.
76623         * tests/test-freopen.c (freopen): Likewise.
76624         * tests/test-frexp.c (frexp): Likewise.
76625         * tests/test-frexpl.c (frexpl): Likewise.
76626         * tests/test-fseek.c (fseek): Likewise.
76627         * tests/test-fseeko.c (fseeko): Likewise.
76628         * tests/test-fstatat.c (fstatat): Likewise.
76629         * tests/test-fsync.c (fsync): Likewise.
76630         * tests/test-ftell.c (ftell): Likewise.
76631         * tests/test-ftello.c (ftello): Likewise.
76632         * tests/test-futimens.c (futimens): Likewise.
76633         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76634         (gai_strerror): Likewise.
76635         * tests/test-getcwd.c (getcwd): Likewise.
76636         * tests/test-getdelim.c (getdelim): Likewise.
76637         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76638         * tests/test-getgroups.c (getgroups): Likewise.
76639         * tests/test-gethostname.c (gethostname): Likewise.
76640         * tests/test-getline.c (getline): Likewise.
76641         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76642         Likewise.
76643         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76644         * tests/test-glob.c (glob, globfree): Likewise.
76645         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76646         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76647         * tests/test-inet_pton.c (inet_pton): Likewise.
76648         * tests/test-isblank.c (isblank): Likewise.
76649         * tests/test-lchown.c (lchown): Likewise.
76650         * tests/test-ldexpl.c (ldexpl): Likewise.
76651         * tests/test-link.c (link): Likewise.
76652         * tests/test-linkat.c (linkat): Likewise.
76653         * tests/test-lseek.c (lseek): Likewise.
76654         * tests/test-lstat.c (lstat): Likewise.
76655         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76656         * tests/test-mbsinit.c (mbsinit): Likewise.
76657         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76658         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76659         * tests/test-memchr.c (memchr): Likewise.
76660         * tests/test-memcmp.c (memcmp): Likewise.
76661         * tests/test-memmem.c (memmem): Likewise.
76662         * tests/test-memrchr.c (memrchr): Likewise.
76663         * tests/test-mkdir.c (mkdir): Likewise.
76664         * tests/test-mkdirat.c (mkdirat): Likewise.
76665         * tests/test-mkfifo.c (mkfifo): Likewise.
76666         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76667         * tests/test-mknod.c (mknod): Likewise.
76668         * tests/test-nanosleep.c (nanosleep): Likewise.
76669         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76670         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76671         Likewise.
76672         * tests/test-open.c (open): Likewise.
76673         * tests/test-openat.c (openat): Likewise.
76674         * tests/test-perror.c (perror): Likewise.
76675         * tests/test-pipe2.c (pipe2): Likewise.
76676         * tests/test-poll.c (poll): Likewise.
76677         * tests/test-popen.c (popen, pclose): Likewise.
76678         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76679         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76680         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76681         (posix_spawn_file_actions_destroy)
76682         (posix_spawn_file_actions_addclose)
76683         (posix_spawn_file_actions_addopen)
76684         (posix_spawn_file_actions_adddup2): Likewise.
76685         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76686         * tests/test-pread.c (pread): Likewise.
76687         * tests/test-printf-posix.c (printf): Likewise.
76688         * tests/test-pty.c (openpty, forkpty): Likewise.
76689         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76690         (random_r): Likewise.
76691         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76692         * tests/test-readlink.c (readlink): Likewise.
76693         * tests/test-remove.c (remove): Likewise.
76694         * tests/test-rename.c (rename): Likewise.
76695         * tests/test-renameat.c (renameat): Likewise.
76696         * tests/test-rmdir.c (rmdir): Likewise.
76697         * tests/test-round1.c (round): Likewise.
76698         * tests/test-roundf1.c (roundf): Likewise.
76699         * tests/test-roundl.c (roundl): Likewise.
76700         * tests/test-setenv.c (setenv): Likewise.
76701         * tests/test-sigaction.c (sigaction): Likewise.
76702         * tests/test-sleep.c (sleep): Likewise.
76703         * tests/test-snprintf.c (snprintf): Likewise.
76704         * tests/test-sprintf-posix.c (sprintf): Likewise.
76705         * tests/test-stat.c (stat): Likewise.
76706         * tests/test-stpncpy.c (stpncpy): Likewise.
76707         * tests/test-strcasestr.c (strcasestr): Likewise.
76708         * tests/test-strchrnul.c (strchrnul): Likewise.
76709         * tests/test-strerror.c (strerror): Likewise.
76710         * tests/test-strsignal.c (strsignal): Likewise.
76711         * tests/test-strstr.c (strstr): Likewise.
76712         * tests/test-strtod.c (strtod): Likewise.
76713         * tests/test-strverscmp.c (strverscmp): Likewise.
76714         * tests/test-symlink.c (symlink): Likewise.
76715         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76716         * tests/test-times.c (times): Likewise.
76717         * tests/test-trunc1.c (trunc): Likewise.
76718         * tests/test-truncf1.c (truncf): Likewise.
76719         * tests/test-truncl.c (truncl): Likewise.
76720         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76721         Likewise.
76722         * tests/test-uname.c (uname): Likewise.
76723         * tests/test-unlink.c (unlink): Likewise.
76724         * tests/test-unlinkat.c (unlinkat): Likewise.
76725         * tests/test-unsetenv.c (unsetenv): Likewise.
76726         * tests/test-usleep.c (usleep): Likewise.
76727         * tests/test-utimensat.c (utimensat): Likewise.
76728         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76729         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76730         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76731         * tests/test-vprintf-posix.c (vprintf): Likewise.
76732         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76733         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76734         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76735         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76736         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76737         * tests/test-wcwidth.c (wcwidth): Likewise.
76739         build: pull in conditional headers during GNULIB_POSIXCHECK
76740         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76741         definitions from any conditionally-included headers.
76742         * lib/stdlib.in.h (includes): Likewise.
76743         * lib/unistd.in.h (includes): Likewise.
76745 2009-12-24  Bruno Haible  <bruno@clisp.org>
76747         * tests/test-argv-iter.c: Include header file being tested immediately
76748         after config.h.
76749         * tests/test-base64.c: Likewise.
76750         * tests/test-flock.c: Likewise.
76751         * tests/test-fsync.c: Likewise.
76752         * tests/test-getdate.c: Likewise.
76753         * tests/test-getndelim2.c: Likewise.
76754         * tests/test-isfinite.c: Likewise.
76755         * tests/test-isinf.c: Likewise.
76756         * tests/test-strerror.c: Likewise.
76757         * tests/test-strsignal.c: Likewise.
76759 2009-12-23  Eric Blake  <ebb9@byu.net>
76761         unistd: work around cygwin bug
76762         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76763         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76764         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76766 2009-12-23  Bruno Haible  <bruno@clisp.org>
76768         localename: More tests.
76769         * tests/test-localename.c (SIZEOF): New macro.
76770         (categories): New variable.
76771         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76772         test_locale_name_default): Add test w.r.t. thread locale.
76773         (test_locale_name_thread): New function.
76774         (main): Invoke it.
76776         localename: Make aware of thread locale.
76777         * lib/localename.h (gl_locale_name_thread): New declaration.
76778         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76779         behaviour with respect to thread locale.
76780         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76781         <langinfo.h>, glthread/lock.h.
76782         (SIZE_BITS): New macro.
76783         (string_hash): New function.
76784         (struct hash_node): New type.
76785         (HASH_TABLE_SIZE): New macro.
76786         (struniq_hash_table, struniq_lock): New variables.
76787         (struniq): New function.
76788         (gl_locale_name_thread): New function.
76789         (gl_locale_name): Invoke it.
76790         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76791         * modules/localename (Depends-on): Add lock.
76792         Reported by Mike Gran <spk121@yahoo.com>.
76794 2009-12-23  Eric Blake  <ebb9@byu.net>
76796         va-args: new module
76797         * modules/va-args: New file.
76798         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76799         * MODULES.html.sh (Core language properties): Mention it.
76801         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76802         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76803         named alias for __attribute__((__unused__)).
76804         * lib/chown.c: Update client.
76805         * lib/fchmodat.c: Likewise.
76806         * lib/fts.c: Likewise.
76807         * lib/getdate.y: Likewise.
76808         * lib/getgroups.c: Likewise.
76809         * lib/getopt.c: Likewise.
76810         * lib/getugroups.c: Likewise.
76811         * lib/mkdir.c: Likewise.
76812         * lib/mkfifo.c: Likewise.
76813         * lib/mkfifoat.c: Likewise.
76814         * lib/mknod.c: Likewise.
76815         * lib/mknodat.c: Likewise.
76816         * lib/readlink.c: Likewise.
76817         * lib/se-context.in.h: Likewise.
76818         * lib/se-selinux.in.h: Likewise.
76819         * lib/sockets.c: Likewise.
76820         * lib/symlink.c: Likewise.
76821         * lib/symlinkat.c: Likewise.
76822         * lib/unicodeio.c: Likewise.
76823         * lib/unistr.h: Likewise.
76824         * tests/test-areadlink.c: Likewise.
76825         * tests/test-areadlinkat.c: Likewise.
76826         * tests/test-filenamecat.c: Likewise.
76827         * tests/test-fseeko.c: Likewise.
76828         * tests/test-ftello.c: Likewise.
76829         * tests/test-getdate.c: Likewise.
76830         * tests/test-getgroups.c: Likewise.
76831         * tests/test-gethostname.c: Likewise.
76832         * tests/test-quotearg.c: Likewise.
76833         * tests/test-version-etc.c: Likewise.
76834         * tests/test-xalloc-die.c: Likewise.
76835         * tests/test-xfprintf-posix.c: Likewise.
76836         * tests/test-xprintf-posix.c: Likewise.
76837         * tests/test-xvasprintf.c: Likewise.
76839         tests: avoid compiler warnings
76840         * tests/test-fcntl.c (main): Delete unused parameters.
76841         * tests/test-freopen-safer.c (main): Likewise.
76842         * tests/test-xalloc-die.c (main): Mark unused parameters.
76843         * tests/test-fseeko.c (main): Likewise.
76844         * tests/test-ftello.c (main): Likewise.
76845         * tests/test-nanosleep.c (main): Avoid declaration warning.
76846         * tests/test-sleep.c (main): Likewise.
76847         * tests/test-unsetenv.c (main): Silence warning about string
76848         literal.
76849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76851 2009-12-23  Bruno Haible  <bruno@clisp.org>
76853         * tests/test-localename.c (test_locale_name): New function, extracted
76854         from main. Also test mixed situations.
76855         (test_locale_name_posix, test_locale_name_environ,
76856         test_locale_name_default): New functions.
76857         (main): Invoke them all.
76858         * modules/localename-tests (configure.ac): Test for newlocale.
76860 2009-12-23  Bruno Haible  <bruno@clisp.org>
76862         unistd: Ensure getcwd gets declared before being overridden.
76863         * lib/unistd.in.h: Conditionally include <io.h>.
76865 2009-12-22  Bruno Haible  <bruno@clisp.org>
76867         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76868         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76869         (gl_WCHAR_H): Invoke it.
76870         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76871         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76872         Reported by Karl Berry <karl@freefriends.org>.
76874 2009-12-22  Eric Blake  <ebb9@byu.net>
76876         math, unistd: avoid redundant includes
76877         * lib/math.in.h (isnan): No need to re-include <math.h>.
76878         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76880         getsubopt: work around cygwin bug
76881         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76882         avoid conflicting with system getsubopt.
76883         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76884         bug.
76886         getopt: synchronize from glibc
76887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76888         parameter order.  Adjust all callers.
76889         (_getopt_internal_r, main): Adjust quoting in error messages.
76890         Drop considerations for outdated POSIX 1003.2 error message.
76891         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76892         callers.
76893         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76895         test-getopt: test stderr behavior
76896         * modules/getopt-posix-tests (Depends-on): Add dup2.
76897         * tests/test-getopt.c (ASSERT): Avoid stderr.
76898         (main): Move stderr to a temporary file.
76899         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76900         Instead, add parameter to inform caller if output occurred.
76901         (test_getopt): Adjust all existing tests to expect silence, and
76902         add new tests of leading ":".
76903         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76904         glibc shortcomings with leading "-:" or "+:" in optstring.
76905         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76906         Likewise.
76907         * doc/posix-functions/getopt.texi (getopt): Likewise.
76909         test-getopt: enhance test
76910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76911         supports optind=0.
76912         * tests/test-getopt.c (OPTIND_MIN): Move...
76913         * tests/test-getopt.h (OPTIND_MIN): ...here.
76914         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76915         Require that optind=0 works, since modern BSD supports it in
76916         addition to optreset, and since coreutils expects it.
76917         (test_getopt_long_only): New test.
76918         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76919         glibc shortcomings with 'W;', and enforcement of optind=0.
76920         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76921         Likewise.
76923 2009-12-21  Bruno Haible  <bruno@clisp.org>
76925         localename: Improvements for MacOS X and Cygwin.
76926         * lib/localename.h (gl_locale_name_environ): New declaration.
76927         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76928         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76929         (gl_locale_name_posix): Invoke it.
76930         (gl_locale_name_default): Add comments. Use Windows native API also on
76931         Cygwin.
76933 2009-12-21  Bruno Haible  <bruno@clisp.org>
76935         Update list of Win32 locale ids.
76936         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76937         (LANG_SAMI): Renamed from LANG_SAAMI.
76938         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76939         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76940         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76941         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76942         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76943         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76944         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76945         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76946         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76947         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76948         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76949         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76950         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76951         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76952         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76953         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76954         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76955         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76956         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76957         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76958         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76959         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76960         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76961         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76962         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76963         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76964         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76965         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76966         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76967         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76968         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76969         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76970         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76971         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76972         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76973         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76974         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76975         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76976         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76977         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76978         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76979         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76980         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76981         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76982         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76983         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76984         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76985         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76986         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76987         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76988         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76989         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76990         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76991         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76992         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76993         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76994         Add more languages and countries for Sami, Sorbian. Add more countries
76995         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76996         for Pashto. Change country for Syriac, Tswana.
76998 2009-12-21  Eric Blake  <ebb9@byu.net>
77000         test-utimens: avoid spurious failure
77001         * tests/test-chown.h (nap): Factor...
77002         * tests/nap.h: ...into new file.
77003         * tests/test-lchown.h (nap): Avoid duplication.
77004         * tests/test-utimens-common.h (nap): Use shared implementation,
77005         necessary on file systems with 1-second resolution.
77006         * modules/chown-tests (Files): Include new file.
77007         * modules/fdutimensat-tests (Files): Likewise.
77008         * modules/futimens-tests (Files): Likewise.
77009         * modules/lchown-tests (Files): Likewise.
77010         * modules/openat-tests (Files): Likewise.
77011         * modules/utimens-tests (Files): Likewise.
77012         * modules/utimensat-tests (Files): Likewise.
77014 2009-12-19  Eric Blake  <ebb9@byu.net>
77016         futimens, utimensat: work around Linux bug
77017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
77018         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77019         * lib/utimensat.c (rpl_utimensat): Work around it.
77020         * lib/futimens.c (rpl_futimens): Adjust comment.
77022         utimens: work around Linux ctime bug
77023         * lib/utimens.c (detect_ctime_bug): New helper function.
77024         (update_timespec): Differentiate between workaround needed for
77025         this bug vs. what is needed for systems that lack utimensat.
77026         (fdutimens, lutimens): Work around bug.
77028         utimens: check for ctime update
77029         * tests/test-utimens-common.h (check_ctime): Define.
77030         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
77031         * tests/test-futimens.h (test_futimens): Likewise.
77032         * tests/test-lutimens.h (test_lutimens): Likewise.
77033         * doc/posix-functions/futimens.texi (futimens): Document the bug.
77034         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77036 2009-12-19  Bruno Haible  <bruno@clisp.org>
77038         dprintf-posix: Check against memory leak fixed on 2009-12-15.
77039         * tests/test-dprintf-posix2.sh: New file.
77040         * tests/test-dprintf-posix2.c: New file.
77041         * modules/dprintf-posix-tests (Files): Add them.
77042         (configure.ac): Check for getrlimit and setrlimit.
77043         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77045 2009-12-19  Bruno Haible  <bruno@clisp.org>
77047         fprintf-posix: Check against memory leak fixed on 2009-12-15.
77048         * tests/test-fprintf-posix3.sh: New file.
77049         * tests/test-fprintf-posix3.c: New file.
77050         * modules/fprintf-posix-tests (Files): Add them.
77051         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77053 2009-12-19  Eric Blake  <ebb9@byu.net>
77055         dirfd: fix prototype
77056         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
77057         * lib/dirfd.c (dirfd): Likewise.
77059         canonicalize: reduce memory usage
77060         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
77061         allocation to size.
77062         Reported by Solar Designer <solar@openwall.com>.
77064 2009-12-19  Bruno Haible  <bruno@clisp.org>
77066         New module attribute 'Applicability'.
77067         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
77068         * gnulib-tool: New option --extract-applicability.
77069         (func_usage): Document it.
77070         (sed_extract_prog): Recognize it.
77071         (func_get_applicability): New function.
77072         (func_import): Generalize handling of 'link-warning' module.
77073         * modules/link-warning (Applicability): New section.
77074         * modules/arg-nonnull (Applicability): New section.
77075         Repoted by Simon Josefsson <simon@josefsson.org>.
77077 2009-12-19  Bruno Haible  <bruno@clisp.org>
77079         fflush: tweak
77080         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
77081         * lib/fseeko.c (rpl_fseeko): Likewise.
77083 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
77085         * lib/gl_list.h: Fix typo in comment.
77087 2009-12-16  Eric Blake  <ebb9@byu.net>
77089         fcntl: use to simplify other modules
77090         * modules/cloexec (Depends-on): Add fcntl.
77091         * modules/fchdir (Depends-on): Likewise.
77092         * modules/fd-safer-flag (Depends-on): Likewise.
77093         * modules/unistd-safer (Depends-on): Likewise.
77094         * modules/dup3 (configure.ac): Set module indicator.
77095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
77096         missing.
77097         * lib/fchdir.c (_gl_register_dup): Fix comment.
77098         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
77099         * lib/dup-safer.c (dup_safer): Likewise.
77100         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
77101         * lib/dup3.c (dup3): Likewise.
77102         * tests/test-fchdir.c (main): Enhance test.
77103         Fixes a dup_cloexec bug reported by Ondřej Vašík.
77105         fcntl: port portions of fcntl to mingw
77106         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
77107         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
77108         replacement for mingw.
77109         * modules/fcntl (Description): Update.
77110         (Depends-on): Add dup2.
77111         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
77112         * modules/fcntl-h (Makefile.am): Substitute it.
77113         * lib/fcntl.in.h (fcntl): Update declaration.
77114         (F_DUPFD, F_GETFD): New macros, when needed.
77115         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77116         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
77117         * tests/test-fcntl.c (check_flags, main): Enhance test for items
77118         we now guarantee.
77120         fcntl: work around cygwin bug in F_DUPFD
77121         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
77122         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
77123         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
77124         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
77125         * doc/posix-functions/fcntl.texi (fcntl): Document it.
77127         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
77128         * modules/fcntl (Files): List new files.
77129         (configure.ac): Run a test.
77130         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
77131         * lib/fcntl.c (rpl_fcntl): Likewise.
77132         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
77133         (gl_FCNTL_H): Always replace fcntl.h.
77134         * modules/fcntl-h (Makefile.am): Substitute witnesses.
77135         * lib/fcntl.in.h (fcntl): Declare replacement.
77136         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
77137         needed, plus a witness.
77138         * doc/posix-functions/fcntl.texi (fcntl): Document this.
77139         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77140         * tests/test-fcntl.c: New file.
77141         * modules/fcntl-tests: Likewise.
77143         binary-io: avoid potential compilation warning
77144         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
77145         directives.
77147         fflush: avoid compilation error on NetBSD
77148         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
77149         between off_t and fpos_t, since the latter is sometimes a struct.
77150         * lib/fseeko.c (rpl_fseeko): Likewise.
77151         Reported by Alexander Nasonov <alnsn@yandex.ru>.
77153 2009-12-15  Eric Blake  <ebb9@byu.net>
77155         fcntl-h, stdio, sys_ioctl: fix declarations
77156         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
77157         function must not take arguments.
77158         * lib/sys_ioctl.in.h (ioctl): Likewise.
77159         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
77160         (open): Add a link warning.
77162 2009-12-15  Jim Meyering  <meyering@redhat.com>
77164         areadlink, areadlink-with-size: relax license to LGPLv2+
77165         * modules/areadlink (License): Relax to LGPLv2+.
77166         * modules/areadlink-with-size (License): Likewise.
77168 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
77169             Bruno Haible  <bruno@clisp.org>
77171         *printf: Fix memory leak.
77172         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
77173         * lib/vfprintf.c (vfprintf): Likewise.
77174         * lib/dprintf.c (dprintf): Likewise.
77175         * lib/vdprintf.c (vdprintf): Likewise.
77177 2009-12-14  Eric Blake  <ebb9@byu.net>
77179         accept4: adjust module dependencies
77180         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
77182         utimens: one more try at avoiding compiler warning
77183         * lib/utimens.c (lutimens): Lower scope of result.
77185 2009-12-13  Bruno Haible  <bruno@clisp.org>
77187         Move the malloc checking from module 'list' to new module 'xlist'.
77188         * modules/xlist: New file.
77189         * lib/gl_xlist.h: New file.
77190         * lib/gl_xlist.c: New file.
77191         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
77192         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
77193         gl_list_add_last, gl_list_add_before, gl_list_add_after,
77194         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
77195         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
77196         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
77197         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
77198         gl_sortedlist_nx_add): New declarations.
77199         (struct gl_list_implementation): Rename and change methods accordingly.
77200         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
77201         (gl_list_nx_create): Renamed from gl_list_create.
77202         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77203         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77204         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77205         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77206         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77207         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77208         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77209         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77210         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
77211         gl_list_create_empty.
77212         (gl_list_nx_create): Renamed from gl_list_create.
77213         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77214         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77215         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77216         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77217         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77218         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77219         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77220         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77221         * lib/gl_array_list.c: Don't include xalloc.h.
77222         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
77223         NULL upon out-of-memory.
77224         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
77225         out-of-memory.
77226         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
77227         Change return type to 'int'.
77228         (gl_array_nx_set_at): Renamed from gl_array_set_at.
77229         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77230         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
77231         upon out-of-memory.
77232         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
77233         upon out-of-memory.
77234         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
77235         upon out-of-memory.
77236         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
77237         upon out-of-memory.
77238         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
77239         out-of-memory.
77240         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
77241         Update.
77242         (gl_array_list_implementation): Update.
77243         * lib/gl_carray_list.c: Don't include xalloc.h.
77244         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
77245         Return NULL upon out-of-memory.
77246         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
77247         out-of-memory.
77248         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
77249         Change return type to 'int'.
77250         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
77251         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77252         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
77253         upon out-of-memory.
77254         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
77255         upon out-of-memory.
77256         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
77257         out-of-memory.
77258         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
77259         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
77260         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
77261         Update.
77262         (gl_carray_list_implementation): Update.
77263         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
77264         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
77265         gl_linked_create_empty. Return NULL upon out-of-memory.
77266         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
77267         out-of-memory.
77268         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
77269         Change return type to 'int'. Return -1 upon out-of-memory.
77270         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
77271         out-of-memory.
77272         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
77273         upon out-of-memory.
77274         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
77275         upon out-of-memory.
77276         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
77277         NULL upon out-of-memory.
77278         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
77279         upon out-of-memory.
77280         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
77281         out-of-memory.
77282         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
77283         Update.
77284         * lib/gl_linked_list.c: Don't include xalloc.h.
77285         (gl_linked_list_implementation): Update.
77286         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
77287         (add_to_bucket): Change return type to 'int'.
77288         (gl_linkedhash_list_implementation): Update.
77289         * lib/gl_anytree_list1.h (free_subtree): New function.
77290         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
77291         gl_tree_create_empty. Return NULL upon out-of-memory.
77292         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
77293         Change return type to 'int'. Return -1 upon out-of-memory.
77294         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
77295         out-of-memory.
77296         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
77297         (gl_tree_remove_node): New function, moved here from
77298         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
77299         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
77300         Update.
77301         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
77302         malloc, not xmalloc. Return NULL upon out-of-memory.
77303         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77304         out-of-memory.
77305         (gl_tree_remove_node_from_tree): New function, extracted from
77306         gl_tree_remove_node.
77307         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77308         upon out-of-memory.
77309         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77310         out-of-memory.
77311         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77312         upon out-of-memory.
77313         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77314         upon out-of-memory.
77315         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77316         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
77317         not xmalloc. Return NULL upon out-of-memory.
77318         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77319         out-of-memory.
77320         (gl_tree_remove_node_from_tree): New function, extracted from
77321         gl_tree_remove_node.
77322         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77323         upon out-of-memory.
77324         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77325         out-of-memory.
77326         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77327         upon out-of-memory.
77328         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77329         upon out-of-memory.
77330         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77331         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
77332         gl_anytree_list1.h before gl_anyavltree_list2.h.
77333         (gl_avltree_list_implementation): Update.
77334         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
77335         gl_anytree_list1.h before gl_anyavltree_list2.h.
77336         (gl_rbtree_list_implementation): Update.
77337         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
77338         Change return type to 'int'. Return -1 upon out-of-memory. Use
77339         __builtin_expect.
77340         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
77341         (gl_avltreehash_list_implementation): Update.
77342         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
77343         (gl_rbtreehash_list_implementation): Update.
77344         * modules/array-list (Depends-on): Remove xalloc.
77345         * modules/carray-list (Depends-on): Likewise.
77346         * modules/linked-list (Depends-on): Likewise.
77347         * modules/linkedhash-list (Depends-on): Likewise.
77348         * modules/avltree-list (Depends-on): Likewise.
77349         * modules/rbtree-list (Depends-on): Likewise.
77350         * modules/avltreehash-list (Depends-on): Likewise.
77351         * modules/rbtreehash-list (Depends-on): Likewise.
77353         * modules/xsublist: New file.
77354         * lib/gl_xsublist.h: New file.
77355         * lib/gl_xsublist.c: New file.
77356         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
77357         (gl_sublist_nx_create): New declaration.
77358         * lib/gl_sublist.c: Don't include xalloc.h.
77359         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
77360         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
77361         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
77362         Change return type to 'int'. Return -1 upon out-of-memory.
77363         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
77364         upon out-of-memory.
77365         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
77366         NULL upon out-of-memory.
77367         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
77368         upon out-of-memory.
77369         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
77370         NULL upon out-of-memory.
77371         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
77372         NULL upon out-of-memory.
77373         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
77374         upon out-of-memory.
77375         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
77376         (gl_sublist_list_implementation): Update.
77377         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
77378         upon out-of-memory.
77379         * modules/sublist (Depends-on): Remove xalloc.
77381         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
77382         * tests/test-carray_list.c: Likewise.
77383         * tests/test-linked_list.c: Likewise.
77384         * tests/test-linkedhash_list.c: Likewise.
77385         * tests/test-avltree_list.c: Likewise.
77386         * tests/test-rbtree_list.c: Likewise.
77387         * tests/test-avltreehash_list.c: Likewise.
77388         * tests/test-rbtreehash_list.c: Likewise.
77389         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
77390         * modules/carray-list-tests (Makefile.am): Likewise.
77391         * modules/linked-list-tests (Makefile.am): Likewise.
77392         * modules/linkedhash-list-tests (Makefile.am): Likewise.
77393         * modules/avltree-list-tests (Makefile.am): Likewise.
77394         * modules/rbtree-list-tests (Makefile.am): Likewise.
77395         * modules/avltreehash-list-tests (Makefile.am): Likewise.
77396         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
77398         * NEWS: Mention the changes.
77400         * lib/clean-temp.c: Include gl_xlist.h.
77401         * modules/clean-temp (Depends-on): Add xlist.
77403         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
77404         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
77406         * tests/test-array_oset.c: Include gl_xlist.h.
77407         * modules/array-oset-tests (Depends-on): Add xlist.
77409         Reported by José E. Marchesi <jemarch@gnu.org>.
77411 2009-12-13  Bruno Haible  <bruno@clisp.org>
77413         Move the malloc checking from module 'oset' to new module 'xoset'.
77414         * modules/xoset: New file.
77415         * lib/gl_xoset.h: New file.
77416         * lib/gl_xoset.c: New file.
77417         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
77418         declarations.
77419         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
77420         (struct gl_oset_implementation): Rename and change methods accordingly.
77421         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77422         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77423         'int'. Mark as __warn_unused_result__.
77424         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77425         gl_oset_create_empty.
77426         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77427         'int'.
77428         * lib/gl_array_oset.c: Don't include xalloc.h.
77429         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77430         malloc, not xmalloc.
77431         (grow): Change return type to 'int'. Don't call xalloc_die.
77432         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77433         to 'int'.
77434         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77435         'int'.
77436         (gl_array_oset_implementation): Update.
77437         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77438         gl_tree_create_empty.
77439         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77440         'int'.
77441         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77442         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77443         xmalloc.
77444         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77445         not xmalloc.
77446         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77447         xmalloc.
77448         (gl_avltree_oset_implementation): Update.
77449         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77450         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77451         xmalloc.
77452         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77453         not xmalloc.
77454         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77455         xmalloc.
77456         (gl_rbtree_oset_implementation): Update.
77457         * modules/array-oset (Depends-on): Remove xalloc.
77458         * modules/avltree-oset (Depends-on): Likewise.
77459         * modules/rbtree-oset (Depends-on): Likewise.
77460         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77461         * tests/test-avltree_oset.c: Likewise.
77462         * tests/test-rbtree_oset.c: Likewise.
77463         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77464         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77465         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77466         * NEWS: Mention the change.
77468 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77470         maint.mk: allow a project to override release-prep commands
77471         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77472         commands into a new rule.
77473         (release-prep): New rule.
77474         (release-prep-hook): New overridable variable.
77476 2009-12-13  Bruno Haible  <bruno@clisp.org>
77478         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77480 2009-12-13  Jim Meyering  <meyering@redhat.com>
77482         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77483         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77485 2009-12-12  Bruno Haible  <bruno@clisp.org>
77487         duplocale: Tweak.
77488         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77490 2009-12-12  Karl Berry  <karl@gnu.org>
77492         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77494 2009-12-12  Bruno Haible  <bruno@clisp.org>
77496         * m4/po.m4: Undo incorrect untabification.
77498 2009-12-12  Bruno Haible  <bruno@clisp.org>
77500         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77501         * modules/c-strtod (Depends-on): Add locale.
77502         * modules/c-strtold (Depends-on): Likewise.
77504 2009-12-12  Bruno Haible  <bruno@clisp.org>
77506         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77508 2009-12-11  Eric Blake  <ebb9@byu.net>
77510         setenv: relax requirement in light of POSIX ruling
77511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77512         not NULL.
77513         * tests/test-setenv.c (main): Relax test.
77514         * tests/test-unsetenv.c (main): Likewise.
77515         * doc/posix-functions/setenv.texi (setenv): Document this.
77516         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77518 2009-12-11  Bruno Haible  <bruno@clisp.org>
77520         New module 'fd-safer-flag'.
77521         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77522         * lib/dup-safer.c (dup_safer_flag): Remove function.
77523         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77524         * lib/fd-safer.c (fd_safer_flag): Remove function.
77525         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77526         * modules/cloexec (configure.ac): Drop indicator macro.
77527         * modules/fd-safer-flag: New file.
77528         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77529         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77530         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77532 2009-12-11  Bruno Haible  <bruno@clisp.org>
77534         Tests for module 'nl_langinfo'.
77535         * modules/nl_langinfo-tests: New file.
77536         * tests/test-nl_langinfo.sh: New file.
77537         * tests/test-nl_langinfo.c: New file.
77539         New module 'nl_langinfo'.
77540         * lib/nl_langinfo.c: New file.
77541         * m4/nl_langinfo.m4: New file.
77542         * modules/nl_langinfo: New file.
77543         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77545 2009-12-11  Bruno Haible  <bruno@clisp.org>
77547         Tests for module 'langinfo'.
77548         * modules/langinfo-tests: New file.
77549         * tests/test-langinfo.c: New file.
77551         New module 'langinfo'.
77552         * lib/langinfo.in.h: New file.
77553         * m4/langinfo_h.m4: New file.
77554         * modules/langinfo: New file.
77555         * doc/posix-headers/langinfo.texi: Mention the new module.
77557 2009-12-11  Bruno Haible  <bruno@clisp.org>
77559         * lib/config.charset: Untabify.
77561 2009-12-11  Bruno Haible  <bruno@clisp.org>
77563         * modules/unistd-safer (configure.ac): Drop indicator macro.
77565 2009-12-11  Bruno Haible  <bruno@clisp.org>
77567         Move pipe2-safer code to its own file.
77568         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77569         * lib/pipe-safer.c (pipe2_safer): Remove function.
77570         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77571         (Makefile.am): Add it to lib_SOURCES.
77573 2009-12-10  Bruno Haible  <bruno@clisp.org>
77575         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77577 2009-12-10  Bruno Haible  <bruno@clisp.org>
77579         Declare which arguments expect non-NULL values, for GCC and clang.
77580         * build-aux/arg-nonnull.h: New file.
77581         * modules/arg-nonnull: New file.
77582         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77583         (inet_ntop, inet_pton): Use it.
77584         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77585         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77586         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77587         (open, openat): Use it.
77588         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77589         (fnmatch): Use it.
77590         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77591         (getopt, getopt_long, getopt_long_only): Use it.
77592         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77593         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77594         Use it.
77595         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77596         (iconv_open): Use it.
77597         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77598         (strtoimax, strtoumax): Use it.
77599         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77600         (duplocale): Use it.
77601         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77602         (frexp, frexpl): Use it.
77603         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77604         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77605         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77606         (tsearch, tfind, tdelete, twalk): Use it.
77607         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77608         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77609         sigpending): Use it.
77610         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77611         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77612         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77613         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77614         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77615         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77616         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77617         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77618         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77619         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77620         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77621         Use it.
77622         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77623         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77624         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77625         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77626         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77627         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77628         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77629         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77630         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77631         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77632         strtoull, unsetenv): Use it.
77633         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77634         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77635         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77636         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77637         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77638         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77639         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77640         (strcasecmp, strncasecmp): Use it.
77641         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77642         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77643         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77644         rpl_setsockopt): Use it.
77645         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77646         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77647         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77648         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77649         (gettimeofday): Use it.
77650         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77651         (times): Use it.
77652         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77653         (uname): Use it.
77654         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77655         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77656         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77657         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77658         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77659         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77660         unlinkat, write): Use it.
77661         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77662         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77663         * lib/argv-iter.h: Include arg-nonnull.h.
77664         (_ATTRIBUTE_NONNULL_): Remove macro.
77665         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77666         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77667         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77668         optimization.
77669         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77670         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77671         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77672         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77673         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77674         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77675         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77676         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77677         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77678         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77679         * modules/dirent (Depends-on): Add arg-nonnull.
77680         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77681         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77682         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77683         * modules/fnmatch (Depends-on): Add arg-nonnull.
77684         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77685         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77686         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77687         * modules/glob (Depends-on): Add arg-nonnull.
77688         (Makefile.am): Insert arg-nonnull.h into glob.h.
77689         * modules/iconv_open (Depends-on): Add arg-nonnull.
77690         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77691         * modules/inttypes (Depends-on): Add arg-nonnull.
77692         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77693         * modules/locale (Depends-on): Add arg-nonnull.
77694         (Makefile.am): Insert arg-nonnull.h into locale.h.
77695         * modules/math (Depends-on): Add arg-nonnull.
77696         (Makefile.am): Insert arg-nonnull.h into math.h.
77697         * modules/netdb (Depends-on): Add arg-nonnull.
77698         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77699         * modules/search (Depends-on): Add arg-nonnull.
77700         (Makefile.am): Insert arg-nonnull.h into search.h.
77701         * modules/signal (Depends-on): Add arg-nonnull.
77702         (Makefile.am): Insert arg-nonnull.h into signal.h.
77703         * modules/spawn (Depends-on): Add arg-nonnull.
77704         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77705         * modules/stdio (Depends-on): Add arg-nonnull.
77706         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77707         * modules/stdlib (Depends-on): Add arg-nonnull.
77708         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77709         * modules/string (Depends-on): Add arg-nonnull.
77710         (Makefile.am): Insert arg-nonnull.h into string.h.
77711         * modules/strings (Depends-on): Add arg-nonnull.
77712         (Makefile.am): Insert arg-nonnull.h into strings.h.
77713         * modules/sys_socket (Depends-on): Add arg-nonnull.
77714         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77715         * modules/sys_stat (Depends-on): Add arg-nonnull.
77716         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77717         * modules/sys_time (Depends-on): Add arg-nonnull.
77718         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77719         * modules/sys_times (Depends-on): Add arg-nonnull.
77720         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77721         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77722         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77723         * modules/time (Depends-on): Add arg-nonnull.
77724         (Makefile.am): Insert arg-nonnull.h into time.h.
77725         * modules/unistd (Depends-on): Add arg-nonnull.
77726         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77727         * modules/wchar (Depends-on): Add arg-nonnull.
77728         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77729         * modules/argv-iter (Depends-on): Add arg-nonnull.
77730         * tests/test-canonicalize.c (null_ptr): New function.
77731         (main): Use it.
77732         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77733         (main): Use it.
77734         * tests/test-memmem.c (null_ptr): New function.
77735         (main): Use it.
77736         Reported by Jim Meyering.
77738 2009-12-10  Bruno Haible  <bruno@clisp.org>
77740         Use spaces for indentation, not tabs.
77741         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77742         * m4/*.m4: Untabify.
77743         * build-aux/*.h: Untabify.
77744         * tests/**/*.[hc]: Untabify.
77745         * README: New section "Indent with spaces, not TABs", based on
77746         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77747         * NEWS: Mention the change.
77749 2009-12-10  Bruno Haible  <bruno@clisp.org>
77751         pty test: Fix link error.
77752         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77753         test_pty_LDADD.
77755 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77757         * modules/pty: New file.
77758         * modules/pty-tests: New file.
77759         * m4/pty.m4: New file.
77760         * tests/test-pty.c: New file.
77761         * doc/glibc-headers/pty.texi: Modified.
77762         * doc/glibc-functions/forkpty.texi: Modified.
77763         * doc/glibc-functions/openpty.texi: Modified.
77765 2009-12-10  Bruno Haible  <bruno@clisp.org>
77767         Avoid syntax error in C++ mode.
77768         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77770 2009-12-10  Bruno Haible  <bruno@clisp.org>
77772         Use sed with option -e.
77773         * gnulib-tool (func_version, func_emit_copyright_notice,
77774         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77775         option -e to sed.
77776         * modules/link-warning (Makefile.am): Likewise.
77778 2009-12-10  Jim Meyering  <meyering@redhat.com>
77780         mgetgroups: do not write bytes beyond end of malloc'd buffer
77781         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77782         username, we call getgroups with a one-element-shorter buffer,
77783         but still told it the length was original, max_n_groups.
77785 2009-12-09  Eric Blake  <ebb9@byu.net>
77787         cloexec: relax license
77788         * modules/cloexec (Maintainer): Add myself.
77789         (License): Use LGPL, not GPL.
77791         link-warning: optimize generation
77792         * modules/link-warning (Makefile.am): Reduce process usage.
77794 2009-12-09  Bruno Haible  <bruno@clisp.org>
77796         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77797         workaround was added on 2009-11-17.
77799 2009-12-09  Jim Meyering  <meyering@redhat.com>
77800             Bruno Haible  <bruno@clisp.org>
77802         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77803         * modules/link-warning (Makefile.am): Make the comment-removing sed
77804         command more robust in the face of bootstrap-prepended comment lines.
77806 2009-12-09  Bruno Haible  <bruno@clisp.org>
77808         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77809         most one group.
77811 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77812             Bruno Haible  <bruno@clisp.org>
77814         * build-aux/link-warning.h: Add copyright notice.
77815         * modules/link-warning (Makefile.am): Generate link-warning.h from
77816         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77817         * NEWS: Mention change in link-warning module.
77818         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77819         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77820         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77821         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77822         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77823         * modules/math (Makefile.am): Add dependency to math.h.
77824         * modules/search (Makefile.am): Add dependency to search.h.
77825         * modules/signal (Makefile.am): Add dependency to signal.h.
77826         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77827         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77828         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77829         * modules/string (Makefile.am): Add dependency to string.h.
77830         * modules/strings (Makefile.am): Add dependency to strings.h.
77831         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77832         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77833         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77834         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77835         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77836         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77837         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77838         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77839         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77841 2009-12-09  Bruno Haible  <bruno@clisp.org>
77843         fchdir: Optimize away rpl_fstat when possible.
77844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77845         REPLACE_OPEN_DIRECTORY.
77846         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77848 2009-12-09  Bruno Haible  <bruno@clisp.org>
77850         * lib/fchdir.c: Update comment.
77852 2009-12-09  Bruno Haible  <bruno@clisp.org>
77854         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77856 2009-12-08  Eric Blake  <ebb9@byu.net>
77858         fchdir: avoid memory leak on re-registration.
77859         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77861 2009-12-08  Jim Meyering  <meyering@redhat.com>
77863         init.sh: avoid Solaris 10 /bin/sh portability problem
77864         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77865         sourced script:
77866           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77867           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77868           bar
77869         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77870         and two tests used that idiom.
77871         * tests/init.sh: Update suggested usage comments.
77872         (path_prepend_): New function, to be used in place
77873         of the --src-path=DIR option.
77874         (setup_): Move PATH-prepending code into path_prepend_.
77875         * tests/test-pread.sh: Adapt to new usage.
77876         * tests/test-xalloc-die.sh: Likewise.
77878 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77880         * doc/gnulib.texi (Glibc pty.h): Add.
77881         * doc/glibc-functions/forkpty.texi: Add.
77882         * doc/glibc-functions/openpty.texi: Add.
77883         Suggested by Bruno Haible.
77885 2009-12-08  Eric Blake  <ebb9@byu.net>
77887         fchdir: fix logic bugs
77888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77889         * tests/test-fchdir.c (main): Enhance test.
77890         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77891         is in use.
77893         dup2: fix logic bugs
77894         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77895         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77896         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77897         exists.
77898         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77900 2009-12-07  Eric Blake  <ebb9@byu.net>
77902         unlink: fix m4 detection
77903         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77905         unistd-safer: add unit test
77906         * modules/unistd-safer-tests: New file.
77907         * tests/test-dup-safer.c: Likewise.
77908         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77909         * tests/test-dup2.c (setmode): Likewise.
77910         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77912         cloexec: preserve text vs. binary across dup_cloexec
77913         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77914         mode.
77915         * modules/dup2-tests (Depends-on): Add binary-io.
77916         * modules/cloexec-tests (Depends-on): Likewise.
77917         * tests/test-dup2.c (setmode, is_mode): New helpers.
77918         (main): Add tests that translation mode is preserved.
77919         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77920         Reported by Bruno Haible.
77922         mgetgroups: reduce duplicate listings
77923         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77924         resulting array.
77925         * tests/test-chown.h (test_chown): Simplify client.
77926         * tests/test-lchown.h (test_lchown): Likewise.
77928 2009-12-06  Bruno Haible  <bruno@clisp.org>
77930         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77931         value.
77933 2009-12-06  Bruno Haible  <bruno@clisp.org>
77935         * lib/progname.c: Include stdio.h, stdlib.h.
77936         (set_program_name): Reject a NULL argument.
77938 2009-12-05  Eric Blake  <ebb9@byu.net>
77940         pipe2-safer: new module
77941         * modules/pipe2-safer: New file.
77942         * lib/unistd-safer.h (pipe2_safer): New prototype.
77943         * lib/unistd--.h (pipe2): New wrapper.
77944         * lib/pipe-safer.c (pipe2_safer): New function.
77945         * modules/pipe (Depends-on): Add pipe2-safer.
77946         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77948         stdlib-safer: preserve cloexec flag for mkostemp[s]
77949         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77950         fd_safer_flag.
77952         unistd-safer: allow preservation of cloexec status via flag
77953         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77954         prototypes.
77955         * lib/dup-safer.c (dup_safer_flag): New function.
77956         * lib/fd-safer.c (fd_safer_flag): Likewise.
77957         * modules/cloexec (configure.ac): Set witness.
77959         test-dup2: enhance test
77960         * modules/dup2-tests (Depends-on): Add cloexec.
77961         * tests/test-dup2.c (main): Enhance test.
77963         cloexec: add dup_cloexec
77964         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77965         header and comments.
77966         * lib/cloexec.c (set_cloexec_flag): Add comments.
77967         (dup_cloexec): New function, with mingw implementation borrowed
77968         from...
77969         * lib/w32spawn.h (dup_noinherit): ...here.
77970         * modules/execute (Depends-on): Add cloexec.
77971         * modules/pipe (Depends-on): Likewise.
77972         * modules/cloexec (Depends-on): Add dup2.
77973         * modules/cloexec-tests (Files): New file.
77974         * tests/test-cloexec.c: Likewise.
77976         test-xalloc-die: fix test for mingw
77977         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77978         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77979         directory and .exe suffix off argv[0] output.
77981         test-fseeko: fix test for mingw
77982         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77983         than undefining fseek, so test will pass on mingw.
77985 2009-12-05  Bruno Haible  <bruno@clisp.org>
77987         * lib/progname.h (set_program_name): Clarify specification.
77988         * lib/progname.c (set_program_name): Likewise.
77989         Reported by Jim Meyering.
77991 2009-12-05  Jim Meyering  <meyering@redhat.com>
77993         maint.mk: backslash-escape parens in default regexp
77994         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77995         backslash-escape the literal parentheses.
77997         maint.mk: news-date-check: use grep -E
77998         * top/maint.mk (today): Define a Make variable, not a...
77999         (news-date-check): ...shell variable.
78000         (news-date-regexp): Use the Make variable.
78001         Use grep's -E option.  Change the failing diagnostic to mention
78002         the variable, $(news-date-regexp).
78004 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
78006         maintainer-makefile: allow customization of NEWS entry format
78007         * top/maint.mk (news-date-regexp): New overridable variable.
78008         (news-date-check): Use it.
78010 2009-12-04  Eric Blake  <ebb9@byu.net>
78012         mgetgroups: add xgetgroups, and avoid ENOSYS failures
78013         * lib/mgetgroups.h (xgetgroups): New prototype.
78014         * lib/mgetgroups.c (xgetgroups): New wrapper.
78015         (mgetgroups): Handle ENOSYS.
78016         * modules/mgetgroups (Depends-on): Add realloc.
78017         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
78019         mgetgroups: avoid argument promotion issues with -1
78020         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
78021         for invalid gid_t.
78022         * tests/test-chown.h (getegid, test_chown): Likewise.
78023         * tests/test-lchown.h (getegid, test_lchown): Likewise.
78025 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
78027         exclude: Fix header file problems.
78028         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
78030 2009-12-01  Jim Meyering  <meyering@redhat.com>
78032         fts: fts_open: do not let an empty string cause immediate failure
78033         This is required in support of GNU rm, for which the command
78034         "rm A '' B" must process and remove both A and B, in spite of
78035         the empty string argument.
78036         * lib/fts.c (fts_open): Do not let the presence of an empty string
78037         cause fts_open to fail immediately.  Most fts-using tools must be
78038         able to process all arguments, in order, and can be expected to
78039         diagnose such arguments themselves.
78041 2009-11-30  Eric Blake  <ebb9@byu.net>
78043         utimens: fix compilation error
78044         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
78045         Declare variable at right scope.
78047 2009-11-29  Jim Meyering  <meyering@redhat.com>
78049         bootstrap: handle perl-5.11's changed --version output
78050         * build-aux/bootstrap (get_version): Handle perl separately,
78051         since perl-5.11's --version output is different.
78053 2009-11-28  Jim Meyering  <meyering@redhat.com>
78055         userspec: depend on the inttostr module, too
78056         * modules/userspec (Depends-on): Add inttostr.
78058         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
78059         * lib/userspec.c (parse_with_separator): Do not accept a user ID
78060         number of MAXUID when it evaluates to (uid_t) -1.
78061         Likewise for group ID.  Reported by Matt McCutchen in
78062         <http://savannah.gnu.org/bugs/?28113>
78064         userspec: reformat to use spaces, not TABs
78065         * lib/userspec.c: Expand TABs to spaces.
78066         Add Emacs' "indent-tabs-mode: nil" hint.
78068 2009-11-27  Eric Blake  <ebb9@byu.net>
78070         getopt-gnu: flush out another BSD bug
78071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
78072         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
78073         flush out BSD bug.
78074         * tests/test-getopt.h (test_getopt): End lists with NULL.
78075         * tests/test-getopt_long.h (test_getopt_long): Likewise.
78076         (test_getopt_long_posix): Enhance test.
78077         * modules/getopt-posix-tests (Depends-on): Add stdbool.
78078         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
78079         getopt-gnu.
78080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
78081         Likewise.
78083 2009-11-27  Simon Josefsson  <simon@josefsson.org>
78085         * modules/idpriv-droptemp-tests (Notice): Fix text.
78087 2009-11-27  Jim Meyering  <meyering@redhat.com>
78089         test-xalloc-die: avoid spurious failure due to libtool argv difference
78090         In a libtool-enabled project, this test would fail due to a difference
78091         in the emitted program name, e.g.,
78092         -test-xalloc-die: memory exhausted
78093         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
78094         Use program to avoid that.
78095         * modules/xalloc-die-tests (Depends-on): Add progname.
78096         * tests/test-xalloc-die.c: Include progname.h".
78097         (program_name): Remove decl.
78098         (main): Call set_program_name.
78099         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
78101 2009-11-26  Richard Jones  <rjones@redhat.com>
78103         w32sock: leave win32 error in place.
78104         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
78106 2009-11-26  Eric Blake  <ebb9@byu.net>
78108         init.sh: suggest to use skip_ and fail_ functions in comments
78109         * tests/init.sh: Add a sentence.
78111 2009-11-25  Bruno Haible  <bruno@clisp.org>
78113         init.sh: add documentation in comments
78114         * tests/init.sh: Add some developer and user documentation.
78116 2009-11-26  Jim Meyering  <meyering@redhat.com>
78118         init.sh: accommodate even those who specify bogus srcdir manually
78119         * tests/init.sh: Normally, srcdir is guaranteed by automake and
78120         configure-time tests to be sanitized, so that there is no need to
78121         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
78122         (with no double quotes) suffices.  However, since tests may be
78123         invoked manually, and since you may explicitly set srcdir to the
78124         name of a directory containing spaces, do quote its uses here.
78125         * tests/test-pread.sh: Likewise.
78126         Suggested by Bruno Haible.
78128         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
78129         * tests/test-pread.sh: Write no data into the pipe, because
78130         test-pread actually reads none.  This avoids a diagnostic,
78131         "bash: echo: write error: Broken pipe", that arises in the unusual
78132         event something is ignoring SIGPIPE, and might be interpreted
78133         as some sort of failure.  Reported by Bruno Haible.
78135 2009-11-25  Jim Meyering  <meyering@redhat.com>
78137         test-pread: cover failure with ESPIPE and EINVAL
78138         * tests/test-pread.c (main): Test for failure, too.
78139         * tests/test-pread.sh: Invoke with stdin on a pipe.
78140         Suggested by Eric Blake.
78142         pread: improvement and fix
78143         * modules/pread (Depends-on): Depend on lseek, for portability to
78144         e.g., mingw.  Suggested by Eric Blake.
78145         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
78147         unistd.in.h: correct declaration of pread
78148         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
78149         Reported by Richard W.M. Jones.
78151         test-pread.sh: distribute the test script
78152         * modules/pread-tests (Files): Include test-pread.sh.
78154         test-pread.sh: clean up
78155         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
78156         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
78157         That is unnecessary, since it's always ".".
78158         Suggestion from Eric Blake.
78160         test-pread.sh: make executable
78161         * tests/test-pread.sh: Set executable bit.
78162         Reported by Eric Blake.
78164         correct typo in test-pread.sh
78165         * tests/test-pread.sh: Add #! line.
78167         test pread
78168         * tests/test-pread.c: New file.
78169         * tests/test-pread.sh: Likewise.
78170         * modules/pread-tests: Likewise.
78172         pread: new module
78173         * modules/pread: New file.
78174         * lib/unistd.in.h (pread): Define/declare.
78175         * lib/pread.c (pread): New file.
78176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
78177         * modules/unistd (Makefile.am): Substitute witnesses.
78178         * doc/posix-functions/pread.texi (pread): Update.
78179         * MODULES.html.sh: Add pread.
78181 2009-11-25  Jim Meyering  <meyering@redhat.com>
78183         tests/init.sh: new file to be used via most *.sh tests
78184         * tests/init.sh: New file.
78186 2009-11-25  Eric Blake  <ebb9@byu.net>
78188         utimens: work around older Linux failure with symlinks
78189         * lib/utimens.c (lutimensat_works_really): New variable.
78190         (fdutimens, lutimens): Use it to manage kernels that support
78191         nanosecond times on files, but not on symlinks.
78192         Reported by Ondřej Vašík.
78194         utimes: fix configure grammar
78195         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
78197 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
78199         regex: Fix fastmap for multibyte character ranges.
78200         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
78201         characters when a multibyte character range is included.
78203 2009-11-22  Andy Wingo  <wingo@pobox.com>
78205         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
78206         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
78208 2009-11-24  Bruno Haible  <bruno@clisp.org>
78210         doc: Most *_l functions exist in MacOS X 10.5.
78211         * doc/posix-functions/duplocale.texi: Update platforms list.
78212         * doc/posix-functions/freelocale.texi: Likewise.
78213         * doc/posix-functions/newlocale.texi: Likewise.
78214         * doc/posix-functions/uselocale.texi: Likewise.
78215         * doc/posix-functions/isalnum_l.texi: Likewise.
78216         * doc/posix-functions/isalpha_l.texi: Likewise.
78217         * doc/posix-functions/isblank_l.texi: Likewise.
78218         * doc/posix-functions/iscntrl_l.texi: Likewise.
78219         * doc/posix-functions/isdigit_l.texi: Likewise.
78220         * doc/posix-functions/isgraph_l.texi: Likewise.
78221         * doc/posix-functions/islower_l.texi: Likewise.
78222         * doc/posix-functions/isprint_l.texi: Likewise.
78223         * doc/posix-functions/ispunct_l.texi: Likewise.
78224         * doc/posix-functions/isspace_l.texi: Likewise.
78225         * doc/posix-functions/isupper_l.texi: Likewise.
78226         * doc/posix-functions/iswalnum_l.texi: Likewise.
78227         * doc/posix-functions/iswalpha_l.texi: Likewise.
78228         * doc/posix-functions/iswblank_l.texi: Likewise.
78229         * doc/posix-functions/iswcntrl_l.texi: Likewise.
78230         * doc/posix-functions/iswctype_l.texi: Likewise.
78231         * doc/posix-functions/iswdigit_l.texi: Likewise.
78232         * doc/posix-functions/iswgraph_l.texi: Likewise.
78233         * doc/posix-functions/iswlower_l.texi: Likewise.
78234         * doc/posix-functions/iswprint_l.texi: Likewise.
78235         * doc/posix-functions/iswpunct_l.texi: Likewise.
78236         * doc/posix-functions/iswspace_l.texi: Likewise.
78237         * doc/posix-functions/iswupper_l.texi: Likewise.
78238         * doc/posix-functions/iswxdigit_l.texi: Likewise.
78239         * doc/posix-functions/isxdigit_l.texi: Likewise.
78240         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
78241         * doc/posix-functions/strcasecmp_l.texi: Likewise.
78242         * doc/posix-functions/strcoll_l.texi: Likewise.
78243         * doc/posix-functions/strfmon_l.texi: Likewise.
78244         * doc/posix-functions/strftime_l.texi: Likewise.
78245         * doc/posix-functions/strncasecmp_l.texi: Likewise.
78246         * doc/posix-functions/strxfrm_l.texi: Likewise.
78247         * doc/posix-functions/tolower_l.texi: Likewise.
78248         * doc/posix-functions/toupper_l.texi: Likewise.
78249         * doc/posix-functions/towctrans_l.texi: Likewise.
78250         * doc/posix-functions/towlower_l.texi: Likewise.
78251         * doc/posix-functions/towupper_l.texi: Likewise.
78252         * doc/posix-functions/wcscoll_l.texi: Likewise.
78253         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
78254         * doc/posix-functions/wctrans_l.texi: Likewise.
78255         * doc/posix-functions/wctype_l.texi: Likewise.
78256         * doc/glibc-functions/strptime_l.texi: Likewise.
78257         * doc/glibc-functions/strtod_l.texi: Likewise.
78258         * doc/glibc-functions/strtof_l.texi: Likewise.
78259         * doc/glibc-functions/strtol_l.texi: Likewise.
78260         * doc/glibc-functions/strtold_l.texi: Likewise.
78261         * doc/glibc-functions/strtoll_l.texi: Likewise.
78262         * doc/glibc-functions/strtoul_l.texi: Likewise.
78263         * doc/glibc-functions/strtoull_l.texi: Likewise.
78264         * doc/glibc-functions/wcsftime_l.texi: Likewise.
78265         * doc/glibc-functions/wcstod_l.texi: Likewise.
78266         * doc/glibc-functions/wcstof_l.texi: Likewise.
78267         * doc/glibc-functions/wcstol_l.texi: Likewise.
78268         * doc/glibc-functions/wcstold_l.texi: Likewise.
78269         * doc/glibc-functions/wcstoll_l.texi: Likewise.
78270         * doc/glibc-functions/wcstoul_l.texi: Likewise.
78271         * doc/glibc-functions/wcstoull_l.texi: Likewise.
78273 2009-11-24  Bruno Haible  <bruno@clisp.org>
78275         duplocale: Fix logic bug.
78276         * lib/duplocale.c: Don't include <langinfo.h>.
78277         (_NL_LOCALE_NAME): Remove macro.
78278         (rpl_duplocale): Use setlocale instead of nl_langinfo.
78279         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
78281 2009-11-23  Jim Meyering  <meyering@redhat.com>
78283         test-update-copyright: don't hard-code /usr/bin/perl
78284         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
78285         perl to print the current year.  Gilles Espinasse reported that
78286         the replaced use of perl was hard-coded as /usr/bin/perl.
78288 2009-11-23  Bruno Haible  <bruno@clisp.org>
78290         duplocale: Add support for glibc 2.3.x.
78291         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
78293 2009-11-22  Bruno Haible  <bruno@clisp.org>
78295         vasnprintf: Tiny optimization.
78296         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
78297         MacOS X.
78299 2009-11-22  Bruno Haible  <bruno@clisp.org>
78301         Tests for module 'duplocale'.
78302         * modules/duplocale-tests: New file.
78303         * tests/test-duplocale.c: New file.
78305         New module 'duplocale'.
78306         * m4/duplocale.m4: New file.
78307         * lib/locale.in.h (duplocale): New declaration.
78308         * lib/duplocale.c: New file.
78309         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
78310         gl_LOCALE_H_DEFAULTS): New macros.
78311         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
78312         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
78313         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
78314         REPLACE_DUPLOCALE.
78315         * modules/duplocale: New file.
78316         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
78318 2009-11-22  Bruno Haible  <bruno@clisp.org>
78320         * modules/locale-tests (configure.ac): Test for newlocale function.
78321         * tests/test-locale.c: When the system has extended locale functions,
78322         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
78324         locale: Make locale_t available when possible.
78325         * lib/locale.in.h: Include <xlocale.h> when it exists.
78326         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
78327         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
78328         * modules/locale (Depends-on): Add extensions.
78329         (Makefile.am): Also substitute HAVE_XLOCALE_H.
78330         * doc/posix-headers/locale.texi: Document the problem with locale_t.
78332 2009-11-22  Bruno Haible  <bruno@clisp.org>
78334         Add comments.
78335         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
78336         invocation.
78337         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
78339         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78341 2009-11-22  Bruno Haible  <bruno@clisp.org>
78343         error: account for the possibility of freopen (stdout).
78344         * lib/error.c: Include <unistd.h>.
78345         (flush_stdout): New function, extracted from error and error_at_line.
78346         Determine stdout's fd dynamically.
78347         (error, error_at_line): Invoke flush_stdout.
78348         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
78349         * modules/error (Depends-on): Add unistd.
78351 2009-11-22  Bruno Haible  <bruno@clisp.org>
78353         diffseq: Add comment.
78354         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
78356 2009-11-22  Jim Meyering  <meyering@redhat.com>
78358         c-stack: avoid defining an unused static function
78359         * lib/c-stack.c (find_stack_direction): Do not define this function
78360         when it will not be used.
78362         diffseq: avoid spurious gcc warnings
78363         * lib/diffseq.h (IF_LINT2): Define.
78364         (compareseq): Use it to initialize two members of "part".
78365         This avoids two used-uninitialized warnings.
78367 2009-11-21  Jim Meyering  <meyering@redhat.com>
78369         c-stack: avoid "ignoring return value of `write'" warning
78370         * lib/c-stack.c: Include "ignore-value.h".
78371         (die): Explicitly ignore each write return value.
78372         * modules/c-stack (Depends-on): Add ignore-value.
78374 2009-11-21  Bruno Haible  <bruno@clisp.org>
78376         diffseq: reduce scope of variable 'best'.
78377         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
78378         variable, earlier used for two different purposes.
78380 2009-11-21  Jim Meyering  <meyering@redhat.com>
78382         diffseq: remove useless assignment to "best"
78383         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
78384         assignment.  At that point "best" is already guaranteed to be zero.
78386 2009-11-20  Eric Blake  <ebb9@byu.net>
78388         build: mention ftp redirector in release announcements
78389         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
78390         values that used to come from cfg.mk; mention FTP redirect URL.
78391         * build-aux/announce-gen: Mention the mirror list.
78392         Suggested by Karl Berry.
78394         nanosleep: improve port to mingw
78395         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
78396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
78397         LIB_NANOSLEEP, but only when needed.
78398         * modules/select (Link): Document LIBSOCKET.
78399         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
78400         enough.
78402         nanosleep: work around cygwin bug
78403         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
78404         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
78405         bug.
78406         (getnow): Delete, not needed.
78407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
78408         LIB_CLOCK_GETTIME.
78409         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
78410         clock-time, gettime.
78411         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
78412         bug.
78413         * modules/nanosleep-tests: New test.
78414         * tests/test-nanosleep.c: New file.
78416         sleep: work around cygwin bug
78417         * lib/sleep.c (rpl_sleep): Work around the bug.
78418         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
78419         (gl_PREREQ_SLEEP): Delete unused macro.
78420         * modules/sleep (Depends-on): Add verify.
78421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78422         * modules/unistd (Makefile.am): Substitute witness.
78423         * lib/unistd.in.h (sleep): Update prototype.
78424         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78425         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78426         * modules/sleep-tests (Depends-on): Check for alarm.
78428 2009-11-20  Jim Meyering  <meyering@redhat.com>
78430         maint.mk: improve sc_prohibit_magic_number_exit
78431         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78432         so it does not match uses like System.exit(1).
78433         Add comments showing how to correct all offenders.
78435 2009-11-19  Eric Blake  <ebb9@byu.net>
78437         xalloc-die-tests: add missing library
78438         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78440         test-xvasprintf: silence compiler warnings
78441         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78442         empty string from gcc.
78444 2009-11-19  Jim Meyering  <meyering@redhat.com>
78446         xfreopen: new module, from coreutils
78447         * modules/xfreopen: New module.
78448         * lib/xfreopen.c: New file.
78449         * lib/xfreopen.h: New file.
78450         * MODULES.html.sh (File stream based Input/Output"): Add it.
78452 2009-11-19  Eric Blake  <ebb9@byu.net>
78454         manywarnings: depend on warnings
78455         * modules/manywarnings (Depends-on): Add warnings.
78457         build: avoid compiler warnings
78458         * lib/select.c (rpl_select): Delete unused variable.
78459         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78461 2009-11-18  Eric Blake  <ebb9@byu.net>
78463         tests: avoid false negative with --with-packager
78464         * tests/test-version-etc.sh: Discard packager information.
78465         * tests/test-argp-version-etc-1.sh: Likewise.
78466         Reported by Mike Frysinger.
78468         utimens: fix regression on Solaris
78469         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78470         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78471         can only change fd timestamps via futimesat.  Instead, use an
78472         additional witness macro to avoid BSD bug.
78473         Reported by Jim Meyering.
78475 2009-11-17  Eric Blake  <ebb9@byu.net>
78477         usleep: use it to simplify tests
78478         * modules/stat-time-tests (Depends-on): Add usleep.
78479         (configure.ac): Drop usleep check.
78480         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78481         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78482         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78483         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78484         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78485         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78486         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78487         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78488         Likewise.
78489         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78490         * tests/test-lchown.h (nap): Likewise.
78491         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78492         * tests/test-stat-time.c (nap): Likewise.
78493         * tests/test-utimens-common.h (nap): Update comments.
78495         usleep: new module
78496         * modules/usleep: New file.
78497         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78498         * lib/usleep.c (usleep): Likewise.
78499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78500         * modules/unistd (Makefile.am): Substitute witnesses.
78501         * lib/unistd.in.h (usleep): Add declaration.
78502         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78503         * MODULES.html.sh (Date and time): Likewise.
78504         * modules/usleep-tests (Depends-on): New test.
78505         * tests/test-usleep.c: New file.
78507         chown: work around OpenBSD bug
78508         * lib/chown.c (rpl_chown): Work around the bug.
78509         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78510         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78511         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78512         * modules/chown (Depends-on): Add stdbool.
78513         * modules/lchown (Depends-on): Likewise.
78514         * doc/posix-functions/chown.texi (chown): Document the bug.
78515         * doc/posix-functions/lchown.texi (lchown): Likewise.
78516         * tests/test-lchown.h (test_chown): Relax test.
78518         mkstemp: avoid conflict with C++ keyword template
78519         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78520         * lib/mkostemp.c (mkostemp): Likewise.
78521         * lib/mkostemps.c (mkostemps): Likewise.
78522         * lib/mkstemp.c (mkstemp): Likewise.
78523         * lib/mkstemps.c (mkstemps): Likewise.
78525         xalloc-die-tests: optimize
78526         * tests/test-xalloc-die.sh: Reduce number of processes.
78528 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78530         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78531         patch from ludo@gnu.org (Ludovic Courtès).
78533 2009-11-17  Jim Meyering  <meyering@redhat.com>
78535         version-etc: use proper license string
78536         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78537         * modules/version-etc-fsf: Likewise.
78539 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78541         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78542         printed to stdout.  Deal with EOL differences.
78544 2009-11-17  Eric Blake  <ebb9@byu.net>
78546         unsetenv: work around Solaris bug
78547         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78548         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78549         Reported by Jim Meyering.
78551         vasnprintf: avoid compiler warnings
78552         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78553         variables.
78554         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78556 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78558         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78559         settings since xalloc-die is no longer the self test,
78560         xalloc-die.sh is.
78562 2009-11-17  Jim Meyering  <meyering@redhat.com>
78564         test-xalloc-die.sh: make the code agree with the commit log
78565         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78566         at the end, just in case you happen to have a test-xalloc-die
78567         program in some other PATH directory.
78569         test-xalloc-die.sh: fix a portability bug
78570         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78571         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78572         Otherwise, argv[0] (as often seen in diagnostics) would be too
78573         system-dependent, sometimes with, and sometimes without the leading "./".
78575         version-etc-fsf: relax license to LGPLv3+
78576         * modules/version-etc-fsf (License): Relax license.
78578 2009-11-16  Eric Blake  <ebb9@byu.net>
78580         xalloc-die-tests: avoid printing null pointer
78581         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78582         shell script.
78583         * tests/test-xalloc-die.c (program_name): Declare.
78584         * tests/test-xalloc-die.sh (tmpfiles): New file.
78586         setenv, unsetenv: work around various bugs
78587         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78588         (setenv) [HAVE_SETENV]: Work around bugs.
78589         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78591         for bugs.
78592         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78593         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78595         * modules/stdlib (Makefile.am): Update substitutions.
78596         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78597         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78598         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78599         * modules/setenv-tests: New test.
78600         * modules/unsetenv-tests: Likewise.
78601         * tests/test-setenv.c: New file.
78602         * tests/test-unsetenv.c: Likewise.
78604 2009-11-16  Jim Meyering  <meyering@redhat.com>
78606         version-etc: relax license to LGPLv3+
78607         * modules/version-etc (License): Relax license.
78609         better AC_REQUIRE expanded-before-required-warning avoidance
78610         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78611         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78612         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78613         which is no longer needed.
78615 2009-11-16  Eric Blake  <ebb9@byu.net>
78617         test-freading: clean up temporary file
78618         * tests/test-freading.c (main): Remove file on success, and use
78619         ASSERT more liberally.
78620         Reported by Jim Meyering.
78622 2009-11-16  Jim Meyering  <meyering@redhat.com>
78624         avoid new AC_REQUIRE expanded-before-required warnings
78625         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78626         merely using it.
78627         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78628         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78630 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78632         * tests/test-xalloc-die.c: New file.
78633         * modules/xalloc-die-tests: New file.
78634         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78635         XFAIL_TESTS so it can be appended by modules.
78637 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78639         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78640         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78642 2009-11-14  Eric Blake  <ebb9@byu.net>
78644         fnmatch: avoid compiler warning
78645         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78646         to silence compiler warning about mismatch signedness in ?:.
78647         Reported by Robert Millan.
78649         intprops: add double-inclusion guard
78650         * lib/intprops.h: Allow idempotent includes.
78651         Suggested by Bruce Korb.
78653         openat: detect Solaris fchownat bug
78654         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78655         penalizing glibc chownat when only lchownat is broken.
78656         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78657         trailing slash bugs.
78658         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78659         * modules/openat-tests (Files): Include more files.
78660         (Depends-on): Add mgetgroups, sleep, stat-time.
78661         (configure.ac): Add additional checks.
78662         (Makefile.am): Build new test.
78663         * tests/test-fchownat.c: New file.
78665         lchown: detect Solaris and FreeBSD bug
78666         * lib/lchown.c (rpl_lchown): Work around bug.
78667         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78669         * modules/unistd (Makefile.am): Populate it.
78670         * lib/unistd.in.h (lchown): Update declaration.
78671         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78672         * modules/lchown-tests: New file.
78673         * tests/test-lchown.h (test_lchown): Likewise.
78674         * tests/test-lchown.c (main): Likewise.
78676         chown: detect Solaris and FreeBSD bug
78677         * lib/chown.c (rpl_chown): Work around bug.
78678         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78679         (gl_PREREQ_CHOWN): Delete.
78680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78681         * modules/unistd (Makefile.am): Populate it.
78682         * lib/unistd.in.h (chown): Update declaration.
78683         * lib/lchown.c (chown): Update client.
78684         * modules/lchown (Depends-on): Add lstat.
78685         * doc/posix-functions/chown.texi (chown): Document the bug.
78686         * doc/posix-functions/getgroups.texi (getgroups): Document
78687         getgroups pitfall.
78688         * modules/chown-tests: New file.
78689         * tests/test-chown.h (test_chown): Likewise.
78690         * tests/test-chown.c (main): Likewise.
78692 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78694         gnulib-tool: correctly detect absence of m4 directories
78695         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78697 2009-11-14  Jim Meyering  <meyering@redhat.com>
78699         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78700         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78702 2009-11-14  John W. Eaton  <jwe@gnu.org>
78704         strftime.h: wrap function declaration in extern "C" block
78705         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78707 2009-11-13  Eric Blake  <ebb9@byu.net>
78709         getgroups: avoid compiler warning
78710         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78712         getgroups: work around FreeBSD bug
78713         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78714         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78715         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78716         * tests/test-getgroups.c (main): Fix buffer overrun.
78718         getgroups: avoid compilation failure
78719         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78720         * modules/getgroups (Depends-on): Add stdint.
78722 2009-11-13  Jim Meyering  <meyering@redhat.com>
78724         test-getgroups: avoid compilation failure
78725         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78727 2009-11-13  Eric Blake  <ebb9@byu.net>
78729         mgetgroups: new module, taken from coreutils
78730         * modules/mgetgroups: New file.
78731         * lib/mgetgroups.h: Likewise.
78732         * lib/mgetgroups.c (mgetgroups): Likewise.
78733         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78734         * MODULES.html.sh (Users and groups): Mention it.
78736         getgroups: don't expose GETGROUPS_T to user
78737         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78738         an element at a time if GETGROUPS_T is wrong size.
78739         * lib/getugroups.h (getugroups): Change signature.
78740         * lib/unistd.in.h (getgroups): Likewise.
78741         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78742         signature needs fixing.
78743         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78744         AC_TYPE_GETGROUPS.
78745         * modules/group-member (Depends-on): Add getgroups.
78746         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78747         (group_member): Rely on getgroups replacement.
78748         * lib/getugroups.c (getugroups): Use gid_t.
78749         * tests/test-getgroups.c (main): Likewise.
78750         * NEWS: Mention the signature change.
78751         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78752         problem with signature.
78753         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78754         GETGROUPS_T is still useful for setgroups.
78756         getgroups, getugroups: provide stubs for mingw
78757         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78758         * lib/getugroups.c (getugroups): Likewise.
78759         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78760         function.  Modernize replacement scheme.
78761         (gl_PREREQ_GETGROUPS): Delete.
78762         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78763         * modules/getgroups (configure.ac): Declare witness.
78764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78765         * modules/unistd (Depends-on): Substitute witness.
78766         * lib/unistd.in.h (getgroups): Declare replacement.
78768         getgroups: avoid calling exit
78769         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78770         drop xalloc.
78771         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78772         dependencies.
78773         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78774         exiting, in the rare case of malloc failure.
78776         getgroups: fix logic error
78777         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78778         has more than 20 groups.
78779         * modules/getgroups-tests: New test.
78780         * tests/test-getgroups.c: New file.
78782 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78784         * tests/test-base64.c: Improve.
78786 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78788         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78789         Blake <ebb9@byu.net>.
78791 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78793         * tests/test-xvasprintf.c: Add %s%s related checks.
78795 2009-11-12  Eric Blake  <ebb9@byu.net>
78797         version-etc: match standards.texi style
78798         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78799         and use <> only for URLs.
78801 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78803         fts: do not fail on a submount during traversal
78804         * lib/fts.c (fts_build): Read the stat info again after opening
78805         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78806         Original report at http://bugzilla.redhat.com/501848.
78808 2009-11-12  Jim Meyering  <meyering@redhat.com>
78810         bootstrap: sync from coreutils
78811         * build-aux/bootstrap (bootstrap_epilogue): New function.
78812         Use git_modules_config in one more place.  This make bootstrap's
78813         --gnulib-srcdir option more useful for testing.
78815         bootstrap: generalize autoheader check
78816         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78817         AC_CONFIG_HEADERS.
78819 2009-11-11  Eric Blake  <ebb9@byu.net>
78821         mkfifoat: use new modules for Solaris and BSD bugs
78822         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78823         * lib/mkfifoat.c (mknodat): Split...
78824         * lib/mknodat.c (mknodat): ...into new file.
78825         * modules/mkfifoat (Files): Ship new file.
78826         (Depends-on): Add mkfifo, mknod.
78827         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78828         (Depends-on): Add symlink.
78829         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78830         redundant with test_mkfifo.h.
78831         (do_mkfifoat, do_mknodat): New helpers.
78833         mknod: new module
78834         * modules/mknod: New file.
78835         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78836         * lib/mknod.c (mknod): Likewise.
78837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78838         defaults.
78839         * modules/sys_stat (Makefile.am): Substitute them.
78840         * lib/sys_stat.in.h (mknod): Declare replacement.
78841         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78842         Document it.
78843         * doc/posix-functions/mknod.texi (mknod): Likewise.
78844         * modules/mknod-tests: New test.
78845         * tests/test-mknod.c: Likewise.
78847         mkfifo: new module
78848         * modules/mkfifo: New file.
78849         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78850         * lib/mkfifo.c (mkfifo): Likewise.
78851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78852         defaults.
78853         * modules/sys_stat (Makefile.am): Substitute them.
78854         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78855         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78856         Document it.
78857         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78858         * modules/mkfifo-tests: New test.
78859         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78860         from test-mkfifoat.c.
78861         * tests/test-mkfifo.c: New file.
78863         readlink: detect FreeBSD bug
78864         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78865         slash on symlink.
78866         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78867         * tests/test-readlink.h (test_readlink): Enhance test.
78869         symlink: detect FreeBSD bug
78870         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78871         slash on symlink.
78872         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78873         * tests/test-symlink.h (test_symlink): Enhance test.
78875 2009-11-10  Eric Blake  <ebb9@byu.net>
78877         link: detect FreeBSD bug
78878         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78879         symlink.
78880         * doc/posix-functions/link.texi (link): Document the bug.
78881         * tests/test-link.h (test_link): Enhance test.
78882         * tests/test-linkat.c (main): Update caller.
78884         unlink, remove: detect FreeBSD bug
78885         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78886         slash on symlink.
78887         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78888         * doc/posix-functions/remove.texi (remove): Likewise.
78889         * tests/test-unlink.h (test_unlink): Enhance test.
78890         * tests/test-remove.c (main): Likewise.
78892 2009-11-09  Eric Blake  <ebb9@byu.net>
78894         rename: detect FreeBSD bug
78895         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78896         slash on symlink.
78897         * modules/renameat-tests (Depends-on): Add filenamecat.
78898         * tests/test-rename.h (test_rename): Allow one more errno.
78899         * tests/test-renameat.c (main): Likewise.
78900         * doc/posix-functions/rename.texi (rename): Document the bug.
78902         open: detect FreeBSD bug
78903         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78904         symlink.
78905         * doc/posix-functions/open.texi (open): Document the bug.
78906         * doc/posix-functions/utimes.texi (utimes): Likewise.
78907         * tests/test-open.h (test_open): Add parameters, and test symlink
78908         handling.
78909         * tests/test-open.c (main): Adjust caller.
78910         * tests/test-fcntl-safer.c (main): Likewise.
78911         * modules/open-tests (Depends-on): Add stdbool, symlink.
78912         * modules/fcntl-safer-tests (Depends-on): Likewise.
78913         * tests/test-openat.c (main): Add test-open tests.
78915         stat: detect FreeBSD bug
78916         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78917         symlink.
78918         * doc/posix-functions/stat.texi (stat): Document the bug.
78919         * tests/test-stat.h (test_stat_func): Add argument.
78920         * tests/test-stat.c (main): Adjust caller.
78921         * tests/test-fstatat.c (main): Likewise.
78922         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78923         Reported by Jim Meyering.
78925 2009-11-09  James Youngman  <jay@gnu.org>
78927         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78928         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78930 2009-11-08  Jim Meyering  <meyering@redhat.com>
78932         utimens: remove invalid futimesat call
78933         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78934         It used the file descriptor of the target file as the DIR_FD
78935         parameter and NULL as the file name.  That caused failure with
78936         errno == EFAULT on FreeBSD-8.0-rc2
78938 2009-11-07  Eric Blake  <ebb9@byu.net>
78940         fflush, freadseek: use fseeko, not fseek
78941         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78942         (clear_ungetc_buffer): Avoid potential problems on large files.
78943         * lib/freadseek.c (freadseek): Likewise.
78944         * modules/freadseek (Depends-on): Add fseeko.
78945         * modules/fseek (configure.ac): Set a witness.
78946         * tests/test-fflush.c (main): Use fseeko.
78947         * tests/test-fpurge.c (fseek): Disable link warning.
78948         * tests/test-freadable.c (fseek): Likewise.
78949         * tests/test-freading.c (fseek): Likewise.
78950         * tests/test-fseeko.c (fseek): Likewise.
78951         * tests/test-ftell.c (fseek): Likewise.
78952         * tests/test-ftello.c (fseek): Likewise.
78953         * tests/test-fwritable.c (fseek): Likewise.
78954         * tests/test-fwriting.c (fseek): Likewise.
78956 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78958         * modules/memchr (Depends-on): Drop getpagesize dependency.
78960 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78962         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78963         Reported by Ludovic Courtès.
78964         * build-aux/pmccabe2html: Improve example usage.
78965         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78967 2009-11-06  Jim Meyering  <meyering@redhat.com>
78969         do-release-commit-and-tag: New module.
78970         Automate the release-commit and tag process.
78971         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78972         * modules/do-release-commit-and-tag: New file.
78973         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78975 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78977         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78978         because test-select.c uses inet_pton.
78980 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78982         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78983         GETADDRINFO_LIB.  Bump serial number.
78984         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78985         Suggested by Eric Blake <ebb9@byu.net>.
78987 2009-11-05  Eric Blake  <ebb9@byu.net>
78989         strtod: detect darwin bug
78990         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78991         Reported by Leo Davis.
78993         freopen-safer: new module
78994         * modules/freopen-safer: New module.
78995         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78996         * lib/freopen-safer.c (freopen_safer): New file.
78997         * lib/stdio-safer.h (freopen_safer): New declaration.
78998         * lib/stdio--.h (freopen): New override.
78999         * MODULES.html.sh (File stream based Input/Output): Mention it.
79000         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
79001         freopen-safer module.
79002         * doc/posix-functions/stderr.texi (stderr): Likewise.
79003         * doc/posix-functions/stdin.texi (stdin): Likewise.
79004         * doc/posix-functions/stdout.texi (stdout): Likewise.
79005         * modules/freopen-safer-tests: New test.
79006         * tests/test-reopen-safer.c: New file.
79008 2009-11-05  Jim Meyering  <meyering@redhat.com>
79010         maint.mk: Prohibit inclusion of "close-stream.h" without use.
79011         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
79013 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79015         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
79017 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79019         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
79021 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79023         Fix link error.
79024         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79025         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79027 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79029         * tests/test-func.c: Also test value of __func__.
79031 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79033         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
79034         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
79036 2009-11-05  Bruno Haible  <bruno@clisp.org>
79038         Fix link error.
79039         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79040         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79041         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
79043 2009-11-05  Bruno Haible  <bruno@clisp.org>
79045         Tests for module 'inet_pton'.
79046         * modules/inet_pton-tests: New file.
79047         * tests/test-inet_pton.c: New file.
79049 2009-11-05  Bruno Haible  <bruno@clisp.org>
79051         Tests for module 'inet_ntop'.
79052         * modules/inet_ntop-tests: New file.
79053         * tests/test-inet_ntop.c: New file.
79055 2009-11-04  Eric Blake  <ebb9@byu.net>
79057         stdlib-safer: wrap all mkstemp variants
79058         * modules/mkostemp (configure.ac): Set witness.
79059         * modules/mkostemps (configure.ac): Likewise.
79060         * modules/mkstemps (configure.ac): Likewise.
79061         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
79062         (mkstemps_safer): Wrap more functions.
79063         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
79064         wrapping.
79065         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
79066         (mkstemps_safer): Implement the wrappers.
79068         mkstemps, mkostemps: new modules
79069         * modules/mkostemps: New module.
79070         * modules/mkstemps: Likewise.
79071         * lib/mkostemps.c (mkostemps): New file.
79072         * lib/mkstemps.c (mkstemps): Likewise.
79073         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
79074         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
79075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
79076         * modules/stdlib (Makefile.am): Substitute them.
79077         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
79078         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
79079         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
79080         * doc/gnulib.texi (Glibc stdlib.h): Include them.
79081         * MODULES.html.sh (File system functions): Mention them.
79083         tempname: resync from glibc
79084         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
79085         same values for __GT_FILE as glibc.  Abort even when assertions
79086         are disabled.
79087         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
79088         match its value otherwise.  Allow idempotent inclusion.
79089         * lib/mkdtemp.c (mkdtemp): Adjust caller.
79090         * lib/mkostemp.c (mkostemp): Likewise.
79091         * lib/mkstemp.c (mkstemp): Likewise.
79092         * lib/tmpfile.c (tmpfile): Likewise.
79093         * NEWS: Document this.
79095         utimens: fix use of futimens on older Linux
79096         * lib/utimens.c (fdutimens): Use updated, rather than original,
79097         timespec to avoid bug in older Linux kernel.
79098         Reported by Simon Josefsson.
79100 2009-11-04  Bruno Haible  <bruno@clisp.org>
79102         Make num_processors more flexible and consistent.
79103         * lib/nproc.h (enum nproc_query): New type.
79104         (num_processors): Add a 'query' argument.
79105         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
79106         (num_processors): Add a 'query' argument. Test the value of the
79107         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
79108         mingw, count the number of CPUs available for the current process.
79109         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
79110         Check for sched_getaffinity and sched_getaffinity_np.
79111         * modules/nproc (Depends-on): Add c-ctype, extensions.
79112         * NEWS: Mention the change.
79114 2009-11-03  Bruno Haible  <bruno@clisp.org>
79116         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
79118 2009-11-03  Jim Meyering  <meyering@redhat.com>
79120         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
79121         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
79122         if it is defined.
79124 2009-11-02  Eric Blake  <ebb9@byu.net>
79126         mktime, timegm: share common declaration
79127         * lib/mktime-internal.h: New file.
79128         * lib/mktime.c: Use it rather than open-coding a declaration.
79129         * lib/timegm.c: Likewise.
79130         * modules/mktime (Files): Ship it.
79131         * modules/timegm (Files): Likewise.
79132         Suggested by Bruno Haible.
79134         test-update-copyright: update test to match script changes
79135         * tests/test-update-copyright.sh: Avoid hard-coding perl
79136         location.  Don't update *.bak created by earlier runs.
79138 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79139             Simon Josefsson  <simon@josefsson.org>
79140             Bruno Haible  <bruno@clisp.org>
79142         Fix link error on Solaris 8.
79143         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
79144         also in libnsl. Define also INET_PTON_LIB.
79145         * modules/inet_pton (Link): New section.
79147 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79148             Bruno Haible  <bruno@clisp.org>
79150         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
79151         * modules/inet_ntop (Link): New section.
79152         Reported by Boyan Kasarov <bkasarov@gmail.com>.
79154 2009-11-02  Eric Blake  <ebb9@byu.net>
79156         maint: avoid compiler warnings in m4 macros
79157         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
79158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
79160 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79162         * m4/pmccabe2html.m4: Remove file.
79163         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
79164         function.  Change maintainer.
79165         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
79166         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
79167         Courtès).
79169 2009-10-31  Eric Blake  <ebb9@byu.net>
79171         fseeko: fix m4 regression
79172         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
79173         regression from 2009-10-27.
79174         Reported by Ralf Wildenhues.
79176 2009-10-31  Jim Meyering  <meyering@redhat.com>
79178         inttostr: aesthetics and improved (compile-time) safety
79179         Define inttype_is_signed rather than inttype_is_unsigned,
79180         since the sole use is via "#if inttype_is_signed".
79181         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
79182         inttype_is_unsigned.
79183         * lib/offtostr.c (inttype_is_signed): Likewise.
79184         * lib/uinttostr.c (inttype_is_signed): Likewise.
79185         * lib/umaxtostr.c (inttype_is_signed): Likewise.
79186         * lib/inttostr.c (inttostr): Use verify to cross-check the
79187         inttype_is_signed value and the signedness of the actual type.
79188         * modules/inttostr (Depends-on): Add verify.
79190 2009-10-30  Eric Blake  <ebb9@byu.net>
79192         build: avoid compiler warnings
79193         * lib/fchmodat.c (lchmod): Mark unused variables.
79194         * lib/getopt.c (_getopt_initialize): Likewise.
79195         * lib/mktime.c (__mktime_internal): Provide prototype.
79196         * lib/inttostr.c (inttostr): Avoid compiler warning even with
79197         older gcc that do not understand #pragma GCC diagnostic.
79198         * lib/uinttostr.c (inttype_is_unsigned): Define.
79199         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
79201 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
79203         stat: fix compilation on AIX
79204         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
79205         only see struct stat64.
79207 2009-10-30  Eric Blake  <ebb9@byu.net>
79209         exclude: make more robust
79210         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
79211         rather than masking a coding bug.
79212         Suggested by Bruno Haible.
79214 2009-10-30  Jim Meyering  <meyering@redhat.com>
79216         perl scripts: remove #!/usr/bin/perl in favor of more portable...
79217         Rather than putting #!/usr/bin/perl on the first line,
79218         start with a variant of what's recommended by "man perlrun" that
79219         invokes the first "perl" program from your shell's search path.
79220         * build-aux/gitlog-to-changelog: Replace #!... as above.
79221         Add a "Local Variables" perl mode setting.
79222         Prompted by a patch from Ludovic Courtès.
79223         Improved by Eric Blake.
79224         * build-aux/useless-if-before-free: Likewise.
79225         * build-aux/announce-gen: Likewise.
79226         * build-aux/update-copyright: Likewise.
79228 2009-10-29  Eric Blake  <ebb9@byu.net>
79230         filenamecat-lgpl: adjust clients
79231         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
79232         filenamecat.
79233         * modules/renameat (Depends-on): Likewise.
79235         filenamecat: split into filenamecat-lgpl
79236         * modules/filenamecat-lgpl: New module.
79237         * modules/filenamecat (Files): Move library-safe files into
79238         filenamecat-lgpl.
79239         (Depends-on): Add filenamecat-lgpl.
79240         (configure.ac): Declare witness.
79241         * lib/filenamecat.h (file_name_concat): Only declare when using
79242         GPL module.
79243         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
79244         Move...
79245         * lib/filenamecat-lgpl.c: ...into new file.
79246         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
79247         (gl_FILE_NAME_CONCAT): Use it.
79248         * MODULES.html.sh (File system functions): Mention new module.
79250         argp: avoid memory leak
79251         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
79252         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
79253         base_name, since the latter malloc()s and can call exit().
79254         Leak introduced 2006-07-03.
79256         dirname-lgpl: adjust clients that don't need full dirname
79257         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
79258         * modules/filenamecat (Depends-on): Likewise.
79259         * modules/linkat (Depends-on): Likewise.
79260         * modules/mkancesdirs (Depends-on): Likewise.
79261         * modules/mkdir (Depends-on): Likewise.
79262         * modules/openat (Depends-on): Likewise.
79263         * modules/savewd (Depends-on): Likewise.
79264         * modules/rename (Depends-on): Likewise.
79265         (License): Relax license.
79266         * modules/mkdir-tests (Depends-on): Drop progname.
79267         (Makefile.am): Delete unneeded LDADD.
79268         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
79270         dirname: split into dirname-lgpl
79271         * modules/dirname-lgpl: New module.
79272         * modules/dirname (Files): Move library-safe files into
79273         dirname-lgpl.
79274         (Depends-on): Add dirname-lgpl.
79275         (configure.ac): Declare witness.
79276         * modules/double-slash-root (License): Relax license.
79277         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
79278         module.
79279         * lib/dirname.c (dir_len, mdir_name): Move...
79280         * lib/dirname-lgpl.c: ...into new file.
79281         * lib/basename.c (last_component, base_len): Move...
79282         * lib/basename-lgpl.c: ...into new file.
79283         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
79284         (gl_DIRNAME): Use it.
79285         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
79286         Mention new module.
79287         * modules/dirname-tests (Depends-on): Add progname.
79288         * tests/test-dirname.c (program_name): Delete.
79290         mkdir: make safe for libraries
79291         * modules/mkdir (Depends-on): Drop xalloc.
79292         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
79293         exit.
79295         tests: avoid some compiler warnings
79296         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
79297         literals.
79298         * tests/test-memchr.c (main): Avoid type mismatch.
79299         * tests/test-arpa_inet.c (main): Avoid unused parameters.
79300         * tests/test-base64.c (main): Likewise.
79301         * tests/test-getdelim.c (main): Likewise.
79302         * tests/test-gethostname.c (main): Likewise.
79303         * tests/test-getline.c (main): Likewise.
79304         * tests/test-netinet_in.c (main): Likewise.
79305         * tests/test-select.c (open_server_socket, main): Likewise.
79306         * tests/test-select-stdin.c (main): Likewise.
79307         * tests/test-sockets.c (main): Likewise.
79308         * tests/test-strsignal.c (main): Likewise.
79309         * tests/test-sys_select.c (main): Likewise.
79310         * tests/test-sys_socket.c (main): Likewise.
79311         * tests/test-u64.c (main): Likewise.
79312         * tests/test-xfprintf-posix.c (main): Likewise.
79313         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
79315         sockets: avoid compiler warning
79316         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
79318         maint: detect usage(1) and other suspicious exits
79319         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
79321 2009-10-29  Jim Meyering  <meyering@redhat.com>
79323         timespec: long-to-int truncation could make timespec_cmp malfunction
79324         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
79325         a multiple of 2^32 nanoseconds as no difference.
79327 2009-10-28  Jim Meyering  <meyering@redhat.com>
79329         fprintftime: wrap macro code argument in "do {...} while(0)"
79330         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
79331         cpy macro must be a statement that can be followed by a semicolon.
79332         Now that the else clause contains a comment and is hence longer
79333         than one line, I require curly braces.  That in turn requires
79334         that we wrap this code block in the standard do...while(0).
79336         fprintftime: remove stray semicolon from previous change
79337         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
79339         fprintftime: avoid a warning about ignored fwrite return value
79340         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
79341         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
79342         that is unsafe.
79343         * modules/fprintftime (Depends-on): Add ignore-value.
79345         exclude: avoid an unwarranted warning
79346         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
79348 2009-10-27  Eric Blake  <ebb9@byu.net>
79350         fseek: avoid compilation failure when fflush is replaced
79351         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
79352         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
79353         module is in use.
79354         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
79355         module is not in use; since REPLACE_FSEEK worked otherwise.
79356         (GNULIB_FTELLO): Likewise for ftell.
79357         Reported by Ian Beckwith and others.
79359 2009-10-27  Bruno Haible  <bruno@clisp.org>
79361         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
79362         Reported by Jim Meyering.
79364 2009-10-27  Jim Meyering  <jim@meyering.net>
79365             Bruno Haible  <bruno@clisp.org>
79367         Avoid warning despite dropping the return value of fwrite.
79368         * lib/unicodeio.c: Include ignore-value.h.
79369         (fwrite_success_callback): Explicitly ignore fwrite's return value.
79370         * modules/unicodeio (Depends-on): Add ignore-value.
79372 2009-10-26  Eric Blake  <ebb9@byu.net>
79374         areadlinkat: fix fallback path
79375         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
79376         pointer and zero.
79378 2009-10-22  Pádraig Brady  <P@draigBrady.com>
79380         Use a better IO block size for modern systems
79381         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
79382         * lib/md2.c: Likewise.
79383         * lib/md4.c: Likewise.
79384         * lib/md5.c: Likewise.
79385         * lib/sha1.c: Likewise.
79386         * lib/sha256.c: Likewise.
79387         * lib/sha512.c: Likewise.
79389 2009-10-22  Eric Blake  <ebb9@byu.net>
79391         tests: avoid several compiler warnings
79392         * tests/test-getcwd.c (main): Avoid buffer underflow.
79393         * tests/test-getdate.c (main): String literals are not safe with
79394         putenv, so use setenv.  Declare unused argument.
79395         * modules/getdate-tests (Depends-on): Add setenv.
79396         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
79397         problems with string literals in char *.
79398         * tests/test-hash.c (main): Avoid shadowing declaration.
79399         (insert_new): Treat string literals as char const *.
79400         * tests/test-getopt.h (test_getopt): Likewise.
79401         (getopt_loop): Alter types to minimize casting elsewhere.
79402         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
79403         (test_getopt_long_posix): Likewise.
79404         (do_getopt_long): Add wrapper to minimize casting.
79405         * tests/test-atexit.c (clear_temp_file): Use void.
79406         * tests/test-areadlink-with-size.c (main): Declare unused
79407         arguments.
79408         * tests/test-areadlink.c (main): Likewise.
79409         * tests/test-areadlinkat-with-size.c (main): Likewise.
79410         * tests/test-areadlinkat.c (main): Likewise.
79411         * tests/test-canonicalize-lgpl.c (main): Likewise.
79412         * tests/test-canonicalize.c (main): Likewise.
79413         * tests/test-dirent-safer.c (main): Likewise.
79414         * tests/test-dirname.c (main): Likewise.
79415         * tests/test-dup2.c (main): Likewise.
79416         * tests/test-fchdir.c (main): Likewise.
79417         * tests/test-fcntl-h.c (main): Likewise.
79418         * tests/test-fcntl-safer.c (main): Likewise.
79419         * tests/test-fdopendir.c (main): Likewise.
79420         * tests/test-fdutimensat.c (main): Likewise.
79421         * tests/test-fflush.c (main): Likewise.
79422         * tests/test-filenamecat.c (main): Likewise.
79423         * tests/test-filevercmp.c (main): Likewise.
79424         * tests/test-fopen-safer.c (main): Likewise.
79425         * tests/test-fopen.c (main): Likewise.
79426         * tests/test-fpending.c (main): Likewise.
79427         * tests/test-fpurge.c (main): Likewise.
79428         * tests/test-freading.c (main): Likewise.
79429         * tests/test-fstatat.c (main): Likewise.
79430         * tests/test-fsync.c (main): Likewise.
79431         * tests/test-futimens.c (main): Likewise.
79432         * tests/test-getndelim2.c (main): Likewise.
79433         * tests/test-gettimeofday.c (main): Likewise.
79434         * tests/test-getopt.c (main): Likewise.
79435         * tests/test-i-ring.c (main): Likewise.
79436         * tests/test-inttypes.c (main): Likewise.
79437         * tests/test-link.c (main): Likewise.
79438         * tests/test-lstat.c (main): Likewise.
79439         * tests/test-math.c (main): Likewise.
79440         * tests/test-md5.c (main): Likewise.
79441         * tests/test-memchr2.c (main): Likewise.
79442         * tests/test-memrchr.c (main): Likewise.
79443         * tests/test-mkdir.c (main): Likewise.
79444         * tests/test-mkdirat.c (main): Likewise.
79445         * tests/test-mkfifoat.c (main): Likewise.
79446         * tests/test-open.c (main): Likewise.
79447         * tests/test-openat-safer.c (main): Likewise.
79448         * tests/test-openat.c (main): Likewise.
79449         * tests/test-quotearg.c (main): Likewise.
79450         * tests/test-rawmemchr.c (main): Likewise.
79451         * tests/test-readlink.c (main): Likewise.
79452         * tests/test-remove.c (main): Likewise.
79453         * tests/test-rename.c (main): Likewise.
79454         * tests/test-renameat.c (main): Likewise.
79455         * tests/test-rmdir.c (main): Likewise.
79456         * tests/test-sha1.c (main): Likewise.
79457         * tests/test-signal.c (main): Likewise.
79458         * tests/test-sigaction.c (main): Likewise.
79459         * tests/test-stat.c (main): Likewise.
79460         * tests/test-stat-time.c (main): Likewise.
79461         * tests/test-stddef.c (main): Likewise.
79462         * tests/test-stdint.c (main): Likewise.
79463         * tests/test-stdio.c (main): Likewise.
79464         * tests/test-stdlib.c (main): Likewise.
79465         * tests/test-strchrnul.c (main): Likewise.
79466         * tests/test-strerror.c (main): Likewise.
79467         * tests/test-string.c (main): Likewise.
79468         * tests/test-strtod.c (main): Likewise.
79469         * tests/test-strverscmp.c (main): Likewise.
79470         * tests/test-symlink.c (main): Likewise.
79471         * tests/test-symlinkat.c (main): Likewise.
79472         * tests/test-sys_stat.c (main): Likewise.
79473         * tests/test-sys_time.c (main): Likewise.
79474         * tests/test-time.c (main): Likewise.
79475         * tests/test-unistd.c (main): Likewise.
79476         * tests/test-unlink.c (main): Likewise.
79477         * tests/test-unlinkat.c (main): Likewise.
79478         * tests/test-utimens.c (main): Likewise.
79479         * tests/test-utimensat.c (main): Likewise.
79480         * tests/test-version-etc.c (main): Likewise.
79481         * tests/test-wchar.c (main): Likewise.
79482         * tests/test-wctype.c (main): Likewise.
79483         * tests/test-xprintf-posix.c (main): Likewise.
79484         * tests/test-posixtm.c (main): Likewise.
79485         (STREQ): Delete unused macro.
79486         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79487         shadowed variables.
79488         * tests/test-memchr.c (main): Likewise.
79490 2009-10-21  Eric Blake  <ebb9@byu.net>
79492         areadlinkat: avoid failure on older glibc
79493         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79494         rather than mis-comparing 0 against FUNC_RESULT of char*.
79496 2009-10-21  Bruno Haible  <bruno@clisp.org>
79498         * modules/stpncpy (License): Relicense under LGPLv2+.
79499         Reported by David Lutterkort <lutter@redhat.com>.
79501 2009-10-20  Eric Blake  <ebb9@byu.net>
79503         utimensat: work around Solaris 9 bug
79504         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79505         has trailing slash bugs.
79506         * tests/test-lutimens.h (test_lutimens): Enhance test.
79507         * tests/test-utimens.h (test_utimens): Likewise.
79508         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79509         * doc/posix-functions/utimes.texi (utimes): Likewise.
79510         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79511         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79512         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79513         * doc/posix-functions/futimens.texi (futimens): Likewise.
79515         fdutimensat: new module
79516         * modules/fdutimensat: New file.
79517         * lib/fdutimensat.c (fdutimensat): Likewise.
79518         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79519         * MODULES.html.sh (File system functions): Mention module.
79520         * modules/fdutimensat-tests: New test.
79521         * tests/test-fdutimensat.c: Likewise.
79523         doc: regenerate INSTALL
79524         * doc/INSTALL: Reflect recent autoconf update.
79525         * doc/INSTALL.ISO: Likewise.
79526         * doc/INSTALL.UTF-8: Likewise.
79528 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79530         acl: warn if ACL support is not detected
79531         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79533 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79535         * lib/nproc.h: Add extern "C" block for C++.
79537 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79538             Bruno Haible  <bruno@clisp.org>
79540         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79541         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79542         * doc/posix-functions/isalpha.texi: Likewise.
79543         * doc/posix-functions/isblank.texi: Likewise.
79544         * doc/posix-functions/iscntrl.texi: Likewise.
79545         * doc/posix-functions/isdigit.texi: Likewise.
79546         * doc/posix-functions/isgraph.texi: Likewise.
79547         * doc/posix-functions/islower.texi: Likewise.
79548         * doc/posix-functions/isprint.texi: Likewise.
79549         * doc/posix-functions/ispunct.texi: Likewise.
79550         * doc/posix-functions/isspace.texi: Likewise.
79551         * doc/posix-functions/isupper.texi: Likewise.
79552         * doc/posix-functions/isxdigit.texi: Likewise.
79554 2009-10-18  Bruno Haible  <bruno@clisp.org>
79556         Tests for module 'isblank'.
79557         * modules/isblank-tests: New file.
79558         * tests/test-isblank.c: New file.
79560         New module 'isblank'.
79561         * lib/isblank.c: New file.
79562         * m4/isblank.m4: New file.
79563         * modules/isblank: New file.
79564         * doc/posix-functions/isblank.texi: Mention the new module.
79566 2009-10-18  Bruno Haible  <bruno@clisp.org>
79568         New module 'ctype'.
79569         * lib/ctype.in.h: New file.
79570         * m4/ctype.m4: New file.
79571         * modules/ctype: New file.
79572         * doc/posix-headers/ctype.texi: Mention the new module.
79574 2009-10-18  Jim Meyering  <meyering@redhat.com>
79576         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79577         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79578         right after its initialization, rather than farther down.
79579         Keeping these in close proximity makes it easier to ensure
79580         that each such variable is initialized.  E.g.,
79582             LIB_CLOCK_GETTIME=
79583             AC_SUBST([LIB_CLOCK_GETTIME])
79585         This change also increments these serial numbers.
79586         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79590 2009-10-18  Bruno Haible  <bruno@clisp.org>
79592         Don't let environment variables perturb build.
79593         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79594         (gl_PREREQ_GETHRXTIME): ... not here.
79596 2009-10-18  Bruno Haible  <bruno@clisp.org>
79598         Avoid symlink attack in localcharset module.
79599         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79600         (O_NOFOLLOW): Define fallback.
79601         (get_charset_aliases): Don't open the file if it is a symbolic link.
79602         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79603         gl_FCNTL_H.
79604         (gl_FCNTL_H): Require it.
79605         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79606         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79607         Reported by Fergal Glynn <fglynn@veracode.com>.
79609 2009-10-18  Bruno Haible  <bruno@clisp.org>
79611         Implement nproc for mingw.
79612         * lib/nproc.c: Include <windows.h>
79613         (num_processors): On native Windows platforms, try GetSystemInfo.
79615 2009-10-18  Bruno Haible  <bruno@clisp.org>
79617         Implement nproc for IRIX.
79618         * lib/nproc.c: Include <sys/sysmp.h>.
79619         (num_processors): On IRIX systems, try sysmp.
79620         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79622 2009-10-18  Bruno Haible  <bruno@clisp.org>
79624         Implement nproc for HP-UX.
79625         * lib/nproc.c: Include <sys/pstat.h>
79626         (num_processors): On HP-UX systems, try pstat_getdynamic.
79627         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79628         pstat_getdynamic.
79630 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79631             Bruno Haible  <bruno@clisp.org>
79633         Implement nproc for NetBSD, OpenBSD.
79634         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79635         (ARRAY_SIZE): New macro.
79636         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79637         * m4/nproc.m4: New file.
79638         * modules/nproc (Files): Add m4/nproc.m4.
79639         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79640         (Makefile.am): Instead, augment lib_SOURCES.
79642 2009-10-18  Bruno Haible  <bruno@clisp.org>
79644         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79645         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79646         sys/param.h.
79648 2009-10-16  Eric Blake  <ebb9@byu.net>
79650         utimensat: new module
79651         * modules/utimensat: New file.
79652         * lib/utimensat.c (utimensat): Likewise.
79653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79654         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79655         so we can work around Linux bugs.
79656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79657         * modules/sys_stat (Makefile.am): Substitute them.
79658         * lib/sys_stat.in.h (utimensat): Declare it.
79659         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79660         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79661         * modules/utimensat-tests: New test.
79662         * tests/test-utimensat.c: Likewise.
79664         utimens: let lutimens work on non-symlinks
79665         * lib/utimens.c (lutimens): Fall back to utimens rather than
79666         failing with ENOSYS, when file is not a symlink.
79667         (utimens): Reduce redirection.
79668         * tests/test-lutimens.h (test_lutimens): Update test to cover
79669         non-symlinks.
79670         * tests/test-utimens.h (test_utimens): Update test to cover
79671         symlinks.
79672         * tests/test-utimens.c (main): Update caller.
79674         utimens: cache whether utimensat syscall works
79675         * lib/utimens.c (utimensat_works_really): New cache variable.
79676         (fdutimens, lutimens): Use it to avoid failing syscall.
79678         test-stat-time, test-utimens: improve portability
79679         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79680         ext4 on alpha, and for cygwin.
79681         * tests/test-utimens-common.h: New file.
79682         (nap): Factor delays into single function.
79683         * tests/test-lutimens.h (test_lutimens): Use new header.
79684         * tests/test-futimens.h (test_futimens): Likewise.
79685         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79686         timestamps to occur from same machine, as was done previously for
79687         test_utimens.
79688         * modules/utimens-tests (Files): Ship new file.
79689         * modules/futimens-tests (Files): Likewise.
79690         Reported in part by Jim Meyering.
79692         sys_stat: sort replacement declarations
79693         * lib/sys_stat.in.h: Sort declarations.
79694         * lib/futimens.c (futimens): Fix typo.
79696 2009-10-15  Jim Meyering  <meyering@redhat.com>
79698         don't let environment settings perturb build
79699         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79700         could cause a configure-time and/or build-time malfunction.
79701         Typically, a configure-time function-in-library test is performed
79702         via code like this:
79704           LIB_VAR=
79705           AC_SUBST([LIB_VAR])
79706           prefix_saved_LIBS=$LIBS
79707             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79708                        [test "$ac_cv_search_FUNC" = "none required" ||
79709                         LIB_VAR=$ac_cv_search_FUNC])
79710           LIBS=$prefix_saved_LIBS
79712         However, in each of the files affected by this change, the LIB_VAR=
79713         initialization was omitted.  Thus, when set in the environment, its
79714         value would propagate into generated Makefiles when FUNC is not found
79715         in LIB_NAME.
79716         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79717         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79720 2009-10-14  Eric Blake  <ebb9@byu.net>
79722         fchdir: avoid infinite recursion in mingw
79723         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79724         recursing.
79726         test-stat-time: port to mingw
79727         * tests/test-stat-time.c (force_unlink): Return a value.
79728         (test_ctime) [W32]: Fix compilation error.
79729         (nap): Don't call usleep with too large an argument.  Use
79730         force_unlink.
79731         * doc/pastposix-functions/usleep.texi (usleep): Document the
79732         portability issue.
79734 2009-10-13  Jim Meyering  <meyering@redhat.com>
79736         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79737         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79738         * modules/pipe-filter-ii: Likewise.
79739         * modules/sys_socket-tests: Likewise.
79740         * modules/tsearch-tests: Likewise.
79741         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79742         (check): Depend on it.
79744 2009-10-12  Eric Blake  <ebb9@byu.net>
79746         utimens-tests: port to NFS file systems
79747         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79748         comparisons to avoid spurious failures from timestamp drift
79749         between NFS machines.
79751 2009-10-12  Eric Blake  <ebb9@byu.net>
79753         stat-time-tests: minor cleanups
79754         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79755         * tests/test-stat-time.c (nap): Separate assignment from call.
79756         Suggested by Paolo Bonzini and Bruno Haible.
79758         sys_stat: guarantee struct timespec
79759         * lib/sys_stat.in.h (includes): Always include <time.h>
79760         * modules/sys_stat (Depends-on): Add time.
79761         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79762         mode_t permission values.
79763         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79764         get at subsecond timestamps.
79766 2009-10-10  Eric Blake  <ebb9@byu.net>
79768         futimens: new module
79769         * modules/futimens: New file.
79770         * lib/futimens.c (futimens): Likewise.
79771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79772         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79773         we can work around Linux bugs.
79774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79775         * modules/sys_stat (Makefile.am): Substitute them.
79776         * lib/sys_stat.in.h (futimens): Declare it.
79777         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79778         * doc/posix-functions/futimens.texi (futimens): Likewise.
79779         * modules/futimens-tests: New test.
79780         * tests/test-futimens.c: Likewise.
79782         utimens: introduce fdutimens
79783         * lib/utimens.h (fdutimens): New prototype.
79784         * lib/utimens.c (gl_futimens): Move guts...
79785         (fdutimens): ...to new interface.
79786         * tests/test-utimens.c (do_fdutimens): Use it.
79788         utimens: add UTIME_NOW and UTIME_OMIT support
79789         * lib/utimens.c (validate_timespec, update_timespec): New helper
79790         functions.
79791         (gl_futimens, lutimens): Use them.
79792         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79793         stdbool, sys_stat.
79794         (Link): Mention resulting library dependency.
79795         * modules/utimecmp (Link): Likewise.
79796         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79797         (Makefile.am): Pick up library dependency.
79798         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79799         definition.
79800         * tests/test-sys_stat.c: Test the definitions.
79801         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79802         * NEWS: Document library dependency.
79804         utimecmp: support symlink timestamps
79805         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79806         hashing when possible.  Use pathconf when available.
79807         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79808         * modules/utimecmp (Depends-on): Add lstat.
79810         utimens: add lutimens interface
79811         * lib/utimens.c (lutimens): New function.
79812         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79813         * lib/utimens.h (lutimens): Declare new interface.
79814         * tests/test-utimens.c (main): Enhance test.
79815         * tests/test-lutimens.h (test_lutimens): New file.
79816         * modules/utimens-tests (Files): Distribute it.
79817         (Depends-on): Add symlink.
79818         (configure.ac): Check for usleep.
79820         utimens: validate futimens usage
79821         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79822         fewer syscalls on failure later on.  Avoid compiler warning on
79823         mingw.
79824         * modules/utimens (Depends-on): Add dup2.
79826         utimens: add test
79827         * modules/utimens-tests: New test.
79828         * tests/test-utimens.h: New file.
79829         * tests/test-futimens.h: Likewise.
79830         * tests/test-utimens.c: Likewise.
79832         doc: mention timestamp portability issues
79833         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79834         instead.
79835         * doc/posix-functions/utime.texi (utime): Likewise.
79836         * doc/posix-functions/utimes.texi (utimes): Likewise.
79837         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79838         instead.
79839         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79840         module.
79841         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79842         Mention weakness with symlink timestamps.
79843         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79844         to utimensat/futimens instead.
79845         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79847         test-dup2: enhance test
79848         * tests/test-dup2.c (main): Also check AT_FDCWD.
79850         test-stat-time: avoid more spurious failures
79851         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79852         xfs; and avoid race if the two timestamps cross quantization edge.
79854         relocatable: prefer 'file system' over 'filesystem'
79855         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79856         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79857         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79858         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79859         * lib/relocatable.c (compute_curr_prefix): Likewise.
79861 2009-10-10  Jim Meyering  <meyering@redhat.com>
79863         stat-time-tests: check for the usleep function
79864         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79866 2009-10-10  Bruno Haible  <bruno@clisp.org>
79868         * modules/xnanosleep: Put the Link section after the Include section.
79870 2009-10-09  Eric Blake  <ebb9@byu.net>
79872         dup2: work around FreeBSD 6.1 bug
79873         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79874         * doc/posix-functions/dup2.texi (dup2): Document it.
79875         Reported by Nelson H. F. Beebe and Jim Meyering.
79877         test-stat-time: port to buggy NFS clients
79878         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79879         (test_ctime): Also skip test if mtime and ctime are skewed.
79881         maint: prefer 'file system' over 'filesystem'
79882         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79883         * doc/posix-functions/lstat.texi (lstat): Likewise.
79884         * lib/file-has-acl.c (file_has_acl): Likewise.
79885         * lib/fwriteerror.c [TEST]: Likewise.
79886         * tests/test-areadlink.h (test_areadlink): Likewise.
79887         * tests/test-areadlinkat-with-size.c (main): Likewise.
79888         * tests/test-areadlinkat.c (main): Likewise.
79889         * tests/test-canonicalize-lgpl.c (main): Likewise.
79890         * tests/test-canonicalize.c (main): Likewise.
79891         * tests/test-fstatat.c (main): Likewise.
79892         * tests/test-linkat.c (main): Likewise.
79893         * tests/test-lstat.h (test_lstat_func): Likewise.
79894         * tests/test-mkdir.h (test_mkdir): Likewise.
79895         * tests/test-readlink.h (test_readlink): Likewise.
79896         * tests/test-remove.c (main): Likewise.
79897         * tests/test-rename.h (test_rename): Likewise.
79898         * tests/test-renameat.c (main): Likewise.
79899         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79900         * tests/test-symlink.h (test_symlink): Likewise.
79901         * tests/test-symlinkat.c (main): Likewise.
79902         * tests/test-unlink.h (test_unlink_func): Likewise.
79903         * tests/test-unlinkat.c (main): Likewise.
79905         maint: make realtime library usage explicit
79906         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79907         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79908         * modules/settime (Link): Likewise.
79909         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79911         test-stat-time: speed up execution
79912         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79913         warning on mingw.
79914         (nap): New helper function.
79915         (prepare_test): Use it to reduce sleep time.
79916         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79917         execution.
79918         * modules/stat-time-tests (configure.ac): Check for usleep.
79920 2009-10-09  Jim Meyering  <meyering@redhat.com>
79922         selinux-h: always use getfilecon wrappers
79923         * lib/getfilecon.c: New file.
79924         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79925         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79926         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79927         (fgetfilecon): Provide a stub.
79928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79929         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79930         file unconditionally.
79931         When <selinux/selinux.h> is found, arrange to use wrappers.
79932         * modules/selinux-h (Files): Add getfilecon.c.
79933         (Makefile.am): Substitute include-next-related bits
79934         into the now-always-generated selinux/selinux.h file.
79935         * doc/glibc-functions/lgetfilecon.texi: New file.
79936         * doc/glibc-functions/fgetfilecon.texi: New file.
79937         * doc/glibc-functions/getfilecon.texi: New file.
79938         * doc/glibc-functions/getfilecon-desc.texi: New file.
79939         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79940         which to pull in the new files.
79941         * MODULES.html.sh (Misc): Add selinux-h.
79943 2009-10-08  Jim Meyering  <meyering@redhat.com>
79945         unistd: fix comment typo
79946         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79948 2009-10-08  Eric Blake  <ebb9@byu.net>
79950         areadlink: use SIZE_MAX consistently
79951         * modules/areadlink (Depends-on): Add stdint.
79952         * modules/areadlink-with-size (Depends-on): Likewise.
79953         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79954         gives NULL; drop sys/types, since unistd gives size_t; and add
79955         stdint for SIZE_MAX.
79956         (SIZE_MAX): Rely on headers.
79957         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79958         and add stdint.
79959         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79960         (SIZE_MAX): Likewise.
79961         (INITIAL_BUF_SIZE): Turn into enum.
79962         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79964 2009-10-08  Jim Meyering  <meyering@redhat.com>
79966         areadlinkat: avoid compilation failure
79967         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79968         Fix typo in comment.
79970 2009-10-07  Eric Blake  <ebb9@byu.net>
79972         areadlinkat-with-size: new module
79973         * modules/areadlinkat-with-size: New module.
79974         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79975         * lib/areadlink.h (areadlinkat): Declare it.
79976         * MODULES.html.sh (File system functions): Mention it.
79977         * modules/areadlinkat-with-size-tests: New test.
79978         * tests/test-areadlinkat-with-size.c: New file.
79980         xreadlinkat: new module
79981         * modules/xreadlinkat: New module.
79982         * lib/xreadlinkat.c (xreadlinkat): New file.
79983         * lib/xreadlink.h (xreadlinkat): Declare it.
79984         * MODULES.html.sh (File system functions): Mention it.
79986         areadlinkat: new module
79987         * lib/at-func.c (FUNC_FAIL): New define.
79988         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79989         * modules/areadlinkat: New module.
79990         * lib/linkat.c (areadlinkat): Move...
79991         * lib/areadlinkat.c (areadlinkat): ...to new file.
79992         * lib/areadlink.h (areadlinkat): Declare it.
79993         * modules/linkat (Depends-on): Add areadlinkat.
79994         * MODULES.html.sh (File system functions): Mention it.
79995         * modules/areadlinkat-tests: New test.
79996         * tests/test-areadlinkat.c: New file.
79998         areadlink, areadlink-with-size: add tests
79999         * modules/areadlink-tests: New test.
80000         * modules/areadlink-with-size-tests: Likewise.
80001         * tests/test-areadlink.h: New file.
80002         * tests/test-areadlink.c: Likewise.
80003         * tests/test-areadlink-with-size.c: Likewise.
80005         maint: minor cleanups
80006         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
80007         _UNUSED_PARAMETER_ instead.
80008         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
80009         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
80010         * modules/linkat-tests (Files): Distribute test-link.h.
80012         openat, utimens: whitespace cleanup
80013         * lib/openat.c: Prefer space throughout, rather than mix of 8
80014         spaces vs. tabs.
80015         * lib/at-func.c: Likewise.
80016         * lib/utimens.c: Likewise.
80018         openat: avoid using wrong fd
80019         * lib/openat.c (openat_permissive): Reject user's fd if saving the
80020         working directory chooses same fd.
80021         * lib/at-func.c (AT_FUNC_NAME): Likewise.
80023         mkdir, mkdirat: fix cygwin 1.5.x bug
80024         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
80025         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
80026         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
80027         bug.
80028         (gl_PREREQ_MKDIR): Delete unused macro.
80029         * modules/mkdir (Files): Track file rename.
80030         (configure.ac): Update macro name.
80031         * modules/openat (Depends-on): Add mkdir.
80032         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
80034         mkdir, mkdirat: add tests
80035         * modules/mkdir-tests: New test.
80036         * tests/test-mkdir.h: New file.
80037         * tests/test-mkdir.c: Likewise.
80038         * tests/test-mkdirat.c: Likewise.
80039         * modules/openat-tests (Files): Add new files.
80040         (Makefile.am): Run new test.
80042 2009-10-06  Eric Blake  <ebb9@byu.net>
80044         doc: tweak *at function documentation
80045         * doc/posix-functions/faccessat.texi (faccessat): Mention
80046         known issue with replacement.
80047         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
80048         * doc/posix-functions/linkat.texi (linkat): Likewise.
80049         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80050         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80051         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80052         * doc/posix-functions/renameat.texi (renameat): Likewise.
80053         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80055         openat: fix GNU/Hurd bug in unlinkat
80056         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
80057         broken.
80058         * doc/posix-functions/unlink.texi (unlink): Document this.
80059         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
80061         fdopendir: fix GNU/Hurd bug
80062         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
80063         allowing non-directory fds.
80064         * lib/fdopendir.c (rpl_fdopendir): Work around it.
80065         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
80066         * modules/dirent (Makefile.am): Substitute it.
80067         * lib/dirent.in.h (fdopendir): Declare replacement.
80068         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
80069         * tests/test-fdopendir.c (main): Test something other than
80070         /dev/null, since on Hurd that behaves like a directory.
80072         test-symlink: port to GNU/Hurd
80073         * tests/test-symlink.h (test_symlink): Relax expected errno.
80075         doc: tweak more cygwin information
80076         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
80077         now compatible with glibc.
80078         * doc/posix-functions/getopt.texi (getopt): Likewise.
80080         getopt-gnu: add another test
80081         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
80082         guarantee behavior relied on by m4.
80083         * tests/test-getopt.c (main): Use it.
80084         * modules/getopt-posix-tests (Depends-on): Add setenv.
80085         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
80087         getopt: fix compilation on darwin
80088         * lib/getopt.in.h (includes): Leave breadcrumbs during system
80089         include.
80090         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
80091         Reported by Ludovic Courtès.
80093 2009-10-06  Bruno Haible  <bruno@clisp.org>
80095         * modules/size_max (Description): Discourage its use.
80096         Reported by Simon Josefsson.
80098 2009-10-06  Jim Meyering  <meyering@redhat.com>
80100         linkat: avoid compilation failure
80101         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
80103 2009-10-05  Eric Blake  <ebb9@byu.net>
80105         linkat: support Linux 2.6.17
80106         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
80107         linkat on Linux, but allow cache variable override.
80108         * lib/linkat.c (rpl_linkat): Define override.
80109         * modules/linkat (Depends-on): Add symlinkat.
80110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
80111         * modules/unistd (Makefile.am): Substitute it.
80112         * lib/unistd.in.h (linkat): Declare replacement.
80113         Reported by Pádraig Brady.
80115         quotearg: port test to systems with C.UTF-8 locale
80116         * tests/test-quotearg.c (struct result_strings): Add another
80117         member, differentiating between C.ASCII and C.UTF-8 handling.
80118         (compare_strings): Add parameter.
80119         (main): Adjust all callers.
80121         getopt: avoid clash with FreeBSD _getopt_internal
80122         * lib/getopt.in.h (_getopt_internal): Override the name.
80123         * lib/getopt_int.h (includes): Pick up any overrides.
80124         Reported by Reuben Thomas.
80126         hash: allow C89 compilation
80127         * lib/hash.c (check_tuning): Move declaration before statement.
80128         Reported by Reuben Thomas.
80130 2009-10-05  Karl Berry  <karl@gnu.org>
80132         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
80134 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
80135             Bruno Haible  <bruno@clisp.org>
80137         * lib/uname.c (uname): Use a table-driven algorithm to compute
80138         Windows NT versions.
80140 2009-10-04  Bruno Haible  <bruno@clisp.org>
80142         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
80143         program_invocation_short_name.
80144         * modules/progname (configure.ac): Test for presence of
80145         program_invocation_short_name.
80146         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
80148 2009-10-04  Bruno Haible  <bruno@clisp.org>
80150         * lib/progname.c (set_program_name): Fix comment.
80151         Reported by Jim Meyering.
80153 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80154             Bruno Haible  <bruno@clisp.org>
80156         * lib/uname.c: Include <string.h>.
80157         (uname): Do only one call to GetVersionEx in the common case.
80159 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80160             Bruno Haible  <bruno@clisp.org>
80162         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
80163         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
80164         (uname): Add support for Windows CE and various non-x86 CPU types.
80166 2009-10-03  Bruno Haible  <bruno@clisp.org>
80168         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
80169         invocation to tests/configure.ac.
80170         Reported by Ian Beckwith <ianb@erislabs.net>.
80172 2009-10-02  Eric Blake  <ebb9@byu.net>
80174         fchdir: avoid compiler warning
80175         * lib/fchdir.c (canonicalize_file_name)
80176         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
80178         test-open: support mingw errno values
80179         * tests/test-open.h (test_open): Relax test.
80180         * tests/test-fopen.h (test_fopen): Likewise.
80181         * tests/test-openat-safer.c (main): Likewise.
80183         open: fix opening directory on mingw
80184         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
80186         test-open: on GNU/Hurd, /dev/null is a directory
80187         * tests/test-fopen.h (main): Rename...
80188         (test_fopen): ...to this.  Use a guaranteed non-directory when
80189         confirming open behavior on trailing slash.
80190         * tests/test-openat-safer.c (main): Likewise.
80191         * tests/test-open.h (main): Likewise....
80192         (test_open): ...to this.
80193         * tests/test-fopen.c (main): Adjust caller.
80194         * tests/test-fopen-safer.c (main): Likewise.
80195         * tests/test-open.c (main): Likewise.
80196         * tests/test-fcntl-safer.c (main): Likewise.
80197         Reported by Samuel Thibault.
80199         rename, fchdir: don't ignore chdir failure
80200         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
80201         * lib/rename.c (rpl_rename) [W32]: Likewise.
80202         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
80203         an empty destination directory if source cannot be renamed,
80204         although there is still possibility for failure.
80205         * doc/posix-functions/rename.texi (rename): Document the race.
80206         Reported by Jim Meyering.
80208         maint: cleanup whitespace in recent commits
80209         * lib/rename.c (rpl_rename): Remove tabs.
80210         * tests/test-link.h (test_link): Likewise.
80211         * lib/fchdir.c (get_name): Likewise.
80212         Reported by Jim Meyering.
80214 2009-10-02  Ben Pfaff  <blp@gnu.org>
80216         relocatable-prog-wrapper: Add missing dependency on
80217         double-slash-root.
80218         * modules/relocatable-prog-wrapper: Add dependency.
80219         Reported by Ian Beckwith <ianb@erislabs.net>.
80221 2009-10-02  Eric Blake  <ebb9@byu.net>
80223         renameat: fix Solaris bugs
80224         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
80225         needed fixing.
80226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
80227         * modules/stdio (Makefile.am): Substitute it.
80228         * lib/stdio.in.h (renameat): Declare replacement.
80229         * lib/renameat.c (rpl_renameat): Implement fix.
80231         renameat: new module
80232         * modules/renameat: New file.
80233         * lib/renameat.c (renameat): Likewise.
80234         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
80235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80236         * modules/stdio (Makefile.am): Substitute them.
80237         * lib/stdio.in.h (renameat): Declare it.
80238         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80239         * doc/posix-functions/renameat.texi (renameat): Likewise.
80240         * modules/renameat-tests: New test.
80241         * tests/test-renameat.c: Likewise.
80243         rename: fix mingw bugs
80244         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
80245         directory overwrite bugs.
80247         rename: fix another cygwin 1.5 bug
80248         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
80249         checks.
80250         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
80251         unnecessary cygwin workarounds.  Also work around bug with moving
80252         full directory onto an empty one.
80253         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
80255         rename-dest-slash: merge into rename module
80256         * modules/rename-dest-slash (Status): Mark obsolete.
80257         (Depends-on): Add rename.
80258         (Files): Let rename do it all.
80259         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
80260         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
80261         * m4/rename-dest-slash.m4: ...so this file can be deleted.
80262         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
80263         * lib/rename.c (rpl_rename): Update comments.
80265         rename: fix cygwin 1.5.x bugs
80266         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
80267         * lib/rename.c (rpl_rename): Work around them.
80268         * modules/rename (Depends-on): Add same-inode.
80270         rename: fix Solaris 10 bug
80271         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80272         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
80273         was the only bug.
80275         rename: fix Solaris 9 bug
80276         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
80277         on non-directory.  Avoid calling exit.
80278         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
80279         strdup.
80280         * modules/rename-tests (Depends-on): Drop lstat.
80281         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80282         (gl_PREREQ_RENAME): Delete unused macro.
80284         rename-dest-slash: fix NetBSD bug
80285         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
80286         links.
80287         * modules/rename-dest-slash (Depends-on): Add same-inode.
80289         rename-tests: new test, exposes several platform bugs
80290         * modules/rename-tests: New file.
80291         * tests/test-rename.h: Likewise.
80292         * tests/test-rename.c: Likewise.
80293         * doc/posix-functions/rename.texi (rename): Improve documentation,
80294         including bugs that will eventually be fixed in gnulib.
80296 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
80298         * lib/uname.c: Include <stdlib.h>
80299         (uname): Assume version info is available.
80301 2009-10-02  Jim Meyering  <meyering@redhat.com>
80303         gnu-web-doc-update: correct --help output
80304         * build-aux/gnu-web-doc-update: Make --help output relevant.
80306         gnu-web-doc-update: add standard options
80307         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
80309         gnu-web-doc-update: New module.
80310         Use this script to automatically update the on-line web documentation
80311         for your GNU project at http://www.gnu.org/software/$pkg/manual/
80312         * modules/gnu-web-doc-update: New file, from coreutils.
80313         * build-aux/gnu-web-doc-update: New script.
80315 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
80317         link: LoadLibrary is not needed.
80318         * lib/link.c: Use GetModuleHandle.
80320 2009-10-01  Eric Blake  <ebb9@byu.net>
80322         getopt: bump serial number
80323         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
80324         change.
80326         tests: tighten link, rmdir, and remove tests
80327         * tests/test-link.h (includes): No need to use <config.h> here.
80328         Clean up if directory hard link was created, otherwise test for
80329         trailing '.'.
80330         * tests/test-linkat.c (main): Simplify.
80331         * tests/test-remove.c (main): Enhance test for trailing '.'.
80332         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80334 2009-10-01  Jim Meyering  <meyering@redhat.com>
80336         maint.mk: requiring "make major" was annoying, for a "minor" release.
80337         What is intended is "stable", to contrast with alpha and beta,
80338         so require "make stable", not "make major".
80339         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
80340         (get_tool_versions): Likewise.
80341         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
80343 2009-09-30  Ben Pfaff  <blp@gnu.org>
80345         Fix broken build of replacement for Windows tmpfile().
80346         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
80347         flags argument added along with the 'mkostemp' module.
80349 2009-09-28  Bruno Haible  <bruno@clisp.org>
80351         Avoid identifier clash with POSIX function 'remove' defined as a macro.
80352         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
80353         to 'remove_elt'.
80354         (gl_list_remove): Update.
80355         * lib/gl_list.c (gl_list_remove): Update.
80356         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
80357         to 'remove_elt'.
80358         (gl_oset_remove): Update.
80359         * lib/gl_list.c (gl_oset_remove): Update.
80360         Reported by Eric Blake.
80362 2009-09-28  Eric Blake  <ebb9@byu.net>
80364         doc: mention yet more cygwin 1.7 status
80365         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
80366         cygwin.
80367         * doc/glibc-functions/execvpe.texi (execvpe): New file.
80368         * doc/gnulib.texi (Glibc unistd.h): Mention it.
80370         argp: fix test failure
80371         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
80372         that are not upper-case.  Pass correct range to tolower.
80374 2009-09-27  Jim Meyering  <meyering@redhat.com>
80376         test-yesno: work around sparc-dash here-document infelicity
80377         Without this change, the literal \177 byte in a here document
80378         would make dash 0.5.5.1-3 access uninitialized memory.
80379         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
80380         Instead, use a marker, "@", and filter through tr to create the desired
80381         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
80383 2009-09-27  Bruno Haible  <bruno@clisp.org>
80385         Disable untested support for new flavours of ACLs on AIX.
80386         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
80387         progress.
80388         * lib/set-mode-acl.c (qset_acl): Likewise.
80390 2008-12-07  Bruno Haible  <bruno@clisp.org>
80392         Add support for new flavours of ACLs on AIX. (Untested.)
80393         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
80394         (file_has_acl): Add support for newer AIX.
80395         * lib/set-mode-acl.c (qset_acl): Likewise.
80396         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
80397         Rainer Tammer <tammer@tammer.net>.
80399 2009-09-26  Eric Blake  <ebb9@byu.net>
80401         argp: fix compilation of getopt
80402         * lib/getopt.in.h (includes): Use different guard than glibc.
80403         Reported by Sergey Poznyakoff.
80405         doc: mention more cygwin 1.7 status
80406         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
80407         bug.
80408         * doc/posix-functions/execl.texi (execl): Likewise.
80409         * doc/posix-functions/execle.texi (execle): Likewise.
80410         * doc/posix-functions/execlp.texi (execlp): Likewise.
80411         * doc/posix-functions/execv.texi (execv): Likewise.
80412         * doc/posix-functions/execve.texi (execve): Likewise.
80413         * doc/posix-functions/execvp.texi (execvp): Likewise.
80414         * doc/glibc-functions/canonicalize_file_name.texi
80415         (canonicalize_file_name): Cygwin 1.7 now provides this.
80416         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
80417         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
80418         on AT_SYMLINK_NOFOLLOW.
80420 2009-09-24  Eric Blake  <ebb9@byu.net>
80422         test-linkat: make test more robust
80423         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80425         getopt: fix inclusion guards for cygwin
80426         * modules/getopt-posix (Depends-on): Add include-next.
80427         (Makefile.am): Substitute more items in replacement header.
80428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80429         <getopt.h>.
80430         * lib/getopt.in.h (includes): Use split inclusion guard, and
80431         prefer <getopt.h> over include <unistd.h> when one is present.
80432         (option): Also override name of 'struct option'.
80434         same-inode: revert prior change; it is not yet ready
80435         * NEWS: Undo mention of this change.
80436         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80437         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80438         * lib/cycle-check.c (cycle_check): Likewise.
80439         * lib/same.c (same_name): Likewise.
80440         * lib/at-func2.c (at_func2): Likewise.
80442 2009-09-23  Eric Blake  <ebb9@byu.net>
80444         linkat: new module
80445         * modules/linkat: New file.
80446         * lib/at-func2.c (at_func2): Likewise.
80447         * lib/linkat.c (linkat): Likewise.
80448         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80449         * lib/openat-priv.h (at_func2): Add declaration.
80450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80451         * modules/unistd (Makefile.am): Substitute them.
80452         * lib/unistd.in.h (linkat): Declare it.
80453         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80454         * doc/posix-functions/linkat.texi (linkat): Likewise.
80455         * doc/posix-functions/link.texi (link): Tweak wording.
80456         * tests/test-link.c (main): Move guts...
80457         * tests/test-link.h (test_link): ...into new file.
80458         * modules/linkat-tests: New test.
80459         * tests/test-linkat.c: Likewise.
80460         * modules/link-tests (Files): Ship new file.
80461         (Depends-on): Add stdbool.
80463         dirname: add library-safe mdir_name
80464         * lib/dirname.h (mdir_name): New prototype.
80465         * lib/dirname.c (dir_name): Move guts...
80466         (mdir_name): ...to new function that avoids xalloc_die.
80468         fchdir: another mingw fix
80469         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80470         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80471         on mingw (where it has not yet been ported), and make it optional
80472         elsewhere.
80473         (_gl_register_fd): Use it.
80475         same-inode: make SAME_INODE tri-state, to port to mingw
80476         * NEWS: Mention this change.
80477         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80478         st_ino always being 0.
80479         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80480         * lib/cycle-check.c (cycle_check): Likewise.
80481         * lib/same.c (same_name): Likewise.
80483         lstat: avoid mingw compilation error
80484         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80485         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80486         lstat ourselves.
80487         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80488         was adequate.
80489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80490         the checks for lstat.
80491         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80493         link: fix test failure on Solaris 9
80494         * lib/link.c (rpl_link): Don't assume link will catch bogus
80495         trailing slash on source.
80497         test-symlinkat: enhance test
80498         * tests/test-readlink.c (main): Move guts...
80499         * tests/test-readlink.h (test_readlink): ...into new file.
80500         * tests/test-symlink.c (main): Move guts...
80501         * tests/test-symlink.h (test_symlink): ...into new file.
80502         * tests/test-symlinkat.c (main): Use new files for further
80503         coverage.
80504         (do_symlink, do_readlink): New helper functions.
80505         * modules/symlink-tests (Files): Ship new file.
80506         (Depends-on): Add stdbool.
80507         * modules/readlink-tests (Files): Ship new file.
80508         (Depends-on): Add stdbool.
80509         * modules/symlinkat-tests (Files): Use new files.
80511 2009-09-23  Eric Blake  <ebb9@byu.net>
80513         readlink: document portability issue with symlink length
80514         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80515         systems have bogus st_size on symlinks, and mention the
80516         areadlink-with-size module.
80517         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80518         * doc/posix-functions/readlink.texi (readlink): Mention the
80519         areadlink module, and ERANGE failure.
80520         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80521         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80523         readlink: fix Solaris 9 bug with trailing slash
80524         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80525         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80526         * doc/posix-functions/readlink.texi (readlink): Document this.
80527         * modules/readlink-tests: New test.
80528         * tests/test-readlink.c: Likewise.
80530         readlink: fix cygwin 1.5.x bug with return type
80531         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80532         * lib/unistd.in.h (readlink): Use ssize_t.
80533         * lib/readlink.c (readlink): Likewise.
80534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80535         * modules/unistd (Makefile.am): Substitute it.
80536         * lib/unistd.in.h (readlink): Declare replacement.
80537         * doc/posix-functions/readlink.texi (readlink): Document this.
80539         symlink: use throughout gnulib
80540         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80541         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80542         symlink is not used.
80543         * modules/symlinkat (Depends-on): Add symlink.
80544         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80545         * modules/canonicalize-tests (Depends-on): Likewise.
80546         * modules/lstat-tests (Depends-on): Likewise.
80547         * modules/openat-tests (Depends-on): Likewise.
80548         * modules/remove-tests (Depends-on): Likewise.
80549         * modules/rmdir-tests (Depends-on): Likewise.
80550         * modules/unlink-tests (Depends-on): Likewise.
80551         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80552         * tests/test-canonicalize.c (symlink): Likewise.
80553         * tests/test-fstatat.c (symlink): Likewise.
80554         * tests/test-lstat.c (symlink): Likewise.
80555         * tests/test-remove.c (symlink): Likewise.
80556         * tests/test-rmdir.c (symlink): Likewise.
80557         * tests/test-unlink.c (symlink): Likewise.
80558         * tests/test-unlinkat.c (symlink): Likewise.
80560         symlink: new module, for Solaris 9 bug
80561         * modules/symlink: New file.
80562         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80563         * lib/symlink.c: Likewise.
80564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80565         * modules/unistd (Makefile.am): Substitute them.
80566         * lib/unistd.in.h (symlink): Declare replacement.
80567         * MODULES.html.sh (File system functions): Mention it.
80568         * doc/posix-functions/symlink.texi (symlink): Likewise.
80569         * modules/symlink-tests: New test.
80570         * tests/test-symlink.c: Likewise.
80572 2009-09-23  Bruno Haible  <bruno@clisp.org>
80574         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80575         when needed.
80576         Test case: gnulib-tool --import --with-tests atexit inttypes.
80577         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80579 2009-09-23  Bruno Haible  <bruno@clisp.org>
80581         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80582         subcommand, not in a subshell.
80584 2009-09-22  Eric Blake  <ebb9@byu.net>
80586         unistd: sort replacement declarations
80587         * lib/unistd.in.h: Sort declarations.
80589         open, openat: minor optimization
80590         * lib/open.c (open): If open succeeded, len is non-zero.
80591         * lib/openat.c (rpl_openat): Likewise.
80593         link-follow: ensure correct result
80594         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80595         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80596         distinguish between possible failures.
80598 2009-09-21  Eric Blake  <ebb9@byu.net>
80600         fts: avoid compiler warning
80601         * lib/fts.c (dirent_inode_sort_may_be_useful)
80602         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80604 2009-09-19  Bruno Haible  <bruno@clisp.org>
80606         * lib/progreloc.c (canonicalize_file_name): New declaration.
80608 2009-09-19  Eric Blake  <ebb9@byu.net>
80610         link: fix quoting
80611         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80613         openat: fix openat bugs on Solaris 9
80614         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80615         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80616         * modules/openat (Depends-on): Add open.
80617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80618         * modules/fcntl-h (Makefile.am): Substitute it.
80619         * lib/fcntl.in.h (openat): Declare replacement.
80620         * doc/posix-functions/openat.texi (openat): Document this.
80622         openat: move fstatat and unlinkat into correct files
80623         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80624         compiled.
80625         * lib/openat.c (fstatat, unlinkat): Move...
80626         * lib/fstatat.c (fstatat): ...into correct files.
80627         * lib/unlinkat.c (unlinkat): Likewise.
80629         openat: fix unlinkat bugs on Solaris 9
80630         * lib/unlinkat.c (unlinkat): New file.
80631         * modules/openat (Depends-on): Add unlink.
80632         (Files): Distribute it.
80633         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80634         trailing slash behavior is broken.
80635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80636         * modules/unistd (Makefile.am): Substitute it.
80637         * lib/unistd.in.h (unlinkat): Declare replacement.
80638         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80640         openat: fix fstatat bugs on Solaris 9
80641         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80642         stat.
80643         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80645         test-unlinkat: enhance test, to expose Solaris 9 bug
80646         * tests/test-unlink.c (main): Factor guts...
80647         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80648         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80649         * tests/test-rmdir.c (main): Adjust caller.
80650         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80651         (unlinker): New helper function.
80652         (rmdirat): Enhance check.
80653         * modules/rmdir-tests (Depends-on): Add stdbool.
80654         * modules/unlink-tests (Depends-on): Likewise.
80655         (Files): Add test-unlink.h.
80656         * modules/openat-tests (Files): Likewise.
80657         (Depends-on): Add unlinkdir.
80659         test-fstatat: new test, to expose Solaris 9 bugs
80660         * tests/test-stat.c (main): Factor guts...
80661         * tests/test-stat.h (test_stat_func): ...into new file.
80662         * tests/test-lstat.c (main): Factor guts...
80663         * tests/test-lstat.h (test_lstat_func): ...into new file.
80664         * tests/test-fstatat.c: New file.
80665         * modules/stat-tests (Files): Add test-stat.h.
80666         * modules/lstat-tests (Files): Add test-lstat.h.
80667         (Depends-on): Add stdbool.
80668         * modules/openat-tests (Depends-on): Add pathmax.
80669         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80670         (Makefile.am): Run new test.
80672         remove: new module, for mingw and Solaris 9 bugs
80673         * modules/remove: New file.
80674         * lib/remove.c: Likewise.
80675         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80677         * modules/stdio (Makefile.am): Use them.
80678         * lib/stdio.in.h (remove): Declare replacement.
80679         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80680         * doc/posix-functions/remove.texi (remove): Likewise.
80681         * modules/remove-tests: New test.
80682         * tests/test-remove.c: Likewise.
80684         unlink: new module, for Solaris 9 bug
80685         * modules/unlink: New file.
80686         * lib/unlink.c: Likewise.
80687         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80689         * modules/unistd (Makefile.am): Use them.
80690         * lib/unistd.in.h (stat): Declare replacement.
80691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80692         * doc/posix-functions/unlink.texi (unlink): Likewise.
80693         * modules/unlink-tests: New test.
80694         * tests/test-unlink.c: Likewise.
80696         lstat: fix Solaris 9 bug
80697         * lib/lstat.c (lstat): Also check for trailing slash on
80698         non-symlink, non-directories.  Use stat module to simplify logic.
80699         * doc/posix-functions/lstat.texi (lstat): Document it.
80700         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80701         (configure.ac): Check for symlink.
80702         * tests/test-lstat.c (main): Add more tests.
80704         stat: add as dependency to other modules
80705         * modules/chown (Depends-on): Add stat.
80706         * modules/euidaccess (Depends-on): Likewise.
80707         * modules/fchdir (Depends-on): Likewise.
80708         * modules/isdir (Depends-on): Likewise.
80709         * modules/link (Depends-on): Likewise.
80710         * modules/lstat (Depends-on): Likewise.
80711         * modules/mkdir-p (Depends-on): Likewise.
80712         * modules/modechange (Depends-on): Likewise.
80713         * modules/open (Depends-on): Likewise.
80714         * modules/readlink (Depends-on): Likewise.
80715         * modules/same (Depends-on): Likewise.
80717         stat: fix Solaris 9 bug
80718         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80719         slash.
80720         * lib/stat.c (rpl_stat): Work around it.
80721         * doc/posix-functions/stat.texi (stat): Update documentation.
80723         stat: new module, for mingw bug
80724         * modules/stat: New file.
80725         * lib/stat.c: Likewise.
80726         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80727         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80728         * modules/sys_stat (Makefile.am): Use them.
80729         * lib/sys_stat.in.h (stat): Declare replacement.
80730         * lib/openat.c (fstatat): Deal with lstat and stat being function
80731         macros.
80732         * modules/openat (Depends-on): Add inline.
80733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80734         * doc/posix-functions/stat.texi (stat): Likewise.
80735         * modules/stat-tests: New test.
80736         * tests/test-stat.c: Likewise.
80738 2009-09-19  Jim Meyering  <meyering@redhat.com>
80740         syntax-check: detect unnecessary inclusion of canonicalize.h
80741         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80743 2009-09-19  Eric Blake  <ebb9@byu.net>
80745         canonicalize-lgpl: adjust clients to use correct header
80746         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80747         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80748         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80749         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80750         * lib/progreloc.c (includes): Likewise.
80752 2009-09-19  Jim Meyering  <meyering@redhat.com>
80754         test-posixtm.c: correct a comment
80755         * tests/test-posixtm.c: Correct first-line comment.
80756         Spotted by Eric Blake.
80758 2009-09-16  Jim Meyering  <meyering@redhat.com>
80760         posixtm-tests: make T const-correct; add a test case
80761         * tests/test-posixtm.c (T): Declare const.
80762         Add a test for -(2^31+1).
80763         Remove useless can-succeed-only-in-2002 test.
80765         posixtm-tests: adjust the sole failing test
80766         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80767         expected output matches what mktime now produces.  Cross-checked via
80768         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80770         posixtm: move #ifdef'd tests into a new module
80771         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80772         * tests/test-posixtm.c: ... this new file.
80773         * modules/posixtm-tests: New module.
80775 2009-09-19  Eric Blake  <ebb9@byu.net>
80777         openat: simplify use of at-func.c
80778         * lib/at-func.c (includes): Include prerequisites here, to
80779         simplify requirements on client files.
80780         * lib/openat-priv.h: Add double-inclusion guard.
80781         * lib/faccessat.c (includes): Simplify.
80782         * lib/fchmodat.c (includes): Likewise.
80783         * lib/fchownat.c (includes): Likewise.
80784         * lib/mkdirat.c (includes): Likewise.
80785         * lib/mkfifoat.c (includes): Likewise.
80786         * lib/symlinkat.c (includes): Likewise.
80788         openat: allow return of fd 0
80789         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80790         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80791         unistd-safer.
80792         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80793         <fcntl.h>; this module does not leak fds.
80794         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80795         must be allowed to return 0, leaving openat_safer to add the
80796         safety.
80797         (openat_permissive): Avoid writing to just-opened fd 2 if
80798         restoring the current directory fails.
80799         * lib/openat-die.c (openat_restore_fail): Add comment.
80800         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80801         (save_cwd): Guarantee safe fd, but without use of open_safer.
80802         * tests/test-openat.c: New test.
80803         * modules/openat-tests (Files, Makefile.am): Distribute and build
80804         new file.
80806         relocatable-prog-wrapper: fix build
80807         * modules/relocatable-prog-wrapper (Files): Update name of
80808         canonicalize m4 file, broken on 2009-09-17.
80809         Reported by emad hajjar <aleppos@hotmail.com>.
80811 2009-09-19  Bruno Haible  <bruno@clisp.org>
80813         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80814         * lib/safe-alloc.c: Likewise.
80815         Reported by Ian Beckwith <ianb@erislabs.net>.
80817 2009-09-18  Bruno Haible  <bruno@clisp.org>
80819         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80820         Reported by <erobles@sensacd.com.mx>.
80822 2009-09-17  Eric Blake  <ebb9@byu.net>
80824         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80825         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80826         slashes when checking if last component is missing.
80827         * tests/test-canonicalize.c (main): Test this.
80829         canonicalize, canonicalize-lgpl: honor // if distinct from /
80830         * modules/canonicalize (Files): Add double-slash-root.m4.
80831         * modules/canonicalize-lgpl (Files): Likewise.
80832         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80833         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80834         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80835         fallback definition.
80836         (canonicalize_filename_mode): Use it to protect //.
80837         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80838         (__realpath): Likewise.
80839         * tests/test-canonicalize.c (main): Test this.
80840         * tests/test-canonicalize-lgpl.c (main): Likewise.
80841         * modules/canonicalize-tests (Depends-on): Add same-inode.
80842         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80844         canonicalize-lgpl: fix glibc bug with trailing slash
80845         * m4/canonicalize-lgpl.m4: Move contents...
80846         * m4/canonicalize.m4: ...here.
80847         (gl_CANONICALIZE_LGPL): Factor realpath check...
80848         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80849         glibc 2.3.5 bug, fixed 2005-04-27.
80850         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80851         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80852         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80853         * modules/canonicalize-lgpl (Files): Manage file rename.
80854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80855         * modules/stdlib (Makefile.am): Substitute witness.
80856         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80857         is needed.
80858         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80859         replacement is required.
80860         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80861         * doc/glibc-functions/canonicalize_file_name.texi
80862         (canonicalize_file_name): Document this.
80863         * doc/posix-functions/realpath.texi (realpath): Likewise.
80865         canonicalize-lgpl: reject non-directory with trailing slash
80866         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80867         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80868         catches failures in glibc 2.3.5.
80869         * tests/test-canonicalize.c (main): Likewise.
80871         canonicalize-lgpl: use native realpath if it works
80872         * lib/canonicalize-lgpl.c (realpath): Guard with
80873         FUNC_REALPATH_WORKS.
80874         * lib/stdlib.in.h (realpath): Make declaration optional based on
80875         HAVE_REALPATH.
80876         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80877         native realpath works.
80878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80879         * modules/stdlib (Makefile.am): Substitute witness.
80881         canonicalize, canonicalize-lgpl: use <stdlib.h>
80882         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80883         (Include): Mention <stdlib.h>.
80884         (configure.ac): Mention functions we provide.
80885         * modules/canonicalize (configure.ac): Likewise.
80886         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80887         realpath if canonicalize_file_name is missing.
80888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80889         * modules/stdlib (Makefile.am): Substitute witnesses.
80890         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80891         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80892         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80893         * NEWS: Document this.
80894         * doc/glibc-functions/canonicalize_file_name.texi
80895         (canonicalize_file_name): Likewise.
80896         * doc/posix-functions/realpath.texi (realpath): Likewise.
80897         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80899         test-canonicalize: consolidate into single C program
80900         * tests/test-canonicalize.sh: Delete; move setup into...
80901         * tests/test-canonicalize.c (main): ...the program, making it
80902         easier to run in debugger.  Add some tests.
80903         * modules/canonicalize-tests (Files): Remove unused file.
80904         (Depends-on): Add progname.
80905         (configure.ac, Makefile.am): Simplify.
80907         test-canonicalize-lgpl: consolidate into single C program
80908         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80909         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80910         easier to run in debugger.  Add some tests.
80911         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80912         (configure.ac, Makefile.am): Simplify.
80914         canonicalize: avoid resolvepath
80915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80916         unnecessary checks.
80917         * lib/canonicalize.c (includes): Simplify.
80918         (canonicalize_file_name): Drop resolvepath implementation.
80919         * modules/canonicalize (Depends-on): Drop filenamecat.
80921         canonicalize: don't lose errno
80922         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80923         over calls to free.
80925         canonicalize: simplify errno handling
80926         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80927         assignment.
80929         canonicalize, canonicalize-lgpl: update module dependencies
80930         * modules/canonicalize (Depends-on): Add extensions, lstat,
80931         pathmax, stdlib.
80932         (Files): Drop pathmax.h.
80933         (configure.ac): Adjust macro name.
80934         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80935         lstat, stdlib, sys_stat.
80936         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80937         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80938         extensions.
80939         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80940         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80941         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80942         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80943         declaration, if available.
80944         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80945         we can rely on the readlink module.
80946         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80947         (includes): Use <unistd.h> unconditionally.
80949 2009-09-17  Eric Blake  <ebb9@byu.net>
80951         maint: make Include sections of modules consistent
80952         * modules/alloca: Use only header name; no need to list #include.
80953         * modules/alloca-opt: Likewise.
80954         * modules/arpa_inet: Likewise.
80955         * modules/canon-host: Likewise.
80956         * modules/configmake: Likewise.
80957         * modules/dirent: Likewise.
80958         * modules/eealloc: Likewise.
80959         * modules/environ: Likewise.
80960         * modules/fchdir: Likewise.
80961         * modules/fcntl: Likewise.
80962         * modules/fcntl-h: Likewise.
80963         * modules/gethrxtime: Likewise.
80964         * modules/gettime: Likewise.
80965         * modules/ignore-value: Likewise.
80966         * modules/inet_ntop: Likewise.
80967         * modules/inet_pton: Likewise.
80968         * modules/inttypes: Likewise.
80969         * modules/isnand-nolibm: Likewise.
80970         * modules/isnanf-nolibm: Likewise.
80971         * modules/mbchar: Likewise.
80972         * modules/mbfile: Likewise.
80973         * modules/mbiter: Likewise.
80974         * modules/mbuiter: Likewise.
80975         * modules/netdb: Likewise.
80976         * modules/netinet_in: Likewise.
80977         * modules/nproc: Likewise.
80978         * modules/pagealign_alloc: Likewise.
80979         * modules/poll: Likewise.
80980         * modules/printf-frexp: Likewise.
80981         * modules/pthread: Likewise.
80982         * modules/putenv: Likewise.
80983         * modules/random_r: Likewise.
80984         * modules/relocatable-prog: Likewise.
80985         * modules/search: Likewise.
80986         * modules/select: Likewise.
80987         * modules/selinux-h: Likewise.
80988         * modules/settime: Likewise.
80989         * modules/signal: Likewise.
80990         * modules/size_max: Likewise.
80991         * modules/socklen: Likewise.
80992         * modules/ssize_t: Likewise.
80993         * modules/stdarg: Likewise.
80994         * modules/stdbool: Likewise.
80995         * modules/stddef: Likewise.
80996         * modules/stdint: Likewise.
80997         * modules/stdio: Likewise.
80998         * modules/stdlib: Likewise.
80999         * modules/string: Likewise.
81000         * modules/strings: Likewise.
81001         * modules/sys_file: Likewise.
81002         * modules/sys_ioctl: Likewise.
81003         * modules/sys_select: Likewise.
81004         * modules/sys_socket: Likewise.
81005         * modules/sys_stat: Likewise.
81006         * modules/sys_time: Likewise.
81007         * modules/sys_times: Likewise.
81008         * modules/sys_utsname: Likewise.
81009         * modules/sys_wait: Likewise.
81010         * modules/sysexits: Likewise.
81011         * modules/time: Likewise.
81012         * modules/times: Likewise.
81013         * modules/tmpfile: Likewise.
81014         * modules/trim: Likewise.
81015         * modules/unistd: Likewise.
81016         * modules/wchar: Likewise.
81017         * modules/wctype: Likewise.
81019 2009-09-17  Bruno Haible  <bruno@clisp.org>
81021         Make getdate.y compile on QNX and NetBSD 5 / i386.
81022         * m4/getdate.m4 (gl_GETDATE): Conditionally define
81023         TIME_T_FITS_IN_LONG_INT.
81024         * lib/getdate.y (long_time_t): New type.
81025         (relative_time): Change type of 'seconds' field to long_time_t.
81026         (get_date): Update types of local variables. Check against overflow
81027         during conversion from long_time_t to time_t.
81028         Reported by Matt Kraai <kraai@ftbfs.org>
81029         and Hasso Tepper <hasso@netbsd.org>.
81031 2009-09-17  Bruno Haible  <bruno@clisp.org>
81033         * modules/COPYING: Update copyright years.
81034         * modules/README: Likeiwse.
81035         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
81036         Reported by Ian Beckwith <ianb@erislabs.net>.
81038 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81040         * users.txt: Update references for gnuit package.
81042 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81044         * m4/getdelim.m4: Fix typo in copyright line.
81046 2009-09-17  Bruno Haible  <bruno@clisp.org>
81048         * lib/atoll.c: Use the standard header with GPL copyright.
81049         * lib/argz.in.h: Likewise.
81050         * lib/glob.c: Likewise.
81051         * lib/glob-libc.h: Likewise.
81052         * lib/random_r.c: Likewise.
81053         * lib/siglist.h: Likewise.
81054         * lib/strsignal.c: Likewise.
81055         Reported by Ian Beckwith <ianb@erislabs.net>.
81057 2009-09-17  Eric Blake  <ebb9@byu.net>
81059         rmdir: ensure correct dependency order
81060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
81062 2009-09-17  Bruno Haible  <bruno@clisp.org>
81064         Disable assertion that fails on NetBSD 5 / i386.
81065         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
81066         Reported by Sam Steingold <sds@gnu.org>
81067         and Hasso Tepper <hasso@netbsd.org>.
81069 2009-09-16  Eric Blake  <ebb9@byu.net>
81071         unlinkdir: port to mingw
81072         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
81073         on which no one can unlink a directory.
81075         stdlib: sort witness names
81076         * modules/stdlib (Makefile.am): Sort replacements.
81077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
81078         * lib/stdlib.in.h: Likewise.
81080         parse-duration-tests: avoid link failure
81081         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
81082         LIBINTL.
81083         Reported by Tom G. Christensen.
81085         openat-tests: ensure unlinkat behaves like rmdir
81086         * tests/test-rmdir.c (main): Factor guts...
81087         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
81088         * modules/rmdir-tests (Files): Ship new file.
81089         * modules/openat-tests: New test.
81090         * tests/test-unlinkat.c: Likewise.
81092         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
81093         * modules/rmdir-errno (Status, Notice): Now obsolete.
81095         rmdir: work around cygwin 1.5.x and mingw bugs
81096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
81097         * lib/rmdir.c (rmdir): Work around it.
81098         * modules/rmdir (Status, Notice): No longer obsolete.
81099         (Files): Add dos.m4.
81100         (Depends-on): Add unistd.
81101         (configure.ac): Set witnesses.
81102         (License): Relax to LGPLv2+.
81103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
81104         * modules/unistd (Makefile.am): Substitute witnesses.
81105         * lib/unistd.in.h (rmdir): Declare replacement.
81106         * doc/posix-functions/rmdir.texi (rmdir): Document this.
81107         * modules/rmdir-tests: New tests.
81108         * tests/test-rmdir.c: Likewise.
81110 2009-09-15  Eric Blake  <ebb9@byu.net>
81112         fchdir: improve use of replacement functions
81113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
81114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
81115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
81116         REPLACE_CLOSEDIR.
81117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
81118         * modules/sys_stat (Makefile.am): Substitute correct witness.
81119         * modules/dirent (Makefile.am): Likewise.
81120         * modules/unistd (Makefile.am): Likewise.
81121         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
81122         * lib/unistd.in.h (dup): Likewise.
81123         * lib/sys_stat.in.h (fstat): Likewise.
81125         maint: ignore gnulib-tool temp files
81126         * .gitignore: Ignore files created during gnulib-tool --test.
81128 2009-09-13  Jim Meyering  <meyering@redhat.com>
81130         posixtm: don't reject a time that specify "60" as the number of seconds
81131         * lib/posixtm.c (posixtime): The code to reject invalid dates
81132         would also reject a time specified with the .60 suffix.
81133         But POSIX allows that, in order to accommodate leap seconds.
81134         So don't reject it.
81135         (main): Adjust tests accordingly.
81136         * modules/posixtm (Depends-on): Add stpcpy.
81138 2009-09-11  Jim Meyering  <meyering@redhat.com>
81140         announce-gen: include [$release_type] in emitted Subject:
81141         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
81142         e.g., [stable] in the emitted Subject: line.
81144 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81146         Remove obsolete macros from several modules.
81147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
81148         obsolete Autoconf macros with their modern counterparts.
81149         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
81150         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
81151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
81152         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
81153         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
81154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
81156         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
81157         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
81158         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
81159         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
81160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
81161         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
81162         * m4/sockets.m4 (gl_SOCKETS): Likewise.
81163         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
81164         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
81165         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81166         * m4/time_r.m4 (gl_TIME_R): Likewise.
81167         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
81168         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
81169         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81171         Fix copyright header in build-aux scripts.
81172         * build-aux/git-version-gen: Fix copyright header to match GPLv3
81173         recommendation.
81174         * build-aux/ncftpput-ftp: Likewise.
81175         * build-aux/update-copyright: Likewise.
81177 2009-09-09  Eric Blake  <ebb9@byu.net>
81179         test-link: allow Linux choice of errno
81180         * tests/test-link.c (main): Relax test for alternate error.
81182         strndup: fix improper m4 caching
81183         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
81184         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
81185         (gl_PREREQ_STRNDUP): Delete.
81186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
81187         * modules/string (Makefile.am): Substitute it.
81188         * lib/string.in.h (strndup): Modernize prototype.
81190         getcwd: port to mingw
81191         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
81192         different from the POSIX assumptions made throughout the getcwd
81193         module; fortunately, the mingw getcwd does not need replacement.
81194         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
81195         * modules/getcwd-tests: New test.
81196         * tests/test-getcwd.c: Likewise.
81198         link: fix platform bugs
81199         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
81200         * lib/link.c (link): Work around them.  Fix related mingw bug.
81201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
81202         * modules/unistd (Makefile.am): Substitute it.
81203         * lib/unistd.in.h (link): Declare replacement.
81204         * doc/posix-functions/link.texi (link): Document this.
81205         * modules/link (Depends-on): Add strdup-posix, sys_stat.
81207         test-link: consolidate into single C program, test more cases
81208         * tests/test-link.sh: Delete.
81209         * tests/test-link.c: Test more error conditions.  Exposes bugs on
81210         at least Cygwin and Solaris.
81211         * modules/link-tests (Files): Remove unused file.
81212         (Depends-on): Add errno, sys_stat.
81213         (Makefile.am): Simplify.
81215 2009-09-08  Bruno Haible  <bruno@clisp.org>
81217         Work around towlower, towupper bug on mingw.
81218         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
81219         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
81220         * doc/posix-functions/towlower.texi: Mention the mingw bug.
81221         * doc/posix-functions/towupper.texi: Likewise.
81222         Reported by Eric Blake.
81224 2009-09-08  Jim Meyering  <meyering@redhat.com>
81226         build: don't try to run autoheader if we don't use it
81227         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
81228         is not used in configure.ac.
81230 2009-09-08  Eric Blake  <ebb9@byu.net>
81232         euidaccess: fix compilation error
81233         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
81235         rawmemchr: relax license
81236         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
81237         okay.
81238         Reported by Jim Meyering.
81240         mkfifoat: new module
81241         * modules/mkfifoat: New file.
81242         * lib/mkfifoat.c: Likewise.
81243         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
81244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
81245         * modules/sys_stat (Makefile.am): Use them.
81246         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
81247         * MODULES.html.sh (File system functions): Mention module.
81248         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
81249         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
81250         * modules/mkfifoat-tests: New test.
81251         * tests/test-mkfifoat.c: Likewise.
81253         strchrnul: relax license
81254         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
81255         okay.
81256         Reported by Jim Meyering.
81258 2009-09-08  Eric Blake  <ebb9@byu.net>
81260         fstatat: fix compilation on Solaris
81261         * lib/fstatat.c (includes): Add fcntl.h.
81262         Reported by Pádraig Brady.
81264 2009-09-07  Eric Blake  <ebb9@byu.net>
81266         rename: modernize replacement
81267         * modules/rename (Depends-on): Add stdio.
81268         (configure.ac): Declare witness.
81269         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
81270         stdio take care of replacement.
81271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81272         * modules/stdio (Makefile.am): Substitute them.
81273         * lib/stdio.in.h (rename): Declare replacement.
81274         * lib/rename.c (includes): Allow cross-compilation to non-windows
81275         machines.
81276         * doc/posix-functions/rename.texi (rename): Improve
81277         documentation.
81279         stdio: sort witness names
81280         * modules/stdio (Makefile.am): Sort replacements.
81281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81282         * lib/stdio.in.h: Likewise.
81284         getcwd: minor cleanups
81285         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
81286         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
81288         openat: provide more convenience names
81289         * modules/faccessat (configure.ac): Add C witness.
81290         * lib/unistd.in.h (readlinkat): Fix typo.
81291         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
81292         convenience wrappers.
81293         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
81294         wrappers in syntax checks.
81296 2009-09-06  Eric Blake  <ebb9@byu.net>
81298         doc: fix comments in recent patches
81299         * lib/faccessat.c: Mention correct function.
81300         * lib/fchmodat.c: Likewise.
81301         * lib/fchownat.c: Likewise.
81302         * lib/symlinkat.c: Likewise.
81303         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81304         constants.
81306         faccessat, symlinkat: continue cleanup of previous patch
81307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
81308         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81309         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
81310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
81311         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
81312         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
81313         set.
81315 2009-09-06  Bruno Haible  <bruno@clisp.org>
81317         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
81318         (fstatat): Declare if GNULIB_FSTATAT is set.
81319         (mkdirat): Declare if GNULIB_MKDIRAT is set.
81320         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
81321         (unlinkat): Declare if GNULIB_UNLINKAT is set.
81322         * modules/fcntl-h (Files): Remove m4/openat.m4.
81323         * modules/sys_stat (Files): Remove m4/openat.m4.
81324         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
81325         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
81326         * modules/unistd (Files): Remove m4/openat.m4.
81327         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
81328         GNULIB_OPENAT.
81329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
81330         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
81331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
81332         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
81333         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
81334         gl_OPENAT_DEFAULTS.
81335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
81336         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
81337         Don't require gl_OPENAT_DEFAULTS.
81338         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
81339         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
81340         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
81341         (gl_OPENAT_DEFAULTS): Remove macro.
81343 2009-09-06  Bruno Haible  <bruno@clisp.org>
81345         * modules/openat (configure.ac): Remove unneeded witness.
81347 2009-09-06  Bruno Haible  <bruno@clisp.org>
81349         Set errno to ENOSYS when a function is entirely unsupported.
81350         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
81351         EOPNOTSUPP.
81352         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81353         * modules/chown (Depends-on): Remove errno.
81355 2009-09-06  Bruno Haible  <bruno@clisp.org>
81357         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
81359 2009-09-06  Bruno Haible  <bruno@clisp.org>
81361         * lib/sys_stat.in.h: Fix preprocessor command indentation.
81363 2009-09-06  Ben Pfaff  <blp@gnu.org>
81364             Bruno Haible  <bruno@clisp.org>
81366         Work around a glibc bug in strtok_r.
81367         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
81368         Undefine if UNDEFINE_STRTOK_R is set.
81369         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
81370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81371         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
81372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
81373         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
81374         UNDEFINE_STRTOK_R.
81375         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
81377 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
81379         exclude: minor fix
81380         * lib/exclude.c: Include wctype.h
81382 2009-09-06  Akim Demaille  <demaille@gostai.com>
81384         bootstrap: improve error message
81385         * build-aux/bootstrap (find_tool): Upon failure, report the list
81386         of candidates.
81387         Honor the initial value of the envvar.
81389 2009-09-05  Eric Blake  <ebb9@byu.net>
81391         symlinkat: new module
81392         * modules/symlinkat: New file.
81393         * lib/symlinkat.c: Likewise.
81394         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
81395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
81396         * modules/unistd (Makefile.am): Use them.
81397         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
81398         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
81399         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
81400         * MODULES.html.sh (File system functions): Mention module.
81401         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
81402         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
81403         * modules/symlinkat-tests: New test.
81404         * tests/test-symlinkat.c: Likewise.
81406         test-openat-safer: add more checks
81407         * tests/test-openat-safer.c (main): Check more code paths.
81409 2009-09-05  Jim Meyering  <meyering@redhat.com>
81411         syntax-check: detect unnecessary inclusion of openat.h
81412         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
81414 2009-09-05  Bruno Haible  <bruno@clisp.org>
81416         Support towlower, towupper.
81417         * doc/posix-functions/towlower.texi: Mention module wctype.
81418         * doc/posix-functions/towupper.texi: Likewise.
81419         * lib/wctype.in.h (towlower, towupper): New functions.
81420         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81421         (ASSERT): New macro.
81422         (e): New variable.
81423         (main): Test also towlower, towupper. Test WEOF argument.
81424         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81426 2009-09-05  Bruno Haible  <bruno@clisp.org>
81428         Fix conversion behaviour when the input is invalid.
81429         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81430         mark occurring in first pass of indirect conversion.
81431         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81432         input.
81433         Found by clang's static analyzer.
81435 2009-09-05  Bruno Haible  <bruno@clisp.org>
81437         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81438         where direct conversion is possible.
81440 2009-09-04  Eric Blake  <ebb9@byu.net>
81442         openat: fail with ENOENT on empty name
81443         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81444         buffer.
81446         link-follow: fix logic bug in prior patch
81447         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81448         reversed sense of yes and no in prior patch.  Avoid confusing
81449         compilation failure with desired semantics.
81451         link-follow: accommodate mingw and cross-compilation
81452         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81453         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81454         cross-compilation results to -1, to make linkat easier to
81455         implement when cross-compiling.  Trivially support mingw.
81456         * modules/link-follow (configure.ac): Call new name.
81457         * NEWS: Mention this.
81459 2009-09-03  Eric Blake  <ebb9@byu.net>
81461         faccessat: compile replacement
81462         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81463         needed.
81465         fts: fix compilation error
81466         * lib/fts.c (includes): Re-add "openat.h", for
81467         openat_needs_fchdir.
81469         faccessat: new module
81470         * modules/faccessat: New file.
81471         * lib/faccessat.c: Likewise.
81472         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81474         * modules/unistd (Makefile.am): Use it.
81475         * lib/unistd.in.h (faccessat): Declare it.
81476         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81477         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81478         * MODULES.html.sh (File system functions): Mention it.
81479         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81480         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81482         euidaccess: prefer POSIX over non-standard implementation
81483         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81484         * lib/euidaccess.c (euidaccess): Use it if available.
81486         openat: make template easier to use
81487         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81488         AT_FUNC_F2 to be undefined.
81489         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81490         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81491         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81492         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81493         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81494         Likewise.
81495         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81496         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81497         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81498         Likewise.
81500         openat: declare in POSIX headers
81501         * NEWS: Mention this.
81502         * modules/openat (configure.ac): Declare witnesses.
81503         (Depends-on): Add fcntl-h, sys_stat, unistd.
81504         (Include): Mention correct headers.
81505         * modules/fcntl-h (Depends-on): Add link-warning.
81506         (Files): Add openat.m4.
81507         (Makefile.am): Substitute witnesses.
81508         * modules/sys_stat (Files, Makefile.am): Likewise.
81509         * modules/unistd (Files, Makefile.am): Likewise.
81510         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81511         (gl_OPENAT_DEFAULTS): New macro.
81512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81515         (SYS_STAT_H): Remove unused variable.
81516         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81517         * lib/fcntl--.h (includes): Remove unneeded header.
81518         * lib/openat-safer.c (includes): Likewise.
81519         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81520         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81521         appropriate headers.
81522         (__OPENAT_PREFIX): Delete.
81523         * lib/fcntl.in.h (openat): Provide declaration.
81524         (AT_FDCWD): Fix Solaris bug.
81525         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81526         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81527         * lib/fchmodat.c (includes):  Adjust to find declaration.
81528         * lib/fchownat.c (includes): Likewise.
81529         * lib/mkdirat.c (includes): Likewise.
81530         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81531         still visible.
81533 2009-09-02  Eric Blake  <ebb9@byu.net>
81535         errno: use consistently
81536         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81537         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81538         * lib/canonicalize.c (ELOOP): Likewise.
81539         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81540         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81541         * lib/lchown.c (EOPNOTSUPP): Likewise.
81542         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81543         * lib/savewd.c (ESTALE): Likewise.
81544         * lib/settime.c (ENOSYS): Likewise.
81545         * lib/utimens.c (ENOSYS): Likewise.
81546         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81547         * lib/chdir-safer.c (ELOOP): Likewise.
81548         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81549         * modules/c-stack (Depends-on): Add errno.
81550         * modules/canonicalize (Depends-on): Likewise.
81551         * modules/chdir-safer (Depends-on): Likewise.
81552         * modules/fdopendir (Depends-on): Likewise.
81553         * modules/inet_ntop (Depends-on): Likewise.
81554         * modules/inet_pton (Depends-on): Likewise.
81555         * modules/lchown (Depends-on): Likewise.
81556         * modules/openat (Depends-on): Likewise.
81557         * modules/savewd (Depends-on): Likewise.
81558         * modules/settime (Depends-on): Likewise.
81559         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81561         fts: avoid leaking fds
81562         * modules/fts (Depends-on): Add cloexec.
81563         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81564         flag.
81566         fts: make directory fds more robust
81567         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81568         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81570         backupfile, chdir-long, fts, savedir: make safer
81571         * lib/backupfile.c (includes): Use "dirent--.h", since
81572         numbered_backup can write to stderr during readdir.
81573         * lib/savedir.c (includes): Likewise.
81574         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81575         emulation can write to stderr on failure.
81576         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81577         * lib/getcwd.c: Document why opendir_safer is unused.
81578         * lib/glob.c: Likewise.
81579         * lib/scandir.c: Likewise.
81580         * lib/openat-proc.c: Likewise, for open_safer.
81581         * modules/backupfile (Depends-on): Add dirent-safer.
81582         * modules/savedir (Depends-on): Likewise.
81583         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81584         * modules/chdir-long (Depends-on): Add openat-safer.
81586         openat-safer: new module
81587         * modules/openat-safer: New file.
81588         * lib/openat-safer.c: Likewise.
81589         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81590         * lib/fcntl-safer.h (openat_safer): Declare.
81591         * lib/fcntl--.h (openat): Override.
81592         * MODULES.html.sh (File descriptor based I/O): Mention it.
81593         * lib/openat.h: Add double-inclusion guards.
81594         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81595         "fcntl--.h", so we can implement openat.
81596         * modules/openat-safer-tests: New test.
81597         * tests/test-openat-safer.c: New file.
81599         dirent-safer: new module
81600         * modules/dirent-safer: New file.
81601         * lib/dirent--.h: Likewise.
81602         * lib/dirent-safer.h: Likewise.
81603         * lib/opendir-safer.c: Likewise.
81604         * m4/dirent-safer.m4: Likewise.
81605         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81606         * modules/dirent-safer-tests: New test.
81607         * tests/test-dirent-safer.c: New file.
81608         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81610         fdopendir: optimize on mingw
81611         * lib/unistd.in.h (_gl_directory_name): New prototype.
81612         * lib/fchdir.c (_gl_directory_name): Implement it.
81613         (fchdir): Use it to simplify implementation.
81614         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81615         fchdir, when available, to avoid calling [f]chdir().
81617         fdopendir: split into its own module
81618         * lib/openat.c (fdopendir): Move...
81619         * lib/fdopendir.c: ...into new file.
81620         * modules/fdopendir: New module.
81621         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81622         * modules/openat (Depends-on): Add fdopendir.
81623         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81624         fdopendir here.
81625         * modules/savedir (Depends-on): Only need fdopendir, not full
81626         openat.
81627         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81628         * lib/openat.h (fdopendir): Drop prototype.
81629         * lib/dirent.in.h (fdopendir): Provide prototype.
81630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81631         * modules/dirent (Makefile.am): Substitute them.
81632         * MODULES.html.sh (File system functions): Mention it.
81633         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81634         * modules/fdopendir-tests: New file.
81635         * tests/test-fdopendir.c: Likewise.
81637         fchdir: use more consistent macro convention
81638         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81639         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81640         REPLACE_FCHDIR, rather than relying on config.h macros.
81641         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81642         inside a single make-time REPLACE_FCHDIR block, rather than using
81643         the config.h FCHDIR_REPLACEMENT.
81644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81645         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81646         Manage fstat replacement.
81647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81648         REPLACE_FCHDIR.
81649         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81650         (Makefile.am): Substitute REPLACE_FCHDIR.
81651         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81652         FCHDIR_REPLACEMENT.
81653         * lib/dup-safer.c (dup_safer): Likewise.
81654         * lib/dup2.c (rpl_dup2): Likewise.
81655         * lib/dup3.c (rpl_dup3): Likewise.
81656         * lib/open.c (rpl_open): Likewise.
81658         fchdir: simplify error handling, and support dup3
81659         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81660         stdbool, malloc-posix, realloc-posix.
81661         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81662         (ensure_dirs_slot): Return false on allocation failure.
81663         (rpl_dup2): Delete.
81664         (_gl_register_dup): New function.
81665         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81666         (_gl_register_fd): Close fd on allocation failure.
81667         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81668         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81669         prototype.
81670         (rpl_dup2_fchdir): Delete prototype.
81671         * lib/open.c (open): Update caller.
81672         * lib/dup2.c (dup2): Track fchdir metadata.
81673         * lib/dup3.c (dup3): Likewise.
81674         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81677 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81679         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81680         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81681         don't pass arguments to AC_OUTPUT.
81683 2009-09-02  Bruno Haible  <bruno@clisp.org>
81685         * modules/mkdtemp (License): Relicense under LGPLv2+.
81686         Reported by Paolo Bonzini.
81688 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81690         Replace uses of obsolete autoconf macros in Jim's modules.
81691         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81692         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81693         can evoke a warning from autoconf when run with -Wobsolete
81694         enabled.  They were declared obsolete for good reasons (see
81695         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81696         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81697         should not continue using the deprecated macros.
81698         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81699         obsolete Autoconf macros with modern counterparts.
81700         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81701         * m4/dos.m4 (gl_AC_DOS): Likewise.
81702         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81704         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81705         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81708         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81709         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81710         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81711         Likewise.
81712         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81713         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81714         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81715         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81716         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81717         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81719 2009-09-01  Eric Blake  <ebb9@byu.net>
81721         fchdir: fix off-by-one bug in previous patch
81722         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81723         (_gl_unregister_fd): Delete useless if.
81725 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81727         maint.mk: sort the list of syntax-check rules
81728         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81729         easier to get a sense of progress when the rules are run sequentially
81730         and take a long time.
81732 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81734         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81735         * modules/netinet_in: Likewise.
81736         * modules/sys_file: Likewise.
81737         * modules/sys_ioctl: Likewise.
81738         * modules/sys_select: Likewise.
81739         * modules/sys_socket: Likewise.
81740         * modules/sys_stat: Likewise.
81741         * modules/sys_time: Likewise.
81742         * modules/sys_times: Likewise.
81743         * modules/sys_utsname: Likewise.
81744         * modules/sys_wait: Likewise.
81746 2009-09-01  Jim Meyering  <meyering@redhat.com>
81748         fts: help ensure that return values are not ignored
81749         * lib/fts_.h (__GNUC_PREREQ): Define.
81750         (__attribute_warn_unused_result__): Define.
81751         (fts_children, fts_close, fts_open, fts_read): Declare with
81752         __attribute_warn_unused_result__.
81754         fts: fts_close now fails also when closing a dir file descriptor fails
81755         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81756         and propagate to caller, along with errno.
81758         announce-gen: correct formatting in --help output
81759         * build-aux/announce-gen (usage): Move the one-line description in
81760         --help output "up", to where it belongs, just after Usage:.
81762 2009-08-31  Eric Blake  <ebb9@byu.net>
81764         fchdir: port to mingw
81765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81766         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81767         opened, then use a substitute.
81768         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81769         replacement.
81770         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81771         (_gl_register_fd): No need to check stat if open already filters
81772         all directories.
81773         (fchdir): Fix error condition to match POSIX.
81774         * modules/fchdir (Depends-on): Add sys_stat.
81775         * doc/posix-functions/open.texi (open): Document the limitation.
81776         * modules/fchdir-tests: New file.
81777         * tests/test-fchdir.c: Likewise.
81779         canonicalize: allow cross-testing from cygwin to mingw
81780         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81781         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81782         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81783         Likewise.
81784         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81785         target does not support symlinks.
81786         * tests/test-canonicalize-lgpl.sh: Likewise.
81788         chown: avoid compilation warning on mingw
81789         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81790         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81791         mingw.
81792         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81793         * modules/chown (Depends-on): Add errno.
81795 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81797         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81798         command.
81800 2009-08-31  Jim Meyering  <meyering@redhat.com>
81802         canonicalize: remove useless initialization
81803         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81804         initialization of local, "end".
81806 2009-08-30  Bruno Haible  <bruno@clisp.org>
81808         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81809         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81810         ENOSYS.
81812 2009-08-30  Bruno Haible  <bruno@clisp.org>
81814         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81815         /usr/xpg4/bin/tr when it exists.
81816         * tests/test-pipe-filter-gi1.sh: Likewise.
81818 2009-08-30  Bruno Haible  <bruno@clisp.org>
81820         Work around deficient /usr/bin/id program on Solaris.
81821         * tests/test-file-has-acl.sh (ID): New variable.
81822         * tests/test-set-mode-acl.sh (ID): Likewise.
81823         * tests/test-copy-acl.sh (ID): Likewise.
81824         * tests/test-copy-file.sh (ID): Likewise.
81826 2009-08-30  Bruno Haible  <bruno@clisp.org>
81828         New module 'xstriconveh'.
81829         * lib/xstriconveh.h: New file.
81830         * lib/xstriconveh.c: New file.
81831         * modules/xstriconveh: New file.
81833 2009-08-30  Bruno Haible  <bruno@clisp.org>
81835         Make it easier to use mem_cd_iconveh.
81836         * lib/striconveh.h (iconveh_t): New type.
81837         (iconveh_open, iconveh_close): New declarations.
81838         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81839         with a single 'const iconveh_t *' argument.
81840         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81841         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81842         with a single 'const iconveh_t *' argument.
81843         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81844         * tests/test-striconveh.c (main): Update.
81845         * NEWS: Mention the change.
81847 2009-08-30  Bruno Haible  <bruno@clisp.org>
81849         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81850         problem.
81852 2009-08-30  Bruno Haible  <bruno@clisp.org>
81854         Work around iconv_open problem on Solaris.
81855         * lib/iconv_open-solaris.gperf: New file.
81856         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81858         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81859         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81860         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81861         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81863 2009-08-29  Jim Meyering  <meyering@redhat.com>
81865         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81866         * top/maint.mk (cvs-check): Remove target; it was just an alias
81867         to the better-named vc-diff-check.
81868         (maintainer-distcheck): Remove rule.  It was used only from
81869         the (alpha/beta/major) target, and all of its commands but one
81870         were coreutils-specific.
81871         (vc-dist): Remove rule.
81872         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81873         Run vc-diff-check, not vc-dist.
81874         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81876 2009-08-27  Bruno Haible  <bruno@clisp.org>
81878         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81879         of 0.
81881 2009-08-27  Bruno Haible  <bruno@clisp.org>
81883         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81884         compilers.
81885         * doc/func.texi: Document the SunPRO C bug.
81887 2009-08-27  Bruno Haible  <bruno@clisp.org>
81889         Fix link error on Solaris.
81890         * tests/test-parse-duration.c (xstrdup): Remove function.
81892 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81894         ignore-value: handle pointer types, too
81895         * lib/ignore-value.h (__attribute__): Remove definition.
81896         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81897         of a more concise and more-often effective "(void) i" statement.
81898         (ignore_ptr): New function to suppress warnings from functions that
81899         return pointers, and to make it explicit that one function doesn't
81900         handle all cases.
81902 2009-08-25  Bruno Haible  <bruno@clisp.org>
81904         dup2: work around a Linux bug.
81905         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81906         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81907         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81908         Reported by Simon Josefsson.
81910 2009-08-25  Jim Meyering  <meyering@redhat.com>
81912         libguestfs uses gnulib
81913         * users.txt: Add libguestfs.
81915 2009-08-24  Eric Blake  <ebb9@byu.net>
81917         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81918         * lib/pipe2.c (includes): Add binary-io.h.
81919         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81921 2009-08-24  Bruno Haible  <bruno@clisp.org>
81923         Tolerate declared but missing accept4 syscall.
81924         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81925         available.
81926         * lib/sys_socket.in.h (accept4): If the function is already present,
81927         override it.
81928         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81929         * modules/accept4 (Makefile.am): Compile accept4.c always.
81930         Reported by Paolo Bonzini and Eric Blake.
81932 2009-08-23  Bruno Haible  <bruno@clisp.org>
81934         New module 'accept4'.
81935         * lib/sys_socket.in.h (accept4): New declaration.
81936         * lib/accept4.c: New file.
81937         * m4/accept4.m4: New file.
81938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81939         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81940         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81941         HAVE_ACCEPT4.
81942         * modules/accept4: New file.
81943         * doc/glibc-functions/accept4.texi: Mention the new module.
81945 2009-08-24  Jim Meyering  <meyering@redhat.com>
81947         progname: also set global program_invocation_name, when possible
81948         Before this change, a libtool-enabled program that calls glibc's
81949         error function would report the program name as
81950         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81951         * modules/progname (configure.ac): Check for a declaration of
81952         program_invocation_name.
81953         * lib/progname.c:  Include <errno.h>.
81954         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81955         Set program_invocation_name.
81957 2009-08-23  Bruno Haible  <bruno@clisp.org>
81959         * lib/dup3.c: Include <string.h>.
81961 2009-08-23  Bruno Haible  <bruno@clisp.org>
81963         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81964         * lib/pipe2.c (pipe2): Likewise.
81965         Suggested by Eric Blake.
81967 2009-08-23  Bruno Haible  <bruno@clisp.org>
81969         Tolerate declared but missing dup3 syscall.
81970         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81971         * lib/unistd.in.h (dup3): If the function is already present,
81972         override it.
81973         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81974         * modules/dup3 (Makefile.am): Compile dup3.c always.
81975         Reported by Paolo Bonzini.
81977 2009-08-23  Bruno Haible  <bruno@clisp.org>
81979         Tolerate declared but missing pipe2 syscall.
81980         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81981         available.
81982         * lib/unistd.in.h (pipe2): If the function is already present,
81983         override it.
81984         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81985         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81986         Reported by Paolo Bonzini.
81988 2009-08-23  Bruno Haible  <bruno@clisp.org>
81990         * lib/pipe2.c (pipe2): Move #ifs inside function.
81992 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81994         quotearg: document limitations of quote_these_too
81995         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81996         those limitations are created.
81997         * lib/quotearg.h (set_char_quoting): Document that digits and
81998         letters that are special after backslash are not permitted.
81999         (quotearg_char): Cross-reference set_char_quoting documentation.
82001 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
82003         quotearg: implement custom_quoting_style
82004         * lib/quotearg.c: (struct quoting_options): Add left_quote and
82005         right_quote fields.
82006         (set_custom_quoting): New public function.
82007         (quotearg_buffer_restyled): Add left_quote and right_quote
82008         arguments, handle them very much like locale quoting, and update
82009         all uses.
82010         (quotearg_n_custom): New public function.
82011         (quotearg_n_custom_mem): New public function.
82012         (quotearg_custom): New public function.
82013         (quotearg_custom_mem): New public function.
82014         * lib/quotearg.h: Prototype and document new public functions.
82015         (enum quoting_style): For escape_quoting_style and
82016         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
82017         ignored even though they're otherwise like c_quoting_style.
82018         Add custom_quoting_style member and document with comparison to
82019         clocale_quoting_style.
82020         * tests/test-quotearg.c (custom_quotes): New array.
82021         (custom_results): New array.
82022         (main): Extend to test custom quoting.
82024 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82026         quotearg: fix right quote escaping when it's in quote_these_too
82027         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
82028         quote, be sure to prepend only one backslash.
82029         * tests/test-quotearg.c (use_quote_double_quotes): New function.
82030         (main): Test it.
82032 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82034         quotearg-tests: test escaping of embedded locale quotes
82035         * tests/test-quotearg.c (struct result_strings): Add member for
82036         new input.
82037         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
82038         (inputs): Add new input.
82039         (results_g): Add expected results.
82040         (flag_results): Likewise.
82041         (locale_results): Likewise.
82042         (compare_strings): Check those.
82044 2009-08-23  Bruno Haible  <bruno@clisp.org>
82046         Tests for module 'dup3'.
82047         * modules/dup3-tests: New file.
82048         * tests/test-dup3.c: New file.
82050         New module 'dup3'.
82051         * lib/unistd.in.h (dup3): New declaration.
82052         * lib/dup3.c: New file.
82053         * m4/dup3.m4: New file.
82054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
82055         HAVE_DUP3.
82056         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
82057         * modules/dup3: New file.
82058         * doc/glibc-functions/dup3.texi: Mention the new module.
82060 2009-08-23  Bruno Haible  <bruno@clisp.org>
82062         Tweak the dup2 test.
82063         * tests/test-dup2.c (main): Create the test file empty. Verify that an
82064         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
82065         the test file is still empty. Fix argument order of lseek.
82067 2009-08-23  Bruno Haible  <bruno@clisp.org>
82069         Avoid test link errors when the modules getopt-gnu, gettext are used.
82070         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
82071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82073 2009-08-23  Bruno Haible  <bruno@clisp.org>
82075         Fix getdtablesize() on mingw.
82076         * lib/getdtablesize.c (getdtablesize): Implement differently.
82077         * lib/unistd.in.h (getdtablesize): Improve comment.
82079 2009-08-23  Bruno Haible  <bruno@clisp.org>
82081         New module 'mkostemp'.
82082         Based on Ulrich Drepper's 2007-08-10 change in glibc.
82083         * lib/stdlib.in.h (mksotemp): New declaration.
82084         * lib/mkostemp.c: New file, from glibc with modifications.
82085         * lib/tempname.h (GT_FILE): Remove outdated comment.
82086         (gen_tempname): Add flags argument.
82087         * lib/tempname.c (__GT_BIGFILE): Remove macro.
82088         (__GT_FILE): Map to 1.
82089         (small_open, large_open): Remove macros.
82090         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
82091         * lib/mkstemp.c (mkstemp): Update.
82092         * lib/mkdtemp.c (mkdtemp): Likewise.
82093         * m4/mkostemp.m4: New file.
82094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
82095         HAVE_MKOSTEMP.
82096         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
82097         HAVE_MKOSTEMP.
82098         * modules/mkostemp: New file, based on modules/mkstemp.
82099         * doc/glibc-functions/mkostemp.texi: Mention the new module.
82100         * NEWS: Mention the change.
82102 2009-08-23  Bruno Haible  <bruno@clisp.org>
82104         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
82105         Reported by Eric Blake.
82107 2009-08-23  Bruno Haible  <bruno@clisp.org>
82109         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
82110         Reported by Eric Blake.
82112 2009-08-23  Bruno Haible  <bruno@clisp.org>
82114         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
82115         * modules/pipe2 (Depends-on): Likewise.
82117 2009-08-23  Eric Blake  <ebb9@byu.net>
82119         fcntl-h: add O_TTY_INIT support
82120         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
82121         * tests/test-fcntl-h.c (o): Test it.
82122         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82124         fcntl-h: rename from fcntl, in preparation for fcntl(2)
82125         * modules/fcntl: Move <fcntl.h> header replacement...
82126         * modules/fcntl-h: ...to new name, so as not to collide with
82127         like-named function.
82128         * tests/test-fcntl.c: Rename...
82129         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
82130         * modules/fcntl-tests: Rename...
82131         * modules/fcntl-h-tests: ...to this.  Update test file name.
82132         * modules/chdir-long (Depends-on): Update clients.
82133         * modules/chdir-safer (Depends-on): Likewise.
82134         * modules/fcntl-safer (Depends-on): Likewise.
82135         * modules/fts (Depends-on): Likewise.
82136         * modules/mkancesdirs (Depends-on): Likewise.
82137         * modules/mkdir-p (Depends-on): Likewise.
82138         * modules/open (Depends-on): Likewise.
82139         * modules/savewd (Depends-on): Likewise.
82140         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
82141         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82143 2009-08-22  Bruno Haible  <bruno@clisp.org>
82145         * modules/binary-io (License): Relicense under LGPL.
82146         * modules/pipe2 (License): Likewise.
82148 2009-08-22  Bruno Haible  <bruno@clisp.org>
82150         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
82151         return value.
82152         * lib/pipe-filter-gi.c (filter_init): Likewise.
82153         Reported by Eric Blake.
82155 2009-08-22  Bruno Haible  <bruno@clisp.org>
82157         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
82158         * modules/pipe (Depends-on): Add pipe2.
82160 2009-08-22  Bruno Haible  <bruno@clisp.org>
82162         Tests for module 'pipe2'.
82163         * modules/pipe2-tests: New file.
82164         * tests/test-pipe2.c: New file.
82166         New module 'pipe2'.
82167         * lib/unistd.in.h (pipe2): New declaration.
82168         * lib/pipe2.c: New file.
82169         * m4/pipe2.m4: New file.
82170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
82171         HAVE_PIPE2.
82172         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
82173         * modules/pipe2: New file.
82174         * doc/glibc-functions/pipe2.texi: Mention the new module.
82176 2009-08-22  Bruno Haible  <bruno@clisp.org>
82178         Reference some new glibc functions.
82179         * doc/glibc-functions/accept4.texi: New file.
82180         * doc/glibc-functions/dup3.texi: New file.
82181         * doc/glibc-functions/mkostemp.texi: New file.
82182         * doc/glibc-functions/pipe2.texi: New file.
82183         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
82184         (Glibc sys/socket.h): Refer to accept4.
82185         (Glibc unistd.h): Refer to dup3, pipe2.
82186         Reported by Eric Blake.
82188 2009-08-22  Jim Meyering  <meyering@redhat.com>
82189             Bruno Haible  <bruno@clisp.org>
82191         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
82192         This makes it so packages using automake-1.11's silent-rules option
82193         can print e.g., a single "GEN    configmake.h" line, rather than
82194         the 30+ statements that perform the job.  If you want to see the
82195         actual commands, you can still run "make V=1".
82196         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
82197         so that make output is abbreviated when those variables are defined
82198         appropriately.
82199         * modules/argz: Likewise.
82200         * modules/arpa_inet: Likewise.
82201         * modules/byteswap: Likewise.
82202         * modules/configmake: Likewise.
82203         * modules/dirent: Likewise.
82204         * modules/errno: Likewise.
82205         * modules/fcntl: Likewise.
82206         * modules/float: Likewise.
82207         * modules/fnmatch: Likewise.
82208         * modules/getopt-posix: Likewise.
82209         * modules/glob: Likewise.
82210         * modules/iconv_open: Likewise.
82211         * modules/inttypes: Likewise.
82212         * modules/localcharset: Likewise.
82213         * modules/locale: Likewise.
82214         * modules/math: Likewise.
82215         * modules/netdb: Likewise.
82216         * modules/netinet_in: Likewise.
82217         * modules/poll: Likewise.
82218         * modules/posix_spawnp-tests: Likewise.
82219         * modules/sched: Likewise.
82220         * modules/search: Likewise.
82221         * modules/selinux-h: Likewise.
82222         * modules/signal: Likewise.
82223         * modules/spawn: Likewise.
82224         * modules/stdarg: Likewise.
82225         * modules/stdbool: Likewise.
82226         * modules/stddef: Likewise.
82227         * modules/stdint: Likewise.
82228         * modules/stdio: Likewise.
82229         * modules/stdlib: Likewise.
82230         * modules/string: Likewise.
82231         * modules/strings: Likewise.
82232         * modules/sys_file: Likewise.
82233         * modules/sys_ioctl: Likewise.
82234         * modules/sys_select: Likewise.
82235         * modules/sys_socket: Likewise.
82236         * modules/sys_stat: Likewise.
82237         * modules/sys_time: Likewise.
82238         * modules/sys_times: Likewise.
82239         * modules/sys_utsname: Likewise.
82240         * modules/sys_wait: Likewise.
82241         * modules/sysexits: Likewise.
82242         * modules/time: Likewise.
82243         * modules/unistd: Likewise.
82244         * modules/wchar: Likewise.
82245         * modules/wctype: Likewise.
82247 2009-08-22  Jim Meyering  <meyering@redhat.com>
82249         announce-gen: detect write failure
82250         * build-aux/announce-gen: Add Coda at end.
82251         Remove equivalent-but-more-verbose block at top.
82253 2009-08-19  Akim Demaille  <demaille@gostai.com>
82255         bootstrap: --help to stdout.
82256         * bootstrap (usage): Don't send --help to stderr.
82257         Use a here doc instead of a long string.
82259 2009-08-21  Eric Blake  <ebb9@byu.net>
82261         test-popen-safer: split from test-popen
82262         * tests/test-popen.c (main): Move...
82263         * tests/test-popen.h: ...into new file.
82264         * tests/test-popen-safer2.c: New file.
82265         * modules/popen-tests (Files): Add test-popen.h.
82266         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
82267         Suggested by Bruno Haible.
82269         test-fcntl-safer: split from test-open
82270         * tests/test-open.c (main): Move...
82271         * tests/test-open.h: ...into new file.
82272         * tests/test-fcntl-safer.c: New file.
82273         * modules/open-tests (Files): Add test-open.h.
82274         * modules/fcntl-safer-tests: New file.
82275         Suggested by Bruno Haible.
82277         test-fopen-safer: split from test-fopen
82278         * tests/test-fopen.c (main): Move...
82279         * tests/test-fopen.h: ...into new file.
82280         * tests/test-fopen-safer.c: New file.
82281         * modules/fopen-tests (Files): Add test-fopen.h.
82282         * modules/fopen-safer-tests: New file.
82283         Suggested by Bruno Haible.
82285 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82287         popen-safer: test O_CLOEXEC at run-time.
82288         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
82290 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82292         fcntl: move more flags to the header
82293         * lib/cloexec.c: Do not define FD_CLOEXEC here.
82294         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
82295         * lib/fcntl.in.h: Do both things here.
82297 2009-08-21  Jim Meyering  <meyering@redhat.com>
82299         consistently remove $@-t before redirecting to it
82300         * modules/argz: Remove $@-t and $@ before redirecting to the former.
82301         * modules/alloca-opt: Likewise.
82302         * modules/byteswap: Likewise.
82303         * modules/fnmatch: Likewise.
82304         * modules/getopt-posix: Likewise.
82305         * modules/glob: Likewise.
82306         * modules/poll: Likewise.
82307         * modules/posix_spawnp-tests: Likewise.
82308         * modules/sys_socket: Likewise.
82309         * modules/sysexits: Likewise.
82311 2009-08-21  Eric Blake  <ebb9@byu.net>
82313         popen: simplify access to original popen
82314         * lib/popen.c (rpl_popen): No need to worry about popen being a
82315         macro.
82316         Reported by Bruno Haible.
82318 2009-08-20  Eric Blake  <ebb9@byu.net>
82320         build: avoid some compiler warnings
82321         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
82322         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
82323         type.
82324         (new_exclude_segment, excluded_file_pattern_p)
82325         (excluded_file_name_p): Reduce scope.
82326         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
82327         old-style declaration.
82329 2009-08-20  Simon Josefsson  <simon@josefsson.org>
82331         * tests/test-exclude1.sh: Handle Windows EOL.
82332         * tests/test-exclude2.sh: Likewise.
82333         * tests/test-exclude3.sh: Likewise.
82334         * tests/test-exclude4.sh: Likewise.
82335         * tests/test-exclude5.sh: Likewise.
82336         * tests/test-exclude6.sh: Likewise.
82337         * tests/test-exclude7.sh: Likewise.
82339 2009-08-19  Akim Demaille  <demaille@gostai.com>
82341         bootstrap: find sha1sum when named gsha1sum.
82342         * bootstrap (find_tool): New.
82343         ($SHA1SUM): New.
82344         Use it.
82346 2009-08-20  Jim Meyering  <meyering@redhat.com>
82348         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
82349         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
82350         expression that converts "." in a file name to "\." in the resulting
82351         regexp.  Start with a dummy statement, so that prior shell variable
82352         definitions are expanded portably.  Reported by Simon Josefsson.
82354 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
82356         Fix polling for writeability of a screen buffer.
82357         * lib/poll.c: Distinguish input and screen buffers for the
82358         Win32 implementation.
82359         * lib/select.c: Likewise.
82361 2009-08-19  Eric Blake  <ebb9@byu.net>
82363         popen-safer: prevent popen from clobbering std descriptors
82364         * modules/popen-safer: New file.
82365         * lib/popen-safer.c: Likewise.
82366         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
82367         * lib/stdio--.h (popen): Provide override.
82368         * lib/stdio-safer.h (popen_safer): Provide declaration.
82369         * tests/test-popen.c (includes): Partially test this.
82370         * modules/popen-safer-tests: New file, for more tests.
82371         * tests/test-popen-safer.c: Likewise.
82372         * MODULES.html.sh (file stream based Input/Output): Mention it.
82374         tests: test some of the *-safer modules
82375         * modules/fopen-safer (Depends-on): Add fopen.
82376         * modules/fcntl-safer (Depends-on): Add fcntl.
82377         * modules/stdlib-safer (Depends-on): Add stdlib.
82378         (configure.ac): Set indicator.
82379         * modules/unistd-safer (configure.ac): Likewise.
82380         * modules/tmpfile-safer (configure.ac): Likewise.
82381         (Depends-on): Add tmpfile.
82382         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
82383         active.
82384         * tests/test-fopen.c (includes): Test safer versions when they are
82385         in use.
82386         * tests/test-open.c (includes): Likewise.
82388         popen: fix cygwin 1.5 bug when stdin closed
82389         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
82390         * modules/popen: New file.
82391         * modules/popen-tests: Likewise.
82392         * tests/test-popen.c: Likewise.
82393         * m4/popen.m4: Likewise.
82394         * lib/popen.c: Likewise.
82395         * lib/stdio.in.h (popen): New declaration.
82396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
82397         * modules/stdio (Makefile.am): Likewise.
82398         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
82400 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
82402         maint.mk: give full control over update-copyright exclusions
82403         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
82404         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
82405         (update-copyright): Don't force inclusion of top-level
82406         ChangeLog.  Don't force exclusion of all COPYING files, but make
82407         them the default exclusion instead.
82409 2009-08-16  Bruno Haible  <bruno@clisp.org>
82411         Fix test failures on Solaris 10.
82412         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
82413         tests when Solaris iconv() is used.
82414         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82415         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82416         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82417         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82418         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82420 2009-08-16  Bruno Haible  <bruno@clisp.org>
82422         Fix test failures on Solaris 10.
82423         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82424         'tr' program and pass it as first argument.
82425         * tests/test-pipe-filter-gi1.sh: Likewise.
82426         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82427         program as first argument.
82428         * tests/test-pipe-filter-gi1.c (main): Likewise.
82430 2009-08-16  Eric Blake  <ebb9@byu.net>
82432         fpurge: fix previous commits
82433         * modules/fpurge (Makefile.am): Make replacement conditional,
82434         partially reverting 2007-04-29 change; missed in previous
82435         attempt.
82436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82437         is missing.
82439 2009-08-16  Bruno Haible  <bruno@clisp.org>
82441         Clarify fpurge's effect on the file position.
82442         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82443         * tests/test-fpurge.c (main): Make a second pass for checking the file
82444         position.
82446 2009-08-16  Bruno Haible  <bruno@clisp.org>
82448         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82449         declaration of fpurge is missing.
82450         * tests/test-fpurge.c (main): Check that the file has not more contents
82451         than expected. Close the file before removing it.
82453 2009-08-15  Eric Blake  <ebb9@byu.net>
82455         fpurge: don't wrap working cygwin implementation
82456         * lib/fpurge.c (fpurge): Fix comment typo.
82457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82458         1.7 to avoid replacement.
82459         * tests/test-fpurge.c (main): Enhance test.
82461 2009-08-15  Eric Blake  <ebb9@byu.net>
82462         and Jim Meyering  <meyering@redhat.com>
82464         test-update-copyright: skip if perl is insufficient
82465         * tests/test-update-copyright.sh: Failure to run maintainer tool
82466         should not cause testsuite failure on cygwin 1.5.
82468 2009-08-14  Eric Blake  <ebb9@byu.net>
82470         doc: mention more functions added in cygwin 1.7.0
82471         * doc/posix-headers/limits.texi (limits.h): Update for recent
82472         cygwin additions.
82473         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82474         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82475         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82476         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82477         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82479 2009-08-14  Eric Blake  <ebb9@byu.net>
82481         maint.mk: simplify update-copyright rule
82482         * top/maint.mk (update-copyright-local): Delete, and document how
82483         to do it in cfg.mk instead.
82484         (update-copyright-exclude-regexp): Delete, and document how to do
82485         it in .x-update-copyright instead.
82486         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82487         exclude ChangeLog.
82489 2009-08-14  Bruno Haible  <bruno@clisp.org>
82491         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82493 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82495         maint.mk: support update-copyright-env
82496         * top/maint.mk (update-copyright-env): Define place-holder.
82497         (update-copyright): Expand $(update-copyright-env) before
82498         invoking update-copyright.
82500 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82502         update-copyright: implement forced reformatting
82503         * build-aux/update-copyright: Implement and document
82504         UPDATE_COPYRIGHT_FORCE.
82505         * tests/test-update-copyright.sh: Test it.
82507 2009-08-14  Eric Blake  <ebb9@byu.net>
82508         and Bruno Haible  <bruno@clisp.org>
82510         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82511         * tests/test-locale.c: Revert previous patch related to NULL.
82512         * tests/test-stdio.c: Likewise.
82513         * tests/test-stdlib.c: Likewise.
82514         * tests/test-string.c: Likewise.
82515         * tests/test-unistd.c: Likewise.
82516         * modules/time-tests (Depends-on): Add verify.
82517         * modules/wchar-tests (Depends-on): Likewise.
82518         * tests/test-time.c: Test for NULL compliance.
82519         * tests/test-wchar.c: Likewise.
82520         * modules/locale (Depends-on): Add stddef.
82521         * modules/stdio (Depends-on): Likewise.
82522         * modules/stdlib (Depends-on): Likewise.
82523         * modules/string (Depends-on): Likewise.
82524         * modules/time (Depends-on): Likewise.
82525         * modules/unistd (Depends-on): Likewise.
82526         * modules/wchar (Depends-on): Likewise.
82527         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82528         * lib/stdlib.in.h (includes): Likewise.
82529         * lib/string.in.h (includes): Likewise.
82530         * lib/time.in.h (includes): Likewise.
82531         * lib/unistd.in.h (includes): Likewise.
82532         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82533         replaced.
82534         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82535         * m4/stddef_h.m4: New file.
82536         * modules/stddef: Likewise.
82537         * lib/stddef.in.h: Likewise.
82538         * modules/stddef-tests: Likewise.
82539         * tests/test-stddef.c: Likewise.
82540         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82541         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82542         * doc/posix-headers/locale.texi (locale.h): Likewise.
82543         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82544         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82545         * doc/posix-headers/string.texi (string.h): Likewise.
82546         * doc/posix-headers/time.texi (time.h): Likewise.
82547         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82548         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82550 2009-08-14  Eric Blake  <ebb9@byu.net>
82552         doc: improve git diff of texinfo files
82553         * .gitattributes: Add rule for *.texi files, with hint on how to
82554         use it.
82555         Copied from m4, and based on a report by Bruno Haible.
82557 2009-08-14  Bruno Haible  <bruno@clisp.org>
82559         Disable multithread support by default on Cygwin 1.5.x for real.
82560         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82562 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82564         update-copyright: much ado about intervals
82565         * build-aux/update-copyright: Implement and document
82566         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82567         of copyright year intervals.
82568         Also, document UPDATE_COPYRIGHT_YEAR.
82569         * tests/test-update-copyright.sh: Test it.
82571         update-copyright: convert 2-digit to 4-digit years
82572         * build-aux/update-copyright: Implement and document.
82573         * tests/test-update-copyright.sh: Update.
82575 2009-08-14  Jim Meyering  <meyering@redhat.com>
82577         test-exclude: avoid coreutils "make check" failure
82578         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82579         just as in test-argmatch.c.
82581 2009-08-13  Eric Blake  <ebb9@byu.net>
82583         test-dup2: fix bad assumption
82584         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82585         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82587         test-version-etc: fix CRLF portability issue
82588         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82589         recognize \r.
82590         * tests/test-argp-version-etc-1.sh: Likewise.
82592         getopt: update client modules
82593         * modules/argp (Depends-on): Use getopt-gnu.
82594         * modules/git-merge-changelog (Depends-on): Likewise.
82595         * modules/long-options (Depends-on): Likewise.
82596         * modules/xstrtol (Depends-on): Likewise.
82598 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82600         * tests/test-version-etc.sh: Don't fail on different
82601         project/version.  Don't fail on CRLF differences.  Rewrite to use
82602         multiple -e instead of multiple sed forks, suggested by Eric Blake
82603         <ebb9@byu.net>.
82604         * tests/test-argp-version-etc-1.sh: Likewise.
82606 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82608         * tests/test-version-etc.sh: Don't fail on different
82609         project/version.
82611 2009-08-12  Bruno Haible  <bruno@clisp.org>
82613         Tests for modules 'getopt-posix', 'getopt-gnu'.
82614         * modules/getopt-posix-tests: New file.
82615         * tests/test-getopt.c: New file.
82616         * tests/test-getopt.h: New file.
82617         * tests/test-getopt_long.h: New file.
82619         New modules 'getopt-posix', 'getopt-gnu'.
82620         * modules/getopt-gnu: New file, renamed from modules/getopt.
82621         * modules/getopt-posix: New file.
82622         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82623         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82624         (gl_GETOPT): Remove macro.
82625         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82626         Disable the test against BSD systems that declare optreset. Test
82627         against mingw bug. Test against lack of support of optional arguments
82628         on many platforms.
82629         * doc/glibc-headers/getopt.texi: Update module name and list of
82630         relevant platforms.
82631         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82632         'getopt-gnu' and more portability problems.
82633         * NEWS: Mention the changes.
82635 2009-08-12  Bruno Haible  <bruno@clisp.org>
82637         Ensure that optarg etc. get declared by <unistd.h>.
82638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82639         AC_USE_SYSTEM_EXTENSIONS.
82640         * modules/getopt (Depends-on): Add 'extensions'.
82642 2009-08-12  Bruno Haible  <bruno@clisp.org>
82644         Avoid test link errors.
82645         * modules/pipe-filter-ii-tests (Makefile.am): Define
82646         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82647         * modules/pipe-filter-gi-tests (Makefile.am): Define
82648         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82651 2009-08-12  Bruno Haible  <bruno@clisp.org>
82653         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82654         gl_GETOPT_SUBSTITUTE before.
82655         (gl_GETOPT): Use it.
82656         * m4/argp.m4 (gl_ARGP): Update.
82657         Reported by Sergey Poznyakoff.
82659         * m4/getopt.m4: Reorder macros.
82660         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82661         (gl_GETOPT_SUBSTITUTE): Remove macro.
82663 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82665         Minor improvement in gitlog-to-changelog
82667         * build-aux/gitlog-to-changelog: New option `--format' makes
82668         output format string configurable.
82670 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82672         Optimize exclude: use hash tables for non-wildcard patterns.
82674         * lib/exclude.c: Include hash.h and mbuiter.h
82675         (struct exclude_pattern, exclude_segment): New data types.
82676         (struct exclude): Rewrite.
82677         (fnmatch_pattern_has_wildcards): New function.
82678         (new_exclude_segment, free_exclude_segment): New functions.
82679         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82680         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82681         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82682         * modules/exclude: Depend on hash and mbuiter.
82684         * modules/exclude-tests: New file.
82685         * tests/test-exclude.c: New file.
82686         * tests/test-exclude1.sh: New file.
82687         * tests/test-exclude2.sh: New file.
82688         * tests/test-exclude3.sh: New file.
82689         * tests/test-exclude4.sh: New file.
82690         * tests/test-exclude5.sh: New file.
82691         * tests/test-exclude6.sh: New file.
82692         * tests/test-exclude7.sh: New file.
82694 2009-08-12  Bruno Haible  <bruno@clisp.org>
82696         Ensure that getopt() gets declared by <unistd.h>.
82697         * lib/unistd.in.h: Conditionally include getopt.h.
82698         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82699         Set GNULIB_UNISTD_H_GETOPT.
82700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82701         GNULIB_UNISTD_H_GETOPT.
82702         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82704 2009-08-12  Bruno Haible  <bruno@clisp.org>
82706         Clarify logic.
82707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82708         gl_replace_getopt instead of GETOPT_H.
82710 2009-08-12  Bruno Haible  <bruno@clisp.org>
82712         * m4/getopt.m4: Add comments.
82714 2009-08-12  Bruno Haible  <bruno@clisp.org>
82716         Disable multithread support by default on Cygwin 1.5.x.
82717         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82718         set gl_use_threads=no if not specified otherwise.
82720 2009-08-11  Bruno Haible  <bruno@clisp.org>
82722         Avoid compilation error on NetBSD 5.0.
82723         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82724         * tests/test-stdio.c: Likewise.
82725         * tests/test-stdlib.c: Likewise.
82726         * tests/test-string.c: Likewise.
82727         * tests/test-unistd.c: Likewise.
82728         Reported by Greg Troxel <gdt@ir.bbn.com>
82729         at <https://savannah.gnu.org/support/?106973>.
82731 2009-08-11  Bruno Haible  <bruno@clisp.org>
82733         * modules/dup2-tests (Depends-on): Remove close.
82735         Undo 2009-07-19 commit.
82736         * modules/acl-tests (Depends-on): Remove close.
82737         * modules/binary-io-tests (Depends-on): Likewise.
82738         * modules/closein-tests (Depends-on): Likewise.
82739         * modules/flock-tests (Depends-on): Likewise.
82740         * modules/fsync-tests (Depends-on): Likewise.
82741         * modules/lseek-tests (Depends-on): Likewise.
82742         * modules/pipe-tests (Depends-on): Likewise.
82743         * modules/posix_spawn-tests (Depends-on): Likewise.
82744         * modules/posix_spawnp-tests (Depends-on): Likewise.
82745         * modules/stat-time-tests (Depends-on): Likewise.
82746         * modules/yesno-tests (Depends-on): Likewise.
82748 2009-08-10  Bruno Haible  <bruno@clisp.org>
82750         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82752 2009-08-10  Bruno Haible  <bruno@clisp.org>
82754         Fix a gcc warning.
82755         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82757 2009-08-10  Bruno Haible  <bruno@clisp.org>
82759         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82760         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82761         not only the first time.
82762         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82763         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82764         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82765         is 1, not only the first time.
82767 2009-08-10  Bruno Haible  <bruno@clisp.org>
82769         Make it possible to use module 'gethostname' without module 'close'.
82770         * lib/unistd.in.h (close): Evoke a link error only if
82771         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82773         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82774         * modules/unistd (Makefile.am): Substitute
82775         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82776         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82777         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82779         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82780         * modules/sys_ioctl (Makefile.am): Substitute
82781         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82782         * modules/socket (configure.ac): On native Windows, set
82783         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82784         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82785         Reported by Sam Steingold <sds@gnu.org>.
82787 2009-08-10  Bruno Haible  <bruno@clisp.org>
82789         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82790         * modules/ioctl (configure.ac): Likewise.
82792 2009-08-10  Bruno Haible  <bruno@clisp.org>
82794         Avoid collision between gnulib wrapper and libintl wrapper.
82795         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82796         already defined in intl/printf.c.
82797         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82798         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82800 2009-08-09  Bruno Haible  <bruno@clisp.org>
82802         Make <sys/select.h> really self-contained, also on Solaris 10.
82803         * lib/sys_select.in.h: Include <string.h>.
82804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82805         Solaris 10 problem.
82806         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82807         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82808         Reported by Jim Meyering.
82810 2009-08-09  Bruno Haible  <bruno@clisp.org>
82812         Avoid warnings from 'aclocal' that are due to a use of macro name
82813         AM_XGETTEXT_OPTION that is not defined in automake.
82814         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82815         automake.
82816         * modules/error (configure.ac): Likewise.
82817         * modules/propername (configure.ac): Likewise.
82818         * modules/vasprintf (configure.ac): Likewise.
82819         * modules/verror (configure.ac): Likewise.
82820         * modules/xprintf (configure.ac): Likewise.
82821         * modules/xvasprintf (configure.ac): Likewise.
82823 2009-08-08  Bruno Haible  <bruno@clisp.org>
82825         Avoid compilation error in C++ mode.
82826         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82827         Reported by Sam Steingold <sds@gnu.org>.
82829 2009-08-08  Bruno Haible  <bruno@clisp.org>
82831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82832         for the various Unix platforms.
82833         * doc/posix-headers/limits.texi: Update platforms list regarding
82834         HOST_NAME_MAX.
82835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82837 2009-08-07  Jim Meyering  <meyering@redhat.com>
82839         selinux-at: fix typo in a comment
82840         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82841         Spotted by Paolo Bonzini.
82843         selinux-at: remove redundant m4 code, add documentation
82844         * modules/selinux-at (configure.ac): Remove redundant code.
82845         LIB_SELINUX is already set via the dependent module, selinux-h.
82846         (Include): Add quotes around selinux-at.h.
82847         * lib/selinux-at.h: Add documentation.
82848         Reported by Bruno Haible in
82849         http://marc.info/?l=gnulib-bug&m=124958988300749
82851 2009-08-07  Bruno Haible  <bruno@clisp.org>
82853         Avoid link error on MacOS X 10.3 and 10.4.
82854         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82855         on non-ELF systems.
82856         * lib/argp-pv.c (argp_program_version): Likewise.
82857         Reported by Simon Josefsson.
82859 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82861         * tests/test-version-etc.sh: Use $EXEEXT.
82863 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82865         update-copyright: update documentation to point to maint.mk
82866         * build-aux/update-copyright: Here.
82868 2009-08-06  Jim Meyering  <meyering@redhat.com>
82870         maint.mk: support update-copyright-local
82871         * top/maint.mk (update-copyright-local): Define place-holder.
82872         (update-copyright): Depend on $(update-copyright-local).
82874 2009-08-06  Jim Meyering  <meyering@redhat.com>
82876         selinux-at: new module
82877         Initially written for coreutils, this module will soon be
82878         used by findutils, too.
82879         * MODULES.html.sh [Misc]: Add selinux-at.
82880         * lib/selinux-at.h: New file, from coreutils.
82881         * lib/selinux-at.c: Likewise.
82882         * modules/selinux-at: Likewise.
82883         (License): Change from LGPL to GPL, since it depends
82884         on the GPL'd openat module.
82886         doc: update README
82887         * README: Remove references to cogito.
82888         Remove cvs-repo-updating instructions from 2007.
82889         Don't imply that CVS is better if you have limited disk space.
82891 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82893         update-copyright: support C-style comments
82894         * build-aux/update-copyright: Implement and document.
82895         * tests/test-update-copyright.sh: Test.
82897 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82899         update-copyright: support omitted "(C)"
82900         * build-aux/update-copyright: Implement and document.  Also,
82901         allow variable whitespace before "(C)".
82902         * tests/test-update-copyright.sh: Test.
82904 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82906         update-copyright: don't trip on non-FSF copyright statements
82907         * build-aux/update-copyright: Fix so that the first correctly
82908         formatted FSF copyright statement is recognized no matter what
82909         appears before it.  Update documentation.
82910         * tests/test-update-copyright.sh: Test that.
82912 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82914         update-copyright: clean up code a little
82915         * build-aux/update-copyright: Append "_re" to the name of any
82916         variable holding a regular expression.
82917         Replace "old" and "new" with "stmt" in variable names.
82918         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82919         handled correctly.
82920         Format code more consistently.
82922 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82924         update-copyright-tests: improve portability
82925         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82926         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82928 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82930         update-copyright: support @copyright{} and &copy;
82931         * build-aux/update-copyright: Implement and document.
82932         * tests/test-update-copyright.sh: Test.
82934 2009-08-04  Jim Meyering  <meyering@redhat.com>
82936         update-copyright-tests: correctly test EOL=\r\n handling
82937         * tests/test-update-copyright.sh: Put \r at the end of some lines
82938         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82940         maint.mk: make update-copyright exclusion list more configurable
82941         * top/maint.mk (update-copyright): Default to excluding COPYING,
82942         but allow an override, in case someone does want to update that file.
82944         maint.mk: don't update copyright date in COPYING
82945         * top/maint.mk (update-copyright): Exclude COPYING.
82947         maint.mk: add a copyright-updating rule
82948         * top/maint.mk (update-copyright): New rule.
82949         Derived from coreutils/Makefile.am.
82951         update-copyright: rename some variables
82952         * build-aux/update-copyright: Rename a few variables for clarity.
82953         Tweak syntax.  List Joel E. Denny as coauthor.
82955 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82957         update-copyright: fix bug for 2-digit last year and add tests
82958         * build-aux/update-copyright: Fix bug.
82959         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82960         specified.
82961         * modules/update-copyright-tests: New
82962         * tests/test-update-copyright.sh: New.
82964 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82966         update-copyright: handle leading tabs in line prefix
82967         * build-aux/update-copyright: Count leading tabs as 8 spaces
82968         when computing margin.  This helps with the formatting of
82969         ChangeLogs, for example.
82970         Fix documentation a little.
82972 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82974         update-copyright: support EOL=\r\n
82975         * build-aux/update-copyright: Implement that.
82977 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82979         update-copyright: automatically format copyright statements
82980         * build-aux/update-copyright: Implement that.
82981         Also, be a little more predictable and safer by always failing
82982         when the full copyright format is not perfectly recognized as an
82983         unbroken whole.  Discussed at
82984         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82985         Rewrite documentation.
82987 2009-08-03  Bruno Haible  <bruno@clisp.org>
82989         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82991 2009-08-02  Bruno Haible  <bruno@clisp.org>
82993         Tests for module 'uname'.
82994         * modules/uname-tests: New file.
82995         * tests/test-uname.c: New file.
82997         New module 'uname'.
82998         * lib/uname.c: New file.
82999         * m4/uname.m4: New file.
83000         * modules/uname: New file.
83001         * doc/posix-functions/uname.texi: Mention the new module.
83003 2009-08-02  Bruno Haible  <bruno@clisp.org>
83005         Tests for module 'sys_utsname'.
83006         * modules/sys_utsname-tests: New file.
83007         * tests/test-sys_utsname.c: New file.
83009         New module 'sys_utsname'.
83010         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
83011         * m4/sys_utsname_h.m4: New file.
83012         * modules/sys_utsname: New file.
83013         * doc/posix-headers/sys_utsname.texi: Mention the new module.
83015 2009-08-02  Bruno Haible  <bruno@clisp.org>
83017         Implicitly initialize the sockets library.
83018         * lib/gethostname.c: Include sockets.h.
83019         (rpl_gethostname): Invoke gl_sockets_startup.
83020         * lib/socket.c: Include sockets.h.
83021         (rpl_socket): Invoke gl_sockets_startup.
83022         * modules/gethostname (Depends-on): Add sockets.
83023         * modules/socket (Depends-on): Likewise.
83024         * tests/test-poll.c: Don't include sockets.h.
83025         (main): Don't invoke gl_sockets_startup.
83026         * tests/test-select.c: Don't include sockets.h.
83027         (main): Don't invoke gl_sockets_startup.
83029 2009-08-02  Bruno Haible  <bruno@clisp.org>
83031         Allow multiple calls to gl_sockets_startup.
83032         * lib/sockets.c (initialized_sockets_version): New variable.
83033         (gl_sockets_startup): Do nothing if already called for this or a higher
83034         version.
83035         (gl_sockets_cleanup): Reset initialized_sockets_version.
83037 2009-08-03  Simon Josefsson  <simon@josefsson.org>
83039         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
83040         different project/version.
83042 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
83043             Bruno Haible  <bruno@clisp.org>
83045         Tests for module 'pipe-filter-gi'.
83046         * modules/pipe-filter-gi-tests: New file.
83047         * tests/test-pipe-filter-gi1.sh: New file.
83048         * tests/test-pipe-filter-gi1.c: New file.
83049         * tests/test-pipe-filter-gi2.sh: New file.
83050         * tests/test-pipe-filter-gi2-main.c: New file.
83051         * tests/test-pipe-filter-gi2-child.c: New file.
83053         New module 'pipe-filter-gi'.
83054         * lib/pipe-filter-gi.c: New file.
83055         * modules/pipe-filter-gi: New file.
83057 2009-08-02  Bruno Haible  <bruno@clisp.org>
83058             Paolo Bonzini  <bonzini@gnu.org>
83060         Tests for module 'pipe-filter-ii'.
83061         * modules/pipe-filter-ii-tests: New file.
83062         * tests/test-pipe-filter-ii1.sh: New file.
83063         * tests/test-pipe-filter-ii1.c: New file.
83064         * tests/test-pipe-filter-ii2.sh: New file.
83065         * tests/test-pipe-filter-ii2-main.c: New file.
83066         * tests/test-pipe-filter-ii2-child.c: New file.
83068         New module 'pipe-filter-ii'.
83069         * lib/pipe-filter.h: New file.
83070         * lib/pipe-filter-ii.c: New file.
83071         * lib/pipe-filter-aux.h: New file.
83072         * modules/pipe-filter-ii: New file.
83074 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83076         * lib/gc-libgcrypt.c: Change copyright to FSF.
83077         * lib/gc-gnulib.c: Likewise.
83079 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
83081         * lib/gethostname.c: Include limits.h.
83083 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83084             Bruno Haible  <bruno@clisp.org>
83086         Ensure HOST_NAME_MAX as part of the gethostname module.
83087         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
83088         define also HOST_NAME_MAX.
83089         * tests/test-gethostname.c: Include <limits.h>.
83090         (main): Check also HOST_NAME_MAX.
83091         * doc/posix-headers/limits.texi: Document the mingw problem.
83093 2009-08-02  Bruno Haible  <bruno@clisp.org>
83095         * lib/gethostname.c (gethostname): Fix handling of large len argument.
83096         Add comments.
83098 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83100         * lib/gethostname.c: Add Windows wrapper.
83101         * m4/gethostname.m4: Look for gethostname in -lws2_32.
83102         * modules/gethostname: Depend on sys_socket & errno, for also
83103         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
83104         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
83106 2009-07-31  Jim Meyering  <meyering@redhat.com>
83108         getloadavg: fix symbol name in comment
83109         * lib/getloadavg.c: Correct a typo I introduced when adding
83110         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
83111         Matt Kraai spotted the problem.
83113 2009-07-29  Matt Kraai  <mkraai@beckman.com>
83115         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
83116         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
83117         code also if ! defined N_NAME_POINTER.
83118         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
83119         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
83120         but the n_name member is a 12-byte array.
83122 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
83124         update-copyright: generalize comment handling
83125         * build-aux/update-copyright: Handle copyright statements
83126         within more comment styles.
83127         Document usage.
83128         Report any file with an external copyright holder or parse failure.
83130 2009-07-29  Jim Meyering  <meyering@redhat.com>
83132         mktime: correct setting of REPLACE_MKTIME
83133         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
83135         update-copyright: new module
83136         * modules/update-copyright: New file.
83137         * build-aux/update-copyright: New file.
83138         * MODULES.html.sh (maint+release support): Add update-copyright.
83140 2009-07-27  Bruno Haible  <bruno@clisp.org>
83142         Fix compilation error when <ctime> is used and mktime is replaced.
83143         * lib/time.in.h (mktime): New declaration.
83144         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
83145         REPLACE_MKTIME instead of defining mktime in config.h.
83146         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
83147         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
83148         Reported by Ross McFarland <rwmcfa1@neces.com>.
83150 2009-07-27  Bruno Haible  <bruno@clisp.org>
83152         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
83153         Reported by Matt Kraai <mkraai@beckman.com>.
83155 2009-07-25  Jim Meyering  <meyering@redhat.com>
83157         maint.mk: avoid warnings about missing files
83158         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
83159         diagnostic when .prev-version does not exist.
83160         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
83161         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
83162         nonexistent cfg.mk.
83163         Suggestions from Simon Josefsson.
83165 2009-07-25  Bruno Haible  <bruno@clisp.org>
83167         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
83168         defined as macros. Needed on QNX 6.4.1.
83169         Reported by Matt Kraai <mkraai@beckman.com>.
83171 2009-07-23  Jim Meyering  <meyering@redhat.com>
83173         maint.mk: invoke "make dist" with a working value of XZ_OPT
83174         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
83176 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
83178         Make fseeko.c compile on QNX.
83179         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
83181 2009-07-22  Peter Simons  <simons@cryp.to>
83183         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
83184         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
83185         * lib/md4.h: Likewise.
83186         * lib/md5.h: Likewise.
83187         * lib/sha1.h: Likewise.
83188         * lib/sha256.h: Likewise.
83189         * lib/sha512.h: Likewise.
83191         tests-sha1: don't assign literal string to 'char *' variable
83192         * tests/test-sha1.c (main): Declare locals with "const" to match
83193         attributes of the right hand side.
83195 2009-07-21  Eric Blake  <ebb9@byu.net>
83197         dup2: fix more mingw problems
83198         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
83199         fd to itself.
83200         * doc/posix-functions/dup2.texi (dup2): Document the bug.
83201         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
83202         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
83203         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
83204         care of mingw bugs.
83206 2009-07-21  Jim Meyering  <meyering@redhat.com>
83208         vc-list-files: avoid failure when /bin/sh is dash
83209         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
83210         On some Debian based systems, /bin/sh is a symlink to dash, and running
83211         this command would omit the "/" following each 'tests' prefix:
83212           dash -x build-aux/vc-list-files -C . tests
83213         That is because bash and dash work differently:
83214           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
83215           bash ok
83216           dash odd
83218 2009-07-21  Eric Blake  <ebb9@byu.net>
83220         dup2-tests: test previous patch
83221         * modules/dup2-tests: New file.
83222         * tests/test-dup2.c: Likewise.
83223         * tests/test-open.c (main): Avoid unspecified behavior.
83224         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
83225         test.
83227         dup2: work around mingw and cygwin 1.5 bug
83228         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
83229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
83230         * modules/unistd (Makefile.am): Substitute it.
83231         * lib/unistd.in.h (dup2): Declare the replacement.
83232         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
83233         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
83234         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
83235         * modules/execute (Depends-on): Add dup2.
83236         * modules/fseterr (Depends-on): Likewise.
83237         * modules/pipe (Depends-on): Likewise.
83238         * modules/posix_spawn-internal (Depends-on): Likewise.
83240 2009-07-21  Bruno Haible  <bruno@clisp.org>
83242         * modules/.gitattributes: New file.
83244 2009-07-20  Bruno Haible  <bruno@clisp.org>
83246         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
83247         (main): Use it.
83249 2009-07-20  Eric Blake  <ebb9@byu.net>
83251         test-pipe: make a bit more robust.
83252         * tests/test-pipe.c (myerr): Allow error messages regardless of
83253         what we do to stderr.
83254         (test_pipe): Rearrange to avoid deadlock.
83255         (child_main): Try a larger read, to ensure we avoided deadlock.
83256         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
83257         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
83258         if misused.
83260 2009-07-19  Jim Meyering  <meyering@redhat.com>
83262         fts: avoid false-positive cycle-detection
83263         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
83264         for each new command line argument.
83266 2009-07-19  Bruno Haible  <bruno@clisp.org>
83268         Fix build error on mingw with the modules sys_select and unistd.
83269         * modules/acl-tests (Depends-on): Add close.
83270         * modules/binary-io-tests (Depends-on): Likewise.
83271         * modules/closein-tests (Depends-on): Likewise.
83272         * modules/flock-tests (Depends-on): Likewise.
83273         * modules/fsync-tests (Depends-on): Likewise.
83274         * modules/lseek-tests (Depends-on): Likewise.
83275         * modules/pipe-tests (Depends-on): Likewise.
83276         * modules/posix_spawn-tests (Depends-on): Likewise.
83277         * modules/posix_spawnp-tests (Depends-on): Likewise.
83278         * modules/stat-time-tests (Depends-on): Likewise.
83279         * modules/yesno-tests (Depends-on): Likewise.
83281 2009-07-19  Bruno Haible  <bruno@clisp.org>
83283         Unify conditionals.
83284         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
83285         macros, not at the compiler macros.
83286         * lib/pipe.c: Likewise.
83287         * lib/execute.c: Likewise.
83288         * lib/spawni.c: Likewise.
83290 2009-07-19  Bruno Haible  <bruno@clisp.org>
83292         Fix handling of closed stdin/stdout/stderr on mingw.
83293         * lib/w32spawn.h: Include unistd.h.
83294         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
83295         file descriptor with O_NOINHERIT flag.
83296         (fd_safer_noinherit): New function, based on fd-safer.c.
83297         (dup_safer_noinherit): New function, based on dup-safer.c.
83298         (undup_safer_noinherit): New function.
83299         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
83300         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
83301         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
83302         instead of fd_safer.
83303         * tests/test-pipe.c: Include <windows.h>.
83304         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
83305         result.
83307         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
83308         from main.
83309         (test_pipe): Pass an extra argument for disambiguation.
83310         (main): Invoke parent_main or child_main.
83312         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
83313         consistently.
83315 2009-07-18  Eric Blake  <ebb9@byu.net>
83317         test-pipe: fix mingw build
83318         * tests/test-pipe.c (main): Avoid fcntl on mingw.
83320 2009-07-18  Bruno Haible  <bruno@clisp.org>
83322         * modules/pipe-tests (Makefile.am): Fix typo.
83324 2009-07-18  Eric Blake  <ebb9@byu.net>
83326         error: fix mingw build
83327         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
83328         Reported by Bruno Haible.
83330         error: avoid undefined use of stdout
83331         * lib/error.c (error, error_at_line): Check that fd 1 is open
83332         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
83333         is handling faults and the close_stdout module wants to report the
83334         detection of closed stdout as an error.
83336 2009-07-17  Eric Blake  <ebb9@byu.net>
83338         pipe: be robust in face of closed fds
83339         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
83340         should cause child to misbehave.
83341         * modules/pipe-tests: New module.
83342         * tests/test-pipe.c: New file.
83343         * tests/test-pipe.sh: New file.
83344         Reported by Akim Demaille.
83346 2009-07-14  Bruno Haible  <bruno@clisp.org>
83348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
83349         Reported by anonymous kc.
83351 2009-07-07  Jim Meyering  <meyering@redhat.com>
83353         maint.mk: don't look for translatable strings in *.m4 or *.mk
83354         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
83355         when searching for translatable strings.
83357 2009-07-05  Jim Meyering  <meyering@redhat.com>
83359         remove superfluous parentheses in STREQ definition
83360         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
83361         * lib/getugroups.c (STREQ): Likewise.
83362         * lib/fnmatch.c (STREQ): Likewise.
83363         Spotted by Bruno Haible.
83365 2009-07-04  Jim Meyering  <meyering@redhat.com>
83367         argv-iter: new module
83368         * MODULES.html.sh: Add argv-iter.
83369         * lib/argv-iter.c, lib/argv-iter.h: New files.
83370         * modules/argv-iter: New file.
83371         * modules/argv-iter-tests: New file.
83372         * tests/test-argv-iter.c: Test it.
83374 2009-07-04  Bruno Haible  <bruno@clisp.org>
83376         Fix assertion.
83377         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
83378         contains more exact copies of a given entry than file2, leave the extra
83379         copies unpaired rather than aborting.
83380         Reported by Eric Blake.
83382 2009-07-02  Bruno Haible  <bruno@clisp.org>
83384         Speedup git-merge-changelog for git cherry-pick.
83385         * lib/git-merge-changelog.c (struct entries_mapping): New type.
83386         (entries_mapping_get): New function, extracted from compute_mapping.
83387         (entries_mapping_reverse_get): New function.
83388         (compute_mapping): Add a 'full' argument. Return the result in a
83389         'struct entries_mapping'.
83390         (main): Update. Access the mappings through entries_mapping_get.
83391         Reported by Eric Blake.
83393 2009-07-02  Bruno Haible  <bruno@clisp.org>
83395         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
83396         best_i.
83398 2009-07-02  Bruno Haible  <bruno@clisp.org>
83400         Speed up approximate search for matching ChangeLog entries.
83401         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
83402         argument. Call fstrcmp_bounded instead of fstrcmp.
83403         (compute_mapping, try_split_merged_entry, main): Update callers.
83405 2009-07-02  Bruno Haible  <bruno@clisp.org>
83407         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
83409 2009-06-30  Bruno Haible  <bruno@clisp.org>
83411         Reduce the number of uc_is_cased calls.
83412         * lib/unicase.h (casing_suffix_context_t): Add
83413         'first_char_except_ignorable' field.
83414         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
83415         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
83416         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
83417         Update initializer.
83418         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
83419         case-ignorable characters.
83420         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83421         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83422         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83423         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83424         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83426 2009-06-30  Bruno Haible  <bruno@clisp.org>
83428         Tests for module 'unicase/ignorable'.
83429         * modules/unicase/ignorable-tests: New file.
83430         * tests/unicase/test-ignorable.c: New file, generated by
83431         gen-uni-tables.
83433         Tests for module 'unicase/cased'.
83434         * modules/unicase/cased-tests: New file.
83435         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83436         * tests/unicase/test-predicate-part1.h: New file, derived from
83437         tests/unictype/test-predicate-part1.h.
83438         * tests/unicase/test-predicate-part2.h: New file, same as
83439         tests/unictype/test-predicate-part2.h.
83441         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83442         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83443         (output_casing_properties): New function.
83444         (main): Call it.
83445         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83446         * lib/unicase/cased.c: Include unictype/bitmap.h.
83447         (uc_is_cased): Define through a bitmap lookup.
83448         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83449         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83450         (uc_is_case_ignorable): Define through a bitmap lookup.
83451         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83452         lib/unictype/bitmap.h.
83453         (Depends-on): Add inline. Clean up.
83454         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83455         lib/unictype/bitmap.h.
83456         (Depends-on): Add inline. Clean up.
83457         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83458         recognition.
83459         * tests/unicase/test-u16-tolower.c (main): Likewise.
83460         * tests/unicase/test-u32-tolower.c (main): Likewise.
83462 2009-06-30  Bruno Haible  <bruno@clisp.org>
83464         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83465         * lib/unicase/u16-casemap.c: Likewise.
83466         * lib/unicase/u32-casemap.c: Likewise.
83468 2009-06-29  Bruno Haible  <bruno@clisp.org>
83470         Define u32_casefold as a wrapper around u32_ct_casefold.
83471         * lib/unicase/u32-casefold.c: Update.
83472         * modules/unicase/u32-casefold (Depends-on): Add
83473         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83474         unicase/empty-suffix-context. Clean up.
83476         Define u16_casefold as a wrapper around u16_ct_casefold.
83477         * lib/unicase/u16-casefold.c: Update.
83478         * modules/unicase/u16-casefold (Depends-on): Add
83479         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83480         unicase/empty-suffix-context. Clean up.
83482         Define u8_casefold as a wrapper around u8_ct_casefold.
83483         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83484         * lib/unicase/u8-casefold.c: Update.
83485         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83486         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83488         Define u32_totitle as a wrapper around u32_ct_totitle.
83489         * lib/unicase/u32-totitle.c: Update.
83490         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83491         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83493         Define u16_totitle as a wrapper around u16_ct_totitle.
83494         * lib/unicase/u16-totitle.c: Update.
83495         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83496         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83498         Define u8_totitle as a wrapper around u8_ct_totitle.
83499         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83500         functions.
83501         (FUNC): Delegate to U_CT_TOTITLE.
83502         * lib/unicase/u8-totitle.c: Update.
83503         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83504         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83506         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83507         invocation.
83508         * modules/unicase/u32-tolower (Depends-on): Add
83509         unicase/empty-prefix-context, unicase/empty-suffix-context.
83511         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83512         invocation.
83513         * modules/unicase/u16-tolower (Depends-on): Add
83514         unicase/empty-prefix-context, unicase/empty-suffix-context.
83516         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83517         * modules/unicase/u8-tolower (Depends-on): Add
83518         unicase/empty-prefix-context, unicase/empty-suffix-context.
83520         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83521         invocation.
83522         * modules/unicase/u32-toupper (Depends-on): Add
83523         unicase/empty-prefix-context, unicase/empty-suffix-context.
83525         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83526         invocation.
83527         * modules/unicase/u16-toupper (Depends-on): Add
83528         unicase/empty-prefix-context, unicase/empty-suffix-context.
83530         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83531         * modules/unicase/u8-toupper (Depends-on): Add
83532         unicase/empty-prefix-context, unicase/empty-suffix-context.
83534         New module 'unicase/u32-ct-casefold'.
83535         * lib/unicase/u32-ct-casefold.c: New file.
83536         * modules/unicase/u32-ct-casefold: New file.
83538         New module 'unicase/u16-ct-casefold'.
83539         * lib/unicase/u16-ct-casefold.c: New file.
83540         * modules/unicase/u16-ct-casefold: New file.
83542         New module 'unicase/u8-ct-casefold'.
83543         * lib/unicase/u8-ct-casefold.c: New file.
83544         * lib/unicase/u-ct-casefold.h: New file, derived from
83545         lib/unicase/u-casefold.h.
83546         * modules/unicase/u8-ct-casefold: New file.
83548         New module 'unicase/u32-ct-totitle'.
83549         * lib/unicase/u32-ct-totitle.c: New file.
83550         * modules/unicase/u32-ct-totitle: New file.
83552         New module 'unicase/u16-ct-totitle'.
83553         * lib/unicase/u16-ct-totitle.c: New file.
83554         * modules/unicase/u16-ct-totitle: New file.
83556         New module 'unicase/u8-ct-totitle'.
83557         * lib/unicase/u8-ct-totitle.c: New file.
83558         * lib/unicase/u-ct-totitle.h: New file, derived from
83559         lib/unicase/u-totitle.h.
83560         * modules/unicase/u8-ct-totitle: New file.
83562         New module 'unicase/u32-ct-tolower'.
83563         * lib/unicase/u32-ct-tolower.c: New file.
83564         * modules/unicase/u32-ct-tolower: New file.
83566         New module 'unicase/u16-ct-tolower'.
83567         * lib/unicase/u16-ct-tolower.c: New file.
83568         * modules/unicase/u16-ct-tolower: New file.
83570         New module 'unicase/u8-ct-tolower'.
83571         * lib/unicase/u8-ct-tolower.c: New file.
83572         * modules/unicase/u8-ct-tolower: New file.
83574         New module 'unicase/u32-ct-toupper'.
83575         * lib/unicase/u32-ct-toupper.c: New file.
83576         * modules/unicase/u32-ct-toupper: New file.
83578         New module 'unicase/u16-ct-toupper'.
83579         * lib/unicase/u16-ct-toupper.c: New file.
83580         * modules/unicase/u16-ct-toupper: New file.
83582         New module 'unicase/u8-ct-toupper'.
83583         * lib/unicase/u8-ct-toupper.c: New file.
83584         * modules/unicase/u8-ct-toupper: New file.
83586         Add context arguments to u*_casemap functions.
83587         * lib/unicase/unicasemap.h: Include unicase.h.
83588         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83589         suffix_context arguments.
83590         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83591         functions.
83592         (FUNC): Add prefix_context and suffix_context arguments. Use
83593         uc_is_cased and uc_is_case_ignorable.
83594         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83595         * lib/unicase/u16-casemap.c: Likewise.
83596         * lib/unicase/u32-casemap.c: Likewise.
83597         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83598         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83599         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83600         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83601         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83602         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83604         New module 'unicase/u32-suffix-context'.
83605         * lib/unicase/u32-suffix-context.c: New file.
83606         * modules/unicase/u32-suffix-context: New file.
83608         New module 'unicase/u16-suffix-context'.
83609         * lib/unicase/u16-suffix-context.c: New file.
83610         * modules/unicase/u16-suffix-context: New file.
83612         New module 'unicase/u8-suffix-context'.
83613         * lib/unicase/u8-suffix-context.c: New file.
83614         * lib/unicase/u-suffix-context.h: New file.
83615         * modules/unicase/u8-suffix-context: New file.
83617         New module 'unicase/empty-suffix-context'.
83618         * lib/unicase/empty-suffix-context.c: New file.
83619         * modules/unicase/empty-suffix-context: New file.
83621         New module 'unicase/u32-prefix-context'.
83622         * lib/unicase/u32-prefix-context.c: New file.
83623         * modules/unicase/u32-prefix-context: New file.
83625         New module 'unicase/u16-prefix-context'.
83626         * lib/unicase/u16-prefix-context.c: New file.
83627         * modules/unicase/u16-prefix-context: New file.
83629         New module 'unicase/u8-prefix-context'.
83630         * lib/unicase/u8-prefix-context.c: New file.
83631         * lib/unicase/u-prefix-context.h: New file.
83632         * lib/unicase/context.h: New file.
83633         * modules/unicase/u8-prefix-context: New file.
83635         New module 'unicase/empty-prefix-context'.
83636         * lib/unicase/empty-prefix-context.c: New file.
83637         * modules/unicase/empty-prefix-context: New file.
83639         New module 'unicase/ignorable'.
83640         * lib/unicase/ignorable.c: New file.
83641         * modules/unicase/ignorable: New file.
83643         New module 'unicase/cased'.
83644         * lib/unicase/caseprop.h: New file.
83645         * lib/unicase/cased.c: New file.
83646         * modules/unicase/cased: New file.
83648         New functions for case mapping of substrings.
83649         * lib/unicase.h (casing_prefix_context_t): New type.
83650         (unicase_empty_prefix_context): New variable.
83651         (u8_casing_prefix_context, u16_casing_prefix_context,
83652         u32_casing_prefix_context, u8_casing_prefixes_context,
83653         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83654         declarations.
83655         (casing_suffix_context_t): New type.
83656         (unicase_empty_suffix_context): New variable.
83657         (u8_casing_suffix_context, u16_casing_suffix_context,
83658         u32_casing_suffix_context, u8_casing_suffixes_context,
83659         u16_casing_suffixes_context, u32_casing_suffixes_context,
83660         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83661         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83662         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83663         declarations.
83665 2009-06-28  Jim Meyering  <meyering@redhat.com>
83667         boostrap: indent only with spaces
83668         * build-aux/bootstrap: Indent only with spaces, never TABs.
83670         bootstrap: split long lines
83671         * build-aux/bootstrap: Keep line length < 80.
83673         bootstrap: sync from coreutils
83674         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83675         just as autoreconf does.  Verify a list of prerequisite
83676         package-name,version-number pairs if defined in bootstrap.conf.
83677         Refer to README-prereq, if prerequisites are not satisfied.
83679 2009-06-27  Eric Blake  <ebb9@byu.net>
83681         tests: add test for bogus NULL definition
83682         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83683         * tests/test-stdlib.c: Likewise.
83684         * tests/test-string.c: Likewise.
83685         * tests/test-locale.c: Likewise.
83686         * tests/test-unistd.c: Likewise.
83687         * modules/stdio-tests (Depends-on): Add verify.
83688         * modules/stdlib-tests (Depends-on): Likewise.
83689         * modules/string-tests (Depends-on): Likewise.
83690         * modules/locale-tests (Depends-on): Likewise.
83691         * modules/unistd-tests (Depends-on): Likewise.
83693 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83695         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83696         self-explaining comment.
83697         * m4/selinux-selinux-h: Update serial.
83698         (gl_LIBSELINUX): New macro, adding a warning for missing development
83699         packages to code extracted from...
83700         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83701         Add warning for missing development packages here, too.
83703 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83705         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83707 2009-06-25  Eric Blake  <ebb9@byu.net>
83709         version-etc: fix regression
83710         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83711         gcc.
83712         (version_etc): Use it, to catch bugs with trailing NULL.
83713         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83714         (version_etc_va): Fix logic bug.
83715         * modules/version-etc-tests: Add test.
83716         * tests/test-version-etc.c: New file.
83717         * tests/test-version-etc.sh: Likewise.
83719 2009-06-25  Sam Steingold  <sds@gnu.org>
83721         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83722         mbtowc declaration.
83724 2009-06-25  Eric Blake  <ebb9@byu.net>
83726         fpurge: migrate into <stdio.h>
83727         * lib/fpurge.h: Delete...
83728         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83729         * lib/fpurge.c (fpurge): Change declaring header.
83730         * modules/fpurge (Files): Drop deleted file.
83731         (Depends-on): Add stdio.
83732         (configure.ac): Set witness.
83733         * modules/stdio (Makefile.am): Support fpurge macros.
83734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83736         * lib/fflush.c: Update client.
83737         * tests/test-fpurge.c: Likewise.
83738         * NEWS: Mention the change.
83740 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83742         * lib/argp-version-etc.c (program_authors): Add const
83743         qualifier.
83744         * lib/version-etc.c: Fix typos in the comments.
83745         * modules/argp-version-etc: Depends on version-etc.
83747 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83749         argp-version-etc: new module.
83751         * lib/argp-version-etc.c: New file.
83752         * lib/argp-version-etc.h: New file.
83753         * modules/argp-version-etc: New file.
83754         * modules/argp-version-etc-tests: New file.
83755         * tests/test-argp-version-etc.c: New test.
83756         * tests/test-argp-version-etc-1.sh: New test.
83758 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83760         Provide additional interfaces and documentation for version-etc
83761         module.
83763         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83764         interfaces.
83765         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83766         prototypes.
83768 2009-06-24  Bruno Haible  <bruno@clisp.org>
83770         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83771         HAVE_LIB${NAME} macro.
83772         Reported by Sam Steingold <sds@gnu.org>.
83774 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83776         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83777         needed.
83779 2009-06-21  Bruno Haible  <bruno@clisp.org>
83781         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83782         work.
83783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83784         together with LIB${NAME}, LTLIB${NAME}.
83785         Reported by Sam Steingold <sds@gnu.org>.
83787 2009-06-20  Jim Meyering  <meyering@redhat.com>
83789         tests: make sc_require_test_exit_idiom more generic
83790         * top/maint.mk (Exit_witness_file): New overridable variable.
83791         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83792         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83794 2009-06-19  Jim Meyering  <meyering@redhat.com>
83796         hash: reverse order of src/dst parameters in an internal interface
83797         * lib/hash.c (transfer_entries): Reverse order of parameters to
83798         put DST before SRC.  Adjust callers.
83800         tests: test-hash: avoid wholesale duplication
83801         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83802         Instead, use a loop and add a single conditional.
83804         tests: test-hash: allow seed selection via a command line argument
83805         * tests/test-hash.c (get_seed): New function.
83806         (main): Use it.
83808 2009-06-19  Eric Blake  <ebb9@byu.net>
83810         hash: avoid memory leak on allocation failure
83811         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83812         failure.  Factor repeated algorithm...
83813         (transfer_entries): ...into new helper routine.
83814         (hash_delete): React to hash_rehash return value.
83816         hash: reduce memory pressure in hash_rehash no-op case
83817         * lib/hash.c (next_prime): Avoid overflow.
83818         (hash_initialize): Factor bucket size computation...
83819         (compute_bucket_size): ...into new helper function.
83820         (hash_rehash): Use new function and open coding to reduce memory
83821         pressure, and avoid a memory leak in USE_OBSTACK code.
83822         Reported by Jim Meyering.
83824 2009-06-18  Eric Blake  <ebb9@byu.net>
83826         hash: make rotation more obvious
83827         * modules/hash (Depends-on): Add bitrotate and stdint.
83828         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83829         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83830         (SIZE_MAX): Rely on headers for definition.
83831         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83832         (raw_hasher): Use rotr_sz.
83833         Suggested by Jim Meyering.
83835         hash: fix memory leak in last patch
83836         * lib/hash.c (hash_rehash): Avoid memory leak.
83838         hash: avoid no-op rehashing
83839         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83841         hash: provide default callback functions
83842         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83843         (hash_initialize): Use them as defaults.
83844         * tests/test-hash.c (main): Test this.
83846         hash: minor optimization
83847         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83848         when possible.
83849         (hash_initialize): Document this promise.
83850         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83851         * tests/test-hash.c (hash_compare_strings): Test this.
83853 2009-06-18  Bruno Haible  <bruno@clisp.org>
83855         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83856         going to be replaced anyway.
83858 2009-06-18  Bruno Haible  <bruno@clisp.org>
83860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83861         in one place.
83862         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83863         be replaced anyway.
83865 2009-06-18  Eric Blake  <ebb9@byu.net>
83867         hash: check for resize before insertion
83868         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83869         threshold before insertion, so that a pathological hash_rehash
83870         that fills every bucket can still trigger another rehash.
83872 2009-06-18  Jim Meyering  <meyering@redhat.com>
83874         hash-tests: add a loop around the small tests
83875         * tests/test-hash.c (main): Repeat small tests with selected
83876         small initial table sizes.
83878 2009-06-17  Eric Blake  <ebb9@byu.net>
83880         hash: minor cleanups
83881         * lib/hash.h (hash_entry): Make opaque, by moving...
83882         * lib/hash.c (hash_entry): ...here.
83883         (hash_insert): Clarify restrictions on what can be inserted.
83884         (hash_get_next): Clarify when it is safe to remove an element
83885         during traversal.
83886         (check_tuning): Skip verification when tuning is known safe.
83887         (hash_initialize): Clarify restrictions on tuning.
83889 2009-06-17  Jim Meyering  <jim@meyering.net>
83890         and Eric Blake  <ebb9@byu.net>
83892         hash-tests: new module
83893         * modules/hash-tests: New file.
83894         * tests/test-hash.c: New file.
83896 2009-06-17  Eric Blake  <ebb9@byu.net>
83898         strstr-simple: document new module
83899         * MODULES.html.sh: Document new module.
83901         strstr, strcasestr: replace on platforms with broken memchr
83902         * modules/strstr: Split into...
83903         * modules/strstr-simple: ...new module that does not care about
83904         performance, but does care about glibc bug.
83905         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83906         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83907         if platform memchr is broken, per Debian bug 521737.
83908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83909         memchr.
83910         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83911         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83912         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83913         * modules/mountlist (Depends-on): Add strstr-simple.
83914         * modules/gen-uni-tables (Depends-on): Likewise.
83915         * modules/argz (Depends-on): Add strstr.
83917 2009-06-17  Bruno Haible  <bruno@clisp.org>
83919         * modules/posix_spawn-internal (Depends-on): Add errno.
83921 2009-06-17  Bruno Haible  <bruno@clisp.org>
83923         Define missing ESTALE on Interix 3.5.
83924         * lib/errno.in.h (ESTALE): Assign a value if missing.
83925         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83927         missing.
83928         * doc/posix-headers/errno.texi: Mention the Interix bug.
83929         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83931 2009-06-15  Eric Blake  <ebb9@byu.net>
83933         memchr, memchr2: add valgrind exception
83934         * lib/memchr.valgrind: New file.
83935         * lib/memchr2.valgrind: New file.
83936         * modules/memchr (Files): Distribute valgrind file.
83937         * modules/memchr2 (Files): Likewise.
83939         docs: memchr is no longer obsolete
83940         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83941         * lib/string.in.h (memchr): Simplify logic.
83943 2009-06-14  Jim Meyering  <meyering@redhat.com>
83945         link-follow: fix the "checking..." message to not mention trailing slash
83946         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83947         never considered trailing slashes.
83949 2009-06-14  Bruno Haible  <bruno@clisp.org>
83951         * m4/memchr.m4: Mention also the bug on IA-64.
83952         * doc/posix-functions/memchr.texi: Likewise.
83954 2009-06-12  Eric Blake  <ebb9@byu.net>
83956         memchr: detect broken x86_64 and alpha implementations
83957         * modules/memchr-tests (Depends-on): Move mmap detection...
83958         * modules/memchr (Depends-on): ...here.
83959         (configure.ac): Set indicator.
83960         * lib/string.in.h (memchr): Declare replacement.
83961         * modules/string (Makefile.am): Trigger replacement.
83962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83963         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83964         bugs.
83965         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83966         * modules/getpagesize (License): Relax license.
83968 2009-06-11  Bruno Haible  <bruno@clisp.org>
83970         * lib/idpriv.h: Add more references.
83972 2009-06-08  Bruno Haible  <bruno@clisp.org>
83974         Tests for module 'idpriv-droptemp'.
83975         * modules/idpriv-droptemp-tests: New file.
83976         * tests/test-idpriv-droptemp.sh: New file.
83977         * tests/test-idpriv-droptemp.su.sh: New file.
83978         * tests/test-idpriv-droptemp.c: New file.
83980         New module 'idpriv-droptemp'.
83981         * lib/idpriv-droptemp.c: New file.
83982         * modules/idpriv-droptemp: New file.
83984 2009-06-08  Bruno Haible  <bruno@clisp.org>
83986         Tests for module 'idpriv-drop'.
83987         * modules/idpriv-drop-tests: New file.
83988         * tests/test-idpriv-drop.sh: New file.
83989         * tests/test-idpriv-drop.su.sh: New file.
83990         * tests/test-idpriv-drop.c: New file.
83992         New module 'idpriv-drop'.
83993         * lib/idpriv.h: New file.
83994         * lib-idpriv-drop.c: New file.
83995         * m4/idpriv.m4: New file.
83996         * modules/idpriv-drop: New file.
83998 2009-06-08  Bruno Haible  <bruno@clisp.org>
84000         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
84001         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84002         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84003         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84004         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84005         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84006         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84008 2009-06-08  Eric Blake  <ebb9@byu.net>
84010         test-strstr: use memory fence, when possible
84011         * tests/test-strstr.c (main): Use memory fence, in order to be
84012         more likely to trigger Debian bug 521737.
84013         * modules/strstr-tests (Files): Pull in additional files.
84015         memchr: no longer obsolete, for wider field testing
84016         * modules/memchr (Status, Notice): Delete, this module is no
84017         longer obsolete.
84018         * modules/vasnprintf (Depends-on): Add memchr.
84020 2009-06-07  Jim Meyering  <meyering@redhat.com>
84022         hash: declare some functions with the warn_unused_result attribute
84023         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
84025 2009-06-07  Bruno Haible  <bruno@clisp.org>
84027         * tests/test-alignof.c: Don't test int64_t if it does not exist.
84028         Reported by Eric Blake.
84030 2009-06-06  Eric Blake  <ebb9@byu.net>
84032         test-alignof: fix typo with long double
84033         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
84034         compiler error.
84036 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
84038         Escape non-texinfo { and }s.
84039         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
84040         markup error.
84042 2009-06-04  Jim Meyering  <meyering@redhat.com>
84044         gitlog-to-changelog: don't infloop on an empty commit log
84045         * build-aux/gitlog-to-changelog: Warn about an empty log message.
84046         Reported by Boris Petersen <transacid@centerim.org>.
84048 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
84050         version-etc: extend for packagers
84051         Add three new configure options, intended for packagers:
84052           --with-packager="packager name"
84053           --with-packager-version="packager-specific version"
84054           --with-packager-bug-reports="packager bug reporting"
84055         An example with coreutils:
84056           $ ./configure \
84057             --with-packager=Gentoo \
84058             --with-packager-bug-report=http://bugs.gentoo.org/ \
84059             --with-packager-version="patchset 1.6"
84060           $ ./src/ls --version | head -n2
84061           ls (GNU coreutils) 7.1-dirty
84062           Packaged by Gentoo (patchset 1.6)
84063         Note that the bug reporting info via --help doesn't show up because
84064         coreutils uses its own custom emit_bug_reporting_address() implementation
84065         in src/system.h.  If it didn't, it'd look like:
84066           $ ./src/ls --help | tail -n4
84067           Report bugs to <bug-coreutils@gnu.org>.
84068           Report Gentoo bugs to <http://bugs.gentoo.org/>.
84069           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
84070           General help using GNU software: <http://www.gnu.org/gethelp/>.
84071         * lib/version-etc.c: Print new information, if provided.
84072         * m4/version-etc.m4: New file.
84073         * modules/version-etc (Files): Add m4/version-etc.m4.
84074         (configure.ac): Add gl_VERSION_ETC.
84076 2009-05-31  Bruno Haible  <bruno@clisp.org>
84078         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
84079         and 'int64_t'.
84080         * modules/alignof-tests (Dependencies): Add stdint.
84081         Reported by Eric Blake.
84083 2009-05-31  Bruno Haible  <bruno@clisp.org>
84085         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
84086         restriction due to compiler bugs.
84087         Reported by Eric Blake.
84089 2009-05-31  Simon Josefsson  <simon@josefsson.org>
84090             Bruno Haible  <bruno@clisp.org>
84092         Fix test-alignof failure.
84093         * lib/alignof.h (alignof_slot): New macro.
84094         (alignof_type): New macro, with the same semantics as the previous
84095         'alignof'.
84096         (alignof): Alias to alignof_slot.
84097         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
84098         check that the results are usable as constant expressions.
84100 2009-05-31  Bruno Haible  <bruno@clisp.org>
84102         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
84103         * tests/test-memchr.c (main): Check that memchr does not read past the
84104         first occurrence of the byte.
84105         * tests/test-strstr.c (main): Update comment.
84106         Suggested by Eric Blake.
84108 2009-05-30  Bruno Haible  <bruno@clisp.org>
84110         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
84111         detail how to use dumpbin.
84112         Reported by David Byron <dbyron@dbyron.com>.
84114 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84116         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
84118 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84120         * m4/manywarnings.m4: Add GCC 4.4 warnings.
84122 2009-05-28  Bruno Haible  <bruno@clisp.org>
84124         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
84125         build-aux/ files.
84127 2009-05-28  Simon Josefsson  <simon@josefsson.org>
84129         * gnulib-tool (func_import): Transform license on build-aux/ files too.
84131 2009-05-27  Simon Josefsson  <simon@josefsson.org>
84133         * gnulib-tool (sed_transform_main_lib_file)
84134         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
84135         regexps.
84137 2009-05-26  Simon Josefsson  <simon@josefsson.org>
84139         * tests/test-strstr.c: Add another self-test.
84140         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
84141         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
84143 2009-05-23  Bruno Haible  <bruno@clisp.org>
84145         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
84146         change.
84148 2009-05-21  Bruno Haible  <bruno@clisp.org>
84150         Simplify use of mode_t varargs.
84151         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
84152         uses 'mode_t' or 'int'.
84153         * lib/openat.c (openat): Likewise.
84154         * lib/open-safer.c (open_safer): Likewise.
84155         * m4/mode_t.m4: New file.
84156         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
84157         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
84158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
84159         * modules/open (Files): Add m4/mode_t.m4.
84160         * modules/openat (Files): Likewise.
84161         * modules/fcntl-safer (Files): Likewise.
84162         Suggested by Eric Blake.
84164 2009-05-21  Pádraig Brady  <P@draigbrady.com>
84166         * doc/glibc-functions/fallocate.texi: New file.
84167         * doc/gnulib.texi: Include it.
84169 2009-05-21  Eric Blake  <ebb9@byu.net>
84170             Bruno Haible  <bruno@clisp.org>
84172         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
84173         invocations.
84174         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84176 2009-05-21  Eric Blake  <ebb9@byu.net>
84177             Bruno Haible  <bruno@clisp.org>
84179         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
84180         include_next. Fix of 2008-11-20 commit.
84181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
84182         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
84183         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
84184         NEXT_MATH_H.
84185         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
84186         instead of NEXT_MATH_H.
84188 2009-05-21  Bruno Haible  <bruno@clisp.org>
84190         Avoid redefinition warnings for SIZE_MAX.
84191         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
84192         Reported by Simon Josefsson.
84194 2009-05-21  Bruno Haible  <bruno@clisp.org>
84196         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
84197         AC_CACHE_VAL.
84199 2009-05-20  Bruno Haible  <bruno@clisp.org>
84201         Make zeroptr.h work on mingw.
84202         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
84203         mprotect.
84204         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
84205         * modules/memchr2-tests (configure.ac): Likewise.
84206         * modules/memcmp-tests (configure.ac): Likewise.
84207         * modules/memmem-tests (configure.ac): Likewise.
84208         * modules/memrchr-tests (configure.ac): Likewise.
84209         Reported by Simon Josefsson.
84211 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84213         * tests/test-glob.c: Include string.h for strcmp prototype.
84215 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84217         * modules/getdelim (Depends-on): Add explicit stdint, although it
84218         was implicitly already pulled in via realloc-posix.
84219         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
84221 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84223         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
84224         G. Christensen" <tgc@jupiterrise.com>.
84225         * m4/sys_socket_h.m4: Check for sa_family_t.
84226         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
84227         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
84228         * tests/test-sys_socket.c: Check that sa_family_t works.
84230 2009-05-18  Eric Blake  <ebb9@byu.net>
84232         maint.mk: allow gnulib_dir in VPATH build
84233         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
84235 2009-05-15  Jim Meyering  <meyering@redhat.com>
84237         maint.mk: Give gnulib_dir a default definition.
84238         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
84239         Thus, most packages no longer need to specify this variable in cfg.mk
84241 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
84243         rename.m4: fix typos that would make non-mingw cross-configure fail
84244         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
84246 2009-05-13  Eric Blake  <ebb9@byu.net>
84248         mmap-anon: avoid out-of-order autoconf expansion
84249         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
84250         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
84251         * modules/memchr-tests (Depends-on): Add extensions.
84252         * modules/memchr2-tests (Depends-on): Add extensions.
84253         * modules/memcmp-tests (Depends-on): Add extensions.
84254         * modules/memmem-tests (Depends-on): Add extensions.
84255         * modules/memrchr-tests (Depends-on): Add extensions.
84257 2009-05-13  Bruno Haible  <bruno@clisp.org>
84259         Make some tests ISO C 99 compliant.
84260         * tests/zerosize-ptr.h: New file.
84261         * tests/test-memchr.c: Include zerosize-ptr.h.
84262         (main): Use a zero-size object pointer instead of NULL.
84263         * tests/test-memchr2.c: Include zerosize-ptr.h.
84264         (main): Use a zero-size object pointer instead of NULL.
84265         * tests/test-memcmp.c: Include zerosize-ptr.h.
84266         (main): Use a zero-size object pointer instead of NULL.
84267         * tests/test-memmem.c: Include zerosize-ptr.h.
84268         (main): Use a zero-size object pointer instead of NULL.
84269         * tests/test-memrchr.c: Include zerosize-ptr.h.
84270         (main): Use a zero-size object pointer instead of NULL.
84271         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
84272         m4/mmap-anon.m4.
84273         (Depends-on): Add getpagesize.
84274         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84275         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
84276         m4/mmap-anon.m4.
84277         (Depends-on): Add getpagesize.
84278         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84279         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
84280         m4/mmap-anon.m4.
84281         (Depends-on): Add getpagesize.
84282         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84283         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
84284         m4/mmap-anon.m4.
84285         (Depends-on): Add getpagesize.
84286         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84287         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
84288         m4/mmap-anon.m4.
84289         (Depends-on): Add getpagesize.
84290         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84292 2009-05-12  Bruno Haible  <bruno@clisp.org>
84294         Tests for module 'alignof'.
84295         * modules/alignof-tests: New file.
84296         * tests/test-alignof.c: New file.
84298 2009-05-12  Bruno Haible  <bruno@clisp.org>
84300         Fix alignof macro.
84301         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
84302         vendor compilers that are always correct.
84304 2009-05-12  Bruno Haible  <bruno@clisp.org>
84306         Make the MAP_ANONYMOUS detection work on HP-UX 11.
84307         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
84308         not whether its fully works.
84310 2009-05-12  Bruno Haible  <bruno@clisp.org>
84312         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
84314 2009-05-12  Jim Meyering  <meyering@redhat.com>
84316         * top/maint.mk: Adjust backslash alignment.
84318 2009-05-11  Simon Josefsson  <simon@josefsson.org>
84320         * top/maint.mk: Make $(srcdir)/build-aux configurable.
84322 2009-05-11  Eric Blake  <ebb9@byu.net>
84324         argp: avoid undefined behavior
84325         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
84326         macros.
84328 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84330         * tests/test-vc-list-files-git.sh: Do git config of user.email and
84331         user.name to prevent git commit from complaining.
84333 2009-05-10  Bruno Haible  <bruno@clisp.org>
84335         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
84336         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
84337         it rewrites every file name only once.
84338         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
84340 2009-05-08  Bruno Haible  <bruno@clisp.org>
84342         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
84343         instead of 'max'.
84345 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84347         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
84348         sockaddr_storage test.
84350 2009-05-07  Simon Josefsson  <simon@josefsson.org>
84352         * modules/sys_socket (Makefile.am): Substitute
84353         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
84354         * m4/sys_socket_h.m4: Check for sockaddr_storage.
84355         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
84356         * tests/test-sys_socket.c: Check sockaddr_storage.
84358 2009-05-08  Bruno Haible  <bruno@clisp.org>
84360         New module 'alignof'.
84361         * lib/alignof.h: New file.
84362         * modules/alignof: New file.
84364 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84365             Bruno Haible  <bruno@clisp.org>
84367         Fix test-file-has-acl on FreeBSD.
84368         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
84369         mask is implicitly added.
84370         * tests/test-file-has-acl.c: Include <signal.h>.
84371         (main): Terminate the test after 5 seconds.
84372         * modules/acl-tests (configure.ac): Check for alarm function.
84374 2009-05-04  Bruno Haible  <bruno@clisp.org>
84376         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
84377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
84378         * modules/errno (configure.ac): Drop AC_REQUIRE.
84379         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
84380         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
84382 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84384         * modules/glob-tests: New module.
84385         * tests/test-glob.c: Add.
84387 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84389         * modules/fnmatch-tests: New module.
84390         * tests/test-fnmatch.c: Add.
84392 2009-05-04  Eric Blake  <ebb9@byu.net>
84394         maint: make the new no-submodule-changes rule VPATH-safe
84395         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
84397 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84398             Bruno Haible  <bruno@clisp.org>
84400         acl: Fix infinite loop on FreeBSD.
84401         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
84402         of return value from acl_get_entry.
84403         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
84404         Likewise.
84406 2009-05-03  Bruno Haible  <bruno@clisp.org>
84408         * lib/acl-internal.h (acl_entries): Clarify return value.
84409         * lib/acl_entries.c (acl_entries): Likewise.
84411 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84413         Bug fix in acl module.
84414         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
84416 2009-05-03  Bruno Haible  <bruno@clisp.org>
84418         Create gperf-generated file in the source dir, not in the build dir.
84419         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
84420         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84421         * modules/unicase/locale-language (unicase/locale-languages.h):
84422         Likewise.
84423         * modules/unicase/special-casing (unicase/special-casing-table.h):
84424         Likewise.
84425         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84426         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84427         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84428         Reported by Ralf Wildenhues.
84430 2009-05-03  Bruno Haible  <bruno@clisp.org>
84432         * modules/fnmatch (Description, configure.ac): Taken from
84433         fnmatch-posix.
84434         * modules/fnmatch-posix: Turn into a symbolic reference to the
84435         'fnmatch' module, and deprecate.
84436         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84438 2009-05-03  Bruno Haible  <bruno@clisp.org>
84440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84441         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84442         Reported by Ralf Wildenhues.
84444 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84446         * m4/fnmatch.m4: Fix fnmatch re-define.
84448 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84450         priv-set: new module and tests; adapt write-any-file
84451         * lib/priv-set.c: New file.
84452         * lib/priv-set.h: New file.
84453         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84454         * lib/write-any-file.c: Simplify by using priv-set module.
84455         * m4/priv-set.m4: New file.
84456         * modules/priv-set: New file.
84457         * modules/unlinkdir: Add dependency on priv-set module.
84458         * modules/write-any-file: Likewise.
84460         Tests for module 'priv-set'.
84461         * modules/priv-set-tests: New file.
84462         * tests/test-priv-set.c: New file.
84464 2009-05-03  Jim Meyering  <meyering@redhat.com>
84465             Bruno Haible  <bruno@clisp.org>
84467         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84468         use the converted UTF-8 variant of the name instead.
84470 2009-05-03  Jim Meyering  <meyering@redhat.com>
84472         tests: tighten some getdate tests
84473         * tests/test-getdate.c (main): Tighten tests: require equality,
84474         not just greater than.  Set TZ envvar to UTC0.
84476 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84478         getdate: correctly interpret "next monday" when run on a Monday
84479         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84480         that e.g., "next tues" (when run on a tuesday) results in a date
84481         that is one week in the future, and not today's date.
84482         I.e., add a week when the wday is the same as the current one.
84483         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84484         and earlier by Martin Bernreuther and Jan Minář.
84485         * tests/test-getdate.c (main): Check that "next DAY" is always in
84486         the future and that "last DAY" is always in the past.
84488 2009-05-02  Jim Meyering  <meyering@redhat.com>
84490         build: ensure that a release build fails when a submodule is unclean
84491         * top/maint.mk (no-submodule-changes): New rule.
84492         (alpha beta major): Depend on it.
84494 2009-05-02  Bruno Haible  <bruno@clisp.org>
84496         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84497         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84498         shell variable gl_fnmatch_required to detect which variant is
84499         requested.
84500         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84501         gl_FUNC_FNMATCH_POSIX.
84502         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84503         exclude fnmatch-posix.
84505 2009-05-02  Bruno Haible  <bruno@clisp.org>
84507         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84508         * modules/mbsrtowcs (License): Change to LGPLv2+.
84509         * modules/strnlen1 (License): Likewise.
84510         Reported by Simon Josefsson.
84512 2009-05-02  Bruno Haible  <bruno@clisp.org>
84514         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84515         "cross".
84516         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84517         gnulib-tool was called with option --source-base=lib.
84519 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84521         Use automake *-local hooks without commands, for extensibility.
84522         * modules/localcharset (Makefile.am): Rename install-exec-local
84523         rule to install-exec-localcharset, and make it a prerequisite of
84524         install-exec-local.  Likewise, rename the uninstall-local rule to
84525         uninstall-localcharset, and make it a prerequisite of the former.
84527 2009-05-01  Bruno Haible  <bruno@clisp.org>
84529         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84530         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84531         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84533         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84534         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84535         m4/locale-zh.m4, m4/codeset.m4.
84537         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84538         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84539         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84540         m4/locale-zh.m4.
84542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84543         REPLACE_WCRTOMB if mbstate_t must be replaced.
84544         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84545         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84547 2009-05-01  Bruno Haible  <bruno@clisp.org>
84549         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84550         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84551         dngettext, dcngettext, textdomain, bindtextdomain,
84552         bind_textdomain_codeset): Undefine before redefining.
84554 2009-04-30  Bruno Haible  <bruno@clisp.org>
84556         Fix bug introduced on 2009-04-25.
84557         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84558         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84559         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84560         is defined.
84561         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84562         is defined.
84563         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84564         is defined.
84565         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84567 2009-04-28  Bruno Haible  <bruno@clisp.org>
84569         Comment tweaks.
84570         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84571         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84572         * lib/unicase.h (u*_casexfrm): Likewise.
84573         Reported by Paolo Bonzini.
84575 2009-04-28  Bruno Haible  <bruno@clisp.org>
84577         Fix a compilation error.
84578         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84579         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84580         Reported by Jim Meyering.
84582 2009-04-27  Bruno Haible  <bruno@clisp.org>
84584         New module 'libunistring'.
84585         * modules/libunistring: New file.
84586         * m4/libunistring.m4: New file.
84587         * MODULES.html.sh (Unicode string functions): Add it.
84589 2009-04-27  Eric Blake  <ebb9@byu.net>
84591         maint.mk: allow package-specific header to provide <config.h>
84592         * top/maint.mk (sc_require_config_h): New variable.
84593         (sc_require_config_h, sc_require_config_h_first): Use it.
84595 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84597         * top/maint.mk (sc_avoid_if_before_free): Except
84598         useless-if-before-free script.
84600 2009-04-27  Eric Blake  <ebb9@byu.net>
84602         maintainer-makefile: depend on all required helper scripts
84603         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84604         useless-if-before-free.
84605         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84606         version, rather than assuming gnulib checkout is available.
84607         Reported by Simen Josefsson.
84609 2009-04-26  Bruno Haible  <bruno@clisp.org>
84611         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84612         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84613         "../" or "..".
84615 2009-04-26  Bruno Haible  <bruno@clisp.org>
84617         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84618         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84619         AC_LIB_HAVE_LINKFLAGS.
84621 2009-04-26  Bruno Haible  <bruno@clisp.org>
84623         Simplify calling convention of u*_conv_from_encoding.
84624         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84625         u32_conv_from_encoding): Expect a resultbuf argument and return the
84626         result directly as a pointer.
84627         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84628         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84629         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84630         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84631         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84632         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84633         Update.
84634         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84635         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84636         * lib/vasnprintf.c (VASNPRINTF): Update.
84637         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84638         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84639         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84640         * NEWS: Mention the change.
84642 2009-04-26  Bruno Haible  <bruno@clisp.org>
84644         Simplify calling convention of u*_conv_to_encoding.
84645         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84646         u32_conv_to_encoding): Expect a resultbuf argument and return the
84647         result directly as a pointer.
84648         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84649         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84650         freeing scaled_offsets if mem_iconveha failed.
84651         * lib/unicase/u-casexfrm.h (FUNC): Update.
84652         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84653         * lib/vasnprintf.c (VASNPRINTF): Update.
84654         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84655         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84656         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84657         * NEWS: Mention the change.
84659 2009-04-26  Bruno Haible  <bruno@clisp.org>
84661         Avoid test failures on AIX and OSF/1.
84662         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84663         malloc(0).
84664         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84665         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84666         Likewise.
84667         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84668         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84669         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84670         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84671         * doc/posix-functions/malloc.texi: Document the portability problem
84672         related to malloc(0).
84674 2009-04-26  Bruno Haible  <bruno@clisp.org>
84676         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84677         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84678         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84680 2009-04-25  Bruno Haible  <bruno@clisp.org>
84682         Avoid link error when creating a namespace clean library.
84683         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84684         as macro with arguments if already defined as an alias.
84685         * lib/signbitf.c (gl_signbitf): Don't undefine.
84686         * lib/signbitd.c (gl_signbitd): Don't undefine.
84687         * lib/signbitl.c (gl_signbitl): Don't undefine.
84689 2009-04-25  Jim Meyering  <meyering@redhat.com>
84691         vc-list-files: fix another quoting bug
84692         * build-aux/vc-list-files: Avoid sed backslash expansion
84693         of pathological directory names.
84695 2009-04-25  Eric Blake  <ebb9@byu.net>
84697         vc-list-files: fix shell quoting error
84698         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84699         timestamp.
84701 2009-04-25  Jim Meyering  <meyering@redhat.com>
84703         vc-list-files: restore lost functionality with subdir argument
84704         * build-aux/vc-list-files: When given a non-"." sub-directory
84705         argument, substitute the $dir/ prefix back onto each resulting name.
84706         Otherwise, coreutils' root_tests check would fail.
84708 2009-04-24  Eric Blake  <ebb9@byu.net>
84710         vc-list-files: ignore git symlinks
84711         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84712         than ls-files, to ignore git symlinks.
84714         maint.mk: import improvements from m4
84715         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84716         (move_if_change): Delete unused macro.
84717         (news-date-check, vc-diff-check): Support VPATH builds.
84718         (announcement): Likewise.  Split --bootstrap-tools list...
84719         (boostrap-tools): ...into separate list, which can be overridden
84720         in cfg.mk.
84721         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84722         requiring dependency on useless-if-before-free module.
84723         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84724         Support VPATH builds.
84726 2009-04-24  Jim Meyering  <meyering@redhat.com>
84728         maint.mk: remove coreutils-specific rules and variables
84729         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84730         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84731         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84733         maint.mk: remove obsolete rule
84734         * top/maint.mk (rel-check): Remove rule.
84735         (WGET, WGETFLAGS): Remove now-unused variables.
84737 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84739         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84740         consistency.
84742         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84743         '$(PATH_SEPARATOR)' instead of ':'.
84745 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84747         * lib/getopt1.c (main): Use 'const' for static array.
84749 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84751         * top/maint.mk: Sync with coreutils.
84752         * NEWS: Explain incompatibilities.
84754 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84755             Bruno Haible  <bruno@clisp.org>
84757         Fix cross-compilation results.
84758         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84759         statement, as third argument of AC_TRY_RUN.
84760         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84761         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84762         Likewise.
84763         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84764         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84765         Likewise.
84766         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84767         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84768         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84770 2009-04-20  Bruno Haible  <bruno@clisp.org>
84772         Avoid test failure on mingw.
84773         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84775 2009-04-20  Bruno Haible  <bruno@clisp.org>
84777         Avoid compilation error on mingw.
84778         * modules/localename-tests (Depends-on): Add locale.
84780 2009-04-19  Bruno Haible  <bruno@clisp.org>
84782         Support for building a shared library on Windows platforms.
84783         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84784         (main): Test the presence of UNINORM_NFC here.
84785         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84786         (main): Test the presence of UNINORM_NFD here.
84787         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84788         (main): Test the presence of UNINORM_NFKC here.
84789         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84790         (main): Test the presence of UNINORM_NFKD here.
84792 2009-04-19  Bruno Haible  <bruno@clisp.org>
84794         Avoid a compiler warning.
84795         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84796         Change type of variable 'sequence'.
84798 2009-04-19  Bruno Haible  <bruno@clisp.org>
84800         * modules/configmake (Makefile.am): When the contents of configmake.h
84801         does not change, arrange to preserve its modification time.
84803 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84805         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84806         gettext domain.
84808 2009-04-16  Jim Meyering  <meyering@redhat.com>
84810         useless-if-before-free: improve conversion code
84811         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84812         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84814 2009-04-14  Bruno Haible  <bruno@clisp.org>
84816         * modules/fcntl (Depends-on): Add extensions.
84817         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84819 2009-04-12  Ben Pfaff  <blp@gnu.org>
84821         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84822         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84824 2009-03-20  Ben Pfaff  <blp@gnu.org>
84826         Make rename replace existing destinations on Windows.
84827         * m4/rename.m4: Add test for Mingw.
84828         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84829         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84830         * doc/posix-functions/rename.texi: Document.
84832 2009-04-10  Bruno Haible  <bruno@clisp.org>
84834         New include file "iconveh.h".
84835         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84836         * lib/striconveh.h: Include it.
84837         (enum iconv_ilseq_handler): Remove definition.
84838         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84839         striconveh.h.
84840         * lib/striconveha.c: Include striconveh.h.
84841         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84842         * modules/striconveh (Files): Add lib/iconveh.h.
84843         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84844         lib/striconveh.h.
84846 2009-04-10  Bruno Haible  <bruno@clisp.org>
84848         * lib/uniconv.h: Update comment.
84850 2009-04-10  Bruno Haible  <bruno@clisp.org>
84852         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84853         always.
84854         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84855         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84856         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84857         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84858         "unistring-notinline.h", so that the function gets defined always.
84859         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84860         * lib/unistr/u8-uctomb.c: Likewise.
84861         * lib/unistr/u16-mbtouc.c: Likewise.
84862         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84863         * lib/unistr/u16-uctomb.c: Likewise.
84864         * lib/unistr/u32-mbtouc.c: Likewise.
84865         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84866         * lib/unistr/u32-uctomb.c: Likewise.
84868 2009-04-10  Bruno Haible  <bruno@clisp.org>
84870         Mark 'utime' obsolete.
84871         * modules/utime (Status, Notice): New sections.
84872         Suggested by Jim Meyering.
84874         Fix cross-compile guess for utime test.
84875         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84876         autoconf.
84877         * doc/posix-functions/utime.texi: Give more precisions.
84878         Reported by Jan <ipif@ymail.com>.
84880 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84882         filevercmp: correct today's change
84883         * lib/filevercmp.c: Also handle coreutils' test inputs.
84884         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84886         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84887         for reporting it.
84888         * lib/filevercmp.c: Special handle for "", "." and "..".
84889         * tests/test-filevercmp.c: Enlarge the set suite.
84891 2009-04-07  Jim Meyering  <meyering@redhat.com>
84893         useless-if-before-free: show how to remove braced useless free, too
84894         * build-aux/useless-if-before-free: still only in a comment, though.
84896 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84898         maint.mk: import changes to syntax-check macros from coreutils
84899         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84900         Use them in the relevant macros.
84902 2009-04-06  Bruno Haible  <bruno@clisp.org>
84904         Fix unportable use of bit-fields.
84905         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84906         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84907         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84909 2009-04-06  Bruno Haible  <bruno@clisp.org>
84911         Avoid test failures on AIX and OSF/1.
84912         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84913         that malloc(0) = NULL.
84914         * tests/unicase/test-u8-tolower.c (check): Likewise.
84915         * tests/unicase/test-u8-totitle.c (check): Likewise.
84916         * tests/unicase/test-u8-toupper.c (check): Likewise.
84917         * tests/unicase/test-u16-casefold.c (check): Likewise.
84918         * tests/unicase/test-u16-tolower.c (check): Likewise.
84919         * tests/unicase/test-u16-totitle.c (check): Likewise.
84920         * tests/unicase/test-u16-toupper.c (check): Likewise.
84921         * tests/unicase/test-u32-casefold.c (check): Likewise.
84922         * tests/unicase/test-u32-tolower.c (check): Likewise.
84923         * tests/unicase/test-u32-totitle.c (check): Likewise.
84924         * tests/unicase/test-u32-toupper.c (check): Likewise.
84925         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84926         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84927         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84928         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84929         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84930         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84931         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84932         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84933         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84934         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84935         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84936         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84938 2009-04-05  Bruno Haible  <bruno@clisp.org>
84940         Work around an autoconf limitation.
84941         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84942         comment line if it would be longer than 3 KB.
84944 2009-04-05  Bruno Haible  <bruno@clisp.org>
84946         Avoid test failure with libiconv-1.13.
84947         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84948         of the expected test results.
84950 2009-04-05  Bruno Haible  <bruno@clisp.org>
84952         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84953         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84954         that it should be installed.
84956 2009-04-05  Bruno Haible  <bruno@clisp.org>
84958         * gnulib-tool: New option --copy-file.
84959         (func_usage): Document it.
84960         (func_dest_tmpfilename): Moved out of func_import.
84961         (func_add_file, func_update_file): New functions, extracted from
84962         func_import.
84963         (func_import): Update.
84965 2009-04-05  Karl Berry  <karl@gnu.org>
84967         * README: prominently mention gnulib-tool.
84968         Rearrange sections so getting the code is near the top.
84970 2009-04-05  Bruno Haible  <bruno@clisp.org>
84972         * lib/unicase.h: Mention u*_cmp2.
84973         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84974         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84975         * lib/unicase/ulc-casecmp.c: Likewise.
84976         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84977         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84978         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84979         unistr/u8-cmp.
84980         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84981         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84982         unistr/u16-cmp.
84983         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84984         unistr/u32-cmp.
84986         * lib/uninorm.h: Mention u*_cmp2.
84987         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84988         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84989         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84990         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84991         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84992         unistr/u8-cmp.
84993         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84994         unistr/u16-cmp.
84995         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84996         unistr/u32-cmp.
84998         New module 'unistr/u32-cmp2'.
84999         * lib/unistr/u32-cmp2.c: New file.
85000         * modules/unistr/u32-cmp2: New file.
85002         New module 'unistr/u16-cmp2'.
85003         * lib/unistr/u16-cmp2.c: New file.
85004         * modules/unistr/u16-cmp2: New file.
85006         New module 'unistr/u8-cmp2'.
85007         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
85008         * lib/unistr/u8-cmp2.c: New file.
85009         * lib/unistr/u-cmp2.h: New file.
85010         * modules/unistr/u8-cmp2: New file.
85012 2009-04-05  Bruno Haible  <bruno@clisp.org>
85014         * lib/unictype.h (uc_property_is_valid): New macro.
85015         * tests/unictype/test-pr_byname.c (main): Use it.
85017         * lib/unistr.h: Doc fixes.
85018         * lib/uniconv.h: Doc fixes.
85019         * lib/unictype.h: Doc fixes.
85021 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
85023         Port coreutils 7.2 to Solaris 8.
85025         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
85026         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
85027         for Solaris 8.  This is a bit of a hack, as it means it's the
85028         caller's responsibility to add -lnsl if needed, but most likely it
85029         won't be needed since only getaddrinfo uses this and getaddrinfo
85030         isn't needed on Solaris 8.
85032         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
85033         problem to Solaris 8 encountered with coreutils 7.2, which
85034         resulted in a message "fnmatch.c:292: warning: passing argument 4
85035         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
85036         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
85038 2009-04-03  Simon Josefsson  <simon@josefsson.org>
85040         * m4/ld-version-script.m4: Add FIXME comment.
85042 2009-04-02  Simon Josefsson  <simon@josefsson.org>
85044         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
85045         SOVERSION variable.
85047 2009-04-02  Bruno Haible  <bruno@clisp.org>
85049         * Makefile (info, html, dvi, pdf): Combine the rules.
85050         Suggested by Jim Meyering.
85052 2009-04-01  Bruno Haible  <bruno@clisp.org>
85054         * Makefile (info, html, dvi, pdf): New targets.
85055         Reported by Reuben Thomas <rrt@sc3d.org>.
85057 2009-04-01  Bruno Haible  <bruno@clisp.org>
85059         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
85060         can be put into PATH.
85061         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
85063 2009-04-01  Bruno Haible  <bruno@clisp.org>
85065         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
85067 2009-04-01  Bruno Haible  <bruno@clisp.org>
85069         Rename module 'visibility'.
85070         * modules/lib-symbol-visibility: Renamed from modules/visibility.
85071         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
85072         * doc/gnulib.texi: Update.
85073         * MODULES.html.sh (Misc): Update.
85074         * NEWS: Mention the change.
85076 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85078         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
85079         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
85080         Eric Blake <ebb9@byu.net> for review.
85081         * MODULES.html.sh: Add lib-msvc-compat.
85082         * doc/gnulib.texi: Link to new section.
85083         * m4/ld-output-def.m4: New file.
85084         * doc/ld-output-def.texi: New file.
85086 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85088         Rename ld-version-script to lib-symbol-versions.  Suggested by
85089         Bruno Haible <bruno@clisp.org>.
85090         * modules/ld-version-script: Renamed to lib-symbol-versions.
85091         * doc/ld-version-script.texi: Fix module name.
85092         * MODULES.html.sh: Add lib-symbol-versions.
85094 2009-03-31  Simon Josefsson  <simon@josefsson.org>
85096         * modules/u64-tests: New file.
85097         * tests/test-u64.c: New file.
85099 2009-03-04  Simon Josefsson  <simon@josefsson.org>
85101         * MODULES.html.sh: Mention u64.
85102         * modules/u64: New module.
85103         * modules/crypto/sha512: Depend on u64 module instead of providing
85104         u64.h.
85106 2009-03-27  Eric Blake  <ebb9@byu.net>
85108         test-strerror: make debugging EAI_SYSTEM easier
85109         * modules/getaddrinfo-tests (Depends-on): Add strerror.
85110         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
85111         failure was EAI_SYSTEM.
85113 2009-03-25  Bruno Haible  <bruno@clisp.org>
85115         Fix a problem with --enable-relocatable on Solaris 7.
85116         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
85117         since 2008-02-24.
85119 2009-03-25  Eric Blake  <ebb9@byu.net>
85121         test-sockets: avoid gcc warning
85122         * tests/test-sockets.c (main): Silence compiler warning.
85124 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
85126         New modules nproc, pthread, contributed by Glen Lenker.
85128         * MODULES.html.sh: Add pthread, nproc.
85129         * lib/nproc.c: New file.
85130         * lib/nproc.h: New file.
85131         * lib/pthread.in.h: New file.
85132         * m4/pthread.m4: New file.
85133         * modules/nproc: New file.
85134         * modules/pthread: New file.
85136 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85138         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
85139         New variable.
85141 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
85143         filevercmp: handle simple~ and numbered.~3~ backup suffixes
85144         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
85145         * tests/test-filevercmp.c: Add tests for backup suffixes.
85147 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85149         * modules/stdlib (Depends-on): Add stdint, needed when defining
85150         struct random_data on, for example, HP-UX 10.20.  Reported by
85151         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85153 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85155         * lib/readline.c (readline): Call fflush on stdout after printing
85156         prompt.
85158 2009-03-20  Bruno Haible  <bruno@clisp.org>
85160         Remove dependency from 'close' module to -lws2_32 on native Windows.
85161         * lib/close-hook.h: New file.
85162         * lib/close-hook.c: New file.
85163         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
85164         w32sock.h.
85165         (_gl_close_fd_maybe_socket): Remove function.
85166         (rpl_close): Invoke execute_all_close_hooks instead of
85167         _gl_close_fd_maybe_socket.
85168         * lib/sockets.c: Include close-hook.h, w32sock.h.
85169         (close_fd_maybe_socket): New function, essentially from lib/close.c.
85170         (close_sockets_hook): New variable.
85171         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
85172         (gl_sockets_cleanup): Unregister it.
85173         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
85174         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
85175         * modules/close-hook: New file.
85176         * modules/close (Files): Remove lib/w32sock.h.
85177         (Depends-on): Add close-hook.
85178         (Link): Remove section.
85179         * modules/sockets (Files): Add lib/w32sock.h.
85180         (Depends-on): Add close-hook.
85181         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
85182         invocation.
85183         * NEWS: Mention that LIB_CLOSE is gone.
85185 2009-03-23  Eric Blake  <ebb9@byu.net>
85187         signal-tests: test previous patch
85188         * tests/test-signal.c: New file.
85189         * modules/signal-tests: Likewise.
85191         signal.h: always support 'volatile sig_atomic_t'
85192         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
85193         (gl_SIGNAL_H_DEFAULTS): Add a default.
85194         * modules/signal (Makefile.am): Substitute if needed.
85195         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
85196         users can blindly add volatile.
85197         * doc/posix-headers/signal.texi (signal.h): Document it.
85198         Reported by Matthew Woehlke.
85200 2009-03-23  Jim Meyering  <meyering@redhat.com>
85202         pathmax: PATH_MAX: use pathconf only when available
85203         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
85204         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
85205         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
85206         This avoids a link failure in a PSP cross-compilation environment
85207         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
85209         * lib/vasnprintf.c (divide): Fix typo in comment.
85211 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85213         * gnulib-tool (func_filter_filelist): Fix comment.
85215 2009-03-20  Bruno Haible  <bruno@clisp.org>
85217         Make sockets.h self-contained.
85218         * lib/sockets.c: Include sockets.h first.
85219         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
85221 2009-03-19  Eric Blake  <ebb9@byu.net>
85223         doc: mention more functions added in cygwin 1.7.0
85224         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
85225         addition.
85226         * doc/posix-functions/log2f.texi: Likewise.
85228 2009-03-19  Jim Meyering  <meyering@redhat.com>
85230         fsusage: avoid syntax error due to statement-before-declaration
85231         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
85232         after all declarations.  Reported by Matthew Woehlke in
85233         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
85235 2009-03-18  Eric Blake  <ebb9@byu.net>
85237         build-aux/compile: sync from automake
85238         * build-aux/compile: New file, from automake.
85239         * config/srclist.txt: Mention build-aux/compile.
85241 2009-03-17  Bruno Haible  <bruno@clisp.org>
85243         * lib/git-merge-changelog.c: Fix typo in comment.
85244         Reported by Reuben Thomas <rrt@sc3d.org>.
85246 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
85248         * m4/regex.m4: update and improve help for
85249         --without-included-regex.
85251 2009-03-17  Simon Josefsson  <simon@josefsson.org>
85253         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
85254         failure on missing include files.
85256 2009-03-17  Eric Blake  <ebb9@byu.net>
85258         doc: mention more functions added in cygwin 1.7.0
85259         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
85260         addition.
85261         * doc/posix-functions/fwscanf.texi: Likewise.
85262         * doc/posix-functions/swprintf.texi: Likewise.
85263         * doc/posix-functions/swscanf.texi: Likewise.
85264         * doc/posix-functions/vfwprintf.texi: Likewise.
85265         * doc/posix-functions/vfwscanf.texi: Likewise.
85266         * doc/posix-functions/vswprintf.texi: Likewise.
85267         * doc/posix-functions/vswscanf.texi: Likewise.
85268         * doc/posix-functions/vwprintf.texi: Likewise.
85269         * doc/posix-functions/vwscanf.texi: Likewise.
85270         * doc/posix-functions/wcscasecmp.texi: Likewise.
85271         * doc/posix-functions/wcsdup.texi: Likewise.
85272         * doc/posix-functions/wcsftime.texi: Likewise.
85273         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85274         * doc/posix-functions/wprintf.texi: Likewise.
85275         * doc/posix-functions/wscanf.texi: Likewise.
85276         * doc/glibc-functions/gethostbyname2.texi: Likewise.
85278 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85280         maint.mk: really add $(AM_MAKEFLAGS)
85281         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
85282         was inadvertently omitted in the last commit.
85283         Spotted by Bruno Haible.
85285         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
85286         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
85287         $(AM_MAKEFLAGS)' rather than plain `make'.
85289         gnulib-tool: execute $MAKE not make
85290         * gnulib-tool: Default $MAKE to 'make'.
85291         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
85292         than make.  Initialize $MAKE in the do-autobuild script.
85294         gnulib-tool: use $MAKE not make in generated files
85295         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
85296         make, in generated files.  Initialize $MAKE in the do-autobuild
85297         script.
85299         * top/GNUmakefile (_have-git-version-gen): Fix typo.
85301         GNUmakefile: disable parallelism only for multiple, recursive targets
85302         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
85303         additions in the Makefile.
85304         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
85305         by Automake.
85306         (.NOTPARALLEL): Only disable parallel builds if multiple targets
85307         are listed on the command line and at least one of them is
85308         listed in $(ALL_RECURSIVE_TARGETS).
85310 2009-03-14  Bruno Haible  <bruno@clisp.org>
85312         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
85313         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
85314         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
85315         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
85316         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
85317         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
85318         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
85319         unistr/u8-uctomb.
85320         * modules/unistr/u8-strchr (Depends-on): Likewise.
85321         * modules/unistr/u8-strrchr (Depends-on): Likewise.
85322         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
85323         unistr/u16-uctomb.
85324         * modules/unistr/u16-strchr (Depends-on): Likewise.
85325         * modules/unistr/u16-strrchr (Depends-on): Likewise.
85327 2009-03-12  Bruno Haible  <bruno@clisp.org>
85329         Work around select() bug on Interix 3.5.
85330         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
85331         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
85332         * m4/select.m4: New file.
85333         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
85334         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
85335         * modules/select (Files): Add m4/select.m4.
85336         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
85337         * modules/nanosleep (Depends-on): Add select.
85338         * modules/poll (Depends-on): Likewise.
85339         * doc/posix-functions/select.texi: Mention the Interix bug.
85340         Reported by Markus Duft <mduft@gentoo.org>.
85342         * lib/select.c: Renamed from lib/winsock-select.c.
85343         * modules/select (Files): Add lib/select.c, remove
85344         lib/winsock-select.c.
85345         (configure.ac): Update.
85347 2009-03-12  Jim Meyering  <meyering@redhat.com>
85349         avoid gcc warnings about unused macro definitions
85350         * lib/readtokens.c (STREQ): Remove unused definition.
85351         * lib/xmalloc.c (SIZE_MAX): Likewise.
85352         * lib/openat-die.c (N_): Likewise.
85353         * lib/mountlist.c (SIZE_MAX): Remove definition.
85354         Instead, include <stdint.h>.
85355         * lib/readutmp.c: Likewise.
85356         * modules/readutmp (Depends-on): Add stdint.
85357         * modules/mountlist (Depends-on): Add stdint.
85358         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
85360 2009-03-10  Bruno Haible  <bruno@clisp.org>
85362         Tests for module 'mbmemcasecoll'.
85363         * modules/mbmemcasecoll-tests: New file.
85364         * tests/test-mbmemcasecoll1.sh: New file.
85365         * tests/test-mbmemcasecoll2.sh: New file.
85366         * tests/test-mbmemcasecoll3.sh: New file.
85367         * tests/test-mbmemcasecoll.c: New file.
85369         New module 'mbmemcasecoll'.
85370         * lib/mbmemcasecoll.h: New file.
85371         * lib/mbmemcasecoll.c: New file.
85372         * modules/mbmemcasecoll: New file.
85374         * tests/test-mbmemcasecmp.h: New file, extracted from
85375         tests/test-mbmemcasecmp.c.
85376         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
85377         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
85378         (main): Update.
85379         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
85381 2009-03-09  Bruno Haible  <bruno@clisp.org>
85383         Tests for module 'mbmemcasecmp'.
85384         * modules/mbmemcasecmp-tests: New file.
85385         * tests/test-mbmemcasecmp1.sh: New file.
85386         * tests/test-mbmemcasecmp2.sh: New file.
85387         * tests/test-mbmemcasecmp3.sh: New file.
85388         * tests/test-mbmemcasecmp.c: New file.
85390         New module 'mbmemcasecmp'.
85391         * lib/mbmemcasecmp.h: New file.
85392         * lib/mbmemcasecmp.c: New file.
85393         * modules/mbmemcasecmp: New file.
85395 2009-03-09  Bruno Haible  <bruno@clisp.org>
85397         Tests for module 'unicase/ulc-casecoll'.
85398         * modules/unicase/ulc-casecoll-tests: New file.
85399         * tests/unicase/test-ulc-casecoll1.sh: New file.
85400         * tests/unicase/test-ulc-casecoll2.sh: New file.
85401         * tests/unicase/test-ulc-casecoll.c: New file.
85403         New module 'unicase/ulc-casecoll'.
85404         * lib/unicase.h (ulc_casecoll): New declaration.
85405         * lib/unicase/ulc-casecoll.c: New file.
85406         * modules/unicase/ulc-casecoll: New file.
85408         New module 'unicase/ulc-casexfrm'.
85409         * lib/unicase.h (ulc_casexfrm): New declaration.
85410         * lib/unicase/ulc-casexfrm.c: New file.
85411         * modules/unicase/ulc-casexfrm: New file.
85413 2009-03-09  Bruno Haible  <bruno@clisp.org>
85415         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
85416         invocations.
85418         * m4/mbscasecmp.m4: Remove file.
85419         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
85420         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85422         * m4/mbscasestr.m4: Remove file.
85423         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85424         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85426         * m4/mbschr.m4: Remove file.
85427         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85428         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85430         * m4/mbscspn.m4: Remove file.
85431         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85432         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85434         * m4/mbslen.m4: Remove file.
85435         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85436         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85438         * m4/mbsncasecmp.m4: Remove file.
85439         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85440         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85442         * m4/mbsnlen.m4: Remove file.
85443         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85444         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85446         * m4/mbspbrk.m4: Remove file.
85447         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85448         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85450         * m4/mbspcasecmp.m4: Remove file.
85451         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85452         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85454         * m4/mbsrchr.m4: Remove file.
85455         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85456         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85458         * m4/mbssep.m4: Remove file.
85459         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85460         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85462         * m4/mbsspn.m4: Remove file.
85463         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85464         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85466         * m4/mbsstr.m4: Remove file.
85467         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85468         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85470         * m4/mbstok_r.m4: Remove file.
85471         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85472         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85474         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85476         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85477         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85479         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85481 2009-03-08  Bruno Haible  <bruno@clisp.org>
85483         Tests for module 'unicase/ulc-casecmp'.
85484         * modules/unicase/ulc-casecmp-tests: New file.
85485         * tests/unicase/test-ulc-casecmp1.sh: New file.
85486         * tests/unicase/test-ulc-casecmp2.sh: New file.
85487         * tests/unicase/test-ulc-casecmp.c: New file.
85489         New module 'unicase/ulc-casecmp'.
85490         * lib/unicase.h (ulc_casecmp): New declaration.
85491         * lib/unicase/ulc-casecmp.c: New file.
85492         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85493         'const SRC_UNIT *'.
85494         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85495         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85496         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85497         * modules/unicase/ulc-casecmp: New file.
85499         Tests for module 'unicase/u32-is-cased'.
85500         * modules/unicase/u32-is-cased-tests: New file.
85501         * tests/unicase/test-u32-is-cased.c: New file.
85503         Tests for module 'unicase/u16-is-cased'.
85504         * modules/unicase/u16-is-cased-tests: New file.
85505         * tests/unicase/test-u16-is-cased.c: New file.
85507         Tests for module 'unicase/u8-is-cased'.
85508         * modules/unicase/u8-is-cased-tests: New file.
85509         * tests/unicase/test-u8-is-cased.c: New file.
85510         * tests/unicase/test-is-cased.h: New file.
85512         New module 'unicase/u32-is-cased'.
85513         * lib/unicase/u32-is-cased.c: New file.
85514         * modules/unicase/u32-is-cased: New file.
85516         New module 'unicase/u16-is-cased'.
85517         * lib/unicase/u16-is-cased.c: New file.
85518         * modules/unicase/u16-is-cased: New file.
85520         New module 'unicase/u8-is-cased'.
85521         * lib/unicase/u8-is-cased.c: New file.
85522         * lib/unicase/u-is-cased.h: New file.
85523         * modules/unicase/u8-is-cased: New file.
85525         Tests for module 'unicase/u32-is-casefolded'.
85526         * modules/unicase/u32-is-casefolded-tests: New file.
85527         * tests/unicase/test-u32-is-casefolded.c: New file.
85529         Tests for module 'unicase/u16-is-casefolded'.
85530         * modules/unicase/u16-is-casefolded-tests: New file.
85531         * tests/unicase/test-u16-is-casefolded.c: New file.
85533         Tests for module 'unicase/u8-is-casefolded'.
85534         * modules/unicase/u8-is-casefolded-tests: New file.
85535         * tests/unicase/test-u8-is-casefolded.c: New file.
85536         * tests/unicase/test-is-casefolded.h: New file.
85538         New module 'unicase/u32-is-casefolded'.
85539         * lib/unicase/u32-is-casefolded.c: New file.
85540         * modules/unicase/u32-is-casefolded: New file.
85542         New module 'unicase/u16-is-casefolded'.
85543         * lib/unicase/u16-is-casefolded.c: New file.
85544         * modules/unicase/u16-is-casefolded: New file.
85546         New module 'unicase/u8-is-casefolded'.
85547         * lib/unicase/u8-is-casefolded.c: New file.
85548         * modules/unicase/u8-is-casefolded: New file.
85550         Tests for module 'unicase/u32-is-titlecase'.
85551         * modules/unicase/u32-is-titlecase-tests: New file.
85552         * tests/unicase/test-u32-is-titlecase.c: New file.
85554         Tests for module 'unicase/u16-is-titlecase'.
85555         * modules/unicase/u16-is-titlecase-tests: New file.
85556         * tests/unicase/test-u16-is-titlecase.c: New file.
85558         Tests for module 'unicase/u8-is-titlecase'.
85559         * modules/unicase/u8-is-titlecase-tests: New file.
85560         * tests/unicase/test-u8-is-titlecase.c: New file.
85561         * tests/unicase/test-is-titlecase.h: New file.
85563         New module 'unicase/u32-is-titlecase'.
85564         * lib/unicase/u32-is-titlecase.c: New file.
85565         * modules/unicase/u32-is-titlecase: New file.
85567         New module 'unicase/u16-is-titlecase'.
85568         * lib/unicase/u16-is-titlecase.c: New file.
85569         * modules/unicase/u16-is-titlecase: New file.
85571         New module 'unicase/u8-is-titlecase'.
85572         * lib/unicase/u8-is-titlecase.c: New file.
85573         * modules/unicase/u8-is-titlecase: New file.
85575         Tests for module 'unicase/u32-is-lowercase'.
85576         * modules/unicase/u32-is-lowercase-tests: New file.
85577         * tests/unicase/test-u32-is-lowercase.c: New file.
85579         Tests for module 'unicase/u16-is-lowercase'.
85580         * modules/unicase/u16-is-lowercase-tests: New file.
85581         * tests/unicase/test-u16-is-lowercase.c: New file.
85583         Tests for module 'unicase/u8-is-lowercase'.
85584         * modules/unicase/u8-is-lowercase-tests: New file.
85585         * tests/unicase/test-u8-is-lowercase.c: New file.
85586         * tests/unicase/test-is-lowercase.h: New file.
85588         New module 'unicase/u32-is-lowercase'.
85589         * lib/unicase/u32-is-lowercase.c: New file.
85590         * modules/unicase/u32-is-lowercase: New file.
85592         New module 'unicase/u16-is-lowercase'.
85593         * lib/unicase/u16-is-lowercase.c: New file.
85594         * modules/unicase/u16-is-lowercase: New file.
85596         New module 'unicase/u8-is-lowercase'.
85597         * lib/unicase/u8-is-lowercase.c: New file.
85598         * modules/unicase/u8-is-lowercase: New file.
85600         Tests for module 'unicase/u32-is-uppercase'.
85601         * modules/unicase/u32-is-uppercase-tests: New file.
85602         * tests/unicase/test-u32-is-uppercase.c: New file.
85604         Tests for module 'unicase/u16-is-uppercase'.
85605         * modules/unicase/u16-is-uppercase-tests: New file.
85606         * tests/unicase/test-u16-is-uppercase.c: New file.
85608         Tests for module 'unicase/u8-is-uppercase'.
85609         * modules/unicase/u8-is-uppercase-tests: New file.
85610         * tests/unicase/test-u8-is-uppercase.c: New file.
85611         * tests/unicase/test-is-uppercase.h: New file.
85613         New module 'unicase/u32-is-uppercase'.
85614         * lib/unicase/u32-is-uppercase.c: New file.
85615         * modules/unicase/u32-is-uppercase: New file.
85617         New module 'unicase/u16-is-uppercase'.
85618         * lib/unicase/u16-is-uppercase.c: New file.
85619         * modules/unicase/u16-is-uppercase: New file.
85621         New module 'unicase/u8-is-uppercase'.
85622         * lib/unicase/u8-is-uppercase.c: New file.
85623         * modules/unicase/u8-is-uppercase: New file.
85625         New module 'unicase/u32-is-invariant'.
85626         * lib/unicase/u32-is-invariant.c: New file.
85627         * modules/unicase/u32-is-invariant: New file.
85629         New module 'unicase/u16-is-invariant'.
85630         * lib/unicase/u16-is-invariant.c: New file.
85631         * modules/unicase/u16-is-invariant: New file.
85633         New module 'unicase/u8-is-invariant'.
85634         * lib/unicase/u8-is-invariant.c: New file.
85635         * lib/unicase/invariant.h: New file.
85636         * lib/unicase/u-is-invariant.h: New file.
85637         * modules/unicase/u8-is-invariant: New file.
85639         Tests for module 'unicase/u32-casecoll'.
85640         * modules/unicase/u32-casecoll-tests: New file.
85641         * tests/unicase/test-u32-casecoll.c: New file.
85643         Tests for module 'unicase/u16-casecoll'.
85644         * modules/unicase/u16-casecoll-tests: New file.
85645         * tests/unicase/test-u16-casecoll.c: New file.
85647         Tests for module 'unicase/u8-casecoll'.
85648         * modules/unicase/u8-casecoll-tests: New file.
85649         * tests/unicase/test-u8-casecoll.c: New file.
85651         New module 'unicase/u32-casecoll'.
85652         * lib/unicase/u32-casecoll.c: New file.
85653         * modules/unicase/u32-casecoll: New file.
85655         New module 'unicase/u16-casecoll'.
85656         * lib/unicase/u16-casecoll.c: New file.
85657         * modules/unicase/u16-casecoll: New file.
85659         New module 'unicase/u8-casecoll'.
85660         * lib/unicase/u8-casecoll.c: New file.
85661         * lib/unicase/u-casecoll.h: New file.
85662         * modules/unicase/u8-casecoll: New file.
85664         New module 'unicase/u32-casexfrm'.
85665         * lib/unicase/u32-casexfrm.c: New file.
85666         * modules/unicase/u32-casexfrm: New file.
85668         New module 'unicase/u16-casexfrm'.
85669         * lib/unicase/u16-casexfrm.c: New file.
85670         * modules/unicase/u16-casexfrm: New file.
85672         New module 'unicase/u8-casexfrm'.
85673         * lib/unicase/u8-casexfrm.c: New file.
85674         * lib/unicase/u-casexfrm.h: New file.
85675         * modules/unicase/u8-casexfrm: New file.
85677         Tests for module 'unicase/u32-casecmp'.
85678         * modules/unicase/u32-casecmp-tests: New file.
85679         * tests/unicase/test-u32-casecmp.c: New file.
85681         Tests for module 'unicase/u16-casecmp'.
85682         * modules/unicase/u16-casecmp-tests: New file.
85683         * tests/unicase/test-u16-casecmp.c: New file.
85685         Tests for module 'unicase/u8-casecmp'.
85686         * modules/unicase/u8-casecmp-tests: New file.
85687         * tests/unicase/test-u8-casecmp.c: New file.
85688         * tests/unicase/test-casecmp.h: New file.
85690         New module 'unicase/u32-casecmp'.
85691         * lib/unicase/u32-casecmp.c: New file.
85692         * modules/unicase/u32-casecmp: New file.
85694         New module 'unicase/u16-casecmp'.
85695         * lib/unicase/u16-casecmp.c: New file.
85696         * modules/unicase/u16-casecmp: New file.
85698         New module 'unicase/u8-casecmp'.
85699         * lib/unicase/u8-casecmp.c: New file.
85700         * lib/unicase/u-casecmp.h: New file.
85701         * modules/unicase/u8-casecmp: New file.
85703         Tests for module 'unicase/u32-casefold'.
85704         * modules/unicase/u32-casefold-tests: New file.
85705         * tests/unicase/test-u32-casefold.c: New file.
85707         Tests for module 'unicase/u16-casefold'.
85708         * modules/unicase/u16-casefold-tests: New file.
85709         * tests/unicase/test-u16-casefold.c: New file.
85711         Tests for module 'unicase/u8-casefold'.
85712         * modules/unicase/u8-casefold-tests: New file.
85713         * tests/unicase/test-u8-casefold.c: New file.
85715         New module 'unicase/u32-casefold'.
85716         * lib/unicase/u32-casefold.c: New file.
85717         * modules/unicase/u32-casefold: New file.
85719         New module 'unicase/u16-casefold'.
85720         * lib/unicase/u16-casefold.c: New file.
85721         * modules/unicase/u16-casefold: New file.
85723         New module 'unicase/u8-casefold'.
85724         * lib/unicase/u8-casefold.c: New file.
85725         * lib/unicase/u-casefold.h: New file.
85726         * modules/unicase/u8-casefold: New file.
85728         New module 'unicase/tocasefold'.
85729         * lib/unicase/casefold.h: New file.
85730         * lib/unicase/tocasefold.c: New file.
85731         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85732         * modules/unicase/tocasefold: New file.
85734         Tests for module 'unicase/u32-totitle'.
85735         * modules/unicase/u32-totitle-tests: New file.
85736         * tests/unicase/test-u32-totitle.c: New file.
85738         Tests for module 'unicase/u16-totitle'.
85739         * modules/unicase/u16-totitle-tests: New file.
85740         * tests/unicase/test-u16-totitle.c: New file.
85742         Tests for module 'unicase/u8-totitle'.
85743         * modules/unicase/u8-totitle-tests: New file.
85744         * tests/unicase/test-u8-totitle.c: New file.
85746         New module 'unicase/u32-totitle'.
85747         * lib/unicase/u32-totitle.c: New file.
85748         * modules/unicase/u32-totitle: New file.
85750         New module 'unicase/u16-totitle'.
85751         * lib/unicase/u16-totitle.c: New file.
85752         * modules/unicase/u16-totitle: New file.
85754         New module 'unicase/u8-totitle'.
85755         * lib/unicase/u8-totitle.c: New file.
85756         * lib/unicase/u-totitle.h: New file.
85757         * modules/unicase/u8-totitle: New file.
85759         Tests for module 'unicase/u32-tolower'.
85760         * modules/unicase/u32-tolower-tests: New file.
85761         * tests/unicase/test-u32-tolower.c: New file.
85763         Tests for module 'unicase/u16-tolower'.
85764         * modules/unicase/u16-tolower-tests: New file.
85765         * tests/unicase/test-u16-tolower.c: New file.
85767         Tests for module 'unicase/u8-tolower'.
85768         * modules/unicase/u8-tolower-tests: New file.
85769         * tests/unicase/test-u8-tolower.c: New file.
85771         New module 'unicase/u32-tolower'.
85772         * lib/unicase/u32-tolower.c: New file.
85773         * modules/unicase/u32-tolower: New file.
85775         New module 'unicase/u16-tolower'.
85776         * lib/unicase/u16-tolower.c: New file.
85777         * modules/unicase/u16-tolower: New file.
85779         New module 'unicase/u8-tolower'.
85780         * lib/unicase/u8-tolower.c: New file.
85781         * modules/unicase/u8-tolower: New file.
85783         Tests for module 'unicase/u32-toupper'.
85784         * modules/unicase/u32-toupper-tests: New file.
85785         * tests/unicase/test-u32-toupper.c: New file.
85787         Tests for module 'unicase/u16-toupper'.
85788         * modules/unicase/u16-toupper-tests: New file.
85789         * tests/unicase/test-u16-toupper.c: New file.
85791         Tests for module 'unicase/u8-toupper'.
85792         * modules/unicase/u8-toupper-tests: New file.
85793         * tests/unicase/test-u8-toupper.c: New file.
85795         New module 'unicase/u32-toupper'.
85796         * lib/unicase/u32-toupper.c: New file.
85797         * modules/unicase/u32-toupper: New file.
85799         New module 'unicase/u16-toupper'.
85800         * lib/unicase/u16-toupper.c: New file.
85801         * modules/unicase/u16-toupper: New file.
85803         New module 'unicase/u8-toupper'.
85804         * lib/unicase/u8-toupper.c: New file.
85805         * modules/unicase/u8-toupper: New file.
85807         New module 'unicase/u32-casemap'.
85808         * lib/unicase/u32-casemap.c: New file.
85809         * modules/unicase/u32-casemap: New file.
85811         New module 'unicase/u16-casemap'.
85812         * lib/unicase/u16-casemap.c: New file.
85813         * modules/unicase/u16-casemap: New file.
85815         New module 'unicase/u8-casemap'.
85816         * lib/unicase/unicasemap.h: New file.
85817         * lib/unicase/u8-casemap.c: New file.
85818         * lib/unicase/u-casemap.h: New file.
85819         * modules/unicase/u8-casemap: New file.
85821         New module 'unicase/special-casing'.
85822         * lib/unicase/special-casing.h: New file.
85823         * lib/unicase/special-casing.c: New file.
85824         * lib/unicase/special-casing-table.gperf: New file, generated by
85825         gen-uni-tables.c.
85826         * modules/unicase/special-casing: New file.
85828         Tests for module 'unicase/locale-language'.
85829         * modules/unicase/locale-language-tests: New file.
85830         * tests/unicase/test-locale-language.sh: New file.
85831         * tests/unicase/test-locale-language.c: New file.
85833         New module 'unicase/locale-language'.
85834         * lib/unicase/locale-language.c: New file.
85835         * lib/unicase/locale-languages.gperf: New file.
85836         * modules/unicase/locale-language: New file.
85838         Generate more tables for case conversion and case folding.
85839         * lib/gen-uni-tables.c (SCC_*): New enum items.
85840         (struct special_casing_rule): New type.
85841         (casing_rules, num_casing_rules, allocated_casing_rules): New
85842         variables.
85843         (add_casing_rule, fill_casing_rules): New functions.
85844         (struct casefold_rule): New type.
85845         (casefolding_rules, num_casefolding_rules,
85846         allocated_casefolding_rules): New variables.
85847         (fill_casefolding_rules): New function.
85848         (unicode_casefold): New variable.
85849         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85850         sort_casing_rules, output_casing_rules): New functions.
85851         (main): Accept to more arguments: SpecialCasing.txt and
85852         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85853         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85854         Output mapping for casefolding.
85856         * lib/unicase.h: Include stdbool.h, uninorm.h.
85857         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85858         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85859         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85860         arguments.
85861         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85862         resultp arguments.
85863         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85864         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85865         resultp arguments.
85866         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85867         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85868         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85869         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85870         declarations.
85871         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85873 2009-03-08  Bruno Haible  <bruno@clisp.org>
85875         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85876         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85877         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85878         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85880 2009-03-07  Bruno Haible  <bruno@clisp.org>
85882         Adjust u*_normcmp, u*_normcoll API.
85883         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85884         u16_normcoll, u32_normcoll): Change failure conventions.
85885         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85886         errno and return -1.
85887         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85889 2009-03-07  Bruno Haible  <bruno@clisp.org>
85891         Tests for module 'uninorm/u32-normcoll'.
85892         * modules/uninorm/u32-normcoll-tests: New file.
85893         * tests/uninorm/test-u32-normcoll.c: New file.
85895         Tests for module 'uninorm/u16-normcoll'.
85896         * modules/uninorm/u16-normcoll-tests: New file.
85897         * tests/uninorm/test-u16-normcoll.c: New file.
85899         Tests for module 'uninorm/u8-normcoll'.
85900         * modules/uninorm/u8-normcoll-tests: New file.
85901         * tests/uninorm/test-u8-normcoll.c: New file.
85903 2009-03-07  Bruno Haible  <bruno@clisp.org>
85905         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85906         tests/uninorm/test-u32-normcmp.c.
85907         * tests/uninorm/test-u32-normcmp.c: Include it.
85908         (test_nonascii): New function, extracted from main. Add some more
85909         tests.
85910         (main): Invoke test_ascii and test_nonascii.
85911         * modules/uninorm/u32-normcmp-tests (Files): Add
85912         tests/uninorm/test-u32-normcmp.h.
85913         (Depends-on): Remove uninorm/u32-normcmp.
85915         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85916         tests/uninorm/test-u16-normcmp.c.
85917         * tests/uninorm/test-u16-normcmp.c: Include it.
85918         (test_nonascii): New function, extracted from main. Add some more
85919         tests.
85920         (main): Invoke test_ascii and test_nonascii.
85921         * modules/uninorm/u16-normcmp-tests (Files): Add
85922         tests/uninorm/test-u16-normcmp.h.
85923         (Depends-on): Remove uninorm/u16-normcmp.
85925         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85926         tests/uninorm/test-u8-normcmp.c.
85927         * tests/uninorm/test-u8-normcmp.c: Include it.
85928         (test_nonascii): New function, extracted from main. Add some more
85929         tests.
85930         (main): Invoke test_ascii and test_nonascii.
85931         * modules/uninorm/u8-normcmp-tests (Files): Add
85932         tests/uninorm/test-u8-normcmp.h.
85933         (Depends-on): Remove uninorm/u8-normcmp.
85935 2009-03-07  Bruno Haible  <bruno@clisp.org>
85937         New module 'uninorm/u32-normcoll'.
85938         * lib/uninorm/u32-normcoll.c: New file.
85939         * modules/uninorm/u32-normcoll: New file.
85941         New module 'uninorm/u16-normcoll'.
85942         * lib/uninorm/u16-normcoll.c: New file.
85943         * modules/uninorm/u16-normcoll: New file.
85945         New module 'uninorm/u8-normcoll'.
85946         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85947         declarations.
85948         * lib/uninorm/u8-normcoll.c: New file.
85949         * lib/uninorm/u-normcoll.h: New file.
85950         * modules/uninorm/u8-normcoll: New file.
85952         New module 'uninorm/u32-normxfrm'.
85953         * lib/uninorm/u32-normxfrm.c: New file.
85954         * modules/uninorm/u32-normxfrm: New file.
85956         New module 'uninorm/u16-normxfrm'.
85957         * lib/uninorm/u16-normxfrm.c: New file.
85958         * modules/uninorm/u16-normxfrm: New file.
85960         New module 'uninorm/u8-normxfrm'.
85961         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85962         declarations.
85963         * lib/uninorm/u8-normxfrm.c: New file.
85964         * lib/uninorm/u-normxfrm.h: New file.
85965         * modules/uninorm/u8-normxfrm: New file.
85967 2009-03-07  Bruno Haible  <bruno@clisp.org>
85969         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85970         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85971         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85973 2009-03-07  Bruno Haible  <bruno@clisp.org>
85975         New module 'memxfrm'.
85976         * lib/memxfrm.h: New file.
85977         * lib/memxfrm.c: New file.
85978         * modules/memxfrm: New file.
85980 2009-03-07  Bruno Haible  <bruno@clisp.org>
85982         New module 'memcmp2'.
85983         * lib/memcmp2.h: New file.
85984         * lib/memcmp2.c: New file.
85985         * modules/memcmp2: New file.
85987 2009-03-07  Bruno Haible  <bruno@clisp.org>
85989         Tests for module 'uninorm/decomposing-form'.
85990         * modules/uninorm/decomposing-form-tests: New file.
85991         * tests/uninorm/test-decomposing-form.c: New file.
85993         New module 'uninorm/decomposing-form'.
85994         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85995         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85996         Add 'decomposing_variant' field.
85997         * lib/uninorm/decomposing-form.c: New file.
85998         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85999         * lib/uninorm/nfd.c (uninorm_nfd): Update.
86000         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
86001         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
86002         * modules/uninorm/decomposing-form: New file.
86003         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
86004         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
86006 2009-03-07  Bruno Haible  <bruno@clisp.org>
86008         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
86009         strings.
86011 2009-03-06  Bruno Haible  <bruno@clisp.org>
86013         Tests for module 'uninorm/u32-normcmp'.
86014         * tests/uninorm/test-u32-normcmp.c: New file.
86015         * modules/uninorm/u32-normcmp-tests: New file.
86017         Tests for module 'uninorm/u16-normcmp'.
86018         * tests/uninorm/test-u16-normcmp.c: New file.
86019         * modules/uninorm/u16-normcmp-tests: New file.
86021         Tests for module 'uninorm/u8-normcmp'.
86022         * tests/uninorm/test-u8-normcmp.c: New file.
86023         * modules/uninorm/u8-normcmp-tests: New file.
86025         New module 'uninorm/u32-normcmp'.
86026         * lib/uninorm/u32-normcmp.c: New file.
86027         * modules/uninorm/u32-normcmp: New file.
86029         New module 'uninorm/u16-normcmp'.
86030         * lib/uninorm/u16-normcmp.c: New file.
86031         * modules/uninorm/u16-normcmp: New file.
86033         New module 'uninorm/u8-normcmp'.
86034         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
86035         declarations.
86036         * lib/uninorm/u8-normcmp.c: New file.
86037         * lib/uninorm/u-normcmp.h: New file.
86038         * modules/uninorm/u8-normcmp: New file.
86040 2009-03-06  Bruno Haible  <bruno@clisp.org>
86042         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
86043         Reported by Eric Blake.
86045 2009-03-06  Eric Blake  <ebb9@byu.net>
86046             Bruno Haible  <bruno@clisp.org>
86048         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
86049         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
86050         condition.
86051         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86052         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
86053         condition.
86054         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86056 2009-03-06  Eric Blake  <ebb9@byu.net>
86058         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
86059         to avoid compiler warnings.
86060         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
86062 2009-03-05  Bruno Haible  <bruno@clisp.org>
86064         * tests/test-ftell.c (main): Disable test beyond end of file on
86065         FreeMiNT.
86066         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86068 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
86070         * lib/filevercmp.c: Move hidden files up in ordering.
86071         * tests/test-filevercmp.c: Add tests for hidden files.
86073 2009-03-04  Bruno Haible  <bruno@clisp.org>
86075         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
86076         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
86077         AM_CFLAGS.
86078         Reported by Simon Josefsson.
86080 2009-03-03  Bruno Haible  <bruno@clisp.org>
86082         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
86083         Reported by Simon Josefsson.
86085         * doc/ld-version-script.texi: Update node reference.
86087 2009-03-03  Bruno Haible  <bruno@clisp.org>
86089         * modules/visibility (License): Change to 'unlimited'.
86090         Suggested by Simon Josefsson.
86092 2009-03-03  Jim Meyering  <meyering@redhat.com>
86094         unlinkdir: cannot_unlink_dir may modify process state
86095         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
86096         it's neither thread-safe nor appropriate for use in a library.
86098 2009-03-03  Eric Blake  <ebb9@byu.net>
86100         test-closein: silence test under Darwin
86101         * tests/test-closein.sh: Ignore stderr from cat, since we don't
86102         care if it dies from EPIPE or EBADF.
86104 2009-03-03  Bruno Haible  <bruno@clisp.org>
86106         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
86107         earlier.
86108         * doc/visibility.texi: Fix @node and @section.
86110 2009-03-03  Simon Josefsson  <simon@josefsson.org>
86112         * doc/gnulib.texi: Link to sections for ld version script and
86113         visibility.
86114         * doc/visibility.texi: Add @node and @section.
86115         * modules/ld-version-script: New module.
86116         * m4/ld-version-script.m4: New file.
86117         * doc/ld-version-script.texi: New file.
86119 2009-03-02  David Lutterkort  <lutter@redhat.com>
86121         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
86122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86124 2009-03-02  Bruno Haible  <bruno@clisp.org>
86126         * doc/visibility.texi: Mention libtool's -export-symbols option.
86128 2009-03-02  Jim Meyering  <meyering@redhat.com>
86130         announce-gen: new option: --no-print-checksums
86131         * build-aux/announce-gen (usage): Describe it.
86132         (print_checksums): Print a newline here, not in the [*] footnote.
86133         (main): Honor it.
86135 2009-03-01  Bruno Haible  <bruno@clisp.org>
86137         Use socklen_t in the native Windows replacements prototypes.
86138         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
86139         instead of 'int'.
86140         * lib/getsockopt.c (rpl_getsockopt): Likewise.
86141         * lib/setsockopt.c (rpl_setsockopt): Likewise.
86142         * modules/getsockopt (Depends-on): Add socklen.
86143         * modules/setsockopt (Depends-on): Add socklen.
86145 2009-03-01  Bruno Haible  <bruno@clisp.org>
86147         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
86148         least 4.2.
86150 2009-03-01  Eric Blake  <ebb9@byu.net>
86151             Bruno Haible  <bruno@clisp.org>
86153         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
86154         error messages.
86155         * lib/wait-process.c (wait_subprocess): Omit error message about
86156         deadly signal sent to the child of termsigp != NULL.
86158 2009-03-01  Eric Blake  <ebb9@byu.net>
86160         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
86162 2009-03-01  Bruno Haible  <bruno@clisp.org>
86164         Avoid a gcc warning.
86165         * tests/test-sched.c (b): Make global.
86166         Reported by Eric Blake.
86168 2009-01-19  Martin Lambers  <marlam@marlam.de>
86170         Provide POSIX semantics for socket timeout options on W32.
86171         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
86172         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
86173         * modules/setsockopt: Depend on sys_time module for struct timeval.
86174         * modules/getsockopt: Depend on sys_time module for struct timeval.
86176 2009-03-01  Simon Josefsson  <simon@josefsson.org>
86178         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
86179         __USE_GNU, for consistency with netdb.in.h.
86180         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86182 2009-03-01  Bruno Haible  <bruno@clisp.org>
86184         More support for FreeMiNT.
86185         * lib/fseeko.c (rpl_fseeko): Complete last commit.
86186         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86188 2009-03-01  Bruno Haible  <bruno@clisp.org>
86190         More support for FreeMiNT.
86191         * lib/fpurge.c (fpurge): Correct last commit.
86192         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86194 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86196         Fix unportable awk script in vc-list-files.
86197         * build-aux/vc-list-files: In the replacement awk script, use
86198         substr with a second argument of 1, not zero.
86199         Report by Simon Josefsson.
86201 2009-02-28  Bruno Haible  <bruno@clisp.org>
86203         More support for FreeMiNT.
86204         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
86205         to FreeMiNT today.
86206         * lib/fwriting.c (fwriting): Likewise.
86207         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
86209 2009-02-28  Bruno Haible  <bruno@clisp.org>
86211         * tests/test-freadseek.c (main): Disable test beyond end of file on
86212         FreeMiNT.
86213         * tests/test-ftello.c (main): Likewise.
86214         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86216 2009-02-28  Bruno Haible  <bruno@clisp.org>
86218         Add tentative support for FreeMiNT.
86219         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
86220         * lib/fpurge.c (fpurge): Likewise.
86221         * lib/freadable.c (freadable): Likewise.
86222         * lib/freading.c (freading): Likewise.
86223         * lib/freadptr.c (freadptr): Likewise.
86224         * lib/freadseek.c (freadptrinc): Likewise.
86225         * lib/fseeko.c (rpl_fseeko): Likewise.
86226         * lib/fseterr.c (fseterr): Likewise.
86227         * lib/fwritable.c (fwritable): Likewise.
86228         * lib/fwriting.c (fwriting): Likewise.
86229         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
86230         Hourihane.
86231         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86233 2009-02-28  Bruno Haible  <bruno@clisp.org>
86235         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
86236         SIGCHLD.
86237         Reported by Jim Meyering.
86239 2009-02-28  Bruno Haible  <bruno@clisp.org>
86241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
86242         Mention the results of these tests on various platforms.
86243         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
86244         order.
86245         * doc/posix-functions/printf.texi: Likewise.
86246         * doc/posix-functions/snprintf.texi: Likewise.
86247         * doc/posix-functions/sprintf.texi: Likewise.
86248         * doc/posix-functions/vfprintf.texi: Likewise.
86249         * doc/posix-functions/vprintf.texi: Likewise.
86250         * doc/posix-functions/vsnprintf.texi: Likewise.
86251         * doc/posix-functions/vsprintf.texi: Likewise.
86252         * doc/glibc-functions/obstack_printf.texi: Likewise.
86253         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
86255 2009-02-28  Bruno Haible  <bruno@clisp.org>
86257         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
86258         Reported by Loïc Minier <lool@dooz.org>.
86260 2009-02-27  Bruno Haible  <bruno@clisp.org>
86262         * gnulib-tool (func_import): Make the sed expression used to create the
86263         sed script for updating the .gitignore file POSIX compliant.
86264         Reported by Eric Blake.
86266 2009-02-27  Bruno Haible  <bruno@clisp.org>
86268         * gnulib-tool (sed): Don't alias as "sed --posix".
86269         Reported by Eric Blake.
86271 2009-02-27  Bruno Haible  <bruno@clisp.org>
86273         Avoid test link errors.
86274         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
86275         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
86276         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
86277         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
86278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86280 2009-02-27  Bruno Haible  <bruno@clisp.org>
86282         Avoid spurious "(cached)" in configure output.
86283         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
86284         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
86285         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
86286         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
86287         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
86288         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
86289         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
86290         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
86291         Reported by Eric Blake.
86293 2009-02-27  Eric Blake  <ebb9@byu.net>
86295         printf: fix regression in previous patch
86296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
86298 2009-02-27  Bruno Haible  <bruno@clisp.org>
86300         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
86301         value.
86302         * lib/stdint.in.h: Likewise.
86303         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
86305 2009-02-27  Eric Blake  <ebb9@byu.net>
86307         doc: mention more functions added in cygwin 1.7.0
86308         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
86309         addition.
86310         * doc/posix-functions/open_wmemstream.texi: Likewise.
86311         * doc/posix-functions/wcsnlen.texi: Likewise.
86312         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86313         * doc/posix-functions/wcstod.texi: Likewise.
86314         * doc/posix-functions/wcstof.texi: Likewise.
86315         * doc/posix-functions/wcstoimax.texi: Likewise.
86316         * doc/posix-functions/wcstok.texi: Likewise.
86317         * doc/posix-functions/wcstoumax.texi: Likewise.
86319         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
86320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
86321         * doc/posix-functions/fprintf.texi: Update.
86322         * doc/posix-functions/printf.texi: Update.
86323         * doc/posix-functions/snprintf.texi: Update.
86324         * doc/posix-functions/sprintf.texi: Update.
86325         * doc/posix-functions/vfprintf.texi: Update.
86326         * doc/posix-functions/vprintf.texi: Update.
86327         * doc/posix-functions/vsnprintf.texi: Update.
86328         * doc/posix-functions/vsprintf.texi: Update.
86329         * doc/glibc-functions/obstack_printf.texi: Update.
86330         * doc/glibc-functions/obstack_vprintf.texi: Update.
86332 2009-02-26  Eric Blake  <ebb9@byu.net>
86334         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
86335         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
86336         compilation bug by using runtime conversion.
86337         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
86338         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
86339         * modules/ceill-tests (Files): Use nan.h.
86340         * modules/floorl-tests (Files): Likewise.
86341         * modules/frexpl-tests (Files): Likewise.
86342         * modules/isnanl-tests (Files): Likewise.
86343         * modules/ldexpl-tests (Files): Likewise.
86344         * modules/roundl-tests (Files): Likewise.
86345         * modules/truncl-tests (Files): Likewise.
86346         * tests/test-ceill.c (main): Use a working NaN.
86347         * tests/test-floorl.c (main): Likewise.
86348         * tests/test-frexpl.c (main): Likewise.
86349         * tests/test-isnan.c (test_long_double): Likewise.
86350         * tests/test-isnanl.h (main): Likewise.
86351         * tests/test-ldexpl.h (main): Likewise.
86352         * tests/test-roundl.h (main): Likewise.
86353         * tests/test-truncl.h (main): Likewise.
86354         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
86356 2009-02-26  Eric Blake  <ebb9@byu.net>
86357             Bruno Haible  <bruno@clisp.org>
86359         Work around a *printf bug with %ls on Solaris.
86360         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
86361         precision is specified, sprintf stops converting the wide string
86362         argument when the number of bytes that have been produced by this
86363         conversion equals or exceeds the precision.
86364         * doc/posix-functions/fprintf.texi: Update.
86365         * doc/posix-functions/printf.texi: Update.
86366         * doc/posix-functions/snprintf.texi: Update.
86367         * doc/posix-functions/sprintf.texi: Update.
86368         * doc/posix-functions/vfprintf.texi: Update.
86369         * doc/posix-functions/vprintf.texi: Update.
86370         * doc/posix-functions/vsnprintf.texi: Update.
86371         * doc/posix-functions/vsprintf.texi: Update.
86372         * doc/glibc-functions/obstack_printf.texi: Update.
86373         * doc/glibc-functions/obstack_vprintf.texi: Update.
86375 2009-02-26  Eric Blake  <ebb9@byu.net>
86377         stdlib: favor compiler check of random.h
86378         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
86379         to avoid an ObjC random.h installed by Swarm.
86381 2009-02-26  Bruno Haible  <bruno@clisp.org>
86383         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
86384         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
86385         Reported by Gary V. Vaughan <gary@gnu.org>.
86387 2009-02-26  Bruno Haible  <bruno@clisp.org>
86389         Fix *printf behaviour regarding the %ls directive.
86390         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
86391         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
86392         NEED_PRINTF_DIRECTIVE_LS.
86393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
86394         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86395         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86396         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
86397         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
86398         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
86399         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
86400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86404         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
86405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86408         * doc/posix-functions/fprintf.texi: Update.
86409         * doc/posix-functions/printf.texi: Update.
86410         * doc/posix-functions/snprintf.texi: Update.
86411         * doc/posix-functions/sprintf.texi: Update.
86412         * doc/posix-functions/vfprintf.texi: Update.
86413         * doc/posix-functions/vprintf.texi: Update.
86414         * doc/posix-functions/vsnprintf.texi: Update.
86415         * doc/posix-functions/vsprintf.texi: Update.
86416         * doc/glibc-functions/obstack_printf.texi: Update.
86417         * doc/glibc-functions/obstack_vprintf.texi: Update.
86418         Reported by Eric Blake.
86420 2009-02-25  Bruno Haible  <bruno@clisp.org>
86422         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86423         with known value.
86424         Reported by Gary V. Vaughan <gary@gnu.org>.
86426 2009-02-25  Bruno Haible  <bruno@clisp.org>
86428         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86429         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86430         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86431         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86432         Reported by Gary V. Vaughan <gary@gnu.org>.
86434 2009-02-25  Bruno Haible  <bruno@clisp.org>
86436         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86437         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86438         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86439         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86440         Reported by Gary V. Vaughan <gary@gnu.org>.
86442 2009-02-25  Eric Blake  <ebb9@byu.net>
86444         tests: skip fseek/ftell tests if ungetc is broken
86445         * m4/ungetc.m4: New file.
86446         * modules/fseek-tests: Split test, so ungetc dependency is
86447         separate from rest of test.
86448         * modules/fseeko-tests: Likewise.
86449         * modules/ftell-tests: Likewise.
86450         * modules/ftello-tests: Likewise.
86451         * tests/test-fseek.c (main): Isolate ungetc dependency.
86452         * tests/test-fseeko.c (main): Likewise.
86453         * tests/test-ftell.c (main): Likewise.
86454         * tests/test-ftello.c (main): Likewise.
86455         * tests/test-fseek2.sh: New file.
86456         * tests/test-fseeko2.sh: Likewise.
86457         * tests/test-ftell2.sh: Likewise.
86458         * tests/test-ftello2.sh: Likewise.
86460 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86462         test-getaddrinfo: fix usage of skip return code 77
86463         * tests/test-gettaddrinfo.c: Return skip code 77 only
86464         for first occurrence of skip (4x77 is not 77)
86466 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86468         strtod: avoid C99 decl-after-statement
86469         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86471 2009-02-24  Eric Blake  <ebb9@byu.net>
86473         strtod: detect HP-UX 11.31 bug
86474         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86475         Reported by Gary V. Vaughan.
86477 2009-02-23  Bruno Haible  <bruno@clisp.org>
86479         Fix invalid read past end of memory block.
86480         * lib/vasnprintf.c (DCHAR_SET): Define.
86481         (local_wcslen): Define only when needed.
86482         (local_strnlen, local_wcsnlen): New functions.
86483         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86484         directives that involve a conversion ourselves.
86485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86486         wcsnlen, mbrtowc, wcrtomb.
86487         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86488         * tests/test-vasprintf-posix.c (test_function): Likewise.
86489         * tests/test-snprintf-posix.h (test_function): Likewise.
86490         * tests/test-sprintf-posix.h (test_function): Likewise.
86491         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86493 2009-02-22  Bruno Haible  <bruno@clisp.org>
86495         Implement new clarified decomposition of Hangul syllables.
86496         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86497         of type LTV, return only a pairwise decomposition.
86498         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86499         Likewise.
86500         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86501         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86502         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86504 2009-02-22  Bruno Haible  <bruno@clisp.org>
86506         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86507         zero-length results and shrink excess allocated memory.
86508         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86509         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86510         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86511         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86512         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86513         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86514         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86515         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86516         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86517         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86518         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86519         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86521 2009-02-21  Bruno Haible  <bruno@clisp.org>
86523         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86524         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86525         spaces after a period. Put a space between a macro name and its
86526         argument list. Trivial rewordings.
86527         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86528         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86529         (main): Return 0 explicitly.
86531 2009-02-21  Bruno Haible  <bruno@clisp.org>
86533         Tests for module 'uninorm/filter'.
86534         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86535         * modules/uninorm/filter-tests: New file.
86537         New module 'uninorm/filter'.
86538         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86539         uninorm_filter_flush, uninorm_filter_free): New declarations.
86540         * lib/uninorm/uninorm-filter.c: New file.
86541         * modules/uninorm/filter: New file.
86543 2009-02-21  Bruno Haible  <bruno@clisp.org>
86545         Tests for module 'uninorm/nfkc'.
86546         * tests/uninorm/test-nfkc.c: New file.
86547         * tests/uninorm/test-u8-nfkc.c: New file.
86548         * tests/uninorm/test-u16-nfkc.c: New file.
86549         * tests/uninorm/test-u32-nfkc.c: New file.
86550         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86551         * tests/uninorm/test-u32-nfkc-big.c: New file.
86552         * modules/uninorm/nfkc-tests: New file.
86554         New module 'uninorm/nfkc'.
86555         * lib/uninorm/nfkc.c: New file.
86556         * modules/uninorm/nfkc: New file.
86558         Tests for module 'uninorm/nfkd'.
86559         * tests/uninorm/test-nfkd.c: New file.
86560         * tests/uninorm/test-u8-nfkd.c: New file.
86561         * tests/uninorm/test-u16-nfkd.c: New file.
86562         * tests/uninorm/test-u32-nfkd.c: New file.
86563         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86564         * tests/uninorm/test-u32-nfkd-big.c: New file.
86565         * modules/uninorm/nfkd-tests: New file.
86567         New module 'uninorm/nfkd'.
86568         * lib/uninorm/nfkd.c: New file.
86569         * modules/uninorm/nfkd: New file.
86571         Tests for module 'uninorm/nfc'.
86572         * tests/uninorm/test-nfc.c: New file.
86573         * tests/uninorm/test-u8-nfc.c: New file.
86574         * tests/uninorm/test-u16-nfc.c: New file.
86575         * tests/uninorm/test-u32-nfc.c: New file.
86576         * tests/uninorm/test-u32-nfc-big.sh: New file.
86577         * tests/uninorm/test-u32-nfc-big.c: New file.
86578         * modules/uninorm/nfc-tests: New file.
86580         New module 'uninorm/nfc'.
86581         * lib/uninorm/nfc.c: New file.
86582         * modules/uninorm/nfc: New file.
86584         Tests for module 'uninorm/nfd'.
86585         * tests/uninorm/test-nfd.c: New file.
86586         * tests/uninorm/test-u8-nfd.c: New file.
86587         * tests/uninorm/test-u16-nfd.c: New file.
86588         * tests/uninorm/test-u32-nfd.c: New file.
86589         * tests/uninorm/test-u32-nfd-big.sh: New file.
86590         * tests/uninorm/test-u32-nfd-big.c: New file.
86591         * tests/uninorm/test-u32-normalize-big.h: New file.
86592         * tests/uninorm/test-u32-normalize-big.c: New file.
86593         * tests/uninorm/NormalizationTest.txt: New file, created from
86594         Unicode 5.1.0 NormalizationTest.txt.
86595         * modules/uninorm/nfd-tests: New file.
86597         New module 'uninorm/nfd'.
86598         * lib/uninorm/nfd.c: New file.
86599         * modules/uninorm/nfd: New file.
86601         New module 'uninorm/u32-normalize'.
86602         * lib/uninorm/u32-normalize.c: New file.
86603         * modules/uninorm/u32-normalize: New file.
86605         New module 'uninorm/u16-normalize'.
86606         * lib/uninorm/u16-normalize.c: New file.
86607         * modules/uninorm/u16-normalize: New file.
86609         New module 'uninorm/u8-normalize'.
86610         * lib/uninorm/u8-normalize.c: New file.
86611         * lib/uninorm/normalize-internal.h: New file.
86612         * lib/uninorm/u-normalize-internal.h: New file.
86613         * modules/uninorm/u8-normalize: New file.
86615         New module 'uninorm/decompose-internal'.
86616         * lib/uninorm/decompose-internal.c: New file.
86617         * modules/uninorm/decompose-internal: New file.
86619         Tests for module 'uninorm/composition'.
86620         * tests/uninorm/test-composition.c: New file.
86621         * modules/uninorm/composition-tests: New file.
86623         New module 'uninorm/composition'.
86624         * lib/uninorm/composition.c: New file.
86625         * lib/uninorm/composition-table.gperf: New file, generated by
86626         gen-uni-tables.
86627         * modules/uninorm/composition: New file.
86629         Tests for module 'uninorm/compat-decomposition'.
86630         * tests/uninorm/test-compat-decomposition.c: New file.
86631         * modules/uninorm/compat-decomposition-tests: New file.
86633         New module 'uninorm/compat-decomposition'.
86634         * lib/uninorm/decompose-internal.h: New file.
86635         * lib/uninorm/compat-decomposition.c: New file.
86636         * modules/uninorm/compat-decomposition: New file.
86638         Tests for module 'uninorm/canonical-decomposition'.
86639         * tests/uninorm/test-canonical-decomposition.c: New file.
86640         * modules/uninorm/canonical-decomposition-tests: New file.
86642         New module 'uninorm/canonical-decomposition'.
86643         * lib/uninorm/canonical-decomposition.c: New file.
86644         * modules/uninorm/canonical-decomposition: New file.
86646         Tests for module 'uninorm/decomposition'.
86647         * tests/uninorm/test-decomposition.c: New file.
86648         * modules/uninorm/decomposition-tests: New file.
86650         New module 'uninorm/decomposition'.
86651         * lib/uninorm/decomposition.c: New file.
86652         * modules/uninorm/decomposition: New file.
86654         New module 'uninorm/decomposition-table'.
86655         * lib/uninorm/decomposition-table.h: New file.
86656         * lib/uninorm/decomposition-table.c: New file.
86657         * lib/uninorm/decomposition-table1.h: New file, generated by
86658         gen-uni-tables.
86659         * lib/uninorm/decomposition-table2.h: New file, generated by
86660         gen-uni-tables.
86661         * modules/uninorm/decomposition-table: New file.
86663         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86664         (UC_DECOMP_*): New enumeration items.
86665         (get_decomposition): New function.
86666         (struct decomp_table): New type.
86667         (output_decomposition, output_decomposition_tables): New functions.
86668         (unicode_composition_exclusions): New variable.
86669         (fill_composition_exclusions, debug_output_composition_tables): New
86670         functions.
86671         (main): Accept one more argument. Invoke fill_composition_exclusions.
86672         Output decomposition and composition tables.
86674         New module 'uninorm/base'.
86675         * lib/uninorm.h: New file.
86676         * lib/unictype.h: Update comment.
86677         * modules/uninorm/base: New file.
86679 2009-02-21  David Lutterkort  <lutter@redhat.com>
86681         Tests for module 'safe-alloc'.
86682         * tests/test-safe-alloc.c: New file.
86683         * modules/safe-alloc-tests: New file.
86685         New module 'safe-alloc'.
86686         * lib/safe-alloc.h: New file.
86687         * lib/safe-alloc.c: New file.
86688         * m4/safe-alloc.m4: New file.
86689         * modules/safe-alloc: New file.
86690         * doc/safe-alloc.texi: New file.
86691         * doc/gnulib.texi: Include it.
86692         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86693         safe-alloc.
86695 2009-02-18  Bruno Haible  <bruno@clisp.org>
86697         Fix link error on non-glibc systems.
86698         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86699         variable.
86700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86702 2009-02-18  Jim Meyering  <meyering@redhat.com>
86704         fts: avoid used-uninitialized error due to recent change
86705         * lib/fts.c (fts_read): Guard uses of the new member,
86706         parent->fts_n_dirs_remaining, since it's not relevant for
86707         the parent of a directory specified on the command-line.
86709 2009-02-17  James Youngman  <jay@gnu.org>
86710             Bruno Haible  <bruno@clisp.org>
86712         * m4/include_next.m4: Reformulate comment.
86714 2009-02-16  Jim Meyering  <meyering@redhat.com>
86716         fts: add #if guards so that the fts_lgpl module still builds
86717         * lib/fts.c: Guard just-added hash-table-using parts with
86718         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86719         Reported by Simon Josefsson.
86721 2009-02-15  Bruno Haible  <bruno@clisp.org>
86723         * modules/array-mergesort-tests: New file.
86724         * tests/test-array-mergesort.c: New file.
86726         New module 'array-mergesort'.
86727         * modules/array-mergesort: New file.
86728         * lib/array-mergesort.h: New file.
86730 2009-02-15  Bruno Haible  <bruno@clisp.org>
86732         Fix 2009-02-07 commit.
86733         * lib/gen-uni-tables.c (output_predicate, output_category,
86734         output_combclass, output_bidi_category, output_decimal_digit,
86735         output_digit, output_numeric, output_mirror, output_scripts,
86736         output_ident_category, output_simple_mapping): Fix format directives.
86737         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86739 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86741         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86742         fixes are available from IBM.
86744 2009-02-13  Jim Meyering  <meyering@redhat.com>
86746         fts: arrange not to stat non-directories in more cases
86747         This makes GNU find (when it doesn't need to stat each file)
86748         *much* more efficient at traversing reiserfs file systems.
86749         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86750         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86751         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86752         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86753         (leaf_optimization_applies): New function.
86754         (LCO_hash, LCO_compare): New helper functions.
86755         (link_count_optimize_ok): New function.
86756         (fts_stat): Initialize new member (if dir).
86757         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86758         we've just stat'ed a directory.  Skip the stat call when possible.
86759         ---
86760         Note this AFS-related exchange:
86761         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86762         and note find's pioctl call in find/fstype.c.
86763         But that is necessary only if you want to enable the
86764         optimization for AFS, and for now, I don't.
86766         fts: move a function definition "up" (no semantic change)
86767         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86768         "up" to precede upcoming use of a related function.
86770 2009-02-11  Jim Meyering  <meyering@redhat.com>
86772         fts: correct internal computation of nlinks (optimization-related)
86773         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86774         whether the current entry is a directory, so don't test it.
86776 2009-02-10  Bruno Haible  <bruno@clisp.org>
86778         Tests for module 'uniwbrk/ulc-wordbreaks'.
86779         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86780         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86781         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86783         Tests for module 'uniwbrk/u32-wordbreaks'.
86784         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86785         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86787         Tests for module 'uniwbrk/u16-wordbreaks'.
86788         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86789         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86791         Tests for module 'uniwbrk/u8-wordbreaks'.
86792         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86793         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86795 2009-02-10  Bruno Haible  <bruno@clisp.org>
86797         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86798         property.
86799         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86800         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86801         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86803 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86805         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86806         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86808 2009-02-10  Bruno Haible  <bruno@clisp.org>
86810         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86811         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86812         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86813         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86814         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86815         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86817 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86819         * lib/sockets.h (gl_fd_to_handle): New function.
86821         * tests/test-sockets.c: Call gl_fd_to_handle.
86823 2009-02-09  Bruno Haible  <bruno@clisp.org>
86825         * doc/havelib.texi: Document the conventions on bi-arch systems.
86827 2009-02-08  Bruno Haible  <bruno@clisp.org>
86829         Document the AC_LIB_LINKFLAGS macro.
86830         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86831         * doc/gnulib.texi: Include it.
86833 2009-02-08  Bruno Haible  <bruno@clisp.org>
86835         Fix wrong order of sections, compared to TOC.
86836         * doc/gnulib.texi: Include relocatable-maint.texi after the
86837         "Regular expressions" node, not before.
86839 2009-02-08  Bruno Haible  <bruno@clisp.org>
86841         Tests for module 'unicase/totitle'.
86842         * modules/unicase/totitle-tests: New file.
86844         Tests for module 'unicase/tolower'.
86845         * modules/unicase/tolower-tests: New file.
86847         Tests for module 'unicase/toupper'.
86848         * modules/unicase/toupper-tests: New file.
86849         * tests/unicase/test-mapping-part1.h: New file.
86850         * tests/unicase/test-mapping-part2.h: New file.
86852         New module 'unicase/totitle'.
86853         * modules/unicase/totitle: New file.
86854         * lib/unicase/totitle.c: New file.
86856         New module 'unicase/tolower'.
86857         * modules/unicase/tolower: New file.
86858         * lib/unicase/tolower.c: New file.
86860         New module 'unicase/toupper'.
86861         * modules/unicase/toupper: New file.
86862         * lib/unicase/toupper.c: New file.
86863         * lib/unicase/simple-mapping.h: New file.
86865         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86866         (mapping_table): New structure.
86867         (output_simple_mapping): New function.
86868         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86869         * modules/gen-uni-tables (Description): Update.
86870         * lib/unicase/toupper.h: New file, automatically generated by
86871         gen-uni-tables.
86872         * lib/unicase/tolower.h: New file, automatically generated by
86873         gen-uni-tables.
86874         * lib/unicase/totitle.h: New file, automatically generated by
86875         gen-uni-tables.
86876         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86877         gen-uni-tables.
86878         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86879         gen-uni-tables.
86880         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86881         gen-uni-tables.
86883         New module 'unicase/base'.
86884         * modules/unicase/base: New file.
86885         * lib/unicase.h: New file.
86887 2009-02-08  Bruno Haible  <bruno@clisp.org>
86889         New module 'uniwbrk/ulc-wordbreaks'.
86890         * modules/uniwbrk/ulc-wordbreaks: New file.
86891         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86893         New module 'uniwbrk/u32-wordbreaks'.
86894         * modules/uniwbrk/u32-wordbreaks: New file.
86895         * lib/uniwbrk/u32-wordbreaks.c: New file.
86897         New module 'uniwbrk/u16-wordbreaks'.
86898         * modules/uniwbrk/u16-wordbreaks: New file.
86899         * lib/uniwbrk/u16-wordbreaks.c: New file.
86901         New module 'uniwbrk/u8-wordbreaks'.
86902         * modules/uniwbrk/u8-wordbreaks: New file.
86903         * lib/uniwbrk/u8-wordbreaks.c: New file.
86904         * lib/uniwbrk/u-wordbreaks.h: New file.
86906         New module 'uniwbrk/table'.
86907         * modules/uniwbrk/table: New file.
86908         * lib/uniwbrk/wbrktable.h: New file.
86909         * lib/uniwbrk/wbrktable.c: New file.
86911         New module 'uniwbrk/wordbreak-property'.
86912         * modules/uniwbrk/wordbreak-property: New file.
86913         * lib/uniwbrk/wordbreak-property.c: New file.
86915         * lib/gen-uni-tables.c (WBP_*): New enum items.
86916         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86917         (unicode_org_wbp): New variable.
86918         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86919         New functions.
86920         (wbp_table): New structure.
86921         (output_wbp, output_wbrk_tables): New functions.
86922         (main): Accept additional argument. Invoke fill_org_wbp,
86923         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86924         output_wbrk_tables.
86925         * modules/gen-uni-tables (Description): Update.
86926         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86927         gen-uni-tables.
86929         New module 'uniwbrk/base'.
86930         * modules/uniwbrk/base: New file.
86931         * lib/uniwbrk.h: New file.
86933 2009-02-08  Bruno Haible  <bruno@clisp.org>
86935         Update to Unicode 5.1.0.
86936         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86937         U+2185..U+2188.
86938         (is_property_default_ignorable_code_point): Don't include characters
86939         of category Cc or Cs and not-a-characters.
86940         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86941         U+0D79, U+109E, U+109F, U+A60C.
86942         * lib/unictype/bidi_of.h: Regenerated.
86943         * lib/unictype/blocks.h: Regenerated.
86944         * lib/unictype/categ_C.h: Regenerated.
86945         * lib/unictype/categ_Cf.h: Regenerated.
86946         * lib/unictype/categ_Cn.h: Regenerated.
86947         * lib/unictype/categ_L.h: Regenerated.
86948         * lib/unictype/categ_Ll.h: Regenerated.
86949         * lib/unictype/categ_Lm.h: Regenerated.
86950         * lib/unictype/categ_Lo.h: Regenerated.
86951         * lib/unictype/categ_Lu.h: Regenerated.
86952         * lib/unictype/categ_M.h: Regenerated.
86953         * lib/unictype/categ_Mc.h: Regenerated.
86954         * lib/unictype/categ_Me.h: Regenerated.
86955         * lib/unictype/categ_Mn.h: Regenerated.
86956         * lib/unictype/categ_N.h: Regenerated.
86957         * lib/unictype/categ_Nd.h: Regenerated.
86958         * lib/unictype/categ_Nl.h: Regenerated.
86959         * lib/unictype/categ_No.h: Regenerated.
86960         * lib/unictype/categ_P.h: Regenerated.
86961         * lib/unictype/categ_Pd.h: Regenerated.
86962         * lib/unictype/categ_Pe.h: Regenerated.
86963         * lib/unictype/categ_Pf.h: Regenerated.
86964         * lib/unictype/categ_Pi.h: Regenerated.
86965         * lib/unictype/categ_Po.h: Regenerated.
86966         * lib/unictype/categ_Ps.h: Regenerated.
86967         * lib/unictype/categ_S.h: Regenerated.
86968         * lib/unictype/categ_Sk.h: Regenerated.
86969         * lib/unictype/categ_Sm.h: Regenerated.
86970         * lib/unictype/categ_So.h: Regenerated.
86971         * lib/unictype/categ_of.h: Regenerated.
86972         * lib/unictype/combining.h: Regenerated.
86973         * lib/unictype/ctype_alnum.h: Regenerated.
86974         * lib/unictype/ctype_alpha.h: Regenerated.
86975         * lib/unictype/ctype_graph.h: Regenerated.
86976         * lib/unictype/ctype_lower.h: Regenerated.
86977         * lib/unictype/ctype_print.h: Regenerated.
86978         * lib/unictype/ctype_punct.h: Regenerated.
86979         * lib/unictype/ctype_upper.h: Regenerated.
86980         * lib/unictype/decdigit.h: Regenerated.
86981         * lib/unictype/digit.h: Regenerated.
86982         * lib/unictype/mirror.h: Regenerated.
86983         * lib/unictype/numeric.h: Regenerated.
86984         * lib/unictype/pr_alphabetic.h: Regenerated.
86985         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86986         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86987         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86988         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86989         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86990         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86991         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86992         * lib/unictype/pr_combining.h: Regenerated.
86993         * lib/unictype/pr_dash.h: Regenerated.
86994         * lib/unictype/pr_decimal_digit.h: Regenerated.
86995         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86996         * lib/unictype/pr_deprecated.h: Regenerated.
86997         * lib/unictype/pr_diacritic.h: Regenerated.
86998         * lib/unictype/pr_extender.h: Regenerated.
86999         * lib/unictype/pr_format_control.h: Regenerated.
87000         * lib/unictype/pr_grapheme_base.h: Regenerated.
87001         * lib/unictype/pr_grapheme_extend.h: Regenerated.
87002         * lib/unictype/pr_grapheme_link.h: Regenerated.
87003         * lib/unictype/pr_id_continue.h: Regenerated.
87004         * lib/unictype/pr_id_start.h: Regenerated.
87005         * lib/unictype/pr_ideographic.h: Regenerated.
87006         * lib/unictype/pr_ignorable_control.h: Regenerated.
87007         * lib/unictype/pr_lowercase.h: Regenerated.
87008         * lib/unictype/pr_math.h: Regenerated.
87009         * lib/unictype/pr_numeric.h: Regenerated.
87010         * lib/unictype/pr_other_alphabetic.h: Regenerated.
87011         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
87012         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
87013         * lib/unictype/pr_other_id_continue.h: Regenerated.
87014         * lib/unictype/pr_other_lowercase.h: Regenerated.
87015         * lib/unictype/pr_other_math.h: Regenerated.
87016         * lib/unictype/pr_punctuation.h: Regenerated.
87017         * lib/unictype/pr_sentence_terminal.h: Regenerated.
87018         * lib/unictype/pr_soft_dotted.h: Regenerated.
87019         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
87020         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
87021         * lib/unictype/pr_unified_ideograph.h: Regenerated.
87022         * lib/unictype/pr_uppercase.h: Regenerated.
87023         * lib/unictype/pr_xid_continue.h: Regenerated.
87024         * lib/unictype/pr_xid_start.h: Regenerated.
87025         * lib/unictype/pr_zero_width.h: Regenerated.
87026         * lib/unictype/scripts.h: Regenerated.
87027         * lib/unictype/scripts_byname.gperf: Regenerated.
87028         * lib/unictype/sy_java_ident.h: Regenerated.
87029         * lib/unilbrk/lbrkprop1.h: Regenerated.
87030         * lib/unilbrk/lbrkprop2.h: Regenerated.
87031         * tests/unictype/test-categ_C.c: Regenerated.
87032         * tests/unictype/test-categ_Cf.c: Regenerated.
87033         * tests/unictype/test-categ_Cn.c: Regenerated.
87034         * tests/unictype/test-categ_L.c: Regenerated.
87035         * tests/unictype/test-categ_Ll.c: Regenerated.
87036         * tests/unictype/test-categ_Lm.c: Regenerated.
87037         * tests/unictype/test-categ_Lo.c: Regenerated.
87038         * tests/unictype/test-categ_Lu.c: Regenerated.
87039         * tests/unictype/test-categ_M.c: Regenerated.
87040         * tests/unictype/test-categ_Mc.c: Regenerated.
87041         * tests/unictype/test-categ_Me.c: Regenerated.
87042         * tests/unictype/test-categ_Mn.c: Regenerated.
87043         * tests/unictype/test-categ_N.c: Regenerated.
87044         * tests/unictype/test-categ_Nd.c: Regenerated.
87045         * tests/unictype/test-categ_Nl.c: Regenerated.
87046         * tests/unictype/test-categ_No.c: Regenerated.
87047         * tests/unictype/test-categ_P.c: Regenerated.
87048         * tests/unictype/test-categ_Pd.c: Regenerated.
87049         * tests/unictype/test-categ_Pe.c: Regenerated.
87050         * tests/unictype/test-categ_Pf.c: Regenerated.
87051         * tests/unictype/test-categ_Pi.c: Regenerated.
87052         * tests/unictype/test-categ_Po.c: Regenerated.
87053         * tests/unictype/test-categ_Ps.c: Regenerated.
87054         * tests/unictype/test-categ_S.c: Regenerated.
87055         * tests/unictype/test-categ_Sk.c: Regenerated.
87056         * tests/unictype/test-categ_Sm.c: Regenerated.
87057         * tests/unictype/test-categ_So.c: Regenerated.
87058         * tests/unictype/test-ctype_alnum.c: Regenerated.
87059         * tests/unictype/test-ctype_alpha.c: Regenerated.
87060         * tests/unictype/test-ctype_graph.c: Regenerated.
87061         * tests/unictype/test-ctype_lower.c: Regenerated.
87062         * tests/unictype/test-ctype_print.c: Regenerated.
87063         * tests/unictype/test-ctype_punct.c: Regenerated.
87064         * tests/unictype/test-ctype_upper.c: Regenerated.
87065         * tests/unictype/test-decdigit.h: Regenerated.
87066         * tests/unictype/test-digit.h: Regenerated.
87067         * tests/unictype/test-numeric.h: Regenerated.
87068         * tests/unictype/test-pr_alphabetic.c: Regenerated.
87069         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
87070         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
87071         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
87072         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
87073         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
87074         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
87075         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
87076         * tests/unictype/test-pr_combining.c: Regenerated.
87077         * tests/unictype/test-pr_dash.c: Regenerated.
87078         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
87079         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
87080         * tests/unictype/test-pr_deprecated.c: Regenerated.
87081         * tests/unictype/test-pr_diacritic.c: Regenerated.
87082         * tests/unictype/test-pr_extender.c: Regenerated.
87083         * tests/unictype/test-pr_format_control.c: Regenerated.
87084         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
87085         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
87086         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
87087         * tests/unictype/test-pr_id_continue.c: Regenerated.
87088         * tests/unictype/test-pr_id_start.c: Regenerated.
87089         * tests/unictype/test-pr_ideographic.c: Regenerated.
87090         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
87091         * tests/unictype/test-pr_lowercase.c: Regenerated.
87092         * tests/unictype/test-pr_math.c: Regenerated.
87093         * tests/unictype/test-pr_numeric.c: Regenerated.
87094         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
87095         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
87096         Regenerated.
87097         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
87098         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
87099         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
87100         * tests/unictype/test-pr_other_math.c: Regenerated.
87101         * tests/unictype/test-pr_punctuation.c: Regenerated.
87102         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
87103         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
87104         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
87105         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
87106         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
87107         * tests/unictype/test-pr_uppercase.c: Regenerated.
87108         * tests/unictype/test-pr_xid_continue.c: Regenerated.
87109         * tests/unictype/test-pr_xid_start.c: Regenerated.
87110         * tests/unictype/test-pr_zero_width.c: Regenerated.
87112         Update to Unicode 5.1.0.
87113         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
87114         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
87115         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
87116         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
87117         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
87118         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
87119         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
87120         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
87121         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
87122         (nonspacing_table_ind): Update.
87123         * tests/uniwidth/test-uc_width2.sh: Update expected result.
87125         Update to Unicode 5.1.0.
87126         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
87127         code transform.
87128         * lib/uniname/uniname.c (unicode_character_name,
87129         unicode_name_character): Add the range 0x1Fxxx to the code transform.
87130         * lib/uniname/uninames.h: Regenerated.
87131         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
87133 2009-02-07  Bruno Haible  <bruno@clisp.org>
87135         Merge gen-ctype and gen-lbrk into a single program.
87136         * lib/gen-uni-tables.c: New file, incorporating
87137         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
87138         Add directory prefixes to the names of the generated files.
87139         * lib/unictype/gen-ctype.c: Remove file.
87140         * lib/unilbrk/gen-lbrk.c: Remove file.
87141         * modules/gen-uni-tables: New file.
87142         * modules/unictype/gen-ctype: Remove file.
87143         * modules/unilbrk/gen-lbrk: Remove file.
87145 2009-02-07  Bruno Haible  <bruno@clisp.org>
87147         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
87149         New module 'unistr/u32-strcoll'.
87150         * modules/unistr/u32-strcoll: New file.
87151         * lib/unistr/u32-strcoll.c: New file.
87153         New module 'unistr/u16-strcoll'.
87154         * modules/unistr/u16-strcoll: New file.
87155         * lib/unistr/u16-strcoll.c: New file.
87157         New module 'unistr/u8-strcoll'.
87158         * modules/unistr/u8-strcoll: New file.
87159         * lib/unistr/u8-strcoll.c: New file.
87160         * lib/unistr/u-strcoll.h: New file.
87162 2009-02-07  Bruno Haible  <bruno@clisp.org>
87164         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
87165         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87166         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87167         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
87168         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
87169         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
87171 2009-02-07  Bruno Haible  <bruno@clisp.org>
87173         Make 64-bit clean.
87174         * lib/unictype/gen-ctype.c (output_predicate, output_category,
87175         output_combclass, output_bidi_category, output_decimal_digit,
87176         output_digit, output_numeric, output_mirror, output_scripts,
87177         output_ident_category): Use proper width specifier in format strings.
87179 2009-02-07  Bruno Haible  <bruno@clisp.org>
87181         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
87182         failure behaviour.
87184 2009-02-07  Jim Meyering  <meyering@redhat.com>
87186         regex: avoid compilation failure with upcoming gcc-4.4
87187         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
87188         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
87189         "... error: integer overflow in preprocessor expression".
87191 2009-02-05  Ben Pfaff  <blp@gnu.org>
87193         Fix link errors on Windows when close module is used.
87194         * modules/close: Add $(LIB_CLOSE) to Link section.
87195         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
87196         $(LIB_CLOSE) on Windows.
87198 2009-02-05  Jim Meyering  <meyering@redhat.com>
87200         still avoid unused-parameter warnings, but do it cleanly
87201         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
87202         (get_fs_usage): Cast to void instead.
87203         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
87204         (dev_from_mount_options, read_file_system_list): Cast to void.
87205         Prompted by Bruno Haible.
87207 2009-02-04  Jim Meyering  <meyering@redhat.com>
87209         fsusage.c: correct copyright year
87210         * lib/fsusage.c: Reflect year in which the change is pushed into
87212         avoid misc. warnings
87213         * lib/fsusage.c (UNUSED_PARAM): Define.
87214         (get_fs_usage): Mark parameter "disk" as unused.
87215         * lib/getugroups.c (getgrent): Use "void" in prototype.
87216         * lib/mountlist.c: Mark unused parameters.
87217         (read_file_system_list): Declare a local with "const".
87218         * lib/nanosleep.c (getnow): Declare static.
87219         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
87221         dirfd: set errno upon failure
87222         * lib/dirfd.c: Include <errno.h>.
87223         Set errno to ENOTSUP when returning -1.
87224         * modules/dirfd (Depends-on): Add errno.
87225         Suggested by John Kodis <kodis@comcast.net>.
87227 2009-02-01  Bruno Haible  <bruno@clisp.org>
87229         Don't assume sizeof (long) >= sizeof (void *).
87230         * lib/memcmp.c: Include stdint.h.
87231         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
87232         srcp2 to 'const byte *'.
87233         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
87234         types to uintptr_t.
87235         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
87236         * modules/memcmp (Depends-on): Add stdint.
87237         Reported by Ozkan Sezer <sezeroz@gmail.com>.
87239 2009-01-30  Eric Blake  <ebb9@byu.net>
87241         fix more require-before-expand issues
87242         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
87243         expand, AC_PROG_AWK.
87244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
87246 2009-01-28  Eric Blake  <ebb9@byu.net>
87248         version-etc: use consistent URL formatting
87249         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
87250         Improve formatting.  Use fputs for string without %.
87252 2009-01-28  Jim Meyering  <meyering@redhat.com>
87254         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
87255         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
87256         "underquoted definition of NAME" from autoconf-2.59.
87258 2009-01-28  Bruno Haible  <bruno@clisp.org>
87260         * doc/gnulib.texi: Add "Obsolete modules" to index.
87262 2009-01-28  Jim Meyering  <meyering@redhat.com>
87264         useless-if-before-free: recognize more variants
87265         * build-aux/useless-if-before-free: Also recognize e.g.,
87266         if (NULL != p) free (p);
87268 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
87270         test-getaddrinfo: skip (don't fail) this test when there's no network
87271         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
87272         on the presumption that it means you lack network access.
87274 2009-01-26  Jim Meyering  <meyering@redhat.com>
87276         fflush: avoid warnings on modern systems
87277         * lib/fflush.c (rpl_fflush): Move declarations of locals,
87278         pos and result, into scopes where they're used.
87280 2009-01-26  Eric Blake  <ebb9@byu.net>
87282         Silence warning reintroduced by recent extensions patch.
87283         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
87284         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
87285         autoconf.
87287         Backport improved autoconf semantics of AC_DEFUN_ONCE.
87288         * m4/00gnulib.m4: New file.
87289         * gnulib-tool (func_get_filelist): Always use it.
87290         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
87291         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
87293 2009-01-25  Bruno Haible  <bruno@clisp.org>
87295         Make test-quotearg work on MacOS X and AIX.
87296         * tests/test-quotearg.sh: New file.
87297         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
87298         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
87299         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
87300         include <libintl.h>.
87301         (fake_locale): Remove variable.
87302         (gettext, dgettext, dcgettext): Remove functions.
87303         (main): Instead of setting a fake locale, set a real locale. Call
87304         textdomain and bindtextdomain.
87305         * modules/quotearg-tests (Files): Add the new files.
87306         (Depends-on): Add gettext, setenv, unsetenv.
87307         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87308         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
87309         Augment TESTS_ENVIRONMENT.
87311 2009-01-25  Bruno Haible  <bruno@clisp.org>
87313         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
87314         fr_FR.ISO8859-1 locale on MacOS X.
87315         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
87316         ja_JP.eucJP locale on MacOS X.
87317         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
87318         zh_CN.GB18030 locale on MacOS X.
87320 2009-01-25  Bruno Haible  <bruno@clisp.org>
87322         Avoid link errors on MacOS X 10.3.
87323         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
87324         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
87326 2009-01-25  Bruno Haible  <bruno@clisp.org>
87328         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87329         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
87330         * modules/pipe (Files): Remove m4/posix_spawn.m4.
87331         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87332         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
87333         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87334         posix_spawnattr_init, posix_spawnattr_setsigmask,
87335         posix_spawnattr_setflags, posix_spawnattr_destroy.
87337         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87338         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
87339         * modules/execute (Files): Remove m4/posix_spawn.m4.
87340         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87341         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87342         posix_spawnattr_init, posix_spawnattr_setsigmask,
87343         posix_spawnattr_setflags, posix_spawnattr_destroy.
87345 2009-01-25  Bruno Haible  <bruno@clisp.org>
87347         * lib/glthread/threadlib.c: Include <stdlib.h>.
87349 2009-01-25  Bruno Haible  <bruno@clisp.org>
87351         * lib/glthread/threadlib.c (dummy): New declaration.
87353 2009-01-25  Bruno Haible  <bruno@clisp.org>
87355         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
87356         multibyte characters also for the GB18030 encoding. Don't crash when
87357         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
87359 2009-01-25  Bruno Haible  <bruno@clisp.org>
87361         Avoid redefining 'struct random_data' on OSF/1 5.1.
87362         * lib/stdlib.in.h: Include <random.h> if it exists.
87363         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
87364         HAVE_RANDOM_H. Include <random.h> when testing whether
87365         'struct random_data' exists.
87366         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
87368 2009-01-25  Bruno Haible  <bruno@clisp.org>
87370         Don't install charset.alias on MacOS X >= 10.3.
87371         * lib/localcharset.c (DARWIN7): New macro.
87372         (get_charset_aliases): Hardcode the result for Darwin7.
87373         * modules/localcharset (install-exec-local): Don't install
87374         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
87376 2009-01-25  Bruno Haible  <bruno@clisp.org>
87378         Don't install charset.alias on mingw and Cygwin.
87379         * modules/localcharset (install-exec-local): Don't install
87380         charset.alias on mingw and Cygwin, if the file does not yet exist.
87381         The result for these platforms is hardcoded in localcharset.c.
87383 2009-01-25  Bruno Haible  <bruno@clisp.org>
87385         Make it possible again to use AC_GNU_SOURCE together with gnulib.
87386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
87387         before requiring AC_USE_SYSTEM_EXTENSIONS.
87389 2009-01-25  Jim Meyering  <meyering@redhat.com>
87391         c-strtod: avoid warnings
87392         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
87393         "assignment discards qualifiers from pointer target type" warnings.
87395 2009-01-24  Bruno Haible  <bruno@clisp.org>
87397         Add support for non-UTF-8 locales on MacOS X.
87398         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
87399         canonical encodings. For Darwin 7 and newer, don't map traditional
87400         encodings to UTF-8.
87401         Reported by Vincent Lefevre <vincent@vinc17.org>
87402         at <http://savannah.gnu.org/bugs/?25235>.
87404 2009-01-24  Bruno Haible  <bruno@clisp.org>
87406         * doc/gnulib.texi (Obsolete modules): New section.
87407         Reported by Mike Frysinger <vapier@gentoo.org>.
87409 2009-01-24  Bruno Haible  <bruno@clisp.org>
87411         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
87412         (%.dvi): New rule.
87414 2009-01-24  Bruno Haible  <bruno@clisp.org>
87416         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
87417         Reported by Eric Blake.
87419 2009-01-24  Bruno Haible  <bruno@clisp.org>
87421         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87422         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87423         Reported by Gary V. Vaughan <gary@gnu.org>.
87425 2009-01-24  Bruno Haible  <bruno@clisp.org>
87427         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87429 2009-01-23  Bruno Haible  <bruno@clisp.org>
87431         Make c-strtod, c-strtold usable in libraries.
87432         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87433         (C_STRTOD): Call strdup instead of xstrdup.
87434         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87435         * modules/c-strtold (Depends-on): Likewise.
87436         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87437         * NEWS: Mention the change.
87438         Reported by Michael Gold <mgold@ncf.ca>.
87440 2009-01-23  Jim Meyering  <meyering@redhat.com>
87442         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87443         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87444         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87446 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87448         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87449         GNU CoreUtils.
87450         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87451         * modules/version-etc (Description): Update.
87453 2009-01-22  Bruno Haible  <bruno@clisp.org>
87455         Cache the C locale object.
87456         * lib/c-strtod.c (c_locale_cache): New variable.
87457         (c_locale): New function.
87458         (C_STRTOD): Use it, and don't call freelocale.
87459         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87460         Suggested by Paolo Bonzini.
87462 2009-01-21  Bruno Haible  <bruno@clisp.org>
87464         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87465         conditions other than overflow.
87467 2009-01-21  Bruno Haible  <bruno@clisp.org>
87469         * lib/c-strtod.c: Include errno.h.
87470         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87471         value from STRTOD_L and STRTOD.
87473 2009-01-21  Bruno Haible  <bruno@clisp.org>
87474         and Jim Meyering  <meyering@redhat.com>
87476         nanosleep: skip configure test (fail it) for apple universal builds
87477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87478         universal builds, assume that nanosleep does not work.
87479         * modules/nanosleep (Depends-on): Add multiarch.
87481         mktime: skip configure test (fail it) for apple universal builds
87482         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87483         universal builds, assume that mktime does not work.
87484         * modules/mktime (Depends-on): Add multiarch.
87486 2009-01-21  Eric Blake  <ebb9@byu.net>
87488         multiarch: avoid expand-before-require warning
87489         * modules/multiarch (configure.ac): Require, rather than expand,
87490         gl_MULTIARCH.
87491         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87492         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87493         enforce that all clients require it.  Partial reversion of
87494         2008-12-29 patch.
87496         error: avoid expand-before-require warning
87497         * modules/errno (configure.ac): Require, rather than expand,
87498         gl_HEADER_ERRNO_H.
87499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87500         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87501         enforce that all clients require it.
87503         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87504         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87505         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87506         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87508 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87510         Revert:
87511         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87513         regex: do not depend on obsolete modules.
87514         * modules/regex: Remove memcmp and memmove.
87516 2009-01-20  Bruno Haible  <bruno@clisp.org>
87518         Make the 'link' module link on Windows NT 4.
87519         * lib/link.c (_WIN32_WINNT): Don't define.
87520         (CreateHardLinkFuncType): New type.
87521         (CreateHardLinkFunc, initialized): New variables.
87522         (initialize): New function.
87523         (link): Invoke CreateHardLink indirectly through the function pointer.
87525 2009-01-20  Bruno Haible  <bruno@clisp.org>
87527         Fix compilation failure on mingw.
87528         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87530 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87532         * doc/c-strtod.texi: Mention a couple of restrictions.
87534 2009-01-20  Jim Meyering  <meyering@redhat.com>
87536         gettimeofday: move more declarations out of functions
87537         * lib/gettimeofday.c: Move extern declarations of tzset and
87538         gmtime out of containing functions.  Prompted by Bruno Haible.
87540 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87542         regex: do not depend on obsolete modules.
87543         * modules/regex: Remove memcmp and memmove.
87545 2009-01-19  Bruno Haible  <bruno@clisp.org>
87547         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87548         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87549         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87550         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87551         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87553 2009-01-19  Bruno Haible  <bruno@clisp.org>
87555         * tests/test-link.c: Include <errno.h>.
87556         (main): Exit with code 77 when a hard link cannot be created due to
87557         the file system.
87558         * tests/test-link.sh: Skip test when a hard link cannot be created due
87559         to the file system.
87560         Suggested by Eric Blake.
87562 2009-01-19  Martin Lambers  <marlam@marlam.de>
87564         * modules/link-tests: New file.
87565         * tests/test-link.sh: New file.
87566         * tests/test-link.c: New file.
87568 2009-01-19  Eric Blake  <ebb9@byu.net>
87570         doc: mention another function added in cygwin 1.7.0
87571         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87572         Another new function in cygwin 1.7.
87574 2009-01-19  Bruno Haible  <bruno@clisp.org>
87576         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87577         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87578         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87579         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87580         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87581         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87582         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87583         * m4/md4.m4 (gl_MD4): Likewise.
87584         * m4/md5.m4 (gl_MD5): Likewise.
87585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87586         * m4/sha1.m4 (gl_SHA1): Likewise.
87587         * m4/sha256.m4 (gl_SHA256): Likewise.
87588         * m4/sha512.m4 (gl_SHA512): Likewise.
87590 2009-01-19  Bruno Haible  <bruno@clisp.org>
87592         * modules/uniname/uniname-tests (Depends-on): Add progname.
87593         * tests/uniname/test-uninames.c: Include progname.h.
87594         (main): Call set_program_name.
87596         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87597         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87598         (main): Call set_program_name.
87600         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87601         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87602         (main): Call set_program_name.
87604         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87605         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87606         (main): Call set_program_name.
87608         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87609         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87610         (main): Call set_program_name.
87612         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87613         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87614         (main): Call set_program_name.
87616         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87617         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87618         (main): Call set_program_name.
87620         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87621         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87622         (main): Call set_program_name.
87624         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87625         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87626         (main): Call set_program_name.
87628 2009-01-19  Eric Blake  <ebb9@byu.net>
87630         test-unistd: test previous patch
87631         * tests/test-unistd.c: Test *_FILENO macros.
87633         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87634         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87635         Guarantee a definition.
87636         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87637         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87638         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87639         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87640         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87641         Likewise.
87642         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87643         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87644         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87645         Likewise.
87646         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87647         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87648         (STDERR_FILENO): Likewise.
87649         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87650         (STDERR_FILENO): Likewise.
87651         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87652         (STDERR_FILENO): Likewise.
87653         Reported by Elbert Pol.
87655 2009-01-19  Eric Blake  <ebb9@byu.net>
87657         doc: mention more functions added in cygwin 1.7.0
87658         * doc/posix-functions/abort.texi (abort): Update wording related
87659         to cygwin.
87660         * doc/posix-functions/daylight.texi (daylight): Likewise.
87661         * doc/posix-functions/optarg.texi (optarg): Likewise.
87662         * doc/posix-functions/optarg.texi (opterr): Likewise.
87663         * doc/posix-functions/optarg.texi (optind): Likewise.
87664         * doc/posix-functions/optarg.texi (optopt): Likewise.
87665         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87666         worked in 1.5.x, and was withdrawn in 1.7.
87667         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87668         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87669         cygwin versions.
87670         * doc/posix-functions/perror.texi (perror): Likewise.
87671         * doc/posix-functions/printf.texi (printf): Likewise.
87672         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87673         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87674         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87675         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87676         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87677         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87678         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87679         Likewise.
87680         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87681         Likewise.
87682         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87683         this function.
87684         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87685         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87686         Likewise.
87687         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87688         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87689         * doc/posix-functions/confstr.texi (confstr): Likewise.
87690         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87691         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87692         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87693         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87694         * doc/posix-functions/fputws.texi (fputws): Likewise.
87695         * doc/posix-functions/fwide.texi (fwide): Likewise.
87696         * doc/posix-functions/getwc.texi (getwc): Likewise.
87697         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87698         * doc/posix-functions/putwc.texi (putwc): Likewise.
87699         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87700         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87701         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87702         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87703         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87704         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87705         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87706         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87707         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87708         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87709         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87711 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87713         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87714         * lib/ioctl.c: Include <sys/ioctl.h>.
87716 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87718         * modules/getdate-tests (Depends-on): Add progname.
87719         * tests/test-getdate.c: Use progname module, to avoid link errors
87720         on non-glibc systems.
87722 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87724         * modules/filenamecat-tests (Depends-on): Add progname.
87725         * modules/fstrcmp-tests (Depends-on): Likewise.
87727         * tests/test-filenamecat.c: Use progname module, to avoid link
87728         errors on non-glibc systems.
87729         * tests/test-fstrcmp.c: Likewise.
87731 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87733         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87734         * lib/gettimeofday.c: Move extern declaration out of function.
87736 2009-01-18  Bruno Haible  <bruno@clisp.org>
87738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87739         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87740         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87742 2009-01-18  Bruno Haible  <bruno@clisp.org>
87744         * lib/strftime.c (MEMPCPY): Remove unused macro.
87745         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87747 2009-01-18  Martin Lambers  <marlam@marlam.de>
87749         New module 'link'.
87750         * lib/unistd.in.h (link): New declaration.
87751         * lib/link.c: New file.
87752         * m4/link.m4: New file.
87753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87754         HAVE_LINK.
87755         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87756         * modules/link: New file.
87757         * doc/posix-functions/link.texi: Mention the new module.
87759 2009-01-18  Bruno Haible  <bruno@clisp.org>
87761         * tests/test-avltree_list.c (main): Call set_program_name.
87762         * tests/test-avltree_oset.c (main): Likewise.
87763         * tests/test-obstack-printf.c: Include progname.h.
87764         (main): Call set_program_name.
87765         * tests/test-quotearg.c: Include progname.h.
87766         (main): Call set_program_name.
87767         * tests/test-xmemdup0.c: Include progname.h.
87768         (main): Call set_program_name.
87770 2009-01-18  Bruno Haible  <bruno@clisp.org>
87772         New module 'alphasort'.
87773         * lib/dirent.in.h (alphasort): New declaration.
87774         * lib/alphasort.c: New file, from glibc with modifications.
87775         * m4/alphasort.m4: New file.
87776         * modules/alphasort: New file.
87777         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87778         HAVE_ALPHASORT.
87779         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87780         HAVE_ALPHASORT.
87781         * doc/posix-functions/alphasort.texi: Mention the new module and the
87782         portability problems.
87784 2009-01-18  Bruno Haible  <bruno@clisp.org>
87786         New module 'scandir'.
87787         * lib/dirent.in.h (scandir): New declaration.
87788         * lib/scandir.c: New file, from glibc with modifications.
87789         * m4/scandir.m4: New file.
87790         * modules/scandir: New file.
87791         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87792         HAVE_SCANDIR.
87793         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87794         HAVE_SCANDIR.
87795         * doc/posix-functions/scandir.texi: Mention the new module and the
87796         portability problems.
87798 2009-01-17  Bruno Haible  <bruno@clisp.org>
87800         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87801         Update documentation.
87802         (func_remove_suffix): Escape all dots in the suffix. Update
87803         documentation.
87804         (func_filter_filelist): Update documentation.
87805         Reported by Ralf Wildenhues.
87807 2009-01-17  Bruno Haible  <bruno@clisp.org>
87809         * modules/dprintf-posix-tests: New file.
87810         * tests/test-dprintf-posix.sh: New file.
87811         * tests/test-dprintf-posix.c: New file.
87813         New modules 'dprintf', 'dprintf-posix'.
87814         * lib/stdio.in.h (dprintf): New declaration.
87815         * lib/dprintf.c: New file.
87816         * m4/dprintf.m4: New file.
87817         * m4/dprintf-posix.m4: New file.
87818         * modules/dprintf: New file.
87819         * modules/dprintf-posix: New file.
87820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87821         HAVE_DPRINTF, REPLACE_DPRINTF.
87822         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87823         HAVE_DPRINTF, REPLACE_DPRINTF.
87824         * doc/posix-functions/dprintf.texi: Mention the new modules.
87826 2009-01-17  Bruno Haible  <bruno@clisp.org>
87828         * modules/vdprintf-posix-tests: New file.
87829         * tests/test-vdprintf-posix.sh: New file.
87830         * tests/test-vdprintf-posix.c: New file.
87832         New modules 'vdprintf', 'vdprintf-posix'.
87833         * lib/stdio.in.h (vdprintf): New declaration.
87834         * lib/vdprintf.c: New file.
87835         * m4/vdprintf.m4: New file.
87836         * m4/vdprintf-posix.m4: New file.
87837         * modules/vdprintf: New file.
87838         * modules/vdprintf-posix: New file.
87839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87840         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87841         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87842         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87843         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87845 2009-01-17  Bruno Haible  <bruno@clisp.org>
87847         Fix replacement of fopen on mingw.
87848         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87849         mingw.
87851 2009-01-17  Bruno Haible  <bruno@clisp.org>
87853         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87854         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87856 2009-01-17  Bruno Haible  <bruno@clisp.org>
87858         Avoid test-fflush2.sh failure on mingw.
87859         * tests/test-fflush2.c: Include binary-io.h.
87860         (main): Put standard input into binary mode.
87861         * modules/fflush-tests (Depends-on): Add binary-io.
87863 2009-01-17  Bruno Haible  <bruno@clisp.org>
87865         * lib/wchar.in.h: In another particular situation, include only the
87866         system's <wchar.h> file.
87867         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87868         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87869         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87871 2009-01-17  Bruno Haible  <bruno@clisp.org>
87873         Support for stripping executables in --enable-relocatable.
87874         * build-aux/install-reloc: Expect one more argument, or an environment
87875         variable RELOC_STRIP_PROG. If set, strip the destination program and
87876         its wrapper.
87877         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87878         RELOC_STRIP_PROG.
87879         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87880         to set RELOCATABLE_STRIP.
87881         * NEWS: Mention the new Makefile requirement.
87883 2009-01-17  Bruno Haible  <bruno@clisp.org>
87885         * build-aux/install-reloc: Remove debugging information left over by
87886         C compiler on MacOS X.
87888 2009-01-17  Bruno Haible  <bruno@clisp.org>
87890         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87891         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87892         _NSGetExecutablePath.
87894 2009-01-16  Jim Meyering  <meyering@redhat.com>
87896         strerror: avoid warnings about discarding "const"
87897         * lib/strerror.c (rpl_strerror): Instead of returning a const
87898         string from each and every "case", use a variable, and add a single
87899         cast after the switch.
87901 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87903         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87905 2009-01-16  Bruno Haible  <bruno@clisp.org>
87907         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87908         array initializer syntax that also works in C++ mode.
87909         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87911 2009-01-16  Jim Meyering  <meyering@redhat.com>
87913         poll: suppress a warning
87914         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87915         to ignore "...unsigned expression < 0 is always false" warnings.
87917 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87919         poll: remove declarations of unused variables
87920         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87921         sockbuf and optlen.
87923 2009-01-15  Bruno Haible  <bruno@clisp.org>
87925         Make fflush-after-ungetc POSIX compliant on BSD systems.
87926         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87927         (clear_ungetc_buffer): Implement also for other systems.
87928         (rpl_fflush): On glibc systems, invoke
87929         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87930         clear_ungetc_buffer after fetching the stream's position, not before.
87932 2009-01-15  Bruno Haible  <bruno@clisp.org>
87934         Make fflush-after-ungetc POSIX compliant on glibc systems.
87935         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87936         after ungetc.
87937         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87938         (rpl_fflush): On glibc systems, simply call the system's fflush
87939         function after clearing the ungetc buffer.
87940         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87941         Instead, lseek only to the end of file, then use the system's fseeko
87942         for the rest. On glibc systems, reset the EOF indicator bit.
87944 2009-01-15  Jim Meyering  <meyering@redhat.com>
87946         openmp.m4: revert quote-adding change, for portability to older autoconf
87947         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87948         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87949         Simon Josefsson noticed the problem when using autoconf-2.61.
87951 2009-01-15  Bruno Haible  <bruno@clisp.org>
87953         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87954         * tests/test-fflush2.c (ASSERT): Always fail.
87955         (main): Add two tests for fflush() after ungetc(), taking into account
87956         the Austin Group's clarification.
87957         Suggested by Eric Blake.
87959 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87961         mktime.m4: remove K&R-style function prototypes
87962         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87963         for the Sun C++ compiler.
87965 2009-01-14  Bruno Haible  <bruno@clisp.org>
87967         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87968         while including <wchar.h>.
87969         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87970         the system's <wchar.h> file.
87971         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87973 2009-01-14  Bruno Haible  <bruno@clisp.org>
87975         * m4/csharp.m4: Don't mention gettext on the serial number line.
87976         * m4/csharpexec.m4: Likewise.
87977         * m4/eaccess.m4: Likewise.
87978         * m4/javaexec.m4: Likewise.
87979         * m4/sig_atomic_t.m4: Likewise.
87980         * m4/tmpdir.m4: Likewise.
87981         * m4/intldir.m4: Bump gettext version.
87982         * m4/lib-ld.m4: Likewise.
87984 2009-01-14  Bruno Haible  <bruno@clisp.org>
87986         * lib/progname.c (set_program_name): Add more comments.
87987         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87989 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87991         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87992         were sys/stat.h does not define it.
87994 2009-01-14  Jim Meyering  <meyering@redhat.com>
87996         many *.m4 files: improve m4 quoting
87997         99% of this change was performed by running the following commands:
87998         git ls-files | grep '\.m4$' | xargs perl -pi \
87999           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
88000           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88001           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88002           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
88003         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
88004         The remainder were to add Copyright dates, increment serial numbers,
88005         undo some changes in comments, exclude m4/intl.m4, and add quotes
88006         around the "1" in ",1" where the unusual spacing prohibited the
88007         above regexps from doing the job.  For more details, see
88008         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
88009         * m4/acl.m4: Modified.
88010         * m4/afs.m4: Likewise.
88011         * m4/alloca.m4: Likewise.
88012         * m4/argp.m4: Likewise.
88013         * m4/argz.m4: Likewise.
88014         * m4/atexit.m4: Likewise.
88015         * m4/bison-i18n.m4: Likewise.
88016         * m4/bison.m4: Likewise.
88017         * m4/byteswap.m4: Likewise.
88018         * m4/c-stack.m4: Likewise.
88019         * m4/c-strtod.m4: Likewise.
88020         * m4/calloc.m4: Likewise.
88021         * m4/canonicalize-lgpl.m4: Likewise.
88022         * m4/chown.m4: Likewise.
88023         * m4/clock_time.m4: Likewise.
88024         * m4/codeset.m4: Likewise.
88025         * m4/copy-file.m4: Likewise.
88026         * m4/csharp.m4: Likewise.
88027         * m4/csharpcomp.m4: Likewise.
88028         * m4/csharpexec.m4: Likewise.
88029         * m4/d-ino.m4: Likewise.
88030         * m4/d-type.m4: Likewise.
88031         * m4/dirfd.m4: Likewise.
88032         * m4/double-slash-root.m4: Likewise.
88033         * m4/eaccess.m4: Likewise.
88034         * m4/eealloc.m4: Likewise.
88035         * m4/environ.m4: Likewise.
88036         * m4/errno_h.m4: Likewise.
88037         * m4/euidaccess.m4: Likewise.
88038         * m4/execute.m4: Likewise.
88039         * m4/fatal-signal.m4: Likewise.
88040         * m4/fchdir.m4: Likewise.
88041         * m4/fcntl_h.m4: Likewise.
88042         * m4/fileblocks.m4: Likewise.
88043         * m4/filenamecat.m4: Likewise.
88044         * m4/findprog.m4: Likewise.
88045         * m4/flexmember.m4: Likewise.
88046         * m4/fnmatch.m4: Likewise.
88047         * m4/fopen.m4: Likewise.
88048         * m4/fpending.m4: Likewise.
88049         * m4/fprintf-posix.m4: Likewise.
88050         * m4/free.m4: Likewise.
88051         * m4/frexp.m4: Likewise.
88052         * m4/frexpl.m4: Likewise.
88053         * m4/fsusage.m4: Likewise.
88054         * m4/ftruncate.m4: Likewise.
88055         * m4/gc-camellia.m4: Likewise.
88056         * m4/gc-random.m4: Likewise.
88057         * m4/gc.m4: Likewise.
88058         * m4/getaddrinfo.m4: Likewise.
88059         * m4/getcwd-abort-bug.m4: Likewise.
88060         * m4/getcwd-path-max.m4: Likewise.
88061         * m4/getdate.m4: Likewise.
88062         * m4/getdomainname.m4: Likewise.
88063         * m4/getgroups.m4: Likewise.
88064         * m4/gethostname.m4: Likewise.
88065         * m4/gethrxtime.m4: Likewise.
88066         * m4/getline.m4: Likewise.
88067         * m4/getloadavg.m4: Likewise.
88068         * m4/getndelim2.m4: Likewise.
88069         * m4/getpass.m4: Likewise.
88070         * m4/gettext.m4: Likewise.
88071         * m4/gettime.m4: Likewise.
88072         * m4/gettimeofday.m4: Likewise.
88073         * m4/gnulib-common.m4: Likewise.
88074         * m4/group-member.m4: Likewise.
88075         * m4/host-os.m4: Likewise.
88076         * m4/iconv.m4: Likewise.
88077         * m4/iconv_open.m4: Likewise.
88078         * m4/inet_ntop.m4: Likewise.
88079         * m4/inet_pton.m4: Likewise.
88080         * m4/inline.m4: Likewise.
88081         * m4/intldir.m4: Likewise.
88082         * m4/intlmacosx.m4: Likewise.
88083         * m4/intmax.m4: Likewise.
88084         * m4/intmax_t.m4: Likewise.
88085         * m4/inttypes.m4: Likewise.
88086         * m4/inttypes_h.m4: Likewise.
88087         * m4/inttypes-pri.m4: Likewise.
88088         * m4/isapipe.m4: Likewise.
88089         * m4/isnand.m4: Likewise.
88090         * m4/isnanf.m4: Likewise.
88091         * m4/isnanl.m4: Likewise.
88092         * m4/javacomp.m4: Likewise.
88093         * m4/javaexec.m4: Likewise.
88094         * m4/jm-winsz1.m4: Likewise.
88095         * m4/jm-winsz2.m4: Likewise.
88096         * m4/lchown.m4: Likewise.
88097         * m4/lcmessage.m4: Likewise.
88098         * m4/ldexpl.m4: Likewise.
88099         * m4/lib-ld.m4: Likewise.
88100         * m4/lib-link.m4: Likewise.
88101         * m4/libsigsegv.m4: Likewise.
88102         * m4/link-follow.m4: Likewise.
88103         * m4/localcharset.m4: Likewise.
88104         * m4/locale-fr.m4: Likewise.
88105         * m4/locale-ja.m4: Likewise.
88106         * m4/locale-tr.m4: Likewise.
88107         * m4/locale-zh.m4: Likewise.
88108         * m4/lock.m4: Likewise.
88109         * m4/longlong.m4: Likewise.
88110         * m4/ls-mntd-fs.m4: Likewise.
88111         * m4/lstat.m4: Likewise.
88112         * m4/malloc.m4: Likewise.
88113         * m4/mathl.m4: Likewise.
88114         * m4/mbrtowc.m4: Likewise.
88115         * m4/mbstate_t.m4: Likewise.
88116         * m4/mbswidth.m4: Likewise.
88117         * m4/memchr.m4: Likewise.
88118         * m4/memcmp.m4: Likewise.
88119         * m4/memcpy.m4: Likewise.
88120         * m4/memmem.m4: Likewise.
88121         * m4/memmove.m4: Likewise.
88122         * m4/mempcpy.m4: Likewise.
88123         * m4/memrchr.m4: Likewise.
88124         * m4/memset.m4: Likewise.
88125         * m4/minmax.m4: Likewise.
88126         * m4/mkdir-slash.m4: Likewise.
88127         * m4/mkdtemp.m4: Likewise.
88128         * m4/mktime.m4: Likewise.
88129         * m4/mmap-anon.m4: Likewise.
88130         * m4/mountlist.m4: Likewise.
88131         * m4/nanosleep.m4: Likewise.
88132         * m4/nls.m4: Likewise.
88133         * m4/nocrash.m4: Likewise.
88134         * m4/open.m4: Likewise.
88135         * m4/openat.m4: Likewise.
88136         * m4/openmp.m4: Likewise.
88137         * m4/pathmax.m4: Likewise.
88138         * m4/perl.m4: Likewise.
88139         * m4/physmem.m4: Likewise.
88140         * m4/pipe.m4: Likewise.
88141         * m4/po.m4: Likewise.
88142         * m4/poll.m4: Likewise.
88143         * m4/posixtm.m4: Likewise.
88144         * m4/posixver.m4: Likewise.
88145         * m4/printf-frexp.m4: Likewise.
88146         * m4/printf-frexpl.m4: Likewise.
88147         * m4/printf-posix.m4: Likewise.
88148         * m4/printf-posix-rpl.m4: Likewise.
88149         * m4/printf.m4: Likewise.
88150         * m4/progtest.m4: Likewise.
88151         * m4/putenv.m4: Likewise.
88152         * m4/readline.m4: Likewise.
88153         * m4/readlink.m4: Likewise.
88154         * m4/readutmp.m4: Likewise.
88155         * m4/realloc.m4: Likewise.
88156         * m4/regex.m4: Likewise.
88157         * m4/relocatable.m4: Likewise.
88158         * m4/relocatable-lib.m4: Likewise.
88159         * m4/rename-dest-slash.m4: Likewise.
88160         * m4/rename.m4: Likewise.
88161         * m4/rmdir-errno.m4: Likewise.
88162         * m4/rmdir.m4: Likewise.
88163         * m4/roundf.m4: Likewise.
88164         * m4/roundl.m4: Likewise.
88165         * m4/rpmatch.m4: Likewise.
88166         * m4/save-cwd.m4: Likewise.
88167         * m4/selinux-selinux-h.m4: Likewise.
88168         * m4/setenv.m4: Likewise.
88169         * m4/settime.m4: Likewise.
88170         * m4/sig2str.m4: Likewise.
88171         * m4/sig_atomic_t.m4: Likewise.
88172         * m4/signalblocking.m4: Likewise.
88173         * m4/signbit.m4: Likewise.
88174         * m4/sigpipe.m4: Likewise.
88175         * m4/sockets.m4: Likewise.
88176         * m4/sockpfaf.m4: Likewise.
88177         * m4/st_dm_mode.m4: Likewise.
88178         * m4/stat-time.m4: Likewise.
88179         * m4/stdbool.m4: Likewise.
88180         * m4/stdint.m4: Likewise.
88181         * m4/stdint_h.m4: Likewise.
88182         * m4/stpcpy.m4: Likewise.
88183         * m4/stpncpy.m4: Likewise.
88184         * m4/strcase.m4: Likewise.
88185         * m4/strchrnul.m4: Likewise.
88186         * m4/strcspn.m4: Likewise.
88187         * m4/strdup.m4: Likewise.
88188         * m4/strftime.m4: Likewise.
88189         * m4/strndup.m4: Likewise.
88190         * m4/strnlen.m4: Likewise.
88191         * m4/strpbrk.m4: Likewise.
88192         * m4/strptime.m4: Likewise.
88193         * m4/strsep.m4: Likewise.
88194         * m4/strtod.m4: Likewise.
88195         * m4/strtoimax.m4: Likewise.
88196         * m4/strtok_r.m4: Likewise.
88197         * m4/strtol.m4: Likewise.
88198         * m4/strtoll.m4: Likewise.
88199         * m4/strtoul.m4: Likewise.
88200         * m4/strtoull.m4: Likewise.
88201         * m4/strtoumax.m4: Likewise.
88202         * m4/strverscmp.m4: Likewise.
88203         * m4/threadlib.m4: Likewise.
88204         * m4/timegm.m4: Likewise.
88205         * m4/tm_gmtoff.m4: Likewise.
88206         * m4/tmpdir.m4: Likewise.
88207         * m4/tmpfile.m4: Likewise.
88208         * m4/tzset.m4: Likewise.
88209         * m4/uintmax_t.m4: Likewise.
88210         * m4/unlinkdir.m4: Likewise.
88211         * m4/unlocked-io.m4: Likewise.
88212         * m4/uptime.m4: Likewise.
88213         * m4/userspec.m4: Likewise.
88214         * m4/utimbuf.m4: Likewise.
88215         * m4/utime.m4: Likewise.
88216         * m4/utimes-null.m4: Likewise.
88217         * m4/utimes.m4: Likewise.
88218         * m4/vararrays.m4: Likewise.
88219         * m4/vasnprintf.m4: Likewise.
88220         * m4/vfprintf-posix.m4: Likewise.
88221         * m4/vprintf-posix.m4: Likewise.
88222         * m4/wait-process.m4: Likewise.
88223         * m4/wchar_t.m4: Likewise.
88224         * m4/wint_t.m4: Likewise.
88225         * m4/write-any-file.m4: Likewise.
88226         * m4/yield.m4: Likewise.
88228 2009-01-13  Bruno Haible  <bruno@clisp.org>
88230         Avoid test-copy-file.sh failures when ACL support insufficient.
88231         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
88232         TESTS_ENVIRONMENT.
88233         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
88234         Reported by Jim Meyering.
88236 2009-01-13  Bruno Haible  <bruno@clisp.org>
88238         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
88239         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
88240         * modules/unistdio/u8-printf-parse (Files): Likewise.
88241         * modules/unistdio/u32-printf-parse (Files): Likewise.
88242         * modules/unistdio/ulc-printf-parse (Files): Likewise.
88244 2009-01-13  Simon Josefsson  <simon@josefsson.org>
88246         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
88247         and m4/inttypes_h.m4 too.
88249 2009-01-12  Eric Blake  <ebb9@byu.net>
88251         tests: IRIX 6.2 cc can't compile -0.0 into .data
88252         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
88253         rather than at compile-time.
88254         * tests/test-floorl.c (minus_zero): Likewise.
88255         * tests/test-frexpl.c (minus_zero): Likewise.
88256         * tests/test-isnan.c (minus_zerol): Likewise.
88257         * tests/test-isnanl.h (minus_zero): Likewise.
88258         * tests/test-ldexpl.c (minus_zero): Likewise.
88259         * tests/test-roundl.c (minus_zero): Likewise.
88260         * tests/test-signbit.c (minus_zerol): Likewise.
88261         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88262         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88263         * tests/test-truncl.c (minus_zero): Likewise.
88264         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88265         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88266         Reported by Tom G. Christensen and Nelson H. F. Beebe.
88268 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88270         regex: fix glibc bug 9697
88271         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
88272         handling.
88274 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88276         regex: fix glibc bug 697
88277         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
88278         being NULL also if there are no backreferences.
88280 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88282         regex: merge glibc changes
88283         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88284         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
88285         re_string_skip_chars, re_string_reconstruct): Likewise.
88286         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
88288 2009-01-07  Jim Meyering  <meyering@redhat.com>
88290         poll: filter through cppi
88291         * lib/poll.c: Indent cpp directives to reflect nesting.
88293 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
88295         poll: don't return uninitialized
88296         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
88298 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
88300         avoid compile failure on AIX 6.1
88301         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
88302         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
88304 2009-01-04  Jim Meyering  <meyering@redhat.com>
88306         remove duplicate inclusion of <stdio.h>
88307         * tests/test-fprintf-posix.c: Likewise.
88308         * tests/test-printf-posix.c: Likewise.
88309         * tests/test-snprintf-posix.c: Likewise.
88310         * tests/test-sprintf-posix.c: Likewise.
88311         * tests/test-vasprintf-posix.c: Likewise.
88312         * tests/test-vfprintf-posix.c: Likewise.
88313         * tests/test-vprintf-posix.c: Likewise.
88314         * tests/test-vsnprintf-posix.c: Likewise.
88315         * tests/test-vsprintf-posix.c: Likewise.
88317 2009-01-03  Jim Meyering  <meyering@redhat.com>
88319         gnulib-tool: fix sed-based filtering
88320         * gnulib-tool (func_filter_filelist): Remove extra backslash
88321         in sed_fff_filter definition.
88323 2009-01-02  Jim Meyering  <meyering@redhat.com>
88325         strftime: avoid compilation failure on Solaris 2.6
88326         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
88327         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
88328         Don't #define mbrlen or mbsinit, since now they're guaranteed to
88329         be available.  Reported by Tom G. Christensen.  Details in
88330         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
88332 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88333             Bruno Haible  <bruno@clisp.org>
88335         Speed up gnulib-tool by doing more string processing through shell
88336         built-ins.
88337         * gnulib-tool (fast_func_append): New variable.
88338         (func_remove_prefix, func_remove_suffix): New functions.
88339         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
88340         (func_filter_filelist): New function.
88341         (func_get_dependencies): Use func_remove_suffix instead of sed.
88342         (func_get_automake_snippet): Use func_filter_filelist instead of a
88343         subshell and sed invocation.
88345 2009-01-01  Bruno Haible  <bruno@clisp.org>
88347         Fix a security bug.
88348         * gnulib-tool (func_import, import, update): Don't allow the characters
88349         '"', '$', '`', '\' in macro arguments that become part of commands that
88350         are evaluated.
88352 2009-01-01  Bruno Haible  <bruno@clisp.org>
88354         * gnulib-tool (func_reset_sigpipe): Add more comments.
88356 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88358         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
88359         func_emit_tests_Makefile_am, func_import): Abort loops early if we
88360         already know the answer.
88362 2009-01-01  Jim Meyering  <meyering@redhat.com>
88364         * lib/version-etc.c (version_etc_va): Update copyright year.
88366 2008-12-30  Bruno Haible  <bruno@clisp.org>
88368         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
88369         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
88370         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
88372 2008-12-29  Eric Blake  <ebb9@byu.net>
88374         multiarch: avoid autoconf AC_REQUIRE bug
88375         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
88376         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
88377         2.63 and older.
88378         Reported by Bruno Haible, and analyzed in
88379         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
88381 2008-12-29  Bruno Haible  <bruno@clisp.org>
88383         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
88384         files in subdirectories correctly.
88385         Reported by Ralf Wildenhues.
88387 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88389         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
88390         rather than 'join FILE -', for Solaris join.
88392 2008-12-29  Bruno Haible  <bruno@clisp.org>
88394         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
88395         quoting.
88396         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88397         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
88398         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
88399         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
88400         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
88401         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
88402         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
88403         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
88404         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88405         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
88406         * m4/nls.m4 (AM_NLS): Likewise.
88407         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
88408         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
88409         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88410         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
88411         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
88412         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
88413         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
88414         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
88415         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
88416         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88417         * m4/xsize.m4 (gl_XSIZE): Likewise.
88418         Suggested by Jim Meyering.
88420 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88422         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88423         * lib/parse-duration.c: use a switch instead of cascading if's.
88425 2008-12-29  Eric Blake  <ebb9@byu.net>
88427         wchar.h: supply WEOF on Irix 5.3
88428         * lib/wchar.in.h (wint_t): Also supply WEOF.
88429         * lib/wctype.in.h (wint_t): Likewise.
88430         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88431         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88432         Reported by Tom G. Christensen.
88434 2008-12-26  Bruno Haible  <bruno@clisp.org>
88436         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88437         i486, i586, i686.
88439 2008-12-26  Bruno Haible  <bruno@clisp.org>
88441         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88443 2008-12-26  Bruno Haible  <bruno@clisp.org>
88445         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88446         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88447         not __STDC_CONSTANT_MACROS.
88448         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88450 2008-12-25  Bruno Haible  <bruno@clisp.org>
88452         Add support for universal builds to vasnprintf.
88453         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88454         universal builds, guess no.
88455         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88456         * modules/vasprintf-posix (Depends-on): Likewise.
88457         * modules/fprintf-posix (Depends-on): Likewise.
88458         * modules/vfprintf-posix (Depends-on): Likewise.
88459         * modules/snprintf-posix (Depends-on): Likewise.
88460         * modules/vsnprintf-posix (Depends-on): Likewise.
88461         * modules/sprintf-posix (Depends-on): Likewise.
88462         * modules/vsprintf-posix (Depends-on): Likewise.
88463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88471         Add support for universal builds to <inttypes.h>.
88472         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88473         _SCNu64_PREFIX): In Apple
88474         universal builds, define directly, using _LP64.
88475         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88476         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88477         * modules/inttypes (Depends-on): Add multiarch.
88478         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88480         Add support for universal builds to <stdint.h>.
88481         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88482         universal builds, define directly, using _LP64.
88483         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88484         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88485         and size_t.
88486         * modules/stdint (Depends-on): Add multiarch.
88487         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88489         New module 'multiarch'.
88490         * modules/multiarch: New file.
88491         * m4/multiarch.m4: New file.
88493 2008-12-25  Bruno Haible  <bruno@clisp.org>
88495         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88497 2008-12-25  Bruno Haible  <bruno@clisp.org>
88499         * modules/btowc (License): Relicense under LGPLv2+.
88500         * modules/mbsinit (License): Likewise.
88501         * modules/mbrtowc (License): Likewise.
88502         * modules/wcrtomb (License): Likewise.
88503         * modules/streq (License): Likewise.
88504         Reported by David Lutterkort <lutter@redhat.com>.
88506 2008-12-23  Bruno Haible  <bruno@clisp.org>
88508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88510 2008-12-23  Bruno Haible  <bruno@clisp.org>
88512         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88514         GETADDRINFO_LIB, not in LIBS.
88515         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88516         * modules/canon-host (Link): Likewise.
88517         * NEWS: Mention the change.
88518         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88519         GETADDRINFO_LIB.
88521 2008-12-22  Bruno Haible  <bruno@clisp.org>
88523         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88524         * doc/posix-functions/iswalpha_l.texi: Likewise.
88525         * doc/posix-functions/iswblank_l.texi: Likewise.
88526         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88527         * doc/posix-functions/iswctype_l.texi: Likewise.
88528         * doc/posix-functions/iswdigit_l.texi: Likewise.
88529         * doc/posix-functions/iswgraph_l.texi: Likewise.
88530         * doc/posix-functions/iswlower_l.texi: Likewise.
88531         * doc/posix-functions/iswprint_l.texi: Likewise.
88532         * doc/posix-functions/iswpunct_l.texi: Likewise.
88533         * doc/posix-functions/iswspace_l.texi: Likewise.
88534         * doc/posix-functions/iswupper_l.texi: Likewise.
88535         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88536         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88537         * doc/posix-functions/open_wmemstream.texi: Likewise.
88538         * doc/posix-functions/swscanf.texi: Likewise.
88539         * doc/posix-functions/towctrans_l.texi: Likewise.
88540         * doc/posix-functions/towlower.texi: Likewise.
88541         * doc/posix-functions/towlower_l.texi: Likewise.
88542         * doc/posix-functions/towupper.texi: Likewise.
88543         * doc/posix-functions/towupper_l.texi: Likewise.
88544         * doc/posix-functions/vfwprintf.texi: Likewise.
88545         * doc/posix-functions/vfwscanf.texi: Likewise.
88546         * doc/posix-functions/vswscanf.texi: Likewise.
88547         * doc/posix-functions/vwprintf.texi: Likewise.
88548         * doc/posix-functions/vwscanf.texi: Likewise.
88549         * doc/posix-functions/wcpcpy.texi: Likewise.
88550         * doc/posix-functions/wcpncpy.texi: Likewise.
88551         * doc/posix-functions/wcscasecmp.texi: Likewise.
88552         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88553         * doc/posix-functions/wcscoll_l.texi: Likewise.
88554         * doc/posix-functions/wcsdup.texi: Likewise.
88555         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88556         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88557         * doc/posix-functions/wcsnlen.texi: Likewise.
88558         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88559         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88560         * doc/posix-functions/wctrans_l.texi: Likewise.
88561         * doc/posix-functions/wctype_l.texi: Likewise.
88562         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88563         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88564         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88565         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88566         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88567         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88568         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88569         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88570         * doc/glibc-functions/wcschrnul.texi: Likewise.
88571         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88572         * doc/glibc-functions/wcstod_l.texi: Likewise.
88573         * doc/glibc-functions/wcstof_l.texi: Likewise.
88574         * doc/glibc-functions/wcstol_l.texi: Likewise.
88575         * doc/glibc-functions/wcstold_l.texi: Likewise.
88576         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88577         * doc/glibc-functions/wcstoq.texi: Likewise.
88578         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88579         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88580         * doc/glibc-functions/wcstouq.texi: Likewise.
88581         * doc/glibc-functions/wmempcpy.texi: Likewise.
88583 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88584             Eric Blake  <ebb9@byu.net>
88585             Paolo Bonzini  <bonzini@gnu.org>
88586             Bruno Haible  <bruno@clisp.org>
88588         Make c-stack work on Haiku.
88589         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88590         (c_stack_action): Use SA_ONSTACK flag.
88592 2008-12-22  Bruno Haible  <bruno@clisp.org>
88594         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88596 2008-12-22  Bruno Haible  <bruno@clisp.org>
88598         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88599         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88600         being overridden.
88601         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88602         New macros.
88603         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88605         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88606         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88608 2008-12-22  Bruno Haible  <bruno@clisp.org>
88610         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88611         from test code.
88613 2008-12-22  Eric Blake  <ebb9@byu.net>
88615         Avoid gcc warnings on cygwin.
88616         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88617         Avoid unused variable.
88618         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88619         Likewise.
88621 2008-12-22  Bruno Haible  <bruno@clisp.org>
88623         Remove HAVE_MBRTOWC conditionals.
88624         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88625         (mbscasecmp): Assume mbrtowc function.
88626         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88627         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88628         * lib/mbschr.c: Include mbuiter.h unconditionally.
88629         (mbschr): Assume mbrtowc function.
88630         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88631         (mbscspn): Assume mbrtowc function.
88632         * lib/mbslen.c: Include mbuiter.h unconditionally.
88633         (mbslen): Assume mbrtowc function.
88634         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88635         (mbsncasecmp): Assume mbrtowc function.
88636         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88637         (mbsnlen): Assume mbrtowc function.
88638         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88639         (mbspbrk): Assume mbrtowc function.
88640         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88641         (mbspcasecmp): Assume mbrtowc function.
88642         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88643         (mbsrchr): Assume mbrtowc function.
88644         * lib/mbssep.c: Include mbuiter.h unconditionally.
88645         (mbssep): Assume mbrtowc function.
88646         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88647         (mbsspn): Assume mbrtowc function.
88648         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88649         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88650         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88651         (mbstok_r): Assume mbrtowc function.
88652         * lib/propername.c: Include mbuiter.h unconditionally.
88653         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88654         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88655         (trim2): Assume mbrtowc function.
88656         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88657         (mbsnwidth): Assume mbrtowc function.
88658         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88659         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88660         fallback definitions.
88661         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88663 2008-12-22  Bruno Haible  <bruno@clisp.org>
88665         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88667 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88669         * modules/regex: Request emulations for the mb*/wc* functions we need.
88670         * m4/regex.m4: Don't look for those functions here.
88671         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88673 2008-12-22  Bruno Haible  <bruno@clisp.org>
88675         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88677 2008-12-21  Bruno Haible  <bruno@clisp.org>
88679         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88680         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88681         (Include): Remove conditionalization.
88682         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88683         (Include): Remove conditionalization.
88684         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88685         (Include): Remove conditionalization.
88686         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88687         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88688         * NEWS: Mention the change.
88689         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88690         via Sergey Poznyakoff <gray@gnu.org.ua>.
88692 2008-12-21  Bruno Haible  <bruno@clisp.org>
88694         * MODULES.html.sh (Extended multibyte and wide character utilities
88695         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88696         wcrtomb, wcsrtombs.
88697         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88698         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88699         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88700         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88702 2008-12-21  Bruno Haible  <bruno@clisp.org>
88704         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88706 2008-12-21  Bruno Haible  <bruno@clisp.org>
88708         * modules/wcsnrtombs-tests: New file.
88709         * tests/test-wcsnrtombs1.sh: New file.
88710         * tests/test-wcsnrtombs2.sh: New file.
88711         * tests/test-wcsnrtombs3.sh: New file.
88712         * tests/test-wcsnrtombs4.sh: New file.
88713         * tests/test-wcsnrtombs.c: New file.
88715         New module 'wcsnrtombs'.
88716         * lib/wchar.in.h (wcsnrtombs): New declaration.
88717         * lib/wcsnrtombs.c: New file.
88718         * lib/wcsrtombs-state.c: New file.
88719         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88720         (internal_state): Remove variable.
88721         * m4/wcsnrtombs.m4: New file.
88722         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88723         compilation units.
88724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88725         HAVE_WCSNRTOMBS.
88726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88727         HAVE_WCSNRTOMBS.
88728         * modules/wcsnrtombs: New file.
88729         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88730         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88732 2008-12-21  Bruno Haible  <bruno@clisp.org>
88734         * modules/wcsrtombs-tests: New file.
88735         * tests/test-wcsrtombs1.sh: New file.
88736         * tests/test-wcsrtombs2.sh: New file.
88737         * tests/test-wcsrtombs3.sh: New file.
88738         * tests/test-wcsrtombs4.sh: New file.
88739         * tests/test-wcsrtombs.c: New file.
88741         New module 'wcsrtombs'.
88742         * lib/wchar.in.h (wcsrtombs): New declaration.
88743         * lib/wcsrtombs.c: New file.
88744         * m4/wcsrtombs.m4: New file.
88745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88746         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88748         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88749         * modules/wcsrtombs: New file.
88750         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88751         bugs.
88753 2008-12-21  Bruno Haible  <bruno@clisp.org>
88755         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88756         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88757         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88758         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88759         if not correct.
88760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88761         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88762         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88763         m4/locale-zh.m4, m4/codeset.m4.
88764         * doc/posix-functions/wcrtomb.texi: Document the bug.
88766 2008-12-21  Bruno Haible  <bruno@clisp.org>
88768         Work around a btowc() bug on IRIX 6.5.
88769         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88770         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88771         REPLACE_WTOBC if not.
88772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88773         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88774         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88776 2008-12-21  Bruno Haible  <bruno@clisp.org>
88778         * modules/wcrtomb-tests: New file.
88779         * tests/test-wcrtomb.sh: New file.
88780         * tests/test-wcrtomb.c: New file.
88782         New module 'wcrtomb'.
88783         * lib/wchar.in.h (wcrtomb): New declaration.
88784         * lib/wcrtomb.c: New file.
88785         * m4/wcrtomb.m4: New file.
88786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88787         HAVE_WCRTOMB.
88788         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88789         HAVE_WCRTOMB.
88790         * modules/wcrtomb: New file.
88791         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88793 2008-12-21  Bruno Haible  <bruno@clisp.org>
88795         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88796         * modules/mbsrtowcs (Files): Likewise.
88797         * modules/wctob (Files): Likewise.
88798         * modules/c-strcase-tests (Files): Likewise.
88799         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88800         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88801         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88802         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88803         * modules/vasnprintf-posix-tests (Files): Likewise.
88805 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88807         gitlog-to-changelog: pass all command-line arguments to git-log
88808         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88809         it is sometimes convenient to filter the commits in various ways.
88810         gitlog-to-changelog only allows --since to specify a start date,
88811         but git-log itself supports many other filtering mechanisms.
88812         At the moment, I want to filter by branch name.  Rather than
88813         adding a --branch option to gitlog-to-changelog, it seems more
88814         flexible to simply pass all options directly to git-log and let
88815         git do the work.  Notice that this effectively makes --since a
88816         redundant option for gitlog-to-changelog, but removing it would
88817         require current usage to change since calls would then require
88818         an additional '--'.
88820 2008-12-21  Bruno Haible  <bruno@clisp.org>
88822         * modules/mbsnrtowcs-tests: New file.
88823         * tests/test-mbsnrtowcs1.sh: New file.
88824         * tests/test-mbsnrtowcs2.sh: New file.
88825         * tests/test-mbsnrtowcs3.sh: New file.
88826         * tests/test-mbsnrtowcs4.sh: New file.
88827         * tests/test-mbsnrtowcs.c: New file.
88829         New module 'mbsnrtowcs'.
88830         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88831         * lib/mbsnrtowcs.c: New file.
88832         * lib/mbsrtowcs-state.c: New file.
88833         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88834         (internal_state): Remove variable.
88835         * m4/mbsnrtowcs.m4: New file.
88836         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88837         compilation units.
88838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88839         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88840         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88841         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88842         * modules/mbsnrtowcs: New file.
88843         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88844         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88845         portability problem.
88847 2008-12-21  Bruno Haible  <bruno@clisp.org>
88849         Work around mbsrtowcs bug.
88850         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88851         (gl_FUNC_MBSRTOWCS): Invoke it.
88852         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88853         m4/locale-zh.m4.
88854         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88856 2008-12-21  Bruno Haible  <bruno@clisp.org>
88858         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88860 2008-12-21  Bruno Haible  <bruno@clisp.org>
88862         Update doc for AIX.
88863         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88864         16-bit wchar_t type.
88865         * doc/posix-functions/btowc.texi: Likewise.
88866         * doc/posix-functions/fgetwc.texi: Likewise.
88867         * doc/posix-functions/fgetws.texi: Likewise.
88868         * doc/posix-functions/fputwc.texi: Likewise.
88869         * doc/posix-functions/fputws.texi: Likewise.
88870         * doc/posix-functions/fwide.texi: Likewise.
88871         * doc/posix-functions/fwprintf.texi: Likewise.
88872         * doc/posix-functions/fwscanf.texi: Likewise.
88873         * doc/posix-functions/getwchar.texi: Likewise.
88874         * doc/posix-functions/getwc.texi: Likewise.
88875         * doc/posix-functions/iswalnum.texi: Likewise.
88876         * doc/posix-functions/iswalpha.texi: Likewise.
88877         * doc/posix-functions/iswblank.texi: Likewise.
88878         * doc/posix-functions/iswcntrl.texi: Likewise.
88879         * doc/posix-functions/iswctype.texi: Likewise.
88880         * doc/posix-functions/iswdigit.texi: Likewise.
88881         * doc/posix-functions/iswgraph.texi: Likewise.
88882         * doc/posix-functions/iswlower.texi: Likewise.
88883         * doc/posix-functions/iswprint.texi: Likewise.
88884         * doc/posix-functions/iswpunct.texi: Likewise.
88885         * doc/posix-functions/iswspace.texi: Likewise.
88886         * doc/posix-functions/iswupper.texi: Likewise.
88887         * doc/posix-functions/iswxdigit.texi: Likewise.
88888         * doc/posix-functions/mbrtowc.texi: Likewise.
88889         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88890         * doc/posix-functions/mbstowcs.texi: Likewise.
88891         * doc/posix-functions/mbtowc.texi: Likewise.
88892         * doc/posix-functions/putwchar.texi: Likewise.
88893         * doc/posix-functions/putwc.texi: Likewise.
88894         * doc/posix-functions/swprintf.texi: Likewise.
88895         * doc/posix-functions/tolower.texi: Likewise.
88896         * doc/posix-functions/toupper.texi: Likewise.
88897         * doc/posix-functions/towctrans.texi: Likewise.
88898         * doc/posix-functions/ungetwc.texi: Likewise.
88899         * doc/posix-functions/vswprintf.texi: Likewise.
88900         * doc/posix-functions/wcrtomb.texi: Likewise.
88901         * doc/posix-functions/wcscat.texi: Likewise.
88902         * doc/posix-functions/wcschr.texi: Likewise.
88903         * doc/posix-functions/wcscmp.texi: Likewise.
88904         * doc/posix-functions/wcscoll.texi: Likewise.
88905         * doc/posix-functions/wcscpy.texi: Likewise.
88906         * doc/posix-functions/wcscspn.texi: Likewise.
88907         * doc/posix-functions/wcsftime.texi: Likewise.
88908         * doc/posix-functions/wcslen.texi: Likewise.
88909         * doc/posix-functions/wcsncat.texi: Likewise.
88910         * doc/posix-functions/wcsncmp.texi: Likewise.
88911         * doc/posix-functions/wcsncpy.texi: Likewise.
88912         * doc/posix-functions/wcspbrk.texi: Likewise.
88913         * doc/posix-functions/wcsrchr.texi: Likewise.
88914         * doc/posix-functions/wcsrtombs.texi: Likewise.
88915         * doc/posix-functions/wcsspn.texi: Likewise.
88916         * doc/posix-functions/wcsstr.texi: Likewise.
88917         * doc/posix-functions/wcstod.texi: Likewise.
88918         * doc/posix-functions/wcstof.texi: Likewise.
88919         * doc/posix-functions/wcstoimax.texi: Likewise.
88920         * doc/posix-functions/wcstok.texi: Likewise.
88921         * doc/posix-functions/wcstold.texi: Likewise.
88922         * doc/posix-functions/wcstoll.texi: Likewise.
88923         * doc/posix-functions/wcstol.texi: Likewise.
88924         * doc/posix-functions/wcstombs.texi: Likewise.
88925         * doc/posix-functions/wcstoull.texi: Likewise.
88926         * doc/posix-functions/wcstoul.texi: Likewise.
88927         * doc/posix-functions/wcstoumax.texi: Likewise.
88928         * doc/posix-functions/wcswidth.texi: Likewise.
88929         * doc/posix-functions/wcsxfrm.texi: Likewise.
88930         * doc/posix-functions/wctob.texi: Likewise.
88931         * doc/posix-functions/wctomb.texi: Likewise.
88932         * doc/posix-functions/wctrans.texi: Likewise.
88933         * doc/posix-functions/wctype.texi: Likewise.
88934         * doc/posix-functions/wcwidth.texi: Likewise.
88935         * doc/posix-functions/wmemchr.texi: Likewise.
88936         * doc/posix-functions/wmemcmp.texi: Likewise.
88937         * doc/posix-functions/wmemcpy.texi: Likewise.
88938         * doc/posix-functions/wmemmove.texi: Likewise.
88939         * doc/posix-functions/wmemset.texi: Likewise.
88940         * doc/posix-functions/wprintf.texi: Likewise.
88941         * doc/posix-functions/wscanf.texi: Likewise.
88943 2008-12-21  Bruno Haible  <bruno@clisp.org>
88945         Update doc for HP-UX 11.11.
88946         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88947         in HP-UX version 11.00, not in all versions of HP-UX 11.
88948         * doc/posix-functions/fwide.texi: Likewise.
88949         * doc/posix-functions/fwprintf.texi: Likewise.
88950         * doc/posix-functions/fwscanf.texi: Likewise.
88951         * doc/posix-functions/inet_ntop.texi: Likewise.
88952         * doc/posix-functions/inet_pton.texi: Likewise.
88953         * doc/posix-functions/mbrlen.texi: Likewise.
88954         * doc/posix-functions/mbrtowc.texi: Likewise.
88955         * doc/posix-functions/mbsinit.texi: Likewise.
88956         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88957         * doc/posix-functions/swprintf.texi: Likewise.
88958         * doc/posix-functions/swscanf.texi: Likewise.
88959         * doc/posix-functions/towctrans.texi: Likewise.
88960         * doc/posix-functions/vfwprintf.texi: Likewise.
88961         * doc/posix-functions/vswprintf.texi: Likewise.
88962         * doc/posix-functions/vwprintf.texi: Likewise.
88963         * doc/posix-functions/wcrtomb.texi: Likewise.
88964         * doc/posix-functions/wcsrtombs.texi: Likewise.
88965         * doc/posix-functions/wcsstr.texi: Likewise.
88966         * doc/posix-functions/wctob.texi: Likewise.
88967         * doc/posix-functions/wctrans.texi: Likewise.
88968         * doc/posix-functions/wmemchr.texi: Likewise.
88969         * doc/posix-functions/wmemcmp.texi: Likewise.
88970         * doc/posix-functions/wmemcpy.texi: Likewise.
88971         * doc/posix-functions/wmemmove.texi: Likewise.
88972         * doc/posix-functions/wmemset.texi: Likewise.
88973         * doc/posix-functions/wprintf.texi: Likewise.
88974         * doc/posix-functions/wscanf.texi: Likewise.
88976 2008-12-21  Bruno Haible  <bruno@clisp.org>
88978         Work around a portability problem.
88979         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88980         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88982 2008-12-20  Bruno Haible  <bruno@clisp.org>
88984         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88985         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88986         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88988         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88990         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88991         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88992         set.
88993         (GNULIB_defined_mbstate_t): New macro.
88994         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88995         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88996         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88997         reuses the system's mbrtowc function but works around the bugs.
88998         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88999         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
89000         macros.
89001         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
89002         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
89003         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
89004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
89005         REPLACE_MBSINIT if mbsinit needs to be overridden.
89006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
89007         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89008         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
89009         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89010         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89011         m4/locale-zh.m4.
89012         (Depends): Add mbsinit.
89013         * modules/mbsinit (Depends): Add mbrtowc.
89014         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
89016 2008-12-20  Bruno Haible  <bruno@clisp.org>
89018         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
89019         so that there are no conversion errors on AIX.
89020         * tests/test-mbsrtowcs.c (main): LIkewise.
89022 2008-12-20  Bruno Haible  <bruno@clisp.org>
89024         Work around wctob bug on Solaris <= 9.
89025         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
89026         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
89027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
89028         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
89029         * modules/wctob (Files): Add m4/locale-fr.m4.
89030         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
89032 2008-12-20  Bruno Haible  <bruno@clisp.org>
89034         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
89035         /dev/null.
89036         * tests/test-select-in.sh: Likewise.
89037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
89039 2008-12-20  Bruno Haible  <bruno@clisp.org>
89041         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
89042         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
89043         Cygwin 1.5.x.
89045 2008-12-20  Bruno Haible  <bruno@clisp.org>
89047         Ensure mbstate_t is defined on HP-UX 11.11.
89048         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
89049         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
89050         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
89051         AC_USE_SYSTEM_EXTENSIONS.
89052         * modules/fnmatch (Depends-on): Add extensions.
89053         * modules/mbrlen (Depends-on): Likewise.
89054         * modules/mbrtowc (Depends-on): Likewise.
89055         * modules/mbsinit (Depends-on): Likewise.
89056         * modules/mbsrtowcs (Depends-on): Likewise.
89057         * modules/mbswidth (Depends-on): Likewise.
89058         * modules/quotearg (Depends-on): Likewise.
89059         * modules/strftime (Depends-on): Likewise.
89061 2008-12-20  Bruno Haible  <bruno@clisp.org>
89063         Ensure wctob is declared on IRIX 6.5.
89064         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
89065         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
89066         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
89067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
89068         of HAVE_WCTOB.
89069         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
89070         HAVE_WCTOB.
89071         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
89073 2008-12-19  Bruno Haible  <bruno@clisp.org>
89075         * modules/mbsrtowcs-tests: New file.
89076         * tests/test-mbsrtowcs1.sh: New file.
89077         * tests/test-mbsrtowcs2.sh: New file.
89078         * tests/test-mbsrtowcs3.sh: New file.
89079         * tests/test-mbsrtowcs4.sh: New file.
89080         * tests/test-mbsrtowcs.c: New file.
89082         New module 'mbsrtowcs'.
89083         * lib/wchar.in.h (mbsrtowcs): New declaration.
89084         * lib/mbsrtowcs.c: New file.
89085         * m4/mbsrtowcs.m4: New file.
89086         * modules/mbsrtowcs: New file.
89087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
89088         HAVE_MBSRTOWCS.
89089         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
89090         HAVE_MBSRTOWCS.
89091         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
89093 2008-12-19  Bruno Haible  <bruno@clisp.org>
89095         New module 'mbrlen'.
89096         * lib/wchar.in.h (mbrlen): New declaration.
89097         * lib/mbrlen.c: New file.
89098         * m4/mbrlen.m4: New file.
89099         * modules/mbrlen: New file.
89100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
89101         HAVE_MBRLEN.
89102         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
89103         HAVE_MBRLEN.
89104         * doc/posix-functions/mbrlen.texi: Document the new module.
89106 2008-12-19  Bruno Haible  <bruno@clisp.org>
89108         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
89109         * modules/mbrtowc (Depends-on): Add verify.
89110         Suggested by Paul Eggert.
89112 2008-12-18  Bruno Haible  <bruno@clisp.org>
89114         * modules/mbsinit-tests: New file.
89115         * tests/test-mbsinit.sh: New file.
89116         * tests/test-mbsinit.c: New file.
89118 2008-12-18  Bruno Haible  <bruno@clisp.org>
89120         * modules/mbrtowc-tests: New file.
89121         * tests/test-mbrtowc1.sh: New file.
89122         * tests/test-mbrtowc2.sh: New file.
89123         * tests/test-mbrtowc3.sh: New file.
89124         * tests/test-mbrtowc4.sh: New file.
89125         * tests/test-mbrtowc.c: New file.
89127         New module 'mbrtowc'.
89128         * lib/wchar.in.h (mbstate_t): Override when the system does not have
89129         mbsinit and mbrtowc.
89130         (mbrtowc): New declaration.
89131         * lib/mbrtowc.c: New file.
89132         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
89133         * modules/mbrtowc: New file.
89134         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
89135         HAVE_MBRTOWC.
89136         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
89137         HAVE_MBRTOWC.
89138         * doc/posix-functions/mbrtowc.texi: Document the new module.
89140 2008-12-18  Bruno Haible  <bruno@clisp.org>
89142         New module 'wctob'.
89143         * lib/wchar.in.h (wctob): New declaration.
89144         * lib/wctob.c: New file.
89145         * m4/wctob.m4: New file.
89146         * modules/wctob: New file.
89147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
89148         HAVE_WCTOB.
89149         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
89150         * doc/posix-functions/wctob.texi: Document the new module.
89152 2008-12-18  Bruno Haible  <bruno@clisp.org>
89154         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
89155         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
89157 2008-12-18  Simon Josefsson  <simon@josefsson.org>
89159         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
89160         G. Christensen" <tgc@jupiterrise.com>.
89162         * lib/flock.c: Need to include errno.h.  Reported by "Tom
89163         G. Christensen" <tgc@jupiterrise.com>.
89165         * lib/flock.c: Need to include string.h.  Reported by "Tom
89166         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
89167         <ebb9@byu.net>.
89169 2008-12-18  Bruno Haible  <bruno@clisp.org>
89171         * m4/locale-ja.m4: New file, from GNU gettext.
89173 2008-12-17  Bruno Haible  <bruno@clisp.org>
89175         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
89176         Suggested by Eric Blake.
89178 2008-12-17  Bruno Haible  <bruno@clisp.org>
89180         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
89182 2008-12-17  Bruno Haible  <bruno@clisp.org>
89184         * lib/mbsinit.c: Include verify.h. Verify an assumption.
89185         * modules/mbsinit (Depends-on): Add verify.
89186         Suggested by Paul Eggert.
89188 2008-12-17  Bruno Haible  <bruno@clisp.org>
89190         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
89191         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
89192         gl_FUNC_MBRTOWC.
89193         * m4/mbiter.m4 (gl_MBITER): LIkewise.
89194         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
89195         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
89196         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
89197         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
89198         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
89199         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
89200         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
89201         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
89202         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
89203         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
89204         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
89205         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
89206         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
89207         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
89208         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89209         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
89210         * modules/trim (configure.ac): Likewise.
89212 2008-12-17  Bruno Haible  <bruno@clisp.org>
89214         * modules/btowc-tests: New file.
89215         * tests/test-btowc1.sh: New file.
89216         * tests/test-btowc2.sh: New file.
89217         * tests/test-btowc.c: New file.
89219         New module 'btowc'.
89220         * lib/wchar.in.h (btowc): New declaration.
89221         * lib/btowc.c: New file.
89222         * m4/btowc.m4: New file.
89223         * modules/btowc: New file.
89224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
89225         HAVE_BTOWC.
89226         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
89227         * doc/posix-functions/btowc.texi: Document the new module.
89229 2008-12-17  Bruno Haible  <bruno@clisp.org>
89231         New module 'mbsinit'.
89232         * lib/wchar.in.h (mbsinit): New declaration.
89233         * lib/mbsinit.c: New file.
89234         * m4/mbsinit.m4: New file.
89235         * modules/mbsinit: New file.
89236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
89237         HAVE_MBSINIT.
89238         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
89239         HAVE_MBSINIT.
89240         * doc/posix-functions/mbsinit.texi: Document the new module.
89242 2008-12-16  Bruno Haible  <bruno@clisp.org>
89244         * lib/unistd.in.h: Add comment.
89245         * tests/test-environ.c: Don't include <stdlib.h>.
89247 2008-12-16  Bruno Haible  <bruno@clisp.org>
89249         * lib/parse-duration.h (parse_duration): Document return value
89250         convention.
89251         * lib/parse-duration.c: Include specification header first. Add
89252         comments.
89253         (_): Remove macro.
89254         (parse_year_month_day, parse_hour_minute_second): Move side effects
89255         outside of strchr call.
89256         (parse_non_iso8601): Move side effects outside of isspace call.
89257         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
89258         call.
89260 2008-12-16  Bruno Haible  <bruno@clisp.org>
89262         * tests/test-parse-duration.sh: Produce no output when the test
89263         succeeds.
89265 2008-12-16  Bruno Haible  <bruno@clisp.org>
89267         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
89268         expressions.
89270 2008-12-15  Bruno Haible  <bruno@clisp.org>
89272         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
89273         * doc/glibc-functions/flistxattr.texi: Likewise.
89274         * doc/glibc-functions/fopencookie.texi: Likewise.
89275         * doc/glibc-functions/fremovexattr.texi: Likewise.
89276         * doc/glibc-functions/fsetxattr.texi: Likewise.
89277         * doc/glibc-functions/getxattr.texi: Likewise.
89278         * doc/glibc-functions/lgetxattr.texi: Likewise.
89279         * doc/glibc-functions/listxattr.texi: Likewise.
89280         * doc/glibc-functions/llistxattr.texi: Likewise.
89281         * doc/glibc-functions/lremovexattr.texi: Likewise.
89282         * doc/glibc-functions/lsetxattr.texi: Likewise.
89283         * doc/glibc-functions/removexattr.texi: Likewise.
89284         * doc/glibc-functions/setxattr.texi: Likewise.
89285         * doc/posix-functions/open_memstream.texi: Likewise.
89287 2008-12-15  Eric Blake  <ebb9@byu.net>
89289         Update doc for cygwin 1.7.
89290         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
89291         functions.
89292         * doc/posix-functions/fchmodat.texi: Likewise.
89293         * doc/posix-functions/fchownat.texi: Likewise.
89294         * doc/posix-functions/fdopendir.texi: Likewise.
89295         * doc/posix-functions/fmemopen.texi: Likewise.
89296         * doc/posix-functions/freeaddrinfo.texi: Likewise.
89297         * doc/posix-functions/fstatat.texi: Likewise.
89298         * doc/posix-functions/futimens.texi: Likewise.
89299         * doc/posix-functions/gai_strerror.texi: Likewise.
89300         * doc/posix-functions/getaddrinfo.texi: Likewise.
89301         * doc/posix-functions/getnameinfo.texi: Likewise.
89302         * doc/posix-functions/if_freenameindex.texi: Likewise.
89303         * doc/posix-functions/if_indextoname.texi: Likewise.
89304         * doc/posix-functions/if_nameindex.texi: Likewise.
89305         * doc/posix-functions/if_nametoindex.texi: Likewise.
89306         * doc/posix-functions/insque.texi: Likewise.
89307         * doc/posix-functions/linkat.texi: Likewise.
89308         * doc/posix-functions/llrint.texi: Likewise.
89309         * doc/posix-functions/llrintf.texi: Likewise.
89310         * doc/posix-functions/llrintl.texi: Likewise.
89311         * doc/posix-functions/lockf.texi: Likewise.
89312         * doc/posix-functions/lrintl.texi: Likewise.
89313         * doc/posix-functions/mkdirat.texi: Likewise.
89314         * doc/posix-functions/mkfifoat.texi: Likewise.
89315         * doc/posix-functions/mknodat.texi: Likewise.
89316         * doc/posix-functions/mq_close.texi: Likewise.
89317         * doc/posix-functions/mq_getattr.texi: Likewise.
89318         * doc/posix-functions/mq_notify.texi: Likewise.
89319         * doc/posix-functions/mq_open.texi: Likewise.
89320         * doc/posix-functions/mq_receive.texi: Likewise.
89321         * doc/posix-functions/mq_send.texi: Likewise.
89322         * doc/posix-functions/mq_setattr.texi: Likewise.
89323         * doc/posix-functions/mq_timedreceive.texi: Likewise.
89324         * doc/posix-functions/mq_timedsend.texi: Likewise.
89325         * doc/posix-functions/mq_unlink.texi: Likewise.
89326         * doc/posix-functions/open_memstream.texi: Likewise.
89327         * doc/posix-functions/openat.texi: Likewise.
89328         * doc/posix-functions/posix_fadvise.texi: Likewise.
89329         * doc/posix-functions/posix_fallocate.texi: Likewise.
89330         * doc/posix-functions/posix_madvise.texi: Likewise.
89331         * doc/posix-functions/posix_memalign.texi: Likewise.
89332         * doc/posix-functions/posix_openpt.texi: Likewise.
89333         * doc/posix-functions/readlinkat.texi: Likewise.
89334         * doc/posix-functions/remque.texi: Likewise.
89335         * doc/posix-functions/renameat.texi: Likewise.
89336         * doc/posix-functions/rintl.texi: Likewise.
89337         * doc/posix-functions/sem_unlink.texi: Likewise.
89338         * doc/posix-functions/shm_open.texi: Likewise.
89339         * doc/posix-functions/shm_unlink.texi: Likewise.
89340         * doc/posix-functions/signgam.texi: Likewise.
89341         * doc/posix-functions/sigset.texi: Likewise.
89342         * doc/posix-functions/stpcpy.texi: Likewise.
89343         * doc/posix-functions/stpncpy.texi: Likewise.
89344         * doc/posix-functions/strerror.texi: Likewise.
89345         * doc/posix-functions/strtod.texi: Likewise.
89346         * doc/posix-functions/symlinkat.texi: Likewise.
89347         * doc/posix-functions/unlinkat.texi: Likewise.
89348         * doc/posix-functions/utimensat.texi: Likewise.
89349         * doc/glibc-functions/bindresvport.texi: Likewise.
89350         * doc/glibc-functions/dn_expand.texi: Likewise.
89351         * doc/glibc-functions/exp10.texi: Likewise.
89352         * doc/glibc-functions/exp10f.texi: Likewise.
89353         * doc/glibc-functions/fgetxattr.texi: Likewise.
89354         * doc/glibc-functions/flistxattr.texi: Likewise.
89355         * doc/glibc-functions/fopencookie.texi: Likewise.
89356         * doc/glibc-functions/freeifaddrs.texi: Likewise.
89357         * doc/glibc-functions/fremovexattr.texi: Likewise.
89358         * doc/glibc-functions/fsetxattr.texi: Likewise.
89359         * doc/glibc-functions/getifaddrs.texi: Likewise.
89360         * doc/glibc-functions/getxattr.texi: Likewise.
89361         * doc/glibc-functions/lgetxattr.texi: Likewise.
89362         * doc/glibc-functions/listxattr.texi: Likewise.
89363         * doc/glibc-functions/llistxattr.texi: Likewise.
89364         * doc/glibc-functions/lremovexattr.texi: Likewise.
89365         * doc/glibc-functions/lsetxattr.texi: Likewise.
89366         * doc/glibc-functions/pow10.texi: Likewise.
89367         * doc/glibc-functions/pow10f.texi: Likewise.
89368         * doc/glibc-functions/rcmd_af.texi: Likewise.
89369         * doc/glibc-functions/removexattr.texi: Likewise.
89370         * doc/glibc-functions/res_init.texi: Likewise.
89371         * doc/glibc-functions/res_mkquery.texi: Likewise.
89372         * doc/glibc-functions/res_query.texi: Likewise.
89373         * doc/glibc-functions/res_querydomain.texi: Likewise.
89374         * doc/glibc-functions/res_send.texi: Likewise.
89375         * doc/glibc-functions/rresvport_af.texi: Likewise.
89376         * doc/glibc-functions/setxattr.texi: Likewise.
89377         * doc/glibc-functions/strcasestr.texi: Likewise.
89379 2008-12-15  Bruno Haible  <bruno@clisp.org>
89381         Fix compilation error on OSF/1 4.0.
89382         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
89383         <sys/time.h>, simply delegate to the system header.
89384         Reported by Daniel Richard G. <oss@teragram.com>.
89386 2008-12-15  Bruno Haible  <bruno@clisp.org>
89388         * doc/posix-functions/openat.texi: Mention the 'openat' module.
89389         * doc/posix-functions/fchmodat.texi: Likewise.
89390         * doc/posix-functions/fchownat.texi: Likewise.
89391         * doc/posix-functions/fdopendir.texi: Likewise.
89392         * doc/posix-functions/fstatat.texi: Likewise.
89393         * doc/posix-functions/mkdirat.texi: Likewise.
89394         * doc/posix-functions/unlinkat.texi: Likewise.
89396 2008-12-14  Bruno Haible  <bruno@clisp.org>
89398         Update doc for POSIX:2008.
89399         * doc/posix-functions/faccessat.texi: New file.
89400         * doc/posix-functions/fchmodat.texi: New file.
89401         * doc/posix-functions/fchownat.texi: New file.
89402         * doc/posix-functions/fdopendir.texi: New file.
89403         * doc/posix-functions/fstatat.texi: New file.
89404         * doc/posix-functions/futimens.texi: New file.
89405         * doc/posix-functions/linkat.texi: New file.
89406         * doc/posix-functions/mkdirat.texi: New file.
89407         * doc/posix-functions/mkfifoat.texi: New file.
89408         * doc/posix-functions/mknodat.texi: New file.
89409         * doc/posix-functions/open_wmemstream.texi: New file.
89410         * doc/posix-functions/openat.texi: New file.
89411         * doc/posix-functions/psiginfo.texi: New file.
89412         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
89413         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
89414         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
89415         * doc/posix-functions/readlinkat.texi: New file.
89416         * doc/posix-functions/renameat.texi: New file.
89417         * doc/posix-functions/strerror_l.texi: New file.
89418         * doc/posix-functions/symlinkat.texi: New file.
89419         * doc/posix-functions/unlinkat.texi: New file.
89420         * doc/posix-functions/utimensat.texi: New file.
89421         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89423 2008-12-14  Bruno Haible  <bruno@clisp.org>
89425         Update doc for POSIX:2008.
89426         * doc/posix-functions/alphasort.texi: Renamed from
89427         doc/glibc-functions/alphasort.texi.
89428         * doc/posix-functions/dirfd.texi: Renamed from
89429         doc/glibc-functions/dirfd.texi.
89430         * doc/posix-functions/dprintf.texi: Renamed from
89431         doc/glibc-functions/dprintf.texi.
89432         * doc/posix-functions/duplocale.texi: Renamed from
89433         doc/glibc-functions/duplocale.texi.
89434         * doc/posix-functions/fexecve.texi: Renamed from
89435         doc/glibc-functions/fexecve.texi.
89436         * doc/posix-functions/fmemopen.texi: Renamed from
89437         doc/glibc-functions/fmemopen.texi.
89438         * doc/posix-functions/freelocale.texi: Renamed from
89439         doc/glibc-functions/freelocale.texi.
89440         * doc/posix-functions/getdate_err.texi: Renamed from
89441         doc/glibc-functions/getdate_err.texi.
89442         * doc/posix-functions/isalnum_l.texi: Renamed from
89443         doc/glibc-functions/isalnum_l.texi.
89444         * doc/posix-functions/isalpha_l.texi: Renamed from
89445         doc/glibc-functions/isalpha_l.texi.
89446         * doc/posix-functions/isblank_l.texi: Renamed from
89447         doc/glibc-functions/isblank_l.texi.
89448         * doc/posix-functions/iscntrl_l.texi: Renamed from
89449         doc/glibc-functions/iscntrl_l.texi.
89450         * doc/posix-functions/isdigit_l.texi: Renamed from
89451         doc/glibc-functions/isdigit_l.texi.
89452         * doc/posix-functions/isgraph_l.texi: Renamed from
89453         doc/glibc-functions/isgraph_l.texi.
89454         * doc/posix-functions/islower_l.texi: Renamed from
89455         doc/glibc-functions/islower_l.texi.
89456         * doc/posix-functions/isprint_l.texi: Renamed from
89457         doc/glibc-functions/isprint_l.texi.
89458         * doc/posix-functions/ispunct_l.texi: Renamed from
89459         doc/glibc-functions/ispunct_l.texi.
89460         * doc/posix-functions/isspace_l.texi: Renamed from
89461         doc/glibc-functions/isspace_l.texi.
89462         * doc/posix-functions/isupper_l.texi: Renamed from
89463         doc/glibc-functions/isupper_l.texi.
89464         * doc/posix-functions/iswalnum_l.texi: Renamed from
89465         doc/glibc-functions/iswalnum_l.texi.
89466         * doc/posix-functions/iswalpha_l.texi: Renamed from
89467         doc/glibc-functions/iswalpha_l.texi.
89468         * doc/posix-functions/iswblank_l.texi: Renamed from
89469         doc/glibc-functions/iswblank_l.texi.
89470         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89471         doc/glibc-functions/iswcntrl_l.texi.
89472         * doc/posix-functions/iswctype_l.texi: Renamed from
89473         doc/glibc-functions/iswctype_l.texi.
89474         * doc/posix-functions/iswdigit_l.texi: Renamed from
89475         doc/glibc-functions/iswdigit_l.texi.
89476         * doc/posix-functions/iswgraph_l.texi: Renamed from
89477         doc/glibc-functions/iswgraph_l.texi.
89478         * doc/posix-functions/iswlower_l.texi: Renamed from
89479         doc/glibc-functions/iswlower_l.texi.
89480         * doc/posix-functions/iswprint_l.texi: Renamed from
89481         doc/glibc-functions/iswprint_l.texi.
89482         * doc/posix-functions/iswpunct_l.texi: Renamed from
89483         doc/glibc-functions/iswpunct_l.texi.
89484         * doc/posix-functions/iswspace_l.texi: Renamed from
89485         doc/glibc-functions/iswspace_l.texi.
89486         * doc/posix-functions/iswupper_l.texi: Renamed from
89487         doc/glibc-functions/iswupper_l.texi.
89488         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89489         doc/glibc-functions/iswxdigit_l.texi.
89490         * doc/posix-functions/isxdigit_l.texi: Renamed from
89491         doc/glibc-functions/isxdigit_l.texi.
89492         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89493         doc/glibc-functions/mbsnrtowcs.texi.
89494         * doc/posix-functions/mkdtemp.texi: Renamed from
89495         doc/glibc-functions/mkdtemp.texi.
89496         * doc/posix-functions/newlocale.texi: Renamed from
89497         doc/glibc-functions/newlocale.texi.
89498         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89499         doc/glibc-functions/nl_langinfo_l.texi.
89500         * doc/posix-functions/open_memstream.texi: Renamed from
89501         doc/glibc-functions/open_memstream.texi.
89502         * doc/posix-functions/opterr.texi: Renamed from
89503         doc/glibc-functions/opterr.texi.
89504         * doc/posix-functions/optind.texi: Renamed from
89505         doc/glibc-functions/optind.texi.
89506         * doc/posix-functions/optopt.texi: Renamed from
89507         doc/glibc-functions/optopt.texi.
89508         * doc/posix-functions/psignal.texi: Renamed from
89509         doc/glibc-functions/psignal.texi.
89510         * doc/posix-functions/scandir.texi: Renamed from
89511         doc/glibc-functions/scandir.texi.
89512         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89513         doc/glibc-functions/sched_get_priority_min.texi.
89514         * doc/posix-functions/signgam.texi: Renamed from
89515         doc/glibc-functions/signgam.texi.
89516         * doc/posix-functions/stpcpy.texi: Renamed from
89517         doc/glibc-functions/stpcpy.texi.
89518         * doc/posix-functions/stpncpy.texi: Renamed from
89519         doc/glibc-functions/stpncpy.texi.
89520         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89521         doc/glibc-functions/strcasecmp_l.texi.
89522         * doc/posix-functions/strcoll_l.texi: Renamed from
89523         doc/glibc-functions/strcoll_l.texi.
89524         * doc/posix-functions/strfmon_l.texi: Renamed from
89525         doc/glibc-functions/strfmon_l.texi.
89526         * doc/posix-functions/strftime_l.texi: Renamed from
89527         doc/glibc-functions/strftime_l.texi.
89528         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89529         doc/glibc-functions/strncasecmp_l.texi.
89530         * doc/posix-functions/strndup.texi: Renamed from
89531         doc/glibc-functions/strndup.texi.
89532         * doc/posix-functions/strnlen.texi: Renamed from
89533         doc/glibc-functions/strnlen.texi.
89534         * doc/posix-functions/strsignal.texi: Renamed from
89535         doc/glibc-functions/strsignal.texi.
89536         * doc/posix-functions/strxfrm_l.texi: Renamed from
89537         doc/glibc-functions/strxfrm_l.texi.
89538         * doc/posix-functions/timer_gettime.texi: Renamed from
89539         doc/glibc-functions/timer_gettime.texi.
89540         * doc/posix-functions/tolower_l.texi: Renamed from
89541         doc/glibc-functions/tolower_l.texi.
89542         * doc/posix-functions/toupper_l.texi: Renamed from
89543         doc/glibc-functions/toupper_l.texi.
89544         * doc/posix-functions/towctrans_l.texi: Renamed from
89545         doc/glibc-functions/towctrans_l.texi.
89546         * doc/posix-functions/towlower_l.texi: Renamed from
89547         doc/glibc-functions/towlower_l.texi.
89548         * doc/posix-functions/towupper_l.texi: Renamed from
89549         doc/glibc-functions/towupper_l.texi.
89550         * doc/posix-functions/uselocale.texi: Renamed from
89551         doc/glibc-functions/uselocale.texi.
89552         * doc/posix-functions/vdprintf.texi: Renamed from
89553         doc/glibc-functions/vdprintf.texi.
89554         * doc/posix-functions/wcpcpy.texi:
89555         Renamed from doc/glibc-functions/wcpcpy.texi.
89556         * doc/posix-functions/wcpncpy.texi: Renamed from
89557         doc/glibc-functions/wcpncpy.texi.
89558         * doc/posix-functions/wcscasecmp.texi: Renamed from
89559         doc/glibc-functions/wcscasecmp.texi.
89560         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89561         doc/glibc-functions/wcscasecmp_l.texi.
89562         * doc/posix-functions/wcscoll_l.texi: Renamed from
89563         doc/glibc-functions/wcscoll_l.texi.
89564         * doc/posix-functions/wcsdup.texi: Renamed from
89565         doc/glibc-functions/wcsdup.texi.
89566         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89567         doc/glibc-functions/wcsncasecmp.texi.
89568         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89569         doc/glibc-functions/wcsncasecmp_l.texi.
89570         * doc/posix-functions/wcsnlen.texi: Renamed from
89571         doc/glibc-functions/wcsnlen.texi.
89572         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89573         doc/glibc-functions/wcsnrtombs.texi.
89574         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89575         doc/glibc-functions/wcsxfrm_l.texi.
89576         * doc/posix-functions/wctrans_l.texi: Renamed from
89577         doc/glibc-functions/wctrans_l.texi.
89578         * doc/posix-functions/wctype_l.texi: Renamed from
89579         doc/glibc-functions/wctype_l.texi.
89580         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89581         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89582         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89583         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89584         these subsections.
89585         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89586         Remove sections.
89588 2008-12-14  Bruno Haible  <bruno@clisp.org>
89590         Update doc for POSIX:2008.
89591         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89593 2008-12-14  Bruno Haible  <bruno@clisp.org>
89595         Update doc for POSIX:2008.
89596         * doc/pastposix-functions/bcmp.texi: Renamed from
89597         doc/posix-functions/bcmp.texi.
89598         * doc/pastposix-functions/bcopy.texi: Renamed from
89599         doc/posix-functions/bcopy.texi.
89600         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89601         doc/posix-functions/bsd_signal.texi.
89602         * doc/pastposix-functions/bzero.texi: Renamed from
89603         doc/posix-functions/bzero.texi.
89604         * doc/pastposix-functions/ecvt.texi: Renamed from
89605         doc/posix-functions/ecvt.texi.
89606         * doc/pastposix-functions/fcvt.texi: Renamed from
89607         doc/posix-functions/fcvt.texi.
89608         * doc/pastposix-functions/ftime.texi: Renamed from
89609         doc/posix-functions/ftime.texi.
89610         * doc/pastposix-functions/gcvt.texi: Renamed from
89611         doc/posix-functions/gcvt.texi.
89612         * doc/pastposix-functions/getcontext.texi: Renamed from
89613         doc/posix-functions/getcontext.texi.
89614         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89615         doc/posix-functions/gethostbyaddr.texi.
89616         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89617         doc/posix-functions/gethostbyname.texi.
89618         * doc/pastposix-functions/getwd.texi: Renamed from
89619         doc/posix-functions/getwd.texi.
89620         * doc/pastposix-functions/h_errno.texi: Renamed from
89621         doc/posix-functions/h_errno.texi.
89622         * doc/pastposix-functions/index.texi: Renamed from
89623         doc/posix-functions/index.texi.
89624         * doc/pastposix-functions/makecontext.texi: Renamed from
89625         doc/posix-functions/makecontext.texi.
89626         * doc/pastposix-functions/mktemp.texi: Renamed from
89627         doc/posix-functions/mktemp.texi.
89628         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89629         doc/posix-functions/pthread_attr_getstackaddr.texi.
89630         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89631         doc/posix-functions/pthread_attr_setstackaddr.texi.
89632         * doc/pastposix-functions/rindex.texi: Renamed from
89633         doc/posix-functions/rindex.texi.
89634         * doc/pastposix-functions/scalb.texi: Renamed from
89635         doc/posix-functions/scalb.texi.
89636         * doc/pastposix-functions/setcontext.texi: Renamed from
89637         doc/posix-functions/setcontext.texi.
89638         * doc/pastposix-functions/swapcontext.texi: Renamed from
89639         doc/posix-functions/swapcontext.texi.
89640         * doc/pastposix-functions/ualarm.texi: Renamed from
89641         doc/posix-functions/ualarm.texi.
89642         * doc/pastposix-functions/usleep.texi: Renamed from
89643         doc/posix-functions/usleep.texi.
89644         * doc/pastposix-functions/vfork.texi: Renamed from
89645         doc/posix-functions/vfork.texi.
89646         * doc/pastposix-functions/wcswcs.texi: Renamed from
89647         doc/posix-functions/wcswcs.texi.
89648         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89649         (Function Substitutes): Update.
89651 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89653         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89654         m4/strerror.m4.
89656 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89657             Bruno Haible  <bruno@clisp.org>
89659         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89661 2008-12-13  Bruno Haible  <bruno@clisp.org>
89663         * modules/strtoull (Depends-on): Remove unistd.
89665 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89667         * modules/strtoull (Depends-on): Add stdlib.
89669 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89671         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89673 2008-12-10  Jim Meyering  <meyering@redhat.com>
89675         gl_ASSERT: don't say assertions are disabled when they're not
89676         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89677         "checking whether to enable assertions... no", when they are in
89678         fact enabled.  This is solely a bug in the output of configure.
89679         In spite of saying "no", NDEBUG was not defined in that case.
89680         Also, as noted by Eric Blake, leave assertions enabled upon
89681         --enable-assert=INVALID.
89683 2008-12-10  Bruno Haible  <bruno@clisp.org>
89685         Change MODULES.html to refer to POSIX:2008 where possible.
89686         * MODULES.html.sh (POSIX2008_URL): New variable.
89687         (posix_headers): Remove sys/timeb, ucontext.
89688         (posix2001_headers): New variable.
89689         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89690         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89691         index, makecontext, mktemp, pthread_attr_getstackaddr,
89692         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89693         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89694         (posix2001_functions): New variable.
89695         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89696         otherwise.
89698 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89700         add missing include to parse-duration.c
89701         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89702         * modules/parse-duration (Depends-on): Add xalloc.
89704         fix sed script reading maint.mk
89705         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89706         (syntax-check-rules): Use it.
89708 2008-12-09  Bruno Haible  <bruno@clisp.org>
89710         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89711         MacOS X 10.4/PowerPC.
89712         Reported by Simon Josefsson.
89714 2008-12-08  Jim Meyering  <meyering@redhat.com>
89716         work around mingw's lack of some S_IF definitions
89717         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89718         Reported by Simon Josefsson.
89720 2008-12-08  Bruno Haible  <bruno@clisp.org>
89722         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89723         applied to variables. Needed on MacOS X 10.4/PowerPC.
89724         Reported by Simon Josefsson.
89726 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89727         and Eric Blake  <ebb9@byu.net>
89729         assert: honor --enable-assert
89730         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89731         order to honor --enable-assert, rather than treating it as a
89732         synonym for --disable-assert.
89734 2008-12-08  Jim Meyering  <meyering@redhat.com>
89736         * lib/posixtm.c: Remove now-useless declaration of mktime.
89738         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89740 2008-12-07  Bruno Haible  <bruno@clisp.org>
89742         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89743         test_once): Mark functions as static.
89744         * tests/test-tls.c (test_tls): Likewise.
89746 2008-12-07  Bruno Haible  <bruno@clisp.org>
89748         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89749         iconv_register_autodetect.
89751 2008-12-07  Jim Meyering  <meyering@redhat.com>
89753         posixtm.c: avoid a warning
89754         * lib/posixtm.c (posixtime): Don't initialize tm0.
89755         It's no longer needed to placate gcc4's -Wuninitialized,
89756         and the attempt to placate would elicit a new warning.
89758         unicodeio.c: mark unused parameters
89759         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89760         (fallback_failure_callback): Likewise.
89762 2008-12-07  Bruno Haible  <bruno@clisp.org>
89764         * gnulib-tool (func_create_testdir): When building the tests
89765         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89766         Reported by Simon Josefsson.
89768 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89770         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89772 2008-12-06  Bruno Haible  <bruno@clisp.org>
89774         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89775         Suggested by Eric Blake.
89777 2008-12-06  Bruno Haible  <bruno@clisp.org>
89779         Fix a c-stack test failure on MacOS X.
89780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89781         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89782         handler for SIGBUS as well.
89783         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89784         install a signal handler for SIGBUS as well.
89785         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89787 2008-12-06  Bruno Haible  <bruno@clisp.org>
89789         Advocacy documentation.
89790         * doc/gnulib-intro.texi (Benefits): New section.
89791         * doc/gnulib.texi: Update.
89793 2008-12-06  Bruno Haible  <bruno@clisp.org>
89795         Document the 'manywarnings' module.
89796         * doc/manywarnings.texi: New file.
89797         * doc/gnulib.texi: Include it.
89799 2008-12-05  Eric Blake  <ebb9@byu.net>
89801         tests: silence some gcc warnings
89802         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89803         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89804         type mismatches.
89806 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89807             Bruno Haible  <bruno@clisp.org>
89809         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89811 2008-11-29  Jim Meyering  <meyering@redhat.com>
89813         unicodeio.c: mark unused parameters
89814         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89815         (fallback_failure_callback): Likewise.
89817         fts: fix a thinko
89818         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89819         (set_stat_type): Return S_IF*-valued "type" directly.
89820         Prompted by James Youngman's spotting a related bug.
89821         Confirmed by further testing through find.
89823         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89824         * lib/fts.c (D_TYPE): Define.
89825         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89826         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89827         (s_ifmt_shift_bits): New function.
89828         (set_stat_type): New function.
89829         (fts_build): When not calling fts_stat, call set_stat_type
89830         to propagate dirent.d_type info to fts_read caller.
89831         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89832         fts_statp->st_mode type information may be valid.
89834 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89836         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89837         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89838         <sds@gnu.org>.
89840 2008-11-20  Bruno Haible  <bruno@clisp.org>
89842         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89843         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89844         INCLUDE_NEXT.
89845         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89846         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89847         * modules/math (Makefile.am): Substitute
89848         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89849         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89851 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89852             Bruno Haible  <bruno@clisp.org>
89854         * lib/stdint.in.h: Define all type macros so that their expansion is
89855         a single typedef'ed token. Fixes a compilation failure in Boost which
89856         does "using ::int8_t;".
89858 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89860         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89861         gl_MANYWARN_ALL_GCC.
89862         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89863         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89864         * modules/manywarnings: New file.
89865         * MODULES.html.sh: Mention manywarnings module.
89867 2008-11-18  Bruno Haible  <bruno@clisp.org>
89869         * doc/gnulib-tool.texi (Unit tests): New section.
89871 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89873         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89874         paths like 'lib/po/foo.po'.
89876 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89878         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89879         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89881 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89883         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89884         parameter works.
89886 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89888         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89890 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89892         * modules/parse-duration-tests: New file.
89893         * tests/test-parse-duration.sh: New file.
89894         * tests/test-parse-duration.c: New file.
89896         New module 'parse-duration'.
89897         * lib/parse-duration.h: New file.
89898         * lib/parse-duration.c: New file.
89899         * modules/parse-duration: New file.
89901 2008-11-17  Bruno Haible  <bruno@clisp.org>
89903         * tests/test-select-out.sh: Comment out the first pipe test.
89904         Reported by Simon Josefsson.
89906 2008-11-17  Bruno Haible  <bruno@clisp.org>
89908         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89909         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89910         gl_HOSTENT.
89912 2008-11-17  Bruno Haible  <bruno@clisp.org>
89914         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89915         -lnetwork and -lnet. Needed for Haiku and BeOS.
89917 2008-11-16  Bruno Haible  <bruno@clisp.org>
89919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89921 2008-11-16  Bruno Haible  <bruno@clisp.org>
89923         Avoid test failure on Haiku.
89924         * tests/test-fsync.c: Include <errno.h>.
89925         (main): Don't require that fsync (0) fails.
89927 2008-11-15  Bruno Haible  <bruno@clisp.org>
89929         New module 'hostent'.
89930         * modules/hostent: New file.
89931         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89933 2008-11-15  Bruno Haible  <bruno@clisp.org>
89935         New module 'servent'.
89936         * modules/servent: New file.
89937         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89939 2008-11-15  Bruno Haible  <bruno@clisp.org>
89941         Avoid generating same test program with two different rules.
89942         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89943         test-frexp to test-frexp-nolibm.
89944         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89945         test-frexpl to test-frexpl-nolibm.
89947 2008-11-15  Bruno Haible  <bruno@clisp.org>
89949         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89950         $(FREXPL_LIBM).
89952 2008-11-15  Bruno Haible  <bruno@clisp.org>
89954         * lib/netdb.in.h: Activate the definitions also when the system's
89955         <netdb.h> has 'struct addrinfo'.
89956         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89957         EAI_OVERFLOW or AI_NUMERICSERV.
89958         * doc/posix-headers/netdb.texi: Document the problem.
89960 2008-11-15  Bruno Haible  <bruno@clisp.org>
89962         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89964         Make the 'sched' module work on platforms where <sched.h> exists but
89965         is incomplete (such as Haiku).
89966         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89967         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89968         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89969         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89970         HAVE_STRUCT_SCHED_PARAM.
89971         * modules/sched (Depends-on): Add include_next.
89972         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89973         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89974         * doc/posix-headers/sched.texi: Document the issue.
89976 2008-11-13  Jim Meyering  <meyering@redhat.com>
89978         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89979         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89980         test would fail due to the difference in the Report bugs to ...
89981         line.  The expected address is empty, "<>", while the actual
89982         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89984 2008-11-12  Bruno Haible  <bruno@clisp.org>
89986         lstat: don't compile lstat.c on systems lacking lstat
89987         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89988         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89989         Reported by Daniel P. Berrange via Jim Meyering.
89991 2008-11-12  Jim Meyering  <meyering@redhat.com>
89993         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89995 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89997         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89998         instead.
90000 2008-11-12  Bruno Haible  <bruno@clisp.org>
90002         * lib/unicodeio.c: Include unistr.h.
90003         (utf8_wctomb): Remove function.
90004         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
90006 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90008         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
90009         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
90010         <bruno@clisp.org>.
90011         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
90013 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90015         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
90016         * doc/gnulib.texi: Add section for warnings.
90018 2008-11-11  Bruno Haible  <bruno@clisp.org>
90020         * lib/sockets.h: Add a comment.
90022 2008-11-11  Karl Berry  <karl@gnu.org>
90024         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
90026 2008-11-11  Eric Blake  <ebb9@byu.net>
90028         fdl.texi: avoid git symlinks
90029         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
90031 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90033         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
90035 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90037         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
90038         (gl_WARN_ADD): Substitute $2 if literal.
90040 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90042         * m4/warning.m4: Remove.
90044 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90046         * m4/warnings.m4: Almost complete rewrite. :-)
90048 2008-11-10  Simon Josefsson  <simon@josefsson.org>
90050         * modules/warnings: New module.
90051         * m4/warnings.m4: New file.
90052         * MODULES.html.sh: Mention warnings module.
90053         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
90054         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90056 2008-11-10  Eric Blake  <ebb9@byu.net>
90058         fdl.texi: make a symlink to the latest version
90059         * doc/standards.texi: Revert today's earlier change.
90060         * doc/fdl-1.2.texi: Rename from old fdl.texi...
90061         * doc/fdl.texi: ...and replace this with a symlink to the newer
90062         fdl-1.3.texi.
90064 2008-11-10  Bruno Haible  <bruno@clisp.org>
90066         * tests/test-select-fd.c (main): Accept the result file name as fourth
90067         argument.
90068         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
90069         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
90071 2008-11-10  Bruno Haible  <bruno@clisp.org>
90073         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
90074         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
90075         as autoconf-substituted macros.
90076         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
90077         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
90078         gl_NETDB_H_DEFAULTS. Set these variables.
90079         * modules/netdb (Makefile.am): Substitute these variables.
90081 2008-11-10  Eric Blake  <ebb9@byu.net>
90083         standards.texi: include correct file for FDL 1.3
90084         * doc/standards.texi (GNU Free Documentation License): Change
90085         include file to pull in FDL 1.3, not 1.2.
90087         fdl.texi: revert accidental change to license
90088         * doc/fdl.texi: This is FDL 1.2, not 1.3.
90090 2008-11-10  Bruno Haible  <bruno@clisp.org>
90092         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
90093         cross-compiling guesses also when the native compile gives no result.
90095 2008-11-10  Bruno Haible  <bruno@clisp.org>
90097         * lib/spawni.c (__spawni): Force variable into the stack.
90099 2008-11-10  Bruno Haible  <bruno@clisp.org>
90101         Add support for Haiku.
90102         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
90103         glibc and BeOS, but also on Haiku.
90104         * lib/fpurge.c (fpurge): Likewise.
90105         * lib/freadable.c (freadable): Likewise.
90106         * lib/freadahead.c (freadahead): Likewise.
90107         * lib/freading.c (freading): Likewise.
90108         * lib/freadptr.c (freadptr): Likewise.
90109         * lib/freadseek.c (freadptrinc): Likewise.
90110         * lib/fseeko.c (rpl_fseeko): Likewise.
90111         * lib/fseterr.c (fseterr): Likewise.
90112         * lib/fwritable.c (fwritable): Likewise.
90113         * lib/fwriting.c (fwriting): Likewise.
90114         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
90116 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90118         * lib/config.charset: Treat Haiku like BeOS.
90120 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90122         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
90123         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
90125 2008-11-08  Bruno Haible  <bruno@clisp.org>
90127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
90128         AC_CACHE_CHECK.
90130 2008-11-08  Bruno Haible  <bruno@clisp.org>
90132         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
90134 2008-11-08  Bruno Haible  <bruno@clisp.org>
90136         * tests/test-select-fd.c: New file.
90137         * tests/test-select-in.sh: New file.
90138         * tests/test-select-out.sh: New file.
90139         * tests/test-select-stdin.c: New file.
90140         * modules/select-tests (Files): Add the new files.
90141         (Depends-on): Add gettimeofday.
90142         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
90143         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
90144         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
90146 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
90147             Bruno Haible  <bruno@clisp.org>
90149         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
90151 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
90153         * build-aux/pmccabe2html: Added support for C++ source files.
90155 2008-11-05  Ben Pfaff  <blp@gnu.org>
90157         Fix lib/close.c build on Windows.
90158         * modules/close (Files): Add lib/w32sock.h.
90160 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
90162         Accept Bison's NEWS format.
90163         * build-aux/announce-gen (print_news_deltas): Tweak
90164         $re_prefix.
90166 2008-11-04  Bruno Haible  <bruno@clisp.org>
90168         * modules/random_r (Maintainer): Add glibc.
90170 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90172         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
90173         by karl@freefriends.org (Karl Berry).
90174         * doc/alloca.texi: Likewise.
90175         * doc/c-ctype.texi: Likewise.
90176         * doc/c-strcase.texi: Likewise.
90177         * doc/c-strcaseeq.texi: Likewise.
90178         * doc/c-strcasestr.texi: Likewise.
90179         * doc/c-strstr.texi: Likewise.
90180         * doc/c-strtod.texi: Likewise.
90181         * doc/c-strtold.texi: Likewise.
90182         * doc/ctime.texi: Likewise.
90183         * doc/error.texi: Likewise.
90184         * doc/fdl.texi: Likewise.
90185         * doc/gcd.texi: Likewise.
90186         * doc/getdate.texi: Likewise.
90187         * doc/gnulib-intro.texi: Likewise.
90188         * doc/gnulib-tool.texi: Likewise.
90189         * doc/gnulib.texi: Likewise.
90190         * doc/inet_ntoa.texi: Likewise.
90191         * doc/maintain.texi: Likewise.
90192         * doc/make-stds.texi: Likewise.
90193         * doc/quote.texi: Likewise.
90194         * doc/regexprops-generic.texi: Likewise.
90195         * doc/standards.texi: Likewise.
90196         * doc/verify.texi: Likewise.
90197         * doc/visibility.texi: Likewise.
90198         * doc/gnulib.texi (GNU Free Documentation License): Include
90199         fdl-1.3.texi instead of fdl.texi.
90201 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90203         * doc/fdl-1.3.texi: New file, from
90204         <http://www.gnu.org/licenses/fdl-1.3.texi>.
90205         * modules/fdl-1.3: Add.
90206         * MODULES.html.sh: Add fdl-1.3.
90208 2008-11-03  Bruno Haible  <bruno@clisp.org>
90210         Make determination of absolute name of header file work with AIX xlc.
90211         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
90212         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
90213         preprocessing.
90214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90215         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
90217 2008-11-03  Simon Josefsson  <simon@josefsson.org>
90219         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
90220         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
90221         <ludo@gnu.org>.
90223 2008-11-02  Bruno Haible  <bruno@clisp.org>
90225         Mark 'strpbrk' obsolete.
90226         * modules/strpbrk (Status, Notice): New sections.
90227         * modules/strtok_r (Depends-on): Add strpbrk.
90229 2008-11-02  Bruno Haible  <bruno@clisp.org>
90231         Mark 'strdup' obsolete.
90232         * modules/strdup (Status, Notice): New sections.
90233         * modules/findprog (Depends-on): Add strdup.
90234         * modules/getaddrinfo (Depends-on): Likewise.
90235         * modules/localename (Depends-on): Likewise.
90236         * modules/relocatable-lib (Depends-on): Likewise.
90237         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
90238         * modules/relocatable-prog (Depends-on): Likewise.
90239         * modules/trim (Depends-on): Likewise.
90240         * modules/unictype/gen-ctype (Depends-on): Likewise.
90241         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90243 2008-11-02  Bruno Haible  <bruno@clisp.org>
90245         Mark 'strcspn' obsolete.
90246         * modules/strcspn (Status, Notice): New sections.
90248 2008-11-02  Bruno Haible  <bruno@clisp.org>
90250         Mark 'rmdir' obsolete.
90251         * modules/rmdir (Status, Notice): New sections.
90252         * modules/clean-temp (Depends-on): Add rmdir.
90253         * modules/openat (Depends-on): Likewise.
90255 2008-11-02  Bruno Haible  <bruno@clisp.org>
90257         Mark 'raise' obsolete.
90258         * modules/raise (Status, Notice): New sections.
90259         (Include): Specify <signal.h>.
90260         * modules/stdio (Depends-on): Add raise.
90261         * modules/write (Depends-on): Likewise.
90263 2008-11-02  Bruno Haible  <bruno@clisp.org>
90265         Mark 'memset' obsolete.
90266         * modules/memset (Status, Notice): New sections.
90268 2008-11-02  Bruno Haible  <bruno@clisp.org>
90270         Mark 'memmove' obsolete.
90271         * modules/memmove (Status, Notice): New sections.
90272         * modules/argp (Depends-on): Add memmove.
90273         * modules/argz (Depends-on): Likewise.
90274         * modules/canonicalize (Depends-on): Likewise.
90275         * modules/canonicalize-lgpl (Depends-on): Likewise.
90276         * modules/fts (Depends-on): Likewise.
90277         * modules/getcwd (Depends-on): Likewise.
90278         * modules/human (Depends-on): Likewise.
90279         * modules/regex (Depends-on): Likewise.
90280         * modules/striconveh (Depends-on): Likewise.
90281         * modules/trim (Depends-on): Likewise.
90282         * modules/unistr/u8-move (Depends-on): Likewise.
90283         * modules/unistr/u16-move (Depends-on): Likewise.
90284         * modules/unistr/u32-move (Depends-on): Likewise.
90286 2008-11-02  Bruno Haible  <bruno@clisp.org>
90288         Mark 'memcpy' obsolete.
90289         * modules/memcpy (Status, Notice): New sections.
90291 2008-11-02  Bruno Haible  <bruno@clisp.org>
90293         Mark 'memcmp' obsolete.
90294         * modules/memcmp (Status, Notice): New sections.
90295         * modules/argmatch (Depends-on): Add memchr.
90296         * modules/backupfile (Depends-on): Likewise.
90297         * modules/c-strcasestr (Depends-on): Likewise.
90298         * modules/crypto/des (Depends-on): Likewise.
90299         * modules/csharpcomp (Depends-on): Likewise.
90300         * modules/fnmatch (Depends-on): Likewise.
90301         * modules/git-merge-changelog (Depends-on): Likewise.
90302         * modules/isnand (Depends-on): Likewise.
90303         * modules/isnand-nolibm (Depends-on): Likewise.
90304         * modules/isnanf (Depends-on): Likewise.
90305         * modules/isnanf-nolibm (Depends-on): Likewise.
90306         * modules/isnanl (Depends-on): Likewise.
90307         * modules/isnanl-nolibm (Depends-on): Likewise.
90308         * modules/mbchar (Depends-on): Likewise.
90309         * modules/memcoll (Depends-on): Likewise.
90310         * modules/quotearg (Depends-on): Likewise.
90311         * modules/regex (Depends-on): Likewise.
90312         * modules/relocatable-prog (Depends-on): Likewise.
90313         * modules/same (Depends-on): Likewise.
90314         * modules/signbit (Depends-on): Likewise.
90315         * modules/strcasestr-simple (Depends-on): Likewise.
90316         * modules/unictype/gen-ctype (Depends-on): Likewise.
90317         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90318         * modules/uniname/uniname (Depends-on): Likewise.
90319         * modules/unistr/u8-cmp (Depends-on): Likewise.
90321 2008-11-02  Bruno Haible  <bruno@clisp.org>
90323         Mark 'memchr' obsolete.
90324         * modules/memchr (Status, Notice): New sections.
90325         * modules/argp (Depends-on): Add memchr.
90326         * modules/base64 (Depends-on): Likewise.
90327         * modules/c-strcasestr (Depends-on): Likewise.
90328         * modules/chdir-long (Depends-on): Likewise.
90329         * modules/fnmatch (Depends-on): Likewise.
90330         * modules/getsubopt (Depends-on): Likewise.
90331         * modules/git-merge-changelog (Depends-on): Likewise.
90332         * modules/glob (Depends-on): Likewise.
90333         * modules/strcasestr-simple (Depends-on): Likewise.
90334         * modules/strnlen (Depends-on): Likewise.
90336 2008-11-02  Bruno Haible  <bruno@clisp.org>
90338         Mark 'atexit' obsolete.
90339         * modules/atexit (Status, Notice): New sections.
90340         * modules/chdir-long (Depends-on): Add atexit.
90341         * modules/wait-process (Depends-on): Likewise.
90343 2008-11-02  Bruno Haible  <bruno@clisp.org>
90345         * gnulib-tool: New option --with-obsolete.
90346         (func_usage): Document it.
90347         (func_modules_transitive_closure): Drop obsolete dependencies if
90348         incobsolete is not true.
90349         (func_import): Read and save the incobsolete variable to the cache.
90351 2008-11-02  Bruno Haible  <bruno@clisp.org>
90353         * modules/TEMPLATE-EXTENDED: New field 'Status'.
90354         * gnulib-tool: New option --extract-status.
90355         (func_usage): Document it.
90356         (sed_extract_prog): Recognize it.
90357         (func_get_status): New function.
90359 2008-10-30  Simon Josefsson  <simon@josefsson.org>
90361         * modules/sockets (License): Change from LGPL to LGPLv2+.
90363 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90365         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
90367 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90369         * MODULES.html.sh (Support for systems lacking POSIX:2001):
90370         Mention times and sys_times.
90371         * modules/sys_times, modules/sys_times-tests: New modules.
90372         * modules/times, modules/times-tests: Likewise
90373         * m4/sys_times_h.m4: New file.
90374         * lib/sys_times.in.h: Likewise
90375         * lib/times.c: Likewise.
90376         * tests/test-sys_times.c: Likewise.
90377         * tests/test-times.c: Likewise.
90378         * doc/posix-headers/sys_times.texi: Update.
90379         * doc/posix-functions/times.texi: Update.
90381 2008-10-28  Jim Meyering  <meyering@redhat.com>
90383         * modules/tempname (Depends-on): Add lstat.
90385         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
90387 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90389         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
90390         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
90391         using idiom used elsewhere in gnulib.
90393 2008-10-27  Jim Meyering  <meyering@redhat.com>
90395         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
90397 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90399         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
90400         TESTS_ENVIRONMENT, for shell scripts that needs to call built
90401         programs.
90402         * tests/test-argp-2.sh: Use $EXEEXT when needed.
90404 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90406         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
90408 2008-10-27  Bruno Haible  <bruno@clisp.org>
90410         * tests/test-lstat.c: Include <stdio.h>.
90412 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90414         * modules/lstat-tests: New module.
90415         * tests/test-lstat.c: New file.
90417 2008-10-26  Jim Meyering  <meyering@redhat.com>
90419         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90421 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90422             Bruno Haible  <bruno@clisp.org>
90424         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90425         * modules/configmake (Include): Add a note that the include must come
90426         after all system headers.
90427         * lib/javaversion.c: Include configmake.h after all other includes.
90429 2008-10-26  Bruno Haible  <bruno@clisp.org>
90431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90432         HAVE_STRUCT_RANDOM_DATA to 1.
90433         (gl_STDLIB_H): Simplify.
90435 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90437         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90438         substitute HAVE_STRUCT_RANDOM_DATA.
90439         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90440         random_data.
90441         * modules/stdlib (Makefile.am): Substitute
90442         HAVE_STRUCT_RANDOM_DATA.
90444 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90446         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90447         * doc/gnulib-intro.texi (Copyright): Likewise.
90449 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90451         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90452         findings.
90454 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90455             Bruno Haible  <bruno@clisp.org>
90457         * lib/unistd.in.h: Include <winsock2.h>.
90458         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90459         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90460         Provide dummy declarations.
90461         (gethostname): Override.
90462         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90463         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90464         gl_PREREQ_SYS_H_WINSOCK2.
90465         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90466         * doc/posix-functions/gethostname.texi: More details.
90468 2008-10-25  Bruno Haible  <bruno@clisp.org>
90470         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90471         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90472         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90474         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90475         here ...
90476         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90478         gl_UNISTD_H_DEFAULTS.
90480 2008-10-25  Eric Blake  <ebb9@byu.net>
90482         signbit: avoid spurious compiler failure
90483         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90484         declarations inside function.
90486 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90487             Bruno Haible  <bruno@clisp.org>
90489         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90490         * modules/random_r (Depends-on): Add stdint.
90492 2008-10-24  Bruno Haible  <bruno@clisp.org>
90494         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90495         Eggert.
90496         * modules/strerror (License): Likewise.
90498 2008-10-24  Jim Meyering  <meyering@redhat.com>
90500         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90501         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90503 2008-10-24  Eric Blake  <ebb9@byu.net>
90505         getgroups: fix compilation when getgroups is available
90506         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90507         but with <config.h> override of getgroups disabled.
90509 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90511         * doc/gnulib.texi (Header files): Add note about C++ problems.
90512         Explained by Bruno Haible <bruno@clisp.org>.
90514 2008-10-23  Bruno Haible  <bruno@clisp.org>
90516         Define a dummy SA_NODEFER macro on Interix.
90517         * lib/signal.in.h (SA_NODEFER): Define fallback.
90518         Reported by Aleksey Cheusov <cheusov@tut.by> via
90519         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90521 2008-10-23  Bruno Haible  <bruno@clisp.org>
90523         * modules/freadahead (License): Change to LGPLv2+.
90524         Suggested by Simon Josefsson.
90526 2008-10-23  Jim Meyering  <meyering@redhat.com>
90528         random_r: new module
90529         * modules/random_r: New file.
90530         * m4/random_r.m4: New file.
90531         * lib/random_r.c: New file, from glibc.
90532         * modules/random_r-tests: New file.
90533         * tests/test-random_r.c: New file.
90534         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90535          Declare.
90536         (RAND_MAX): Define.
90537         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90538         * modules/stdlib: Substitute them, too.
90539         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90540         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90541         * doc/glibc-functions/random_r.texi: Likewise.
90542         * doc/glibc-functions/setstate_r.texi: Likewise.
90543         * doc/glibc-functions/srandom_r.texi: Likewise.
90544         * config/srclist.txt: Mention it.
90546 2008-10-23  David Lutterkort  <lutter@redhat.com>
90548         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90549         link requirement
90551 2008-10-23  Jim Meyering  <meyering@redhat.com>
90553         selinux-h: mark parameters of stub functions as intentionally unused
90554         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90555         * lib/se-context.in.h: Likewise.
90557 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90559         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90561 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90563         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90565 2008-10-22  Eric Blake  <ebb9@byu.net>
90567         glthread/thread: avoid compiler warning
90568         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90569         Add unreachable abort to silence compiler.
90571 2008-10-22  Eric Blake  <ebb9@byu.net>
90573         netdb: also supply struct addrinfo for cygwin 1.5.x
90574         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90575         older cygwin.
90576         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90577         cygwin.
90578         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90580 2008-10-22  Bruno Haible  <bruno@clisp.org>
90582         * users.txt: Update entry about pspp.
90584 2008-10-21  Bruno Haible  <bruno@clisp.org>
90586         Simplification.
90587         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90588         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90590         Simplification.
90591         * lib/ioctl.c (ioctl): Don't undefine.
90592         * lib/socket.c (socket): Don't undefine.
90594         Remove unused module indicator macros.
90595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90596         GNULIB_$1 as a C macro.
90598         * doc/posix-functions/close.texi: Undo last change.
90599         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90600         Windows platforms.
90602 2008-10-21  Bruno Haible  <bruno@clisp.org>
90604         Add gethostname() declaration to <unistd.h>.
90605         * lib/unistd.in.h (gethostname): New declaration.
90606         * lib/gethostname.c: Include <unistd.h>.
90607         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90608         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90610         and HAVE_GETHOSTNAME.
90611         * modules/gethostname (Depends-on): Add unistd.
90612         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90613         (Include): Specify <unistd.h>.
90614         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90615         HAVE_GETHOSTNAME.
90616         * tests/test-gethostname.c: Include <unistd.h> first.
90618 2008-10-21  Bruno Haible  <bruno@clisp.org>
90620         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90621         * modules/select-tests (Depends-on): Likewise.
90622         Reported by Simon Josefsson.
90624 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90626         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90627         * lib/accept.c: New file, based on winsock.c.
90628         * lib/bind.c: New file, based on winsock.c.
90629         * lib/connect.c: New file, based on winsock.c.
90630         * lib/getpeername.c: New file, based on winsock.c.
90631         * lib/getsockname.c: New file, based on winsock.c.
90632         * lib/getsockopt.c: New file, based on winsock.c.
90633         * lib/ioctl.c: New file, based on winsock.c.
90634         * lib/listen.c: New file, based on winsock.c.
90635         * lib/recv.c: New file, based on winsock.c.
90636         * lib/recvfrom.c: New file, based on winsock.c.
90637         * lib/send.c: New file, based on winsock.c.
90638         * lib/sendto.c: New file, based on winsock.c.
90639         * lib/setsockopt.c: New file, based on winsock.c.
90640         * lib/shutdown.c: New file, based on winsock.c.
90641         * lib/socket.c: New file, based on winsock.c.
90642         * lib/w32sock.h: New file, based on winsock.c.
90643         * lib/winsock.c: Remove file.
90644         * modules/accept: Likewise.
90645         * modules/bind: Likewise.
90646         * modules/connect: Likewise.
90647         * modules/getpeername: Likewise.
90648         * modules/getsockname: Likewise.
90649         * modules/getsockopt: Likewise.
90650         * modules/ioctl: Likewise.
90651         * modules/listen: Likewise.
90652         * modules/recv: Likewise.
90653         * modules/recvfrom: Likewise.
90654         * modules/send: Likewise.
90655         * modules/sendto: Likewise.
90656         * modules/setsockopt: Likewise.
90657         * modules/shutdown: Likewise.
90658         * modules/socket: Use socket.c instead of winsock.c.
90659         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90660         * doc/posix-functions/accept.texi: Doc fix.
90661         * doc/posix-functions/bind.texi: Doc fix.
90662         * doc/posix-functions/close.texi: Doc fix.
90663         * doc/posix-functions/connect.texi: Doc fix.
90664         * doc/posix-functions/getpeername.texi: Doc fix.
90665         * doc/posix-functions/getsockname.texi: Doc fix.
90666         * doc/posix-functions/getsockopt.texi: Doc fix.
90667         * doc/posix-functions/ioctl.texi: Doc fix.
90668         * doc/posix-functions/listen.texi: Doc fix.
90669         * doc/posix-functions/recv.texi: Doc fix.
90670         * doc/posix-functions/recvfrom.texi: Doc fix.
90671         * doc/posix-functions/send.texi: Doc fix.
90672         * doc/posix-functions/sendto.texi: Doc fix.
90673         * doc/posix-functions/setsockopt.texi: Doc fix.
90674         * doc/posix-functions/shutdown.texi: Doc fix.
90675         * doc/posix-functions/socket.texi: Doc fix.
90677 2008-10-20  Bruno Haible  <bruno@clisp.org>
90679         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90680         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90681         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90682         as an alias for SIGABRT.
90683         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90684         (sigaction): Map it to SIGABRT.
90685         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90687 2008-10-20  Bruno Haible  <bruno@clisp.org>
90689         * lib/fts.c: Don't include lstat.h.
90690         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90692         Move the lstat() declaration to <sys/stat.h>.
90693         * lib/lstat.h: Remove file.
90694         * lib/sys_stat.in.h: Add special invocation convention.
90695         (lstat): New declaration.
90696         * lib/lstat.c (orig_lstat): New function.
90697         (rpl_lstat): Use orig_lstat instead of lstat.
90698         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90699         AC_C_INLINE. Set REPLACE_LSTAT.
90700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90701         and REPLACE_LSTAT.
90702         * modules/lstat (Files): Remove lib/lstat.h.
90703         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90704         (Include): Specify <sys/stat.h> instead of lstat.h.
90705         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90706         REPLACE_LSTAT.
90707         * NEWS: Mention the change.
90709 2008-10-20  Bruno Haible  <bruno@clisp.org>
90711         * modules/posix_spawn-tests: New file.
90712         * tests/test-posix_spawn3.c: New file.
90714 2008-10-20  Bruno Haible  <bruno@clisp.org>
90716         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90717         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90718         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90719         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90720         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90722 2008-10-20  Bruno Haible  <bruno@clisp.org>
90724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90725         of posix_spawn on AIX 5.3.
90727 2008-10-20  Bruno Haible  <bruno@clisp.org>
90729         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90731 2008-10-20  Bruno Haible  <bruno@clisp.org>
90733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90734         of AC_LANG_PROGRAM.
90736 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90738         * lib/netdb.in.h: Don't define GNU specific constants until they
90739         are supported or needed.  Reported by Bruno Haible
90740         <bruno@clisp.org>.
90742 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90744         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90746 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90748         * lib/getaddrinfo.h: Remove file.
90749         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90750         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90751         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90752         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90753         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90754         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90755         * tests/test-getaddrinfo.c: Likewise.
90756         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90757         * NEWS: Mention change.
90759 2008-10-19  Bruno Haible  <bruno@clisp.org>
90761         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90763 2008-10-19  Bruno Haible  <bruno@clisp.org>
90765         * lib/wait-process.c: Include simply <sys/wait.h>.
90766         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90767         WIFSTOPPED): Remove fallback definitions.
90768         * modules/wait-process (Depends-on): Add sys_wait.
90770         New module 'sys_wait'.
90771         * modules/sys_wait: New file.
90772         * lib/sys_wait.in.h: New file, partially copied from
90773         lib/wait-process.c.
90774         * m4/sys_wait_h.m4: New file.
90775         * doc/posix-headers/sys_wait.texi: Mention the new module.
90777 2008-10-19  Bruno Haible  <bruno@clisp.org>
90779         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90781 2008-10-19  Bruno Haible  <bruno@clisp.org>
90783         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90784         * lib/wait-process.c (WAIT_T): Remove type.
90785         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90786         (wait_subprocess): Update.
90788 2008-10-19  Bruno Haible  <bruno@clisp.org>
90790         New module 'atoll'.
90791         * modules/atoll: New file.
90792         * lib/stdlib.in.h (atoll): New declaration.
90793         * lib/atoll.c: New file, from glibc with modifications.
90794         * m4/atoll.m4: New file.
90795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90796         HAVE_ATOLL.
90797         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90798         * doc/posix-functions/atoll.texi: Mention the new module.
90800 2008-10-19  Bruno Haible  <bruno@clisp.org>
90802         Add strtoull() declaration to <stdlib.h>.
90803         * lib/stdlib.in.h (strtoull): New declaration.
90804         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90805         Set HAVE_STRTOULL.
90806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90807         HAVE_STRTOULL.
90808         * modules/strtoull (Depends-on): Add stdlib.
90809         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90810         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90811         HAVE_STRTOULL.
90813 2008-10-19  Bruno Haible  <bruno@clisp.org>
90815         Add strtoll() declaration to <stdlib.h>.
90816         * lib/stdlib.in.h (strtoll): New declaration.
90817         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90818         Set HAVE_STRTOLL.
90819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90820         HAVE_STRTOLL.
90821         * modules/strtoll (Depends-on): Add stdlib.
90822         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90823         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90825 2008-10-19  Bruno Haible  <bruno@clisp.org>
90827         * modules/bcopy (Depends-on): Add strings.
90828         (Include): Specify <strings.h>.
90830 2008-10-19  Bruno Haible  <bruno@clisp.org>
90832         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90834 2008-10-19  Bruno Haible  <bruno@clisp.org>
90836         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90837         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90838         mingw.
90840 2008-10-19  Bruno Haible  <bruno@clisp.org>
90842         * lib/atanl.c: Don't include isnanl.h.
90843         * lib/cosl.c: Likewise.
90844         * lib/ldexpl.c: Likewise.
90845         * lib/logl.c: Likewise.
90846         * lib/sinl.c: Likewise.
90847         * lib/sqrtl.c: Likewise.
90848         * lib/tanl.c: Likewise.
90850         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90851         * lib/isnanf.h: Remove file.
90852         * lib/isnand.h: Remove file.
90853         * lib/isnanl.h: Remove file.
90854         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90855         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90856         macros.
90857         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90858         HAVE_ISNANF, don't define it as a C macro.
90859         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90860         HAVE_ISNAND, don't define it as a C macro.
90861         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90862         HAVE_ISNANL, don't define it as a C macro.
90863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90864         HAVE_ISNAN[FDL].
90865         * modules/isnanf (Files): Remove lib/isnanf.h.
90866         (Depends-on): Add math.
90867         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90868         (Include): Specify <math.h> instead of isnanf.h.
90869         * modules/isnand (Files): Remove lib/isnand.h.
90870         (Depends-on): Add math.
90871         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90872         (Include): Specify <math.h> instead of isnand.h.
90873         * modules/isnanl (Files): Remove lib/isnanl.h.
90874         (Depends-on): Add math.
90875         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90876         (Include): Specify <math.h> instead of isnanl.h.
90877         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90878         HAVE_ISNAN[FDL].
90879         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90880         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90881         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90882         * NEWS: Mention the change.
90884 2008-10-18  Bruno Haible  <bruno@clisp.org>
90886         Add getusershell(), setusershell(), endusershell() declarations to
90887         <unistd.h>.
90888         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90889         declarations.
90890         * lib/getusershell.c: Include unistd.h.
90891         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90892         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90893         HAVE_GETUSERSHELL.
90894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90895         and HAVE_GETUSERSHELL.
90896         * modules/getusershell (Depends-on): Add unistd, extensions.
90897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90898         (Include): Specify <unistd.h>.
90899         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90900         HAVE_GETUSERSHELL.
90902 2008-10-18  Bruno Haible  <bruno@clisp.org>
90904         Add a getloadavg() declaration to <stdlib.h>.
90905         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90906         getloadavg declaration.
90907         (getloadavg): New declaration.
90908         * lib/getloadavg.c: Include <stdlib.h> first.
90909         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90910         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90911         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90913         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90914         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90915         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90916         (Include): Specify <stdlib.h>.
90917         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90918         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90920 2008-10-18  Bruno Haible  <bruno@clisp.org>
90922         * lib/dirchownmod.c: Don't include lchmod.h.
90924         Move the lchmod() declaration to <sys/stat.h>.
90925         * lib/lchmod.h: Remove file.
90926         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90927         (lchmod): New declaration, moved here from lib/lchown.h.
90928         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90929         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90930         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90931         and HAVE_LCHMOD.
90932         * modules/lchmod (Files): Remove lib/lchmod.h.
90933         (Depends-on): Add sys_stat, extensions.
90934         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90935         (Include): Specify <sys/stat.h> instead of lchmod.h.
90936         * modules/sys_stat (Depends-on): Add link-warning.
90937         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90938         definition of GL_LINK_WARNING.
90939         * NEWS: Mention the change.
90941 2008-10-18  Bruno Haible  <bruno@clisp.org>
90943         * lib/fchdir.c: Don't include dirfd.h.
90944         * lib/fts.c: Likewise.
90945         * lib/getcwd.c: Likewise.
90946         * lib/glob.c: Likewise.
90948         Move the dirfd() declaration to <dirent.h>.
90949         * lib/dirfd.h: Remove file.
90950         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90951         (dirfd): New declaration.
90952         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90953         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90954         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90955         HAVE_DECL_DIRFD.
90956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90957         HAVE_DECL_DIRFD.
90958         * modules/dirfd (Files): Remove lib/dirfd.h.
90959         (Depends-on): Add dirent, extensions.
90960         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90961         (Include): Specify <dirent.h> instead of dirfd.h.
90962         * modules/dirent (Depends-on): Add link-warning.
90963         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90964         definition of GL_LINK_WARNING.
90965         * NEWS: Mention the change.
90967 2008-10-18  Bruno Haible  <bruno@clisp.org>
90969         Move the euidaccess() declaration to <unistd.h>.
90970         * lib/euidaccess.h: Remove file.
90971         * lib/unistd.in.h (euidaccess): New declaration.
90972         * lib/euidaccess.c: Don't include euidaccess.h.
90973         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90974         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90976         and HAVE_EUIDACCESS.
90977         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90978         (Depends-on): Add unistd.
90979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90980         (Include): Specify <unistd.h> instead of euidaccess.h.
90981         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90982         HAVE_EUIDACCESS.
90983         * NEWS: Mention the change.
90985 2008-10-18  Bruno Haible  <bruno@clisp.org>
90987         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90989         Move the getdomainname() declaration to <unistd.h>.
90990         * lib/getdomainname.h: Remove file.
90991         * lib/unistd.in.h (getdomainname): New declaration.
90992         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90993         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90994         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90995         HAVE_GETDOMAINNAME.
90996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90997         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90998         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90999         (Depends-on): Add unistd, extensions.
91000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91001         (Includes): Specify <unistd.h> instead of getdomainname.h.
91002         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
91003         HAVE_GETDOMAINNAME.
91004         * NEWS: Mention the change.
91006 2008-10-18  Bruno Haible  <bruno@clisp.org>
91008         * modules/dirent: New file.
91009         * m4/dirent_h.m4: New file.
91010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
91011         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
91012         * modules/fchdir (Files): Remove lib/dirent.in.h.
91013         (Depends-on): Add dirent.
91014         (Makefile.am): Move rules to modules/dirent.
91015         * doc/posix-headers/dirent.texi: Mention the new module.
91017 2008-10-18  Bruno Haible  <bruno@clisp.org>
91019         Avoid -Wunused-parameter warnings in public gnulib header files.
91020         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
91021         macro.
91022         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
91024 2008-10-18  Bruno Haible  <bruno@clisp.org>
91026         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
91027         * doc/glibc-functions/error.texi: Mention the module 'error'.
91028         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
91029         * doc/glibc-functions/getdomainname.texi: Mention the module
91030         'getdomainname'.
91031         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
91032         * doc/glibc-functions/getpagesize.texi: Mention the module
91033         'getpagesize'.
91034         * doc/glibc-functions/getusershell.texi: Mention the module
91035         'getusershell'.
91036         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
91037         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
91038         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
91039         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
91040         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
91041         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
91042         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
91043         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
91044         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
91045         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
91046         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
91047         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
91048         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
91049         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
91051 2008-10-17  Bruno Haible  <bruno@clisp.org>
91053         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
91054         HP-UX and IRIX, use -0.0L.
91055         * tests/test-ceill.c (minus_zero): Likewise.
91056         * tests/test-floorl.c (minus_zero): Likewise.
91057         * tests/test-frexpl.c (minus_zero): Likewise.
91058         * tests/test-isnan.c (minus_zerol): Likewise.
91059         * tests/test-isnanl.h (minus_zero): Likewise.
91060         * tests/test-ldexpl.c (minus_zero): Likewise.
91061         * tests/test-roundl.c (minus_zero): Likewise.
91062         * tests/test-signbit.c (minus_zerol): Likewise.
91063         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
91064         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
91065         * tests/test-truncl.c (minus_zero): Likewise.
91066         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
91067         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
91068         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
91069         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
91071 2008-10-17  Bruno Haible  <bruno@clisp.org>
91073         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
91074         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
91075         that it gets activated only for gcc >= 3.0.
91076         * lib/dirent.in.h: Likewise.
91077         * lib/errno.in.h: Likewise.
91078         * lib/fcntl.in.h: Likewise.
91079         * lib/float.in.h: Likewise.
91080         * lib/iconv.in.h: Likewise.
91081         * lib/inttypes.in.h: Likewise.
91082         * lib/locale.in.h: Likewise.
91083         * lib/math.in.h: Likewise.
91084         * lib/netdb.in.h: Likewise.
91085         * lib/netinet_in.in.h: Likewise.
91086         * lib/search.in.h: Likewise.
91087         * lib/signal.in.h: Likewise.
91088         * lib/spawn.in.h: Likewise.
91089         * lib/stdarg.in.h: Likewise.
91090         * lib/stdint.in.h: Likewise.
91091         * lib/stdio.in.h: Likewise.
91092         * lib/stdlib.in.h: Likewise.
91093         * lib/string.in.h: Likewise.
91094         * lib/strings.in.h: Likewise.
91095         * lib/sys_file.in.h: Likewise.
91096         * lib/sys_ioctl.in.h: Likewise.
91097         * lib/sys_select.in.h: Likewise.
91098         * lib/sys_socket.in.h: Likewise.
91099         * lib/sys_stat.in.h: Likewise.
91100         * lib/sys_time.in.h: Likewise.
91101         * lib/sysexits.in.h: Likewise.
91102         * lib/time.in.h: Likewise.
91103         * lib/unistd.in.h: Likewise.
91104         * lib/wchar.in.h: Likewise.
91105         * lib/wctype.in.h: Likewise.
91106         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91108 2008-10-17  Jim Meyering  <meyering@redhat.com>
91110         ignore-value: don't depend on inline module
91111         * modules/ignore-value (Depends-on): Remove 'inline'.
91112         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
91113         Suggestion from Bruno Haible.
91115 2008-10-17  Bruno Haible  <bruno@clisp.org>
91117         New implementation of condition variables for Win32.
91118         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
91119         (gl_linked_waitqueue_t): New type.
91120         (gl_cond_t): Use it.
91121         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
91122         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
91123         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
91124         (glthread_cond_init_func, glthread_cond_wait_func,
91125         glthread_cond_timedwait_func, glthread_cond_signal_func,
91126         glthread_cond_broadcast_func, glthread_cond_destroy_func):
91127         Reimplemented on the basis of gl_linked_waitqueue_t.
91128         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
91129         gl_waitqueue_t.
91130         (gl_rwlock_t): Update.
91131         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
91133 2008-10-17  Simon Josefsson  <simon@josefsson.org>
91135         * modules/recvfrom (Depends-on): Add dependency on getpeername.
91136         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91138 2008-10-17  Jim Meyering  <meyering@redhat.com>
91140         ignore-value: new module
91141         * modules/ignore-value: New file.
91142         * lib/ignore-value.h: New file.
91143         * MODULES.html.sh (Compiler warning management): New section,
91144         just for this module.  More to come.
91146 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91148         open-safer.c: avoid 'signed and unsigned in conditional...' warning
91149         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
91150         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
91152 2008-10-16  Jim Meyering  <meyering@redhat.com>
91154         openat-die.c: avoid 'no previous prototype' warning
91155         * lib/openat-die.c: Include "openat.h".
91156         Reported by Reuben Thomas <rrt@sc3d.org>.
91158 2008-10-16  Simon Josefsson  <simon@josefsson.org>
91160         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
91161         * lib/netdb.in.h: Fix typo.
91162         Reported by Bruno Haible  <bruno@clisp.org>
91164         * lib/netdb.in.h: Include sys/socket.h for platforms without
91165         netdb.h, to get structures like hostent on MinGW.
91166         * modules/netdb (Depends-on): Add sys_socket.
91168 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91170         * modules/netdb, modules/netdb-tests: New file.
91171         * m4/netdb_h.m4: New file.
91172         * lib/netdb.in.h: Add, currently just an empty file pending
91173         definitions.
91174         * tests/test-netdb.c: New file.
91175         * doc/posix-headers/netdb.texi: Mention that we replace it if
91176         needed.
91177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91178         netdb.
91180 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91182         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
91183         with code.
91185 2008-10-13  Bruno Haible  <bruno@clisp.org>
91187         * lib/glthread/cond.c (glthread_cond_wait_func,
91188         glthread_cond_timedwait_func): Add a comment.
91190 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91192         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
91193         * tests/test-select.c: Likewise,
91195 2008-10-13  Bruno Haible  <bruno@clisp.org>
91197         * lib/glthread/cond.c (glthread_cond_wait_func,
91198         glthread_cond_timedwait_func): Fix variable name.
91199         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91201 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
91203         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
91204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
91205         struct sockaddr.sa_len.
91206         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
91208 2008-10-13  Simon Josefsson  <simon@josefsson.org>
91210         * build-aux/pmccabe2html: Add css and css_url parameters.
91212 2008-10-12  Bruno Haible  <bruno@clisp.org>
91214         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
91215         calling aclx_get.
91216         Reported by Rainer Tammer <tammer@tammer.net>.
91218 2008-10-12  Bruno Haible  <bruno@clisp.org>
91220         Use msvcrt aware primitives for creation/termination of Win32 threads.
91221         * lib/glthread/thread.c: Include <process.h>.
91222         (glthread_create_func): Use _beginthreadex instead of CreateThread.
91223         (wrapper_func): Update signature.
91224         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
91226 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91227             Bruno Haible  <bruno@clisp.org>
91229         Provide a Win32 implementation of the 'cond' module.
91230         * lib/glthread/cond.h [USE_WIN32]: New implementation.
91231         * lib/glthread/cond.c (glthread_cond_init_func,
91232         glthread_cond_wait_func, glthread_cond_timedwait_func,
91233         glthread_cond_signal_func, glthread_cond_broadcast_func,
91234         glthread_cond_destroy_func) [USE_WIN32]: New functions.
91235         * modules/cond (Dependencies): Add gettimeofday.
91237 2008-10-11  Bruno Haible  <bruno@clisp.org>
91239         Make sleep work on older versions of mingw.
91240         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
91241         only whether it exists.
91242         * doc/posix-functions/sleep.texi: Mention the problem with older
91243         versions of mingw.
91245 2008-10-11  Bruno Haible  <bruno@clisp.org>
91247         New module 'shutdown'.
91248         * modules/shutdown: New file.
91249         * lib/sys_socket.in.h (shutdown): New declaration.
91250         * lib/winsock.c (shutdown): New function.
91251         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
91252         GNULIB_SHUTDOWN.
91253         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
91254         * doc/posix-functions/shutdown.texi: Document the new module.
91256 2008-10-11  Jim Meyering  <meyering@redhat.com>
91258         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
91260 2008-10-11  Bruno Haible  <bruno@clisp.org>
91262         New module 'fclose'.
91263         * modules/fclose: New file.
91264         * lib/stdio.in.h (fclose): New declaration.
91265         * lib/fclose.c: New file.
91266         * m4/fclose.m4: New file.
91267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
91268         REPLACE_FCLOSE.
91269         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
91270         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
91271         REPLACE_FCLOSE.
91272         * modules/close (Depends-on): fclose.
91273         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
91275 2008-10-11  Bruno Haible  <bruno@clisp.org>
91277         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
91278         set errno and don't call _close.
91280 2008-10-10  Bruno Haible  <bruno@clisp.org>
91282         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
91283         ACL, not afterwards. Fixes test failure on Cygwin.
91285 2008-10-09  Ben Pfaff  <blp@gnu.org>
91287         * build-aux/announce-gen: Fix gnulib version related part of usage
91288         message.  Die with a useful error message if no tarballs are
91289         found.
91291 2008-10-10  Jim Meyering  <meyering@redhat.com>
91293         bootstrap: use git's --depth=N option only if it's supported
91294         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
91295         recognize the --depth option.  Reported by Pádraig Brady.
91297 2008-10-09  Bruno Haible  <bruno@clisp.org>
91299         New module 'ioctl'.
91300         * modules/ioctl: New file.
91301         * lib/sys_socket.in.h (ioctl): Remove declaration.
91302         * lib/winsock.c: Include <sys/ioctl.h>.
91303         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
91304         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
91305         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
91306         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
91307         * doc/posix-functions/ioctl.texi: Mention the new module.
91309 2008-10-09  Bruno Haible  <bruno@clisp.org>
91311         New module 'sys_ioctl'.
91312         * lib/sys_ioctl.in.h: New file.
91313         * m4/sys_ioctl_h.m4: New file.
91314         * modules/sys_ioctl: New file.
91315         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
91317 2008-10-09  Bruno Haible  <bruno@clisp.org>
91319         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
91320         * lib/winsock.c: Include <stdarg.h>.
91321         (rpl_ioctl): Change to second argument 'int' and then varargs.
91323 2008-10-09  Bruno Haible  <bruno@clisp.org>
91325         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
91326         when the sys_socket module is present and the system has <winsock2.h>.
91328 2008-10-09  Bruno Haible  <bruno@clisp.org>
91330         * doc/posix-functions/close.texi: Mention module 'close' instead of
91331         module 'sys_socket'.
91333 2008-10-09  Bruno Haible  <bruno@clisp.org>
91335         * doc/glibc-headers/sys_ioctl.texi: New file.
91336         * doc/gnulib.texi: Include it.
91338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91339             Bruno Haible  <bruno@clisp.org>
91341         Combine the two replacements of 'close'.
91342         * lib/sys_socket.in.h (close): Define to a reminder to include
91343         <unistd.h>.
91344         (_gl_close_fd_maybe_socket): New declaration.
91345         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91346         * lib/winsock.c (close): Remove undefinition.
91347         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
91348         needed for the gnulib module 'close'.
91349         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
91350         define to an error symbol or to a warning, if suitable.
91351         * lib/close.c: Include <sys/socket.h>.
91352         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
91353         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
91354         UNISTD_H_HAVE_WINSOCK2_H.
91355         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
91356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91357         UNISTD_H_HAVE_WINSOCK2_H.
91358         * modules/sys_socket (Files): Add m4/unistd_h.m4.
91359         (configure.ac): Set a module indicator.
91360         (Makefile.am): Substitute GNULIB_CLOSE.
91361         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
91362         * modules/poll-tests (Depends-on): Add close.
91363         * modules/select-tests (Depends-on): Likewise.
91365 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91366             Bruno Haible  <bruno@clisp.org>
91368         New module 'close'.
91369         * modules/close: New file.
91370         * lib/unistd.in.h (close): Move declaration out of the
91371         FCHDIR_REPLACEMENT scope.
91372         (_gl_unregister_fd): New declaration.
91373         * lib/close.c: New file.
91374         * lib/fchdir.c (rpl_close): Remove function.
91375         * m4/close.m4: New file.
91376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91377         close.
91378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
91379         REPLACE_CLOSE.
91380         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
91381         REPLACE_CLOSE.
91382         * modules/fchdir (Depends-on): Add close.
91384 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91385             Bruno Haible  <bruno@clisp.org>
91387         * lib/fcntl.in.h (open): Simplify conditionals.
91388         (_gl_register_fd): New declaration.
91389         * lib/fchdir.c (rpl_open): Remove function.
91390         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
91391         also.
91392         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
91393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91394         open.
91396 2008-10-09  Jim Meyering  <meyering@redhat.com>
91398         GNUmakefile: use the more name-space-friendly "_version"
91399         * top/GNUmakefile (_dummy): Update.
91400         (_version): Rename from "version".
91402 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91403             Bruno Haible  <bruno@clisp.org>
91405         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
91406         rpl_close.
91407         (_gl_register_fd): New function, extracted from rpl_open.
91408         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
91409         (rpl_open, rpl_opendir): Use _gl_register_fd.
91411 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91413         Fix organization of 'open' replacement.
91414         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
91415         (gl_FUNC_OPEN): Use it.
91416         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
91418 2008-10-08  Bruno Haible  <bruno@clisp.org>
91420         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91422 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91424         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91425         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91426         listen).
91428 2008-10-08  Eric Blake  <ebb9@byu.net>
91430         GNUmakefile: add 'make version' target
91431         * top/GNUmakefile (_curr-ver): Split version update rules...
91432         (version): ...into a target.
91434 2008-10-07  Bruno Haible  <bruno@clisp.org>
91436         Use a more portable replacement expression for -0.0L.
91437         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91438         instead of -0.0L. Fix m4 quotation.
91440         * tests/test-signbit.c: Include <float.h>.
91441         (minus_zero): New variable.
91442         (test_signbitl): Use minus_zero instead of -zero.
91443         * modules/signbit-tests (Depends-on): Add float.
91445         * tests/test-ceill.c: Include <float.h>.
91446         (zero): Remove variable.
91447         (minus_zero): New variable.
91448         (main): Use minus_zero instead of -zero.
91449         * modules/ceill-tests (Depends-on): Add float.
91451         * tests/test-floorl.c: Include <float.h>.
91452         (zero): Remove variable.
91453         (minus_zero): New variable.
91454         (main): Use minus_zero instead of -zero.
91455         * modules/floorl-tests (Depends-on): Add float.
91457         * tests/test-roundl.c: Include <float.h>.
91458         (zero): Remove variable.
91459         (minus_zero): New variable.
91460         (main): Use minus_zero instead of -zero.
91461         * modules/roundl-tests (Depends-on): Add float.
91463         * tests/test-truncl.c: Include <float.h>.
91464         (zero): Remove variable.
91465         (minus_zero): New variable.
91466         (main): Use minus_zero instead of -zero.
91467         * modules/truncl-tests (Depends-on): Add float.
91469         * tests/test-frexpl.c (zero): Remove variable.
91470         (minus_zero): New variable.
91471         (main): Use minus_zero instead of -zero.
91472         * modules/frexpl-tests (Depends-on): Add float.
91474         * tests/test-isnan.c (zerol): Remove variable.
91475         (minus_zerol): New variable.
91476         (test_long_double): Use minus_zerol instead of -zerol.
91477         * modules/isnan-tests (Depends-on): Add float.
91479         * tests/test-isnanl.h (zero): Remove variable.
91480         (minus_zero): New variable.
91481         (main): Use minus_zero instead of -zero.
91482         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91483         * modules/isnanl-tests (Depends-on): Add float.
91485         * tests/test-ldexpl.c (zero): Remove variable.
91486         (minus_zero): New variable.
91487         (main): Use minus_zero instead of -zero.
91488         * modules/ldexpl-tests (Depends-on): Add float.
91490         * tests/test-snprintf-posix.h (zerol): Remove variable.
91491         (minus_zerol): New variable.
91492         (test_function): Use minus_zerol instead of -zerol.
91493         * modules/snprintf-posix-tests (Depends-on): Add float.
91494         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91496         * tests/test-sprintf-posix.h (zerol): Remove variable.
91497         (minus_zerol): New variable.
91498         (test_function): Use minus_zerol instead of -zerol.
91499         * modules/sprintf-posix-tests (Depends-on): Add float.
91500         * modules/vsprintf-posix-tests (Depends-on): Add float.
91502         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91503         (minus_zerol): New variable.
91504         (test_function): Use minus_zerol instead of -zerol.
91505         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91507         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91508         (minus_zerol): New variable.
91509         (test_function): Use minus_zerol instead of -zerol.
91510         * modules/vasprintf-posix-tests (Depends-on): Add float.
91512 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91514         * MODULES.html.sh (Support for building documentation): Mention
91515         pmccabe2html.  Sort entries.
91517         Add pmccabe2html module, from gnupdf.
91518         * build-aux/pmccabe.css: New file.
91519         * build-aux/pmccabe2html: New file.
91520         * m4/pmccabe2html.m4: New file.
91521         * modules/pmccabe2html: New file.
91523 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91525         flock: new module
91526         * MODULES.html.sh: Add to list of modules.
91527         * lib/flock.c: flock implementation for Windows and Unix systems
91528         which have fcntl.
91529         * doc/glibc-functions/flock.texi: Update documentation.
91530         * lib/sys_file.in.h: <sys/file.h> header file.
91531         * m4/flock.m4: M4 macros.
91532         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91533         * modules/flock: flock module.
91534         * modules/flock-tests: flock tests module.
91535         * modules/sys_file: sys/file.h module.
91536         * tests/test-flock.c: test suite for flock.
91538 2008-10-06  Jim Meyering  <meyering@redhat.com>
91540         bootstrap: check for LT_INIT more portably still ;-)
91541         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91542         Spotted by Bruno Haible.
91544 2008-10-06  Eric Blake  <ebb9@byu.net>
91546         test-signbit: avoid tripping Irix cc bug on -0.0L
91547         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91548         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91549         entire testsuite consistent and avoids an Irix 6.2 bug.
91551 2008-10-05  Bruno Haible  <bruno@clisp.org>
91552             Jim Meyering  <jim@meyering.net>
91554         Add an option for ignoring EPIPE during close_stdout.
91555         * lib/closeout.h: Include <stdbool.h>.
91556         (close_stdout_set_ignore_EPIPE): New declaration.
91557         * lib/closeout.c: Include <stdbool.h>.
91558         (ignore_EPIPE): New variable.
91559         (close_stdout_set_ignore_EPIPE): New function.
91560         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91561         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91562         failure.
91563         * modules/closeout (Depends-on): Add stdbool.
91565 2008-10-05  Bruno Haible  <bruno@clisp.org>
91567         * modules/accept: New file.
91568         * modules/bind: New file.
91569         * modules/connect: New file.
91570         * modules/getpeername: New file.
91571         * modules/getsockname: New file.
91572         * modules/getsockopt: New file.
91573         * modules/listen: New file.
91574         * modules/recv: New file.
91575         * modules/recvfrom: New file.
91576         * modules/send: New file.
91577         * modules/sendto: New file.
91578         * modules/setsockopt: New file.
91579         * modules/socket: New file.
91580         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91581         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91582         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91583         the particular module is requested. Add a link warning when the
91584         particular module is not requested.
91585         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91586         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91587         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91588         the particular module is requested.
91589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91590         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91591         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91592         * modules/sys_socket (Depends-on): Add link-warning.
91593         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91594         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91595         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91596         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91597         GL_LINK_WARNING.
91598         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91599         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91600         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91601         * doc/posix-functions/getpeername.texi: Mention the new module
91602         'getpeername'.
91603         * doc/posix-functions/getsockname.texi: Mention the new module
91604         'getsockname'.
91605         * doc/posix-functions/getsockopt.texi: Mention the new module
91606         'getsockopt'.
91607         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91608         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91609         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91610         * doc/posix-functions/send.texi: Mention the new module 'send'.
91611         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91612         * doc/posix-functions/setsockopt.texi: Mention the new module
91613         'setsockopt'.
91614         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91615         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91616         listen, connect, accept.
91617         * modules/select-tests (Depends-on): Likewise.
91619 2008-10-05  Bruno Haible  <bruno@clisp.org>
91621         * lib/winsock.c (strerror): Remove unused #undef.
91622         (rpl_close): Remove unused local variable.
91624         * modules/sys_socket (Depends-on); Add errno.
91626 2008-10-05  Bruno Haible  <bruno@clisp.org>
91628         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91629         (select): Add a link warning when the 'select' module is not used.
91630         * modules/sys_select (Depends-on): Add link-warning.
91631         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91632         Suggested by Paolo Bonzini.
91634 2008-10-05  Jim Meyering  <meyering@redhat.com>
91636         bootstrap: check for LT_INIT more portably
91637         * build-aux/bootstrap: Avoid using grep -E, since it's not
91638         portable enough.  Suggestion from Bruno Haible.
91640 2008-10-05  Bruno Haible  <bruno@clisp.org>
91642         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91643         as being fixed by gnulib.
91645 2008-10-05  Bruno Haible  <bruno@clisp.org>
91647         * modules/select-tests: New file, mostly copied from
91648         modules/sys_select-tests.
91649         * tests/test-select.c: New file, mostly copied from
91650         tests/test-sys_select.c.
91651         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91652         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91653         (Makefile.am): Remove test_sys_select_LDADD.
91655         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91656         to an undefined symbol, for an error message.
91657         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91658         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91659         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91660         winsock-select.c here.
91661         * modules/sys_select (Files): Remove lib/winsock-select.c.
91662         (Depends-on): Remove alloca.
91663         (Makefile.am): Substitute GNULIB_SELECT.
91664         * modules/select: New file.
91665         * doc/posix-functions/select.texi: Update.
91667 2008-10-05  Bruno Haible  <bruno@clisp.org>
91669         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91670         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91671         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91672         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91673         getdtablesize.
91674         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91675         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91677 2008-10-05  Bruno Haible  <bruno@clisp.org>
91679         * modules/getdtablesize-tests: New file.
91680         * tests/test-getdtablesize.c: New file.
91682         New module 'getdtablesize'.
91683         * lib/unistd.in.h (getdtablesize): New declaration.
91684         * lib/getdtablesize.c: New file.
91685         * m4/getdtablesize.m4: New file.
91686         * modules/getdtablesize: New file.
91687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91688         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91689         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91690         HAVE_GETDTABLESIZE.
91691         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91693 2008-10-05  Bruno Haible  <bruno@clisp.org>
91695         * modules/sched (Makefile.am): Fix typo.
91696         Reported by Simon Josefsson.
91698 2008-10-05  Jim Meyering  <meyering@redhat.com>
91700         bootstrap: check for LT_INIT, too
91701         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91702         are deprecated.  Suggestion from Ralf Wildenhues.
91704 2008-10-05  Bruno Haible  <bruno@clisp.org>
91706         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91707         overriding them by ours.
91708         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91710 2008-10-05  Jim Meyering  <meyering@redhat.com>
91712         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91713         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91714         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91716 2008-10-04  Bruno Haible  <bruno@clisp.org>
91718         * modules/dup2 (License): Change to LGPLv2+.
91719         * modules/sleep (License): Likewise.
91720         * modules/perror (License): Likewise.
91721         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91722         Blake.
91723         * modules/signal (License): Likewise.
91724         * modules/sigprocmask (License): Likewise.
91725         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91726         Meyering.
91728 2008-10-04  Bruno Haible  <bruno@clisp.org>
91730         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91731         Reported by Rainer Tammer <tammer@tammer.net>.
91733 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91734             Bruno Haible  <bruno@clisp.org>
91736         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91737         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91738         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91740 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91742         filevercmp: new module
91743         * lib/filevercmp.h: New function filevercmp comparing version strings.
91744         * lib/filevercmp.c: Implementation of filevercmp function.
91745         * modules/filevercmp: Module metadata.
91746         * tests/test-filevercmp.c: Unit test for new module.
91747         * modules/filevercmp-tests: Unit test metadata.
91748         * MODULES.html.sh: Add filevercmp module.
91750 2008-10-03  Bruno Haible  <bruno@clisp.org>
91752         * lib/c-ctype.h: Add comment.
91753         Reported by Jim Meyering.
91755 2008-10-02  Bruno Haible  <bruno@clisp.org>
91757         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91759 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91761         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91762         name of bootstrap.conf accordingly.
91764 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91766         * build-aux/bootstrap: Install git-merge-changelog configuration
91767         items into .gitconfig if needed.
91769 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91771         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91772         git repository, and initialize/update it accordingly.
91774 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91776         * modules/fsync-tests: New file.
91777         * tests/test-fsync.c: New file.
91779         New module 'fsync'.
91780         * lib/fsync.c: New file.
91781         * m4/fsync.m4: New file.
91782         * modules/fsync: New file.
91783         * lib/unistd.in.h (fsync): New declaration.
91784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91785         GNULIB_FSYNC and HAVE_FSYNC.
91786         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91787         * MODULES.html.sh (posix_functions): Add fsync.
91788         * doc/posix-functions/fsync.texi: Mention the new module.
91790 2008-10-02  Jim Meyering  <meyering@redhat.com>
91792         fts.c: sync with similar code from coreutils' remove.c
91793         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91794         Guard also with "#if defined __linux__", since for now at least,
91795         this code is Linux-kernel-specific.
91797 2008-10-02  Jim Meyering  <meyering@redhat.com>
91799         fts: bug fixes
91800         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91801         Include <sys/vfs.h>, not <sys/statfs.h>.
91803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91804         Include <sys/vfs.h>, not <sys/statfs.h>.
91806 2008-10-01  Bruno Haible  <bruno@clisp.org>
91808         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91810         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91811         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91812         * doc/posix-functions/posix_spawnp.texi: Likewise.
91813         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91814         whether posix_spawn actually works.
91815         * m4/pipe.m4 (gl_PIPE): Likewise.
91816         * modules/execute (Files): Add m4/posix_spawn.m4.
91817         * modules/pipe (Files): Add m4/posix_spawn.m4.
91818         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91820 2008-10-01  Jim Meyering  <meyering@redhat.com>
91822         remove trailing spaces
91823         * NEWS: Likewise.
91824         * lib/poll.c (poll): Likewise.
91825         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91826         * lib/winsock.c (rpl_close): Likewise.
91827         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91828         * modules/yield: Likewise.
91829         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91830         * tests/test-sys_select.c (connect_to_socket): Likewise.
91832         fts.c: adjust a new interface to be more generally useful
91833         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91834         (fts_build): Adjust caller.
91836 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91838         * modules/cond-tests: New file.
91839         * tests/test-cond.c: New file.
91841 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91842             Bruno Haible  <bruno@clisp.org>
91844         * modules/cond (Dependencies): Add errno, time.
91845         * lib/glthread/cond.h: Include <time.h>.
91846         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91847         across platforms.
91849 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91850             Bruno Haible  <bruno@clisp.org>
91852         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91854 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91855             Bruno Haible  <bruno@clisp.org>
91857         * modules/tls-tests (Depends-on): Add thread, yield.
91858         (configure.ac): Remove all checks.
91859         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91860         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91861         gl_thread_self): Remove definitions. Include glthread/thread.h and
91862         glthread/yield.h instead.
91863         (test_tls): Pass an additional NULL argument to gl_thread_join.
91865 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91866             Bruno Haible  <bruno@clisp.org>
91868         * modules/lock-tests (Depends-on): Add thread, yield.
91869         (configure.ac): Remove all checks.
91870         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91871         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91872         gl_thread_self): Remove definitions. Include glthread/thread.h and
91873         glthread/yield.h instead.
91874         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91875         additional NULL argument to gl_thread_join.
91877 2008-09-30  Bruno Haible  <bruno@clisp.org>
91879         Fix the Win32 implementation of the 'thread' module.
91880         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91881         pointer type.
91882         (gl_thread_self): Invoke gl_thread_self_func.
91883         (gl_thread_self_func): New declaration.
91884         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91885         (do_init_self_key, init_self_key): New functions.
91886         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91887         Remove some fields.
91888         (running_threads, running_lock): Remove variables.
91889         (get_current_thread_handle): New function.
91890         (gl_thread_self_func, wrapper_func, glthread_create_func,
91891         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91892         simplified.
91894 2008-09-30  Bruno Haible  <bruno@clisp.org>
91896         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91897         files.
91899 2008-09-30  Jim Meyering  <meyering@redhat.com>
91901         fts.m4: correct the test for statfs.f_type
91902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91903         when checking for statfs.f_type.
91905 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91907         tests: avoid some compiler warnings
91908         * tests/test-memchr.c (main): Pass NULL indirectly.
91909         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91911 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91913         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91914         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91915         exactly specified dayshifts.
91916         (dayshift): New rule.
91917         (rel): Add dayshift.
91918         (relative_time_table) [tomorrow, yesterday, today, now]:
91919         Use tDAY_SHIFT in place of tDAY_UNIT.
91920         * tests/test-getdate.c: Add tests for now-disallowed countable
91921         dayshifts, e.g., "4 yesterday ago".
91923 2008-09-29  Bruno Haible  <bruno@clisp.org>
91925         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91926         * tests/test-posix_spawn1.in.sh: Renamed from
91927         tests/test-posix_spawn.in.sh.
91928         * tests/test-posix_spawn2.c: New file.
91929         * tests/test-posix_spawn2.in.sh: New file.
91930         * modules/posix_spawnp-tests (Files): Update.
91931         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91933 2008-09-29  Bruno Haible  <bruno@clisp.org>
91935         Propagate effects of putenv/setenv/unsetenv to child processes.
91936         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91937         * lib/pipe.c (create_pipe): Likewise.
91939 2008-09-29  Bruno Haible  <bruno@clisp.org>
91941         Enable use of shell scripts as executables in mingw.
91942         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91943         run the program as a shell script.
91944         * lib/pipe.c (create_pipe): Likewise.
91945         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91946         resulting array.
91948 2008-09-29  Eric Blake  <ebb9@byu.net>
91950         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91952 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91954         * doc/posix-functions/accept.texi: Update mingw problems.
91955         * doc/posix-functions/bind.texi: Update mingw problems.
91956         * doc/posix-functions/close.texi: Update mingw problems.
91957         * doc/posix-functions/connect.texi: Update mingw problems.
91958         * doc/posix-functions/getpeername.texi: Update mingw problems.
91959         * doc/posix-functions/getsockname.texi: Update mingw problems.
91960         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91961         * doc/posix-functions/ioctl.texi: Update mingw problems.
91962         * doc/posix-functions/listen.texi: Update mingw problems.
91963         * doc/posix-functions/recv.texi: Update mingw problems.
91964         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91965         * doc/posix-functions/select.texi: Update mingw problems.
91966         * doc/posix-functions/send.texi: Update mingw problems.
91967         * doc/posix-functions/sendto.texi: Update mingw problems.
91968         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91969         * doc/posix-functions/socket.texi: Update mingw problems.
91971 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91972             Bruno Haible  <bruno@clisp.org>
91974         * lib/sys_select.in.h: Include sys/time.h.
91975         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91976         * modules/sys_select: Depend on sys_time.
91977         * tests/test-sys_select.c: Test that sys/select.h defines struct
91978         timeval fully.
91980 2008-09-29  Bruno Haible  <bruno@clisp.org>
91982         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91983         * lib/sys_select.in.h: Likewise.
91985 2008-09-29  Bruno Haible  <bruno@clisp.org>
91987         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91989 2008-09-29  Bruno Haible  <bruno@clisp.org>
91991         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91992         Set LIBSOCKET instead of augmenting LIBS.
91993         * modules/sockets (Link): New section.
91994         * modules/sockets-tests (test_sockets_LDADD): New variable.
91995         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91996         * modules/poll-tests (test_poll_LDADD): New variable.
91997         * NEWS: Document the change.
91999 2008-09-29  Bruno Haible  <bruno@clisp.org>
92001         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
92002         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
92003         ARPA_INET_H directly.
92004         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92006 2008-09-28  Bruno Haible  <bruno@clisp.org>
92008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
92009         from gl_HEADER_SYS_SOCKET.
92010         (gl_HEADER_SYS_SOCKET): Invoke it.
92011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92013 2008-09-28  Bruno Haible  <bruno@clisp.org>
92015         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
92016         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
92017         Needed on OSF/1 4.0.
92019 2008-09-28  Bruno Haible  <bruno@clisp.org>
92021         Override open more carefully.
92022         * lib/open.c (orig_open): New function.
92023         (rpl_open): Use orig_open instead of open.
92024         * lib/fcntl.in.h: Add special invocation convention.
92025         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
92026         (gl_FUNC_OPEN): Invoke it.
92028         Override freopen more carefully.
92029         * lib/freopen.c (orig_freopen): New function.
92030         (rpl_freopen): Use orig_freopen instead of freopen.
92031         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
92032         (gl_FUNC_FREOPEN): Invoke it.
92034         Override fopen more carefully.
92035         * lib/fopen.c (orig_fopen): New function.
92036         (rpl_fopen): Use orig_fopen instead of fopen.
92037         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
92038         (gl_FUNC_FOPEN): Invoke it.
92039         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
92041 2008-09-28  Bruno Haible  <bruno@clisp.org>
92043         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
92044         SIGPIPE.
92046 2008-09-28  Bruno Haible  <bruno@clisp.org>
92048         * tests/test-sigaction.c (handler, main): Disable the check whether
92049         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
92050         glibc systems with LinuxThreads.
92052 2008-09-28  Bruno Haible  <bruno@clisp.org>
92054         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
92056         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
92057         with AIX xlc.
92058         * lib/fcntl.in.h (open): Likewise.
92059         Reported by Rainer Tammer <tammer@tammer.net>.
92061 2008-09-28  Bruno Haible  <bruno@clisp.org>
92063         * modules/posix_spawnp-tests: New file.
92064         * tests/test-posix_spawn.c: New file.
92065         * tests/test-posix_spawn.in.sh: New file.
92067         New module 'posix_spawnp'.
92068         * modules/posix_spawnp: New file.
92069         * lib/spawnp.c: New file, from GNU libc with modifications.
92070         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
92072         New module 'posix_spawn'.
92073         * modules/posix_spawn: New file.
92074         * lib/spawn.c: New file, from GNU libc with modifications.
92075         * doc/posix-functions/posix_spawn.texi: Mention the new module.
92077         New module 'posix_spawnattr_destroy'.
92078         * modules/posix_spawnattr_destroy: New file.
92079         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
92080         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
92081         module.
92083         New module 'posix_spawnattr_setsigmask'.
92084         * modules/posix_spawnattr_setsigmask: New file.
92085         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
92086         modifications.
92087         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
92088         new module.
92090         New module 'posix_spawnattr_getsigmask'.
92091         * modules/posix_spawnattr_getsigmask: New file.
92092         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
92093         modifications.
92094         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
92095         new module.
92097         New module 'posix_spawnattr_setsigdefault'.
92098         * modules/posix_spawnattr_setsigdefault: New file.
92099         * lib/spawnattr_setdefault.c: New file, from GNU libc with
92100         modifications.
92101         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
92102         new module.
92104         New module 'posix_spawnattr_getsigdefault'.
92105         * modules/posix_spawnattr_getsigdefault: New file.
92106         * lib/spawnattr_getdefault.c: New file, from GNU libc with
92107         modifications.
92108         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
92109         new module.
92111         New module 'posix_spawnattr_setschedpolicy'.
92112         * modules/posix_spawnattr_setschedpolicy: New file.
92113         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
92114         modifications.
92115         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
92116         new module.
92118         New module 'posix_spawnattr_getschedpolicy'.
92119         * modules/posix_spawnattr_getschedpolicy: New file.
92120         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
92121         modifications.
92122         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
92123         new module.
92125         New module 'posix_spawnattr_setschedparam'.
92126         * modules/posix_spawnattr_setschedparam: New file.
92127         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
92128         modifications.
92129         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
92130         new module.
92132         New module 'posix_spawnattr_getschedparam'.
92133         * modules/posix_spawnattr_getschedparam: New file.
92134         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
92135         modifications.
92136         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
92137         new module.
92139         New module 'posix_spawnattr_setpgroup'.
92140         * modules/posix_spawnattr_setpgroup: New file.
92141         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
92142         modifications.
92143         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
92144         module.
92146         New module 'posix_spawnattr_getpgroup'.
92147         * modules/posix_spawnattr_getpgroup: New file.
92148         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
92149         modifications.
92150         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
92151         module.
92153         New module 'posix_spawnattr_setflags'.
92154         * modules/posix_spawnattr_setflags: New file.
92155         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
92156         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
92157         module.
92159         New module 'posix_spawnattr_getflags'.
92160         * modules/posix_spawnattr_getflags: New file.
92161         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
92162         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
92163         module.
92165         New module 'posix_spawnattr_init'.
92166         * modules/posix_spawnattr_init: New file.
92167         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
92168         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
92169         module.
92171         New module 'posix_spawn_file_actions_destroy'.
92172         * modules/posix_spawn_file_actions_destroy: New file.
92173         * lib/spawn_faction_destroy.c: New file, from GNU libc with
92174         modifications.
92175         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
92176         the new module.
92178         New module 'posix_spawn_file_actions_addopen'.
92179         * modules/posix_spawn_file_actions_addopen: New file.
92180         * lib/spawn_faction_addopen.c: New file, from GNU libc with
92181         modifications.
92182         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
92183         the new module.
92185         New module 'posix_spawn_file_actions_adddup2'.
92186         * modules/posix_spawn_file_actions_adddup2: New file.
92187         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
92188         modifications.
92189         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
92190         the new module.
92192         New module 'posix_spawn_file_actions_addclose'.
92193         * modules/posix_spawn_file_actions_addclose: New file.
92194         * lib/spawn_faction_addclose.c: New file, from GNU libc with
92195         modifications.
92196         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
92197         the new module.
92199         New module 'posix_spawn_file_actions_init'.
92200         * modules/posix_spawn_file_actions_init: New file.
92201         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
92202         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
92203         new module.
92205         New module 'posix_spawn-internal'.
92206         * modules/posix_spawn-internal: New file.
92207         * lib/spawn_int.h: New file, from GNU libc with modifications.
92208         * lib/spawni.c: New file, from GNU libc with modifications.
92209         * m4/posix_spawn.m4: New file.
92211         New module 'spawn'.
92212         * modules/spawn: New file.
92213         * lib/spawn.in.h: New file, from GNU libc with modifications.
92214         * m4/spawn_h.m4: New file.
92215         * doc/posix-headers/spawn.texi: Mention the new module.
92217 2008-09-28  Bruno Haible  <bruno@clisp.org>
92219         * modules/sched-tests: New file.
92220         * tests/test-sched.c: New file.
92222         New module 'sched'.
92223         * modules/sched: New file.
92224         * lib/sched.in.h: New file.
92225         * m4/sched_h.m4: New file.
92226         * doc/posix-headers/sched.texi: Mention the new module.
92228 2008-09-27  Eric Blake  <ebb9@byu.net>
92230         Fix previous patch, and tweak references to $0.
92231         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
92232         (func_version, func_gnulib_dir): Don't call this program
92233         gnulib-tool.
92234         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
92235         with using $0 in function.
92236         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
92237         (func_fatal_error): Reuse the name the user invoked us with.
92239 2008-09-27  Bruno Haible  <bruno@clisp.org>
92241         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
92242         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
92243         (gl_ICONV_H): Not here.
92244         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
92245         instead of assigning ICONV_H directly.
92247         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
92248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
92249         WCHAR_H directly.
92251 2008-09-27  Bruno Haible  <bruno@clisp.org>
92253         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
92254         * modules/arpa_inet (Depends-on): Add link-warning.
92255         (Makefile.am): Insert the definition of GL_LINK-WARNING.
92256         * modules/unistd (Makefile.am): Likewise.
92258 2008-09-26  Bruno Haible  <bruno@clisp.org>
92260         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
92261         variables.
92262         (func_version): Essentially copied from gnulib-tool.
92263         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
92264         func_readlink): Copied from gnulib-tool.
92266 2008-09-26  Bruno Haible  <bruno@clisp.org>
92268         * gnulib-tool (func_version): Change directory to $gnulib_dir before
92269         invoking git-version-gen.
92271 2008-09-26  Bruno Haible  <bruno@clisp.org>
92273         * posix-modules: Update to directory names changed on 2008-01-19.
92274         Remove commas in output before splitting into words. No more need to
92275         avoid 'ftruncate' since 2007-02-19.
92277 2008-09-26  Bruno Haible  <bruno@clisp.org>
92279         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
92281 2008-09-26  Bruno Haible  <bruno@clisp.org>
92283         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
92284         * modules/fwriteerror (Depends-on): Add errno.
92286 2008-09-26  Bruno Haible  <bruno@clisp.org>
92288         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
92289         * tests/test-vc-list-files-cvs.sh: Likewise.
92291 2008-09-26  Bruno Haible  <bruno@clisp.org>
92293         * doc/posix-headers/sys_resource.texi: Reorder items.
92295 2008-09-26  Jim Meyering  <meyering@redhat.com>
92297         fts: tweak inode comparison function
92298         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
92299         inode numbers, as documented.
92301         fts: sort dirent entries on inode number before traversing
92302         This avoids a quadratic, seek-related performance penalty when
92303         operating on a directory containing many entries (measurable at 10k;
92304         3.5 hours at 2 million entries with a cold cache) on certain types
92305         of file systems, including ext3 and ext4, but not tmpfs.
92306         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
92307         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
92308         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
92309         (fs_handles_readdir_ordered_dirents_efficiently): New function.
92310         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92311         (fts_build): Set the stat.st_ino member from D_INO.
92312         If it is likely to be useful, sort dirent entries on inode number.
92314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
92315         and the struct statfs.f_type member.
92316         * modules/fts (Depends-on): Add d-ino.
92318 2008-09-26  Bruno Haible  <bruno@clisp.org>
92320         * modules/sigpipe-die (Depends-on): Add sigpipe.
92322         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
92323         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
92324         and GNULIB_STDIO_H_SIGPIPE are set.
92325         * lib/stdio-write.c: New file.
92326         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
92327         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92328         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92329         REPLACE_STDIO_WRITE_FUNCS.
92330         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
92331         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92332         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92333         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92334         * modules/stdio (Files): Add lib/stdio-write.c.
92335         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
92336         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92337         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92338         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92339         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
92340         REPLACE_FPRINTF_POSIX.
92341         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
92342         REPLACE_PRINTF_POSIX.
92343         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
92344         REPLACE_VFPRINTF_POSIX.
92345         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
92346         REPLACE_VPRINTF_POSIX.
92347         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
92348         SIGPIPE issue.
92349         * doc/posix-functions/fputc.texi: Likewise.
92350         * doc/posix-functions/fputs.texi: Likewise.
92351         * doc/posix-functions/fwrite.texi: Likewise.
92352         * doc/posix-functions/printf.texi: Likewise.
92353         * doc/posix-functions/putc.texi: Likewise.
92354         * doc/posix-functions/putchar.texi: Likewise.
92355         * doc/posix-functions/puts.texi: Likewise.
92356         * doc/posix-functions/vfprintf.texi: Likewise.
92357         * doc/posix-functions/vprintf.texi: Likewise.
92359         * modules/safe-write (Depends-on): Add write.
92361         * modules/sigpipe-tests: New file.
92362         * tests/test-sigpipe.c: New file.
92363         * tests/test-sigpipe.sh: New file.
92365         * modules/write: New file.
92366         * lib/unistd.in.h: Include <sys/types.h>.
92367         (write): New declaration.
92368         * lib/write.c: New file.
92369         * m4/write.m4: New file.
92370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92371         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
92372         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
92373         GNULIB_WRITE, REPLACE_WRITE.
92374         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
92375         and the SIGPIPE issue.
92377         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
92378         (raise): New declaration.
92379         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
92380         (ext_signal): New function.
92381         (rpl_raise): New function.
92382         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
92383         GNULIB_SIGNAL_H_SIGPIPE.
92384         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
92385         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
92387         * modules/sigpipe: New file.
92388         * m4/sigpipe.m4: New file.
92390 2008-09-25  Derek Price  <derek@ximbiot.com>
92391             Bruno Haible  <bruno@clisp.org>
92393         * gnulib-tool (func_import): Report all license incompatibilities, not
92394         just the first one.
92396 2008-09-25  Bruno Haible  <bruno@clisp.org>
92398         * gnulib-tool (func_import): When computing the edits, consider not
92399         only the Makefile.ams that exist but also those that will be generated.
92401 2008-09-25  Simon Josefsson  <simon@josefsson.org>
92403         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
92404         fixes gnulib-tool --test warning about duplicate dependency.
92406 2008-09-25  Bruno Haible  <bruno@clisp.org>
92408         * gnulib-tool: Don't ask the user to perform edits in the generated
92409         Makefile.ams.
92410         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
92411         apply to the Makefile.am being generated.
92412         (func_emit_tests_Makefile_am): Execute edits that apply to the
92413         Makefile.am being generated.
92414         (func_import): Setup list of Makefile.am edits before emitting the
92415         Makefile.ams, not at the end.
92416         (func_create_testdir): Update.
92417         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92419 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92421         * gnulib-tool (func_import): Store the --tests-base option in the
92422         comment in gnulib-cache.m4.
92424 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92426         * NEWS: Document increased portability that sys_select now provides.
92428         * lib/sys_select.in.h: Install select wrapper.
92429         * lib/sys_socket.in.h: Use more descriptive name when there is no
92430         select wrapper.
92431         * lib/winsock-select.c: New.
92432         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92433         Require gl_HEADER_SYS_SOCKET.
92434         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92435         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92436         * tests/test-sys_select.c: Add functional tests.
92438 2008-09-24  Eric Blake  <ebb9@byu.net>
92440         open, fopen: close fd leak in last patch
92441         * lib/open.c (rpl_open): Close fd before returning error.
92442         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92443         * doc/posix-functions/open.texi (open): Document that Irix also
92444         has the bug.
92445         * doc/posix-functions/fopen.texi (fopen): Likewise.
92446         Reported by Paolo Bonzini.
92448 2008-09-24  Bruno Haible  <bruno@clisp.org>
92450         Ensure that a filename ending in a slash cannot be used to access a
92451         non-directory.
92452         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92453         to check whether it's really a directory.
92454         * lib/fopen.c: Include fcntl.h, unistd.h.
92455         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92456         and fdopen().
92457         * modules/fopen (Depends-on): Add unistd.
92458         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92459         * tests/test-fopen.c (main): Likewise.
92460         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92461         * doc/posix-functions/fopen.texi: Likewise.
92462         Reported by Eric Blake.
92464 2008-09-23  Eric Blake  <ebb9@byu.net>
92466         c-stack: avoid compiler optimizations when provoking overflow
92467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92468         recursion harder to optimize, to ensure a stack overflow occurs.
92469         * tests/test-c-stack.c (recurse): Likewise.
92470         Borrowed from libsigsegv.
92472         c-stack: work around Irix sigaltstack bug
92473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92474         whether sigaltstack uses wrong end of stack_t (copied in part from
92475         libsigsegv).
92476         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92477         Irix bug, without requiring an over-allocation.
92478         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92479         bug.
92481         fopen: document mingw bug on directories
92482         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92483         not allowing a stream visiting a directory, even though reading
92484         from such a stream is not portable.
92486 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92488         * lib/poll.c: Rewrite.
92489         * modules/poll: Depend on alloca.
92491 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92493         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92494         instead define prototypes for a full set of wrappers.  Ensure
92495         that Cygwin does not use the compatibility code, which is only
92496         for MinGW.
92497         * lib/winsock.c: New.
92498         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92499         * modules/sys_socket: Add lib/winsock.c.
92501         * modules/poll-tests: Add errno and perror.
92502         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92504 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92506         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92508 2008-09-23  Bruno Haible  <bruno@clisp.org>
92510         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92511         * doc/glibc-functions/*: Likewise.
92513 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92515         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92516         success.
92518 2008-09-22  Eric Blake  <ebb9@byu.net>
92519             Bruno Haible  <bruno@clisp.org>
92521         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92522         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92523         supply %A but mishandle pseudo-NaN.
92524         Reported by Simon Josefsson.
92526 2008-09-21  Bruno Haible  <bruno@clisp.org>
92528         * tests/test-lock.c (main): Tweak skip message.
92529         * tests/test-tls.c (main): Likewise.
92531 2008-09-21  Bruno Haible  <bruno@clisp.org>
92533         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92534         whether 'struct sigaction' has sa_sigaction here...
92535         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92536         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92538 2008-09-21  Bruno Haible  <bruno@clisp.org>
92540         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92541         section.
92542         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92543         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92544         the new section.
92545         (Support for obsolete systems lacking POSIX:2001): New section.
92546         (String handling <string.h>): Move strdup to the new section.
92547         Suggested by Simon Josefsson and Paolo Bonzini.
92549 2008-09-21  Bruno Haible  <bruno@clisp.org>
92551         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92552         exponents in %e and %g results on 'long double'. Needed for mingw's
92553         improved *printf functions.
92554         * tests/test-vasprintf-posix.c (test_function): Likewise.
92555         * tests/test-snprintf-posix.h (test_function): Likewise.
92556         * tests/test-sprintf-posix.h (test_function): Likewise.
92557         Reported by Eric Blake.
92559 2008-09-21  Bruno Haible  <bruno@clisp.org>
92561         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92562         * tests/test-sprintf-posix.h (test_function): Likewise.
92564 2008-09-21  Bruno Haible  <bruno@clisp.org>
92566         * modules/getpass (Depends-on): Add strdup-posix.
92568         New module 'strdup-posix'.
92569         * modules/strdup-posix: New file.
92570         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92571         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92573         REPLACE_STRDUP.
92574         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92575         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92577         strdup-posix.
92579         * modules/strdup (Depends-on): Remove malloc-posix.
92581 2008-09-20  Bruno Haible  <bruno@clisp.org>
92583         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92584         Wildenhues.
92586 2008-09-20  Bruno Haible  <bruno@clisp.org>
92588         Ensure that wint_t gets defined on IRIX 5.3.
92589         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92590         * lib/wctype.in.h (wint_t): Likewise.
92591         (__wctype_wint_t): Remove type.
92592         (isw*): Use wint_t instead of __wctype_wint_t.
92593         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92594         * modules/wchar (Files): Add m4/wint_t.m4.
92595         (Makefile.am): Substitute HAVE_WINT_T.
92596         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92597         * tests/test-wctype.c: Check that wint_t is defined.
92598         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92599         * doc/posix-headers/wctype.texi: Likewise.
92600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92602 2008-09-18  Bruno Haible  <bruno@clisp.org>
92604         * gnulib-tool (func_exit): Update comment.
92606 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92608         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92609         assumes strdup exists and does not depend on strdup to return
92610         ENOMEM on out of memory conditions.
92612 2008-09-18  Bruno Haible  <bruno@clisp.org>
92614         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92615         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92616         digits for the exponent.
92618 2008-09-18  Jim Meyering  <meyering@redhat.com>
92619             Bruno Haible  <bruno@clisp.org>
92621         * lib/vasnprintf.c (decimal_point_char): Define also if
92622         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92624 2008-09-16  Bruno Haible  <bruno@clisp.org>
92625         and Eric Blake  <ebb9@byu.net>
92627         vasnprintf: support Irix 5.3
92628         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92629         that mishandle long double infinity.
92630         Reported by Tom G. Christensen.
92632 2008-09-16  Bruno Haible  <bruno@clisp.org>
92634         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92635         Solaris 9.
92636         * doc/glibc-functions/alphasort.texi: Likewise.
92637         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92639 2008-09-16  Jim Meyering  <meyering@redhat.com>
92641         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92642         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92643         a umask modification leak out of a subshell.  Otherwise, the
92644         opensolaris /bin/sh would be accepted and thus cause unwarranted
92645         failures in the coreutils test suite.
92647 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92649         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92650         to succeed.
92652 2008-09-16  Jim Meyering  <meyering@redhat.com>
92654         avoid spurious test failure when library is built without ACL support
92655         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92656         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92657         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92658         * tests/test-copy-acl.sh: Likewise.
92660 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92662         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92663         based on character occurrence counts.
92665 2008-09-15  Eric Blake  <ebb9@byu.net>
92667         tests: avoid some compiler warnings
92668         * tests/test-memchr.c (main): Pass NULL indirectly.
92669         * tests/test-closein.c (main): Avoid unused variable.
92671 2008-09-15  Bruno Haible  <bruno@clisp.org>
92673         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92674         are missing on OpenBSD 4.0 individually.
92675         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92677 2008-09-15  Bruno Haible  <bruno@clisp.org>
92679         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92680         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92681         * doc/posix-functions/perror.texi: Likewise.
92682         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92683         is missing.
92684         Reported by Eric Blake.
92686         * lib/errno.in.h: Use replacement values >= 2000.
92687         Reported by Eric Blake.
92689 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92691         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92692         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92693         limit.
92694         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92695         compareseq was aborted.
92697 2008-09-14  Bruno Haible  <bruno@clisp.org>
92699         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92700         yvec_edit_count.
92701         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92702         (fstrcmp_bounded): Simplify result computation accordingly.
92704 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92706         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92707         (fstrcmp): Define in terms of fstrcmp_bounded.
92708         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92709         lower_bound argument.
92710         Return quickly if the result is certainly < lower_bound.
92711         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92713 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92715         * lib/diffseq.h (EARLY_ABORT): New macro.
92716         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92717         evaluates to true.
92719 2008-09-14  Bruno Haible  <bruno@clisp.org>
92721         * modules/perror-tests: New file.
92722         * tests/test-perror.sh: New file.
92723         * tests/test-perror.c: New file.
92725         New module 'perror'.
92726         * lib/stdio.in.h (perror): New declaration.
92727         * lib/perror.c: New file.
92728         * m4/perror.m4: New file.
92729         * modules/perror: New file.
92730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92731         * doc/posix-functions/perror.texi: Mention the perror module.
92732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92733         REPLACE_PERROR.
92734         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92735         REPLACE_PERROR.
92737 2008-09-14  Bruno Haible  <bruno@clisp.org>
92739         * modules/stdio (Makefile.am): Reorder to match the order in
92740         lib/stdio.in.h.
92741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92743 2008-09-13  Bruno Haible  <bruno@clisp.org>
92745         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92747 2008-09-13  Bruno Haible  <bruno@clisp.org>
92749         Extend strerror to cover the added errno values.
92750         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92751         (rpl_strerror): Provide error messages for the added errno values and
92752         for the WSA* values.
92753         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92754         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92755         strerror.
92756         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92757         * modules/strerror (Depends-on): Add errno.
92758         * doc/posix-functions/strerror.texi: Document the change.
92759         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92760         and EOVERFLOW.
92762 2008-09-13  Bruno Haible  <bruno@clisp.org>
92764         * modules/EOVERFLOW: Remove file.
92765         * m4/eoverflow.m4: Remove file.
92766         * modules/EOVERFLOW-tests: Remove file.
92767         * tests/test-EOVERFLOW.c: Remove file.
92768         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92769         * modules/ftell (Depends-on): Likewise.
92770         * modules/getdelim (Depends-on): Likewise.
92771         * modules/getugroups (Depends-on): Likewise.
92772         * modules/poll (Depends-on): Likewise.
92773         * modules/snprintf (Depends-on): Likewise.
92774         * modules/sprintf-posix (Depends-on): Likewise.
92775         * modules/vasnprintf (Depends-on): Likewise.
92776         * modules/vasprintf (Depends-on): Likewise.
92777         * modules/vfprintf-posix (Depends-on): Likewise.
92778         * modules/vsnprintf (Depends-on): Likewise.
92779         * modules/vsprintf-posix (Depends-on): Likewise.
92780         * modules/xvasprintf (Depends-on): Likewise.
92781         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92782         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92783         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92784         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92785         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92786         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92787         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92788         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92789         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92790         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92791         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92792         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92794         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92795         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92796         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92798         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92799         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92800         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92801         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92802         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92803         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92804         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92805         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92806         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92807         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92808         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92809         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92810         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92811         * MODULES.html.sh: Remove EOVERFLOW.
92812         * NEWS: Mention the change.
92814 2008-09-13  Bruno Haible  <bruno@clisp.org>
92816         * modules/errno-tests: New file.
92817         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92819         * lib/errno.in.h: New file.
92820         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92821         * modules/errno: New file.
92822         * doc/posix-headers/errno.texi: Update documentation.
92823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92825 2008-09-13  Bruno Haible  <bruno@clisp.org>
92827         * tests/test-poll.c: Use #if for native Windows, rather than testing
92828         __MSVCRT__.
92830 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92831             Bruno Haible  <bruno@clisp.org>
92833         * lib/glob.c: Don't include <pwd.h> on native Windows.
92834         (WINDOWS32): New macro.
92835         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92837 2008-09-13  Bruno Haible  <bruno@clisp.org>
92839         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92840         (ETIMEDOUT): Remove macro.
92841         (glthread_cond_timedwait_multithreaded): New declaration.
92842         (glthread_cond_timedwait): Use it.
92843         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92844         (glthread_cond_timedwait_multithreaded): New function.
92846 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92848         * modules/poll-tests: Do not check for io.h.
92849         * tests/test-poll.c: Check for __MSVCRT__ instead.
92851 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92853         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92854         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92855         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92857 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92859         * modules/poll-tests: New.
92860         * tests/test-poll.c: New.
92862 2008-09-12  Eric Blake  <ebb9@byu.net>
92864         frexp: test for NetBSD failure on -0.0
92865         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92866         not all, bugs from NetBSD 3.0 have been fixed.
92867         * doc/posix-functions/frexp.texi (frexp): Document bug.
92868         Reported by Thomas Klausner.
92870         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92871         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92872         literal -0.0.
92873         Reported by Jonathan C. Patschke <jp@centtech.com>.
92875 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92877         * lib/glthread/cond.h: Use dummy implementation also if
92878         USE_WIN32_THREADS.
92880 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92882         * modules/fnmatch-posix (License): Change to LGPLv2+.
92883         * modules/fnmatch-gnu (License): Likewise.
92885 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92887         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92889 2008-09-11  Jim Meyering  <meyering@redhat.com>
92891         * users.txt: Add gtk-vnc.
92893 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92895         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92896         rotate amounts.
92898         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92899         required for 16-bit and 8-bit rotates.
92900         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92901         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92902         UINT8_MAX instead of hard-coded constants.
92903         Suggested by Paul Eggert.
92905 2008-09-07  Bruno Haible  <bruno@clisp.org>
92907         * tests/test-striconveh.c (main): Check behaviour when converting from
92908         UTF-7.
92910         Make striconveh work better with stateful encodings.
92911         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92912         that iconv does not increment the inptr when returning -1/EINVAL.
92914 2008-09-07  Bruno Haible  <bruno@clisp.org>
92916         * build-aux/config.rpath: Update according to libtool-2.2.6.
92917         * build-aux/config.libpath: Likewise.
92919 2008-09-06  Bruno Haible  <bruno@clisp.org>
92921         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92922         * lib/freadptr.c (freadptr): Likewise.
92923         * lib/freadseek.c (freadptrinc): Likewise.
92924         Reported by Simon Josefsson.
92926 2008-09-06  Bruno Haible  <bruno@clisp.org>
92928         * modules/freadptr (License): Change to LGPLv2+.
92929         * modules/freadseek (License): Likewise.
92930         Suggested by Eric Blake.
92932         * modules/memchr2 (License): Change to LGPLv2+.
92933         Approved by Eric Blake.
92935 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92936             Bruno Haible  <bruno@clisp.org>
92938         Make gnulib-tool work with native 'sed' on AIX.
92939         * gnulib-tool (sed_noop): New variable.
92940         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92941         func_add_or_update, func_create_testdir): Use it to initialize sed
92942         script variables.
92943         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92945 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92946             Bruno Haible  <bruno@clisp.org>
92948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92949         also works after #include directives.
92951 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92953         getdate.y: reject an out-of-range timezone value
92954         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92955         the range [-24...+24].  When specified with only one or two digits,
92956         * tests/test-getdate.c: Tests for the fix.
92957         * doc/getdate.texi: Document this change.
92959 2008-09-03  Bruno Haible  <bruno@clisp.org>
92961         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92963 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92965         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92966         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92967         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92968         Blake <ebb9@byu.net>.
92970         * tests/test-bitrotate.c: Add more test vectors.
92972 2008-09-02  Eric Blake  <ebb9@byu.net>
92974         vasnprintf-posix: handle large precision via %.*d
92975         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92976         when handling it ourselves.
92977         * tests/test-vasnprintf-posix.c (test_function): Add test.
92978         * tests/test-snprintf-posix.h (test_function): Likewise.
92979         * tests/test-sprintf-posix.h (test_function): Likewise.
92980         * tests/test-vasprintf-posix.c (test_function): Likewise.
92981         Reported by Alain Guibert.
92983 2008-09-01  Eric Blake  <ebb9@byu.net>
92985         c-stack: make configure-time check more robust
92986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92987         successful sigaction call.
92988         Reported by Tom G. Christensen.
92990 2008-09-01  Bruno Haible  <bruno@clisp.org>
92992         New module 'findprog-lgpl'.
92993         * modules/findprog-lgpl: New file.
92994         * lib/findprog-lgpl.c: New file.
92995         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92996         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92997         to decide whether to use strdup or xstrdup, concatenated_filename or
92998         xconcatenated_filename.
93000 2008-09-01  Bruno Haible  <bruno@clisp.org>
93002         Split module 'concat-filename' into 'concat-filename' (LGPL) and
93003         'xconcat-filename' (GPL).
93004         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
93005         (License): Change to LGPLv2+.
93006         * modules/xconcat-filename: New file.
93007         * lib/concat-filename.h (concatenated_filename): Change specification.
93008         (xconcatenated_filename): New declaration.
93009         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
93010         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
93011         memory situations.
93012         * lib/xconcat-filename.c: New file.
93013         * NEWS: Mention the change.
93014         * lib/findprog.c: Include concat-filename.h, not filename.h.
93015         (find_in_path): Use xconcatenated_filename instead of
93016         concatenated_filename.
93017         * lib/javacomp.c: Include concat-filename.h, not filename.h.
93018         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
93019         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
93020         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
93021         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
93022         instead of concatenated_filename.
93023         * lib/javaexec.c: Include concat-filename.h, not filename.h.
93024         (execute_java_class): Use xconcatenated_filename instead of
93025         concatenated_filename.
93026         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
93027         * modules/javacomp (Depends-on): Likewise.
93028         * modules/javaexec (Depends-on): Likewise.
93030 2008-09-01  Bruno Haible  <bruno@clisp.org>
93032         Split module 'filename' into 'filename' and 'concat-filename'.
93033         * modules/filename: Keep only lib/filename.h.
93034         (License): Change to LGPLv2+.
93035         * modules/concat-filename: New file, extracted from modules/filename.
93036         * lib/filename.h (concatenated_filename): Remove declaration.
93037         * lib/concat-filename.h: New file, extracted from lib/filename.h.
93038         * lib/concat-filename.c: Include concat-filename.h.
93039         * NEWS: Mention the change.
93041 2008-09-01  Simon Josefsson  <simon@josefsson.org>
93043         * lib/bitrotate.h (rotl8, rotr8): Add.
93045         * modules/bitrotate (configure.ac): Need
93046         AC_REQUIRE([AC_C_INLINE]).
93047         (Description): Mention stdint.h.  Reported by Bruno Haible
93048         <bruno@clisp.org>.
93050         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
93051         Paolo Bonzini <bonzini@gnu.org>.
93053 2008-08-31  Bruno Haible  <bruno@clisp.org>
93055         Assume Solaris specific bi-arch conventions on Solaris systems.
93056         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
93057         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
93058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
93059         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
93060         like acl_libdirstem.
93061         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
93062         acl_libdirstem.
93063         * NEWS: Mention the change.
93064         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
93066 2008-08-31  Jim Meyering  <meyering@redhat.com>
93068         * lib/strftime.h: Add comments describing the two added arguments.
93070         remove duplicate #include directives
93071         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
93072         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
93074 2008-08-31  Bruno Haible  <bruno@clisp.org>
93076         New module 'sigpipe-die'.
93077         * modules/sigpipe-die: New file.
93078         * lib/sigpipe-die.h: New file.
93079         * lib/sigpipe-die.c: New file.
93080         * MODULES.html.sh (Signal handling): Add sigpipe-die.
93082 2008-08-31  Bruno Haible  <bruno@clisp.org>
93084         Don't override previously installed signal handlers.
93085         * lib/fatal-signal.c (saved_sigactions): New variable.
93086         (uninstall_handlers): Reset the signal to the saved handler, not
93087         to SIG_DFL (except when ignored).
93088         (install_handlers): Save the previous handlers.
93090 2008-08-30  Bruno Haible  <bruno@clisp.org>
93092         * gnulib-tool (func_reset_sigpipe): New function.
93093         (func_get_automake_snippet, func_modules_transitive_closure,
93094         func_import): Invoke it before a join command that reads from stdin,
93095         to avoid "echo: write error: Broken pipe" error messages on stderr.
93096         Reported by Sam Steingold <sds@gnu.org>.
93098 2008-08-30  Bruno Haible  <bruno@clisp.org>
93100         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
93101         Code copied from m4/open.m4.
93102         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
93103         access and the filename ends in a slash. Code copied from lib/open.c.
93104         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
93105         * tests/test-fopen.c (main): Check against bug with trailing slash.
93107 2008-08-29  Bruno Haible  <bruno@clisp.org>
93109         Avoid some "gcc -pedantic" warnings.
93110         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
93111         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
93112         * lib/dirent.in.h: Likewise.
93113         * lib/fcntl.in.h: Likewise.
93114         * lib/float.in.h: Likewise.
93115         * lib/iconv.in.h: Likewise.
93116         * lib/inttypes.in.h: Likewise.
93117         * lib/locale.in.h: Likewise.
93118         * lib/math.in.h: Likewise.
93119         * lib/netinet_in.in.h: Likewise.
93120         * lib/search.in.h: Likewise.
93121         * lib/signal.in.h: Likewise.
93122         * lib/stdarg.in.h: Likewise.
93123         * lib/stdint.in.h: Likewise.
93124         * lib/stdio.in.h: Likewise.
93125         * lib/stdlib.in.h: Likewise.
93126         * lib/string.in.h: Likewise.
93127         * lib/strings.in.h: Likewise.
93128         * lib/sys_select.in.h: Likewise.
93129         * lib/sys_socket.in.h: Likewise.
93130         * lib/sys_stat.in.h: Likewise.
93131         * lib/sys_time.in.h: Likewise.
93132         * lib/sysexits.in.h: Likewise.
93133         * lib/time.in.h: Likewise.
93134         * lib/unistd.in.h: Likewise.
93135         * lib/wchar.in.h: Likewise.
93136         * lib/wctype.in.h: Likewise.
93137         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
93138         * modules/fchdir (Makefile.am): Likewise.
93139         * modules/fcntl (Makefile.am): Likewise.
93140         * modules/float (Makefile.am): Likewise.
93141         * modules/iconv_open (Makefile.am): Likewise.
93142         * modules/inttypes (Makefile.am): Likewise.
93143         * modules/locale (Makefile.am): Likewise.
93144         * modules/math (Makefile.am): Likewise.
93145         * modules/netinet_in (Makefile.am): Likewise.
93146         * modules/search (Makefile.am): Likewise.
93147         * modules/signal (Makefile.am): Likewise.
93148         * modules/stdarg (Makefile.am): Likewise.
93149         * modules/stdint (Makefile.am): Likewise.
93150         * modules/stdio (Makefile.am): Likewise.
93151         * modules/stdlib (Makefile.am): Likewise.
93152         * modules/string (Makefile.am): Likewise.
93153         * modules/strings (Makefile.am): Likewise.
93154         * modules/sys_select (Makefile.am): Likewise.
93155         * modules/sys_socket (Makefile.am): Likewise.
93156         * modules/sys_stat (Makefile.am): Likewise.
93157         * modules/sys_time (Makefile.am): Likewise.
93158         * modules/sysexits (Makefile.am): Likewise.
93159         * modules/time (Makefile.am): Likewise.
93160         * modules/unistd (Makefile.am): Likewise.
93161         * modules/wchar (Makefile.am): Likewise.
93162         * modules/wctype (Makefile.am): Likewise.
93163         Reported by Reuben Thomas <rrt@sc3d.org>.
93165 2008-08-29  Bruno Haible  <bruno@clisp.org>
93167         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
93168         any more.
93170 2008-08-29  Simon Josefsson  <simon@josefsson.org>
93172         * MODULES.html.sh (Misc): Add bitrotate.
93174         * modules/bitrotate: New file.
93176         * lib/bitrotate.h: New file.
93178         * modules/bitrotate-tests: New file.
93180         * tests/test-bitrotate.c: New file.
93182         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
93183         on the bitrotate module.
93185         * lib/arctwo.c: Use new bitrotate module.
93187 2008-08-29  Jim Meyering  <meyering@redhat.com>
93189         bootstrap: merge changes from coreutils
93190         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
93191         of copied files.  Remove a kludge, now that this is fixed.
93192         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
93193         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
93194         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
93196 2008-08-29  Bruno Haible  <bruno@clisp.org>
93198         * MODULES.html.sh: Remove --cvs-urls option.
93200 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
93202         maint.mk: adjust to file name change
93203         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
93205 2008-08-28  Jim Meyering  <meyering@redhat.com>
93207         * modules/getndelim2 (License): Relicense to LGPLv2+.
93208         Approved by Richard Stallman for the version of 1995, and by
93209         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
93211 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
93213         * lib/getdelim.c (flockfile, funlockfile): Make all of them
93214         dummy if one is not available.  Do not touch them if
93215         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
93216         (getc_maybe_unlocked): New.
93217         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
93219 2008-08-26  Eric Blake  <ebb9@byu.net>
93221         doc/INSTALL: resync from autoconf
93222         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
93223         (INSTALL_PRELUDE): Delete; this is done more efficiently by
93224         moving...
93225         * install.texi [!autoconf]: ...here.  Resync from autoconf.
93226         * INSTALL: Regenerate.
93227         * INSTALL.ISO: New file.
93228         * INSTALL.UTF-8: Likewise.
93230 2008-08-26  Jim Meyering  <meyering@redhat.com>
93232         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
93233         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
93234         these definitions conditional, so that they may be overridden, too.
93236 2008-08-26  Bruno Haible  <bruno@clisp.org>
93238         Generate INSTALL file variants with prettier quotes.
93239         * doc/Makefile (INSTALL_PRELUDE): New macro.
93240         (INSTALL): Use it.
93241         (INSTALL.ISO, INSTALL.UTF-8): New rules.
93243 2008-08-26  Bruno Haible  <bruno@clisp.org>
93245         Run makeinfo in an English locale.
93246         * doc/Makefile (MAKEINFO): New variable.
93248 2008-08-26  Bruno Haible  <bruno@clisp.org>
93250         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
93251         Suggested by Eric Blake.
93253 2008-08-25  Bruno Haible  <bruno@clisp.org>
93255         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
93257 2008-08-25  Eric Blake  <ebb9@byu.net>
93259         c-stack: test that stack overflow can be caught
93260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
93261         that platform allows handling stack overflow; at least OS/2 EMX
93262         has sigaltstack, but crashes before transferring control to
93263         handler on stack overflow.
93264         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
93265         check for HAVE_STACK_OVERFLOW_HANDLING.
93266         Reported by Elbert Pol.
93268 2008-08-25  Bruno Haible  <bruno@clisp.org>
93270         * doc/posix-functions/strftime.texi: Fix description of strftime
93271         module.
93273 2008-08-24  Bruno Haible  <bruno@clisp.org>
93275         * tests/uniwidth/test-uc_width2.c: New file.
93276         * tests/uniwidth/test-uc_width2.sh: New file.
93277         * modules/uniwidth/width-tests (Files): Add the new files.
93278         (TESTS): Add uniwidth/test-uc_width2.sh.
93279         (TESTS_ENVIRONMENT): New variable.
93280         (check_PROGRAMS): Add test-uc_width2.
93281         (test_uc_width2_SOURCES): New variable.
93283         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
93284         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
93285         not 0x00AB.
93286         Reported by Alexander V. Lukyanov <lav@netis.ru>.
93288 2008-08-22  Eric Blake  <ebb9@byu.net>
93290         test-lock, test-tls: mention why a test is skipped
93291         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
93292         skipped.
93293         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
93295         count-one-bits: relax license
93296         * modules/count-one-bits (License): Relicense to LGPLv2+.
93297         Suggested by Ludovic Courtès, approved by Ben Pfaff.
93299 2008-08-22  Andreas Schwab  <schwab@suse.de>
93301         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
93302         Remove spurious space in assignment.
93304 2008-08-21  Simon Josefsson  <simon@josefsson.org>
93306         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
93307         Paul Eggert <eggert@CS.UCLA.EDU>.
93309 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
93311         * modules/gettext: Add m4/threadlib.m4.
93313 2008-08-19  Eric Blake  <ebb9@byu.net>
93315         test-c-stack: fix compilation failure on FreeBSD 5.0
93316         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
93317         headers before <sys/resource.h>.
93318         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
93319         the bug.
93320         Reported by Nelson H. F. Beebe.
93322         strverscmp: migrate from "strverscmp.h" to <string.h>
93323         * modules/string (Makefile.am): Add new hooks.
93324         * modules/strverscmp (Files): Remove strverscmp.h.
93325         (Depends-on): Add string.
93326         (configure.ac): Add indicator.
93327         (Include): Mention new header.
93328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
93329         defaults.
93330         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
93331         results.
93332         * lib/strverscmp.h: Delete.
93333         * lib/string.in.h (strverscmp): Provide declaration, when needed.
93334         * tests/test-strverscmp.c (includes): Adjust client.
93335         * lib/check-version.c (includes): Likewise.
93336         * NEWS: Document the change.
93338         strverscmp: add unit test
93339         * modules/strverscmp-tests: New file.
93340         * tests/test-strverscmp.c: Likewise.
93342 2008-08-19  Simon Josefsson  <simon@josefsson.org>
93344         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
93345         regarding Windows crypto stuff, from Mono.
93347 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
93349         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
93350         if present, for intel RND.  Return error on failures.
93352 2008-08-18  Ben Pfaff  <blp@gnu.org>
93354         gitlog-to-changelog: give better diagnostic for failed pipe-open
93355         * build-aux/gitlog-to-changelog: Improve error message: suggest
93356         that the version of Git may be too old.
93358 2008-08-18  Simon Josefsson  <simon@josefsson.org>
93360         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
93361         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
93363 2008-08-18  Bruno Haible  <bruno@clisp.org>
93365         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
93366         pthread_in_use().
93368 2008-08-18  Bruno Haible  <bruno@clisp.org>
93370         * lib/glthread/threadlib.c: Include <pthread.h>.
93372 2008-08-18  Bruno Haible  <bruno@clisp.org>
93374         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
93375         glthread_recursive_lock_* macros.
93376         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
93377         Fix syntax error.
93379 2008-08-18  Bruno Haible  <bruno@clisp.org>
93381         * lib/glthread/thread.c: Avoid forcing a context switch right after
93382         thread creation.
93384 2008-08-17  Bruno Haible  <bruno@clisp.org>
93386         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
93387         * lib/glthread/thread.h: Provide Win32 specific implementation.
93388         * modules/thread (Files): Add lib/glthread/thread.c.
93389         (Depends-on): Add lock.
93390         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
93392 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93394         New module 'yield'.
93395         * modules/yield: New file.
93396         * lib/glthread/yield.h: New file.
93397         * m4/yield.m4: New file.
93398         * MODULES.html.sh (Multithreading): Add yield.
93400 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93402         New module 'thread'.
93403         * modules/thread: New file.
93404         * lib/glthread/thread.h: New file.
93405         * m4/thread.m4: New file.
93406         * MODULES.html.sh (Multithreading): Add thread.
93408 2008-08-17  Bruno Haible  <bruno@clisp.org>
93410         * lib/glthread/lock.h: Include <stdlib.h> always.
93411         * lib/glthread/tls.h: Likewise.
93412         * lib/glthread/cond.h: Likewise.
93414 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93416         New module 'cond'.
93417         * modules/cond: New file.
93418         * lib/glthread/cond.h: New file.
93419         * lib/glthread/cond.c: New file.
93420         * m4/cond.m4: New file.
93421         * MODULES.html.sh (Multithreading): Add cond.
93423 2008-08-16  Eric Blake  <ebb9@byu.net>
93425         c-stack: fix regression on Irix 5.3 from 2008-06-21
93426         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93427         sa_sigaction...
93428         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93429         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93431         * modules/signal (Makefile.am): Use the value.
93432         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93433         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93434         * doc/posix-headers/signal.texi (signal.h): Document this
93435         portability issue.
93436         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93437         Reported by Tom G. Christensen.
93439 2008-08-17  Bruno Haible  <bruno@clisp.org>
93441         New module 'threadlib'.
93442         * modules/threadlib: New file.
93443         * lib/glthread/threadlib.c: New file, extracted from
93444         lib/glthread/lock.c.
93445         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93446         functions.
93447         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93448         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93449         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93450         macros.
93451         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93452         (gl_DISABLE_THREADS): Remove macro.
93453         * modules/lock (Files): Remove build-aux/config.rpath.
93454         (Depends-on): Remove havelib. Add threadlib.
93455         (configure.ac-early): Remove section.
93456         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93457         * modules/tls (Depends-on): Remove lock. Add threadlib.
93458         (Link): New section, copied from threadlib.
93459         * MODULES.html.sh (Multithreading): Add threadlib.
93461 2008-08-14  Bruno Haible  <bruno@clisp.org>
93463         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93464         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93465         glthread_rwlock_unlock, glthread_rwlock_destroy,
93466         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93467         glthread_recursive_lock_destroy): Define as macros always.
93468         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93469         glthread_lock_lock.
93470         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93471         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93472         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93473         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93474         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93475         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93476         (glthread_recursive_lock_lock_func): Renamed from
93477         glthread_recursive_lock_lock.
93478         (glthread_recursive_lock_unlock_func): Renamed from
93479         glthread_recursive_lock_unlock.
93480         (glthread_recursive_lock_destroy_func): Renamed from
93481         glthread_recursive_lock_destroy.
93483 2008-08-14  Bruno Haible  <bruno@clisp.org>
93485         * lib/glthread/lock.h: Renamed from lib/lock.h.
93486         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93487         * lib/glthread/tls.h: Renamed from lib/tls.h.
93488         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93489         * lib/fstrcmp.c: Update includes.
93490         * lib/strsignal.c: Update includes.
93491         * modules/lock (Files, Makefile.am): Update.
93492         (Include): Change to "glthread/lock.h".
93493         * modules/tls (Files, Makefile.am): Update.
93494         (Include): Change to "glthread/tls.h".
93495         * tests/test-lock.c: Update includes.
93496         * tests/test-tls.c: Update includes.
93497         * NEWS: Mention the renamed header files.
93499 2008-08-11  Jim Meyering  <meyering@redhat.com>
93501         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93503 2008-08-11  Eric Blake  <ebb9@byu.net>
93505         test-c-stack: avoid C99-ism
93506         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93507         before statement.
93508         Reported by Alain Guibert.
93510 2008-08-10  Jim Meyering  <meyering@redhat.com>
93512         ensure that return value of uinttostr et al are not ignored
93513         * lib/inttostr.h (__GNUC_PREREQ): Define.
93514         (__attribute_warn_unused_result__): Define.
93515         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93517 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93519         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93520         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93522 2008-08-07  Jim Meyering  <meyering@redhat.com>
93524         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93526         * modules/mkstemp (License): Relicense under LGPLv2+.
93527         * modules/tempname (License): Likewise.
93529 2008-08-06  Bruno Haible  <bruno@clisp.org>
93531         * lib/poll.c (poll): Further micro-optimization.
93533 2008-08-06  Jim Meyering  <meyering@redhat.com>
93535         inet_pton.c: use locale-independent tolower
93536         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93537         (inet_pton6): Use c_tolower rather than tolower.
93538         * modules/inet_pton (Depends-on): Add c-ctype.
93540 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93542         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93543         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93545 2008-08-06  Jim Meyering  <meyering@redhat.com>
93547         * modules/inet_pton (License): Relicense under LGPLv2+.
93549 2008-08-03  Bruno Haible  <bruno@clisp.org>
93551         Additional non-aborting API for lock and tls.
93552         * lib/lock.h: Include <errno.h>.
93553         (glthread_lock_init): New macro/function.
93554         (gl_lock_init): Define as wrapper around glthread_lock_init.
93555         (glthread_lock_lock): New macro/function.
93556         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93557         (glthread_lock_unlock): New macro/function.
93558         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93559         (glthread_lock_destroy): New macro/function.
93560         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93561         (glthread_rwlock_init): New macro/function.
93562         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93563         (glthread_rwlock_rdlock): New macro/function.
93564         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93565         (glthread_rwlock_wrlock): New macro/function.
93566         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93567         (glthread_rwlock_unlock): New macro/function.
93568         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93569         (glthread_rwlock_destroy): New macro/function.
93570         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93571         (glthread_recursive_lock_init): New macro/function.
93572         (gl_recursive_lock_init): Define as wrapper around
93573         glthread_recursive_lock_init.
93574         (glthread_recursive_lock_lock): New macro/function.
93575         (gl_recursive_lock_lock): Define as wrapper around
93576         glthread_recursive_lock_lock.
93577         (glthread_recursive_lock_unlock): New macro/function.
93578         (gl_recursive_lock_unlock): Define as wrapper around
93579         glthread_recursive_lock_unlock.
93580         (glthread_recursive_lock_destroy): New macro/function.
93581         (gl_recursive_lock_destroy): Define as wrapper around
93582         glthread_recursive_lock_destroy.
93583         (glthread_once): New macro/function.
93584         (gl_once): Define as wrapper around glthread_once.
93585         Update function declarations.
93586         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93587         glthread_rwlock_init. Return error code.
93588         (glthread_rwlock_rdlock_multithreaded): Renamed from
93589         glthread_rwlock_rdlock. Return error code.
93590         (glthread_rwlock_wrlock_multithreaded): Renamed from
93591         glthread_rwlock_wrlock. Return error code.
93592         (glthread_rwlock_unlock_multithreaded): Renamed from
93593         glthread_rwlock_unlock. Return error code.
93594         (glthread_rwlock_destroy_multithreaded): Renamed from
93595         glthread_rwlock_destroy. Return error code.
93596         (glthread_recursive_lock_init_multithreaded): Renamed from
93597         glthread_recursive_lock_init. Return error code.
93598         (glthread_recursive_lock_lock_multithreaded): Renamed from
93599         glthread_recursive_lock_lock. Return error code.
93600         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93601         glthread_recursive_lock_unlock. Return error code.
93602         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93603         glthread_recursive_lock_destroy. Return error code.
93604         (glthread_once_call): Make static.
93605         (glthread_once_multithreaded): Renamed from glthread_once.
93606         * lib/tls.h: Include <errno.h>.
93607         (glthread_tls_key_init): New macro/function.
93608         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93609         (glthread_tls_set): New macro/function.
93610         (gl_tls_set): Define as wrapper around glthread_tls_set.
93611         (glthread_tls_key_destroy): New macro/function.
93612         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93613         Update function declarations.
93614         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93615         glthread_tls_get.
93616         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93618 2008-08-04  Eric Blake  <ebb9@byu.net>
93620         gnumakefile: use space, not TAB, outside of targets
93621         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93623 2008-08-02  Jim Meyering  <meyering@redhat.com>
93625         getdate.y: avoid locale-dependent date parsing failure
93626         In Turkish locales, getdate would fail to recognize keywords
93627         containing a lowercase "i".  The solution is not to rely on
93628         locale-sensitive case-conversion.
93629         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93630         (lookup_word): Use c_toupper in place of toupper.
93631         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93632         Reported by Vefa Bicakci <bicave@superonline.com> in
93633         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93634         * modules/getdate (Depends-on): Add c-ctype.
93636 2008-08-02  Bruno Haible  <bruno@clisp.org>
93638         * gnulib-tool (func_import): When updating or creating a .gitignore
93639         file, prepend each added line with a slash, and ignore leading slashes
93640         from the existing lines.
93641         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93643 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93645         Portability fix for GNU make 3.79.1.
93646         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93647         versions do not understand.
93649 2008-08-01  Bruno Haible  <bruno@clisp.org>
93651         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93652         * tests/test-isnanf.h (zero): New variable.
93653         (main): Avoid literal -0.0f.
93654         * tests/test-isnand.h (zero): New variable.
93655         (main): Avoid literal -0.0.
93656         * tests/test-isnanl.h (zero): New variable.
93657         (main): Avoid literal -0.0L.
93658         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93659         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93660         -0.0, -0.0L.
93661         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93662         (test_signbitd): Avoid literal -0.0.
93663         (test_signbitl): Avoid literal -0.0L.
93664         * tests/test-ceilf1.c (zero): New variable.
93665         (main): Avoid literal -0.0f.
93666         * tests/test-ceill.c (zero): New variable.
93667         (main): Avoid literal -0.0L.
93668         * tests/test-floorf1.c (zero): New variable.
93669         (main): Avoid literal -0.0f.
93670         * tests/test-floorl.c (zero): New variable.
93671         (main): Avoid literal -0.0L.
93672         * tests/test-roundf1.c (zero): New variable.
93673         (main): Avoid literal -0.0f.
93674         * tests/test-round1.c (zero): New variable.
93675         (main): Avoid literal -0.0.
93676         * tests/test-roundl.c (zero): New variable.
93677         (main): Avoid literal -0.0L.
93678         * tests/test-truncf1.c (zero): New variable.
93679         (main): Avoid literal -0.0f.
93680         * tests/test-trunc1.c (zero): New variable.
93681         (main): Avoid literal -0.0.
93682         * tests/test-truncl.c (zero): New variable.
93683         (main): Avoid literal -0.0L.
93684         * tests/test-frexp.c (zero): New variable.
93685         (main): Avoid literal -0.0.
93686         * tests/test-frexpl.c (zero): New variable.
93687         (main): Avoid literal -0.0L.
93688         * tests/test-ldexpl.c (zero): New variable.
93689         (main): Avoid literal -0.0L.
93690         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93691         (zerod, zerol): New variables.
93692         (test_function): Avoid literals -0.0, -0.0L.
93693         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93694         (zerod, zerol): New variables.
93695         (test_function): Avoid literals -0.0, -0.0L.
93696         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93697         (zerod, zerol): New variables.
93698         (test_function): Avoid literals -0.0, -0.0L.
93699         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93700         (zerod, zerol): New variables.
93701         (test_function): Avoid literals -0.0, -0.0L.
93702         * tests/test-strtod.c (zero): New variable.
93703         (main): Avoid literal -0.0.
93704         Reported by Jonathan C. Patschke <jp@centtech.com>.
93706 2008-07-31  Jim Meyering  <meyering@redhat.com>
93708         sha256.h: correct definition of SHA224_DIGEST_SIZE
93709         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93710         Reported by Paulie Pena IV <paulie4@gmail.com>.
93711         Define as 224 / 8, rather than as a literal.
93712         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93713         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93714         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93716 2008-07-31  Bruno Haible  <bruno@clisp.org>
93718         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93719         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93720         Reported by Jonathan Patschke <jp@centtech.com>.
93722 2008-07-31  Bruno Haible  <bruno@clisp.org>
93724         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93725         Reported by Paolo Bonzini <bonzini@gnu.org>.
93727 2008-07-30  Eric Blake  <ebb9@byu.net>
93729         test-strtod: allow compilation without -lm
93730         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93731         Reported by Dennis Clarke <blastwave@gmail.com>.
93733 2008-07-28  Jim Meyering  <meyering@redhat.com>
93735         bootstrap: work also when there are no .po files in po/
93736         * build-aux/bootstrap (update_po_files): Complete the change
93737         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93739 2008-07-27  Jim Meyering  <meyering@redhat.com>
93741         * users.txt: Add zile.
93743 2008-07-26  Ben Pfaff  <blp@gnu.org>
93745         Add missing dependencies on new m4/exponent[fdl].m4 files.
93746         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93747         * modules/isnand-nolibm: Add m4/exponentd.m4.
93748         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93749         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93750         m4/isnan[fdl].m4, because the macros actually used moved.
93751         Reported by Jim Meyering.
93753 2008-07-14  Ben Pfaff  <blp@gnu.org>
93755         Add isinf module.
93756         * lib/isinf.c: New file.
93757         * lib/math.in.h: Define isinf macro if we have decided to replace
93758         it.
93759         * m4/isinf.m4: New file.
93760         * m4/math_h.m4: Initialize and substitute variables for isinf
93761         module.
93762         * modules/isinf: New file.
93763         * modules/isinf-tests: New file.
93764         * modules/math: Add substitutions for new module.
93765         * tests/test-isinf.c: New file.
93766         * doc/posix-functions/isinf.texi: Mention new module.
93767         * MODULES.html.sh: Mention new module.
93769 2008-07-14  Ben Pfaff  <blp@gnu.org>
93771         Factor out some macros for use by additional modules.
93772         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93773         exponentf.m4.
93774         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93775         exponentd.m4.
93776         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93777         file exponentl.m4.
93778         * m4/exponentf.m4: New file.
93779         * m4/exponentd.m4: New file.
93780         * m4/exponentl.m4: New file.
93781         * modules/isnanf: Use new file m4/exponentf.m4.
93782         * modules/isnand: Use new file m4/exponentd.m4.
93783         * modules/isnanl: Use new file m4/exponentl.m4.
93785 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93787         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93788         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93789         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93790         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93792         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93793         readlink on platforms without PATH_MAX.
93795 2008-07-21  Eric Blake  <ebb9@byu.net>
93797         Warn, not fail, on stale version.
93798         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93800         Don't allow installation with stale devel version number.
93801         * top/GNUmakefile (_is-install-target): New macro.
93802         (_curr-ver): Forbid installation with stale version number.
93804 2008-07-20  Bruno Haible  <bruno@clisp.org>
93806         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93807         TESTS_ENVIRONMENT.
93808         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93810 2008-07-20  Bruno Haible  <bruno@clisp.org>
93812         * lib/c-stack.h (c_stack_action): Add documentation.
93813         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93815 2008-07-20  Bruno Haible  <bruno@clisp.org>
93817         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93818         * modules/readlink (License): Likewise.
93820 2008-07-17  Eric Blake  <ebb9@byu.net>
93822         * modules/c-stack (Link): Fix typo.
93824         Make c-stack use libsigsegv, when available.
93825         * modules/c-stack (Depends-on): Add libsigsegv.
93826         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93827         needed.
93828         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93829         (segv_handler, overflow_handler, c_stack_action)
93830         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93831         implementation when libsigsegv is available, but only when using
93832         the library is necessary.
93833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93834         comment, explaining why XSI check fails on Linux.
93835         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93836         * tests/test-c-stack2.sh: Tweak skip message.
93837         * NEWS: Document new link-time requirements.
93839 2008-07-16  Eric Blake  <ebb9@byu.net>
93841         c-stack: Expose false positives when not using libsigsegv.
93842         * modules/c-stack-tests (Files): Expand test.
93843         * tests/test-c-stack.c (main): Add means to conditionally trigger
93844         non-overflow SIGSEGV.
93845         * tests/test-c-stack2.sh: New file.
93847 2008-07-14  Bruno Haible  <bruno@clisp.org>
93849         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93850         Reported by Eric Blake.
93852 2008-07-14  Sam Steingold  <sds@gnu.org>
93853             Bruno Haible  <bruno@clisp.org>
93855         New module libsigsegv.
93856         * modules/libsigsegv: New file.
93857         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93858         modifications.
93859         * MODULES.html.sh (Signal handling): New section.
93861 2008-07-14  Bruno Haible  <bruno@clisp.org>
93863         * modules/unictype/ctype-* (Description): Add the word "function".
93864         Improves the resulting doc in MODULES.html.
93866 2008-07-12  Ben Pfaff  <blp@gnu.org>
93868         Add longlong module.
93869         * modules/longlong: New file.
93871 2008-07-12  Bruno Haible  <bruno@clisp.org>
93873         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93874         to empty.
93876 2008-07-10  Ben Pfaff  <blp@gnu.org>
93878         Add isnan module.
93879         * doc/posix-functions/isnan.texi: Mention new module.
93880         * lib/math.in.h: Define isnan macro if we have decided to replace
93881         it.
93882         * m4/isnan.m4: New file.
93883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93884         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93885         also.
93886         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93887         redundancy.
93888         * m4/math_h.m4: Initialize and substitute variables for isnan
93889         module.
93890         * modules/isnan: New file.
93891         * modules/isnan-tests: New file.
93892         * modules/math: Add substitutions for new module.
93893         * tests/test-isnan.c: New file.
93894         * MODULES.html.sh: Mention new module.
93896 2008-07-10  Ben Pfaff  <blp@gnu.org>
93898         Add isnanf module.
93899         * lib/isnanf.m4: New file.
93900         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93901         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93902         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93903         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93904         * modules/isnanf: New file.
93905         * modules/isnanf-tests: New file.
93906         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93907         files.
93908         * tests/test-isnanf-nolibm.c: factored most of its contents into
93909         new file tests/test-isnanf.h.
93910         * tests/test-isnanf.h: New file.
93911         * tests/test-isnanf.c: New file.
93912         * MODULES.html.sh: Mention new module.
93913         * doc/glibc-functions/isnanf.texi: Mention new module.
93915 2008-07-10  Ben Pfaff  <blp@gnu.org>
93917         Add isnand module.
93918         * lib/isnand.h: New file.
93919         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93920         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93921         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93922         functionality also.
93923         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93924         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93925         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93926         * modules/isnand: New file.
93927         * modules/isnand-tests: New file.
93928         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93929         files.
93930         * tests/test-isnand-nolibm.c: factored most of its contents into
93931         new file tests/test-isnand.h.
93932         * tests/test-isnand.h: New file.
93933         * tests/test-isnand.c: New file.
93934         * MODULES.html.sh: Mention new module.
93936 2008-07-10  Ben Pfaff  <blp@gnu.org>
93938         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93939         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93940         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93941         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93942         * modules/isnanf-nolibm: Update references to renamed files.
93943         * modules/isnand-nolibm: Likewise.
93944         * modules/isnanf-nolibm-tests: Likewise.
93945         * modules/isnand-nolibm-tests: Likewise.
93946         * lib/frexp.c: Likewise.
93947         * lib/isfinite.c: Likewise.
93948         * lib/signbitd.c: Likewise.
93949         * lib/signbitf.c: Likewise.
93950         * lib/vasnprintf.c: Likewise.
93951         * tests/test-ceilf1.c: Likewise.
93952         * tests/test-ceilf2.c: Likewise.
93953         * tests/test-floorf1.c: Likewise.
93954         * tests/test-floorf2.c: Likewise.
93955         * tests/test-frexp.c: Likewise.
93956         * tests/test-round1.c: Likewise.
93957         * tests/test-round2.c: Likewise.
93958         * tests/test-roundf1.c: Likewise.
93959         * tests/test-strtod.c: Likewise.
93960         * tests/test-trunc1.c: Likewise.
93961         * tests/test-trunc2.c: Likewise.
93962         * tests/test-truncf1.c: Likewise.
93963         * tests/test-truncf2.c: Likewise.
93964         * NEWS: Mention the renamed header files.
93966 2008-07-11  Jim Meyering  <meyering@redhat.com>
93968         vc-list-files: make the last-resort awk code more portable
93969         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93970         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93971         does not support it.
93973 2008-07-10  Eric Blake  <ebb9@byu.net>
93975         Work with tar's bootstrap.
93976         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93977         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93978         an m4 comment.
93980 2008-07-09  Jim Meyering  <meyering@redhat.com>
93982         posix-shell.m4: fix typo that made this test malfunction
93983         * m4/posix-shell.m4: Remove capitalization in variable name.
93985 2008-07-08  Bruno Haible  <bruno@clisp.org>
93987         * m4/onceonly.m4: Update comments.
93988         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93990 2008-07-04  Jim Meyering  <meyering@redhat.com>
93992         * users.txt: Add vc-dwim.
93993         (bison, coreutils): Use the gitweb URL.
93995 2008-07-03  Jim Meyering  <meyering@redhat.com>
93997         * users.txt: Add libffcall.  From Sam Steingold.
93999 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
94001         getdate.y: do not ignore TZ with relative day, month or year offset
94002         * lib/getdate.y (get_date): Move the tz-handling block to follow the
94003         relative-date-handling, since otherwise, the latter would clobber the
94004         sole output (an updated Start value) of the tz-handling block.
94005         * tests/test-getdate.c: Tests for the fix
94007 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94009         Recognize 'foo_LIBRARIES += libgnu.a'.
94010         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
94011         makefile snippet has already specified an installation location,
94012         also using '+='.
94014 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
94016         getdate.y: factor out common actions
94017         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
94018         Use them in place of open-coded actions.
94020 2008-07-01  Simon Josefsson  <simon@josefsson.org>
94022         Add self-test for getdate module.
94023         * modules/getdate-tests: New file.
94024         * tests/test-getdate.c: New file.
94026 2008-06-29  Bruno Haible  <bruno@clisp.org>
94028         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
94029         .gitignore.
94030         Reported by Sylvain Beucler <beuc@beuc.net>.
94032 2008-06-29  Bruno Haible  <bruno@clisp.org>
94034         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
94035         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
94037 2008-06-29  Bruno Haible  <bruno@clisp.org>
94039         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
94040         EXTRA_DIST.
94041         Reported by Sylvain Beucler <beuc@beuc.net>.
94043 2008-06-26  Jim Meyering  <meyering@redhat.com>
94045         make several modules depend on the "open" module
94046         This provides slightly increased consistency when opening-for-write
94047         the name of a non-directory spelled with a trailing slash.
94048         * modules/chdir-safer: Likewise.
94049         * modules/chown: Likewise.
94050         * modules/clean-temp: Likewise.
94051         * modules/copy-file: Likewise.
94052         * modules/fchdir: Likewise.
94053         * modules/fcntl-safer: Likewise.
94054         * modules/pipe: Likewise.
94055         * modules/utime: Likewise.
94056         Prompted by Eric Blake and Bruno Haible.
94058 2008-06-24  Andreas Schwab  <schwab@suse.de>
94060         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
94061         literals can be used as initializers for global variables.
94063 2008-06-23  Eric Blake  <ebb9@byu.net>
94065         Make gnulib-cache.m4 easier to diff.
94066         * gnulib-tool (func_import): Allow newlines when reading cached
94067         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
94069 2008-06-23  Bruno Haible  <bruno@clisp.org>
94071         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
94072         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
94073         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
94074         m4/signalblocking.m4.
94075         (gl_PREREQ_SIGACTION): Don't invoke it.
94076         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
94077         gl_PREREQ_SIG_HANDLER_H.
94078         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94079         Don't check for sigaction here.
94081 2008-06-23  Bruno Haible  <bruno@clisp.org>
94083         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
94084         (install_handlers): Don't set the SA_RESETHAND flag.
94086 2008-06-23  Bruno Haible  <bruno@clisp.org>
94088         * m4/sigaction.m4: Comment fixes.
94089         * lib/signal.in.h: Likewise.
94091 2008-06-23  Eric Blake  <ebb9@byu.net>
94093         Fix typo.
94094         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
94096         Avoid SA_ namespace.
94097         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
94098         Reported by Ralf Wildenhues.
94100         Avoid test failure due to SA_RESTORER.
94101         * tests/test-sigaction.c (SA_MASK): New macro.
94102         (main): Avoid failing due to extension flags being set.
94103         Reported by Jim Meyering.
94105         Revert use of sig-handler.h in sigprocmask.c.
94106         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
94107         it requires the existence of struct sigaction.
94108         * lib/sigprocmask.c (handler_t): Restore typedef.
94109         (rpl_signal, old_handlers): Use local type.
94111 2008-06-22  Bruno Haible  <bruno@clisp.org>
94113         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
94114         conditionally.
94115         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
94117 2008-06-22  Bruno Haible  <bruno@clisp.org>
94119         * doc/posix-functions/siginterrupt.texi: Move note.
94121         * lib/signal.in.h (SA_RESTART): New macro.
94122         * lib/sigaction.c: Update comment.
94124         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
94126         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
94127         (gl_PREREQ_SIGPROCMASK): Invoke it.
94128         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
94130         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
94132         * lib/sigprocmask.c: Update a comment.
94134 2008-06-21  Eric Blake  <ebb9@byu.net>
94136         Use sigaction module rather than signal().
94137         * modules/c-stack (Depends-on): Add sigaction.
94138         * modules/fatal-signal (Depends-on): Likewise.
94139         * modules/nanosleep (Depends-on): Likewise.
94140         * modules/sigprocmask (Files): Add sig-handler.h.
94141         * modules/sigaction (Files): Likewise.
94142         * lib/sig-handler.h (get_handler): New file, suggested by Paul
94143         Eggert.
94144         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
94145         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
94146         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
94147         (init_fatal_signals): Likewise.
94148         * lib/nanosleep.c (rpl_nanosleep): Likewise.
94149         (siginterrupt): Delete fallback.
94150         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
94151         instead.
94152         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
94153         siginterrupt.
94155         New module sigaction, for mingw.
94156         * modules/sigaction: New module...
94157         * modules/sigaction-tests: ...and its test.
94158         * m4/sigaction.m4: New file.
94159         * lib/sigaction.c: Likewise.
94160         * tests/test-sigaction.c: Likewise.
94161         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
94162         * modules/signal (Makefile.am): Likewise.
94163         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
94164         needed.
94165         * doc/posix-headers/signal.texi (signal.h): Mention provided
94166         types.
94167         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
94168         that sigaction is preferable.
94169         * doc/posix-functions/sigaction.texi (sigaction): Mention new
94170         module.
94171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
94172         sigaction.
94174         Improve robustness of sigprocmask by overriding signal.
94175         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
94176         is in use.
94177         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
94178         (SIGKILL, SIGSTOP): Provide fallbacks.
94179         (rpl_signal): Implement.
94180         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
94181         signal can be called inside handlers.
94183         Fix nanosleep module on mingw.
94184         * modules/nanosleep (Depends-on): Add sys_select.
94185         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
94187         Fix licensing of sigprocmask.
94188         * modules/raise (License): Relicense as LGPL.
94190 2008-06-21  Bruno Haible  <bruno@clisp.org>
94192         * lib/propername.c (proper_name_utf8): Don't use the transliterated
94193         result if it contains question marks.
94194         Reported by Michael Geng <linux@michaelgeng.de>.
94196 2008-06-19  Bruno Haible  <bruno@clisp.org>
94198         Fix CVS-ism.
94199         * doc/gnulib.texi: Include updated-stamp.texi.
94200         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
94201         (updated-stamp.texi): New rule.
94202         (gnulib.info): Depend on it.
94203         * doc/.gitignore: Add updated-stamp.texi.
94204         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
94206 2008-06-19  Bruno Haible  <bruno@clisp.org>
94208         * doc/Makefile (gnulib.info): Update and simplify dependencies.
94209         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94211 2008-06-19  Eric Blake  <ebb9@byu.net>
94213         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
94214         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
94215         Reported by Stepan Kasal.
94217 2008-06-18  Bruno Haible  <bruno@clisp.org>
94219         * lib/fatal-signal.c (init_fatal_signals): Add comment.
94220         Reported by Eric Blake.
94222 2008-06-18  Eric Blake  <ebb9@byu.net>
94224         Work around cygwin 1.5.25 strsignal bug.
94225         * tests/test-strsignal.c: Allow for const char *.
94226         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
94228 2008-06-18  Simon Josefsson  <simon@josefsson.org>
94230         * users.txt: Update URL to article and add author/date
94231         information.
94233 2008-06-17  Bruno Haible  <bruno@clisp.org>
94235         New macro gl_DISABLE_THREADS.
94236         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
94237         if the user did not pass --enable-threads or --disable-threads option.
94238         (gl_DISABLE_THREADS): New macro.
94239         Reported by Eric Blake <ebb9@byu.net>.
94241 2008-06-17  Bruno Haible  <bruno@clisp.org>
94243         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
94244         when the macro ignores it.
94245         Based on a patch by Eric Blake <ebb9@byu.net>.
94247 2008-06-17  Bruno Haible  <bruno@clisp.org>
94249         * modules/tls (License): Change to LGPLv2+.
94250         Reported by Eric Blake.
94252 2008-06-17  Eric Blake  <ebb9@byu.net>
94254         Simplify c-stack prerequisites.
94255         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
94256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
94257         no longer requires <ucontext.h> to exist.  Optimize setrlimit
94258         check.
94259         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
94260         <sys/resource.h>.
94262         Move c-stack test into testsuite.
94263         * modules/c-stack-tests: New file.
94264         * lib/c-stack.c [DEBUG]: Move test program...
94265         * tests/test-c-stack.c: ...into this new file.  Skip rather than
94266         fail test if sigaltstack is lacking.
94267         * tests/test-c-stack.sh: New driver file.
94269 2008-06-16  Eric Blake  <ebb9@byu.net>
94271         Use raise module consistently.
94272         * modules/fatal-signal (Depends-on): Add raise.
94273         * modules/sigprocmask (Depends-on): Likewise.
94274         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
94275         * lib/sigprocmask.c (sigprocmask): Likewise.
94276         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94277         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
94279         Fix compliance bug in sigpending.
94280         * lib/sigprocmask.c (sigpending): Return pending array via
94281         parameter, not return value.
94283 2008-06-14  Eric Blake  <ebb9@byu.net>
94285         Improve obstack-printf test code.
94286         * tests/test-obstack-printf.c (test_function): Fix comment, and
94287         simplify usage of obstack_* in macros.  Add a test for coverage.
94288         Reported by Bruno Haible.
94290 2008-06-14  Bruno Haible  <bruno@clisp.org>
94292         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
94293         array size as a constant, not as a const variable.
94294         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
94295         AC_USE_SYSTEM_EXTENSIONS.
94296         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
94297         Test whether the obstack_printf function actually exists.
94298         * modules/obstack-printf (Depends-on): Add extensions.
94299         (Include): Remove obstack.h.
94300         * modules/obstack-printf-posix (Depends-on): Add extensions.
94301         (Include): Remove obstack.h.
94303 2008-06-13  Eric Blake  <ebb9@byu.net>
94305         Add obstack-printf and obstack-printf-posix modules.
94306         * modules/obstack-printf: New file.
94307         * modules/obstack-printf-posix: Likewise.
94308         * MODULES.html.sh (Misc): Mention them.
94309         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
94310         Likewise.
94311         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
94312         Likewise.
94313         * modules/stdio (Makefile.am): Accomodate new modules.
94314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94315         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
94316         Declare.
94317         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
94318         functions.
94319         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
94320         (gl_REPLACE_OBSTACK_PRINTF): New macros
94321         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
94322         * tests/test-obstack-printf.c: New file.
94323         * modules/obstack-printf-tests: Likewise.
94324         * modules/obstack-printf-posix-tests: Likewise.
94326 2008-06-11  Bruno Haible  <bruno@clisp.org>
94328         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
94329         * lib/open.c: Include errno.h.
94330         (open): Fail when attempting to write to a file that has a trailing
94331         slash.
94332         * tests/test-open.c (main): Test against trailing slash bug.
94333         * doc/posix-functions/open.texi: Mention the trailing slash bug.
94335 2008-06-10  Bruno Haible  <bruno@clisp.org>
94337         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
94338         for $? to work inside the trap command, with various /bin/sh-s.
94339         * tests/test-vc-list-files-cvs.sh: Likewise.
94341 2008-06-10  Bruno Haible  <bruno@clisp.org>
94343         * lib/acl-internal.h: Don't include gettext.h here.
94344         * lib/set-mode-acl.c: Include gettext.h here.
94345         * lib/copy-acl.c: Likewise.
94347 2008-06-10  Bruno Haible  <bruno@clisp.org>
94349         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
94350         * lib/wait-process.c (wait_subprocess): Likewise.
94351         * lib/execute.h (execute): Add termsigp argument.
94352         * lib/execute.c (execute): Likewise.
94353         * lib/csharpcomp.c (compile_csharp_using_pnet,
94354         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
94355         * lib/csharpexec.c (execute_csharp_using_pnet,
94356         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
94357         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
94358         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
94359         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
94360         is_jikes_present): Update.
94361         * lib/javaexec.c (execute_java_class): Update.
94362         * lib/javaversion.c (execute_and_read_line): Update.
94363         * NEWS: Document the changes.
94364         Reported by Eric Blake.
94366 2008-06-10  Eric Blake  <ebb9@byu.net>
94368         Add missing include.
94369         * tests/test-strstr.c (includes): Add <signal.h>.
94370         * tests/test-strcasestr.c (includes): Likewise.
94371         * tests/test-memmem.c (includes): Likewise.
94373 2008-06-10  Bruno Haible  <bruno@clisp.org>
94375         * lib/wait-process.c (wait_subprocess): Add an assertion.
94377 2008-06-10  Bruno Haible  <bruno@clisp.org>
94379         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
94381 2008-06-10  Bruno Haible  <bruno@clisp.org>
94383         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
94384         using alarm().
94385         * tests/test-strcasestr.c (main): Likewise.
94386         * tests/test-strstr.c (main): Likewise.
94388 2008-06-09  Bruno Haible  <bruno@clisp.org>
94390         Work around the Solaris 10 ACE ACLs ABI change.
94391         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
94392         declare if ACL_NO_TRIVIAL is present.
94393         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
94394         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
94395         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94396         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
94397         define if ACL_NO_TRIVIAL is present.
94398         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
94399         and use the current ABI.
94400         (file_has_acl): Use same #if condition as elsewhere.
94401         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
94402         in use, and use the current ABI.
94403         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
94404         Reported by Jim Meyering.
94406 2008-06-09  Eric Blake  <ebb9@byu.net>
94408         Work around environments that (stupidly) ignore SIGALRM.
94409         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
94410         before using alarm().
94411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94412         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94413         Reported by Ian Beckwith <ianb@erislabs.net>.
94415         Produce autobuild blurb earlier in log.
94416         * modules/autobuild (configure.ac-early): Move AB_INIT here.
94418 2008-06-09  Jim Meyering  <meyering@redhat.com>
94419         and Ondřej Vašík  <ovasik@redhat.com>
94421         utimens.c: correct kernel bug work-around
94422         Ondřej Vašík found that the invalid return value of 280 indicates
94423         failure, not success, and the kernel bug we're trying to work
94424         around affects not just the utimensat call, but also the fallback
94425         futimens call.
94426         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94427         not success.
94428         [HAVE_FUTIMENS]: Use the same work-around, here.
94430 2008-06-09  Jim Meyering  <meyering@redhat.com>
94432         add more guards around definition of ACE_-related code
94433         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94434         ALLOW and ACE_OWNER are also defined.
94436 2008-06-08  Bruno Haible  <bruno@clisp.org>
94438         * lib/acl-internal.h: Add me as co-author.
94439         * lib/file-has-acl.c: Likewise.
94440         * lib/set-mode-acl.c: Likewise.
94441         * lib/copy-acl.c: Likewise.
94443 2008-06-08  Bruno Haible  <bruno@clisp.org>
94445         Add support for AIX ACLs.
94446         * lib/acl-internal.h (acl_nontrivial): New declaration.
94447         * lib/file-has-acl.c (acl_nontrivial): New function.
94448         (file_has_acl): Add implementation using AIX 4 ACL API.
94449         * lib/set-mode-acl.c (qset_acl): Likewise.
94450         * lib/copy-acl.c (qcopy_acl): Likewise.
94452 2008-06-08  Bruno Haible  <bruno@clisp.org>
94454         Add support for HP-UX ACLs.
94455         * lib/acl-internal.h (acl_nontrivial): New declaration.
94456         * lib/file-has-acl.c (acl_nontrivial): New function.
94457         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94458         * lib/set-mode-acl.c (qset_acl): Likewise.
94459         * lib/copy-acl.c (qcopy_acl): Likewise.
94461 2008-06-08  Bruno Haible  <bruno@clisp.org>
94463         Add support for Cygwin ACLs.
94464         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94465         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94466         the chmod_or_fchmod call.
94467         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94469 2008-06-08  Bruno Haible  <bruno@clisp.org>
94471         Fix bug with setuid modes in Solaris 10+ code.
94472         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94473         succeeded, when the mode contains some special bits.
94475 2008-06-08  Bruno Haible  <bruno@clisp.org>
94477         Add support for Solaris 7..10 ACLs.
94478         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94479         declarations.
94480         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94481         functions.
94482         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94483         * lib/set-mode-acl.c (qset_acl): Likewise.
94484         * lib/copy-acl.c (qcopy_acl): Likewise.
94486 2008-06-08  Bruno Haible  <bruno@clisp.org>
94488         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94489         declaration.
94490         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94491         (acl_access_nontrivial): Remove MacOS X case.
94492         (file_has_acl): Use acl_extended_nontrivial.
94493         * lib/copy-acl.c (qcopy_acl): Likewise.
94495 2008-06-08  Bruno Haible  <bruno@clisp.org>
94497         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94499 2008-06-08  Jim Meyering  <meyering@redhat.com>
94501         * modules/acl (Maintainer): Add Bruno Haible.
94503 2008-06-07  Bruno Haible  <bruno@clisp.org>
94505         Improve support for Tru64 ACLs.
94506         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94507         ACL on OSF/1.
94509 2008-06-07  Bruno Haible  <bruno@clisp.org>
94511         Add support for MacOS X ACLs.
94512         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94513         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94514         * lib/set-mode-acl.c (qset_acl): Likewise.
94515         * lib/copy-acl.c (qcopy_acl): Likewise.
94517 2008-06-07  Bruno Haible  <bruno@clisp.org>
94519         Fix memory leak introduced on 2008-05-22.
94520         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94521         use.
94523 2008-06-07  Bruno Haible  <bruno@clisp.org>
94525         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94526         to construct an empty ACL.
94528 2008-06-07  Bruno Haible  <bruno@clisp.org>
94530         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94531         precisely.
94532         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94534 2008-06-07  Bruno Haible  <bruno@clisp.org>
94536         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94537         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94539 2008-06-07  Bruno Haible  <bruno@clisp.org>
94541         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94542         regardless of POSIX.
94543         * doc/posix-functions/_longjmp.texi: Likewise.
94544         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94545         SystemV platform in this case.
94547 2008-06-06  Eric Blake  <ebb9@byu.net>
94549         Document abort() bugs.
94550         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94552         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94553         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94554         sigsetjmp.
94555         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94556         siglongjmp, but only as a macro.
94557         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94558         is obsolete.
94559         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94561         Tweak documentation to cover cygwin argz bugs.
94562         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94563         argz bug fix; no code change needed since no cygwin releases
94564         occurred between the last fix and the bug being tested.
94565         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94566         module and recently fixed cygwin bugs.
94567         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94568         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94569         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94570         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94571         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94572         Likewise.
94573         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94574         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94575         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94576         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94577         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94578         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94579         Likewise.
94581         Avoid gcc warning on cygwin.
94582         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94583         !ACL_NO_TRIVIAL]: Avoid unused variable.
94585 2008-06-05  Eric Blake  <ebb9@byu.net>
94587         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94588         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94589         git-version-gen fails to come up with a version.
94590         Reported by Simon Josefsson.
94592 2008-06-05  Jim Meyering  <meyering@redhat.com>
94593             Paul Eggert  <eggert@cs.ucla.edu>
94595         utimens.c: work around a probable Linux kernel bug
94596         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94597         appears to be a kernel bug that causes utimensat to return 280
94598         instead of 0, indicating success.
94600 2008-06-04  Bruno Haible  <bruno@clisp.org>
94602         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94603         2008-06-01 commit.
94605 2008-06-04  Bruno Haible  <bruno@clisp.org>
94607         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94608         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94609         (file_has_acl): Use it. Save errno afterwards.
94610         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94612 2008-06-03  Bruno Haible  <bruno@clisp.org>
94614         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94615         draft code. Simplify #ifs.
94616         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94617         Put Solaris code after POSIX-draft code. Fix comments regarding
94618         Solaris 10, HP-UX. Mention Cygwin.
94619         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94621 2008-06-03  Eric Blake  <ebb9@byu.net>
94623         Provide fallback for older kernels.
94624         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94625         Provide runtime fallback if kernel lacks support.
94626         Reported by Mike Frysinger.
94628 2008-06-02  Bruno Haible  <bruno@clisp.org>
94630         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94631         it exists.
94633 2008-06-02  Bruno Haible  <bruno@clisp.org>
94635         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94636         * lib/copy-acl.c (qcopy_acl): Update comment.
94638 2008-06-02  Bruno Haible  <bruno@clisp.org>
94640         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94641         like ACL APIs.
94643 2008-06-02  Bruno Haible  <bruno@clisp.org>
94645         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94646         * tests/test-set-mode-acl.sh: Likewise.
94647         * tests/test-copy-acl.sh: Likewise.
94648         * tests/test-copy-file.sh: Likewise.
94650 2008-06-02  Bruno Haible  <bruno@clisp.org>
94652         * tests/test-file-has-acl.sh: Remove unused code.
94654 2008-06-01  Bruno Haible  <bruno@clisp.org>
94656         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94657         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94658         messages.
94659         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94661 2008-06-01  Bruno Haible  <bruno@clisp.org>
94663         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94664         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94665         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94666         APIs.
94667         * modules/acl-tests (configure.ac): Remove tests now contained in
94668         m4/acl.m4.
94670 2008-06-02  Jim Meyering  <meyering@redhat.com>
94672         announce-gen: use a better key-server host name
94673         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94674         it may be more consistently reliable.  Suggested by Werner Koch
94675         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94677 2008-06-01  Bruno Haible  <bruno@clisp.org>
94679         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94680         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94682 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94684         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94686 2008-06-01  Bruno Haible  <bruno@clisp.org>
94688         New ACL tests.
94689         * tests/test-file-has-acl.sh: New file.
94690         * tests/test-file-has-acl.c: New file.
94691         * tests/test-set-mode-acl.sh: New file.
94692         * tests/test-set-mode-acl.c: New file.
94693         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94694         * tests/test-copy-acl.c: New file.
94695         * modules/acl-tests: New file, based on modules/copy-file-tests.
94696         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94697         (Depends-on): Add acl-tests.
94698         (configure.ac): Remove checks.
94699         (Makefile.am): Don't create test-sameacls program here any more.
94701 2008-06-01  Bruno Haible  <bruno@clisp.org>
94703         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94704         * tests/test-sameacls.c: Include progname.h.
94705         (main): Invoke set_program_name. Portability fixes for MacOS X,
94706         Solaris, HP-UX.
94708 2008-06-01  Bruno Haible  <bruno@clisp.org>
94710         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94711         function.
94712         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94714 2008-06-01  Bruno Haible  <bruno@clisp.org>
94716         * modules/rpmatch (Depends-on): Add strdup.
94718 2008-06-01  Bruno Haible  <bruno@clisp.org>
94720         * lib/pipe.c: Include unistd-safer.h.
94721         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94722         * modules/pipe (Depends-on): Add unistd-safer.
94724 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94726         * modules/autobuild (configure.ac): Call AB_INIT.
94728 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94730         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94731         Suggested by Bruno Haible <bruno@clisp.org>.
94733 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94735         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94736         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94737         <bruno@clisp.org>.
94739 2008-05-29  Eric Blake  <ebb9@byu.net>
94741         Prefer new POSIX 200x interfaces over futimesat.
94742         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94743         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94744         when available.
94745         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94747 2008-05-28  Bruno Haible  <bruno@clisp.org>
94749         * modules/stpcpy (License): Change to LGPLv2+.
94750         Requested by David Lutterkort <dlutter@redhat.com>.
94752 2008-05-27  Bruno Haible  <bruno@clisp.org>
94754         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94755         current mingw.
94756         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94758 2008-05-27  Bruno Haible  <bruno@clisp.org>
94760         * modules/iconv_open (Link): New section, from module 'iconv'.
94761         * modules/striconv (Link): Likewise.
94762         * modules/striconveh (Link): Likewise.
94763         * modules/xstriconv (Link): Likewise.
94764         * modules/unicodeio (Link): Likewise.
94765         * modules/propername (Link): Likewise.
94766         Reported by Jim Meyering.
94768 2008-05-26  Jim Meyering  <meyering@redhat.com>
94770         sha256: do not artificially restrict buffer length to be < 2^32
94771         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94772         uint32_t to size_t.
94773         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94774         to match.
94776         avoid unaligned access errors, e.g., on sparc
94777         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94778         direct access through a possibly-unaligned uint64* pointer.
94779         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94780         direct access through a possibly-unaligned uint32* pointer.
94781         Prompted by this patch from Tom "spot" Callaway:
94782         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94784         sha512.c: fix typo in comment
94785         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94787 2008-05-25  Bruno Haible  <bruno@clisp.org>
94789         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94790         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94791         (Makefile.am): Update lib_SOURCES.
94793 2008-05-25  Bruno Haible  <bruno@clisp.org>
94795         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94797 2008-05-25  Jim Meyering  <meyering@redhat.com>
94799         useless-if-before-free: freed expr may have white-space differences
94800         * build-aux/useless-if-before-free: Recognize cases in which the
94801         freed expression differs from the tested one in embedded white
94802         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94803         $1 was used, so we can't make any regexp shy.  Improved tests now
94804         detect this.
94806         useless-if-before-free: accept white space in the expression.
94807         * build-aux/useless-if-before-free: For now, any white space
94808         in the expression must be identical in the free argument.
94810         useless-if-before-free: efficiency tweak
94811         * build-aux/useless-if-before-free: Make the expression-matching
94812         regexp "shy".
94813         Make the *outer* regexp shy, not the expr-matching one.
94815         update code-in-comment to accept cast of free arg
94816         * build-aux/useless-if-before-free: Update regexp.
94818 2008-05-25  Bruno Haible  <bruno@clisp.org>
94820         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94821         * modules/copy-file-tests (Files, Makefile.am): Update.
94822         * tests/test-copy-file.c (func_test_copy): Update.
94824 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94826         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94828 2008-05-23  Bruno Haible  <bruno@clisp.org>
94830         Improve support for ACLs on OSF/1.
94831         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94832         Remove fallback for unknown flavors of ACLs.
94834 2008-05-22  Bruno Haible  <bruno@clisp.org>
94836         Add support for ACLs on OSF/1.
94837         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94838         replacements.
94839         (acl_free_text): New macro fallback.
94840         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94841         acl_free.
94842         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94843         acl_free_text function. Require AC_C_INLINE.
94845 2008-05-22  Bruno Haible  <bruno@clisp.org>
94847         Make copy_acl work on MacOS X 10.5.
94848         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94849         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94850         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94851         If MODE_INSIDE_ACL, don't assume that every system has the same text
94852         representation for ACLs as FreeBSD.
94853         * lib/copy-acl.c (copy_acl): Add support for platforms with
94854         !MODE_INSIDE_ACL.
94855         * lib/file-has-acl.c (file_has_acl): Likewise.
94856         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94857         FreeBSD, MacOS X, or IRIX, respectively.
94859 2008-05-22  Bruno Haible  <bruno@clisp.org>
94861         * lib/acl.h: Don't include <sys/acl.h>.
94862         (GETACLCNT): Move fallback to lib/acl-internal.h.
94863         * lib/acl-internal.h: Include <sys/acl.h> here.
94864         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94866 2008-05-22  Bruno Haible  <bruno@clisp.org>
94868         Split off copy_acl function to separate file.
94869         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94870         * lib/acl.c (copy_acl): Moved function to separate file.
94871         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94872         * modules/acl (Files): Add lib/copy-acl.c.
94873         (Makefiles.am): Augment lib_SOURCES.
94875 2008-05-22  Bruno Haible  <bruno@clisp.org>
94877         * modules/copy-file-tests: New file.
94878         * tests/test-copy-file.sh: New file.
94879         * tests/test-copy-file.c: New file.
94880         * tests/test-copy-file-sameacls.c: New file.
94882 2008-05-22  Eric Blake  <ebb9@byu.net>
94884         Avoid gcc warning.
94885         * tests/test-memcmp.c (main): Pass NULL indirectly.
94887 2008-05-21  Bruno Haible  <bruno@clisp.org>
94889         Add reference doc about ACLs.
94890         * doc/acl-resources.txt: New file.
94891         * doc/acl-cygwin.txt: New file.
94893 2008-05-21  Bruno Haible  <bruno@clisp.org>
94895         Avoid one more warning from gcc.
94896         * lib/vasnprintf.c (IF_LINT): Update comments.
94897         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94899 2008-05-21  Jim Meyering  <meyering@redhat.com>
94901         avoid a warning from gcc
94902         * lib/vasnprintf.c (IF_LINT): Define.
94903         (scale10_round_decimal_long_double):
94904         Use it to avoid a "may be used uninitialized" warning.
94905         (scale10_round_decimal_double): Likewise.
94907 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94909         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94910         declared.
94912 2008-05-20  Bruno Haible  <bruno@clisp.org>
94914         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94915         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94917 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94919         * modules/memcmp-tests: New file.
94920         * tests/test-memcmp.c: New file.
94922 2008-05-19  Bruno Haible  <bruno@clisp.org>
94924         * modules/propername (Notice, configure.ac): Put quoted "..." into
94925         --keyword option.
94926         * lib/propername.h: Update comments accordingly.
94927         Reported by Eric Blake.
94929 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94931         * modules/getpass-gnu (Depends-on): Add fseeko.
94933 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94935         * modules/base64-tests: New file.
94937 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94939         * lib/base64.c (base64_decode_ctx): If a decode context structure
94940         was passed in use it to ignore newlines.  If a context structure
94941         was _not_ passed in, continue to treat newlines as garbage (this
94942         is the historical behavior).  Formerly base64_decode.
94943         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94944         takes a decode context structure.
94945         * lib/base64.h (base64_decode): Macro for four-argument calls.
94946         (base64_decode_alloc): Likewise.
94947         * lib/base64.c (base64_decode_ctx): If a decode context structure
94948         was passed in use it to ignore newlines.  If a context structure
94949         was _not_ passed in, continue to treat newlines as garbage (this
94950         is the historical behavior).  Formerly base64_decode.
94951         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94952         takes a decode context structure.
94953         * lib/base64.h (base64_decode): Macro for four-argument calls.
94954         (base64_decode_alloc): Likewise.
94956 2008-05-19  Jim Meyering  <meyering@redhat.com>
94958         avoid a warning from gcc
94959         * lib/trim.c (IF_LINT): Define.
94960         (trim2): Use it to avoid a "may be used uninitialized" warning.
94962         Fix doc typo.
94963         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94965 2008-05-19  Bruno Haible  <bruno@clisp.org>
94967         * doc/glibc-functions/getpass.texi: Document limits of other
94968         implementations.
94970 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94971             Bruno Haible <bruno@clisp.org>
94973         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94975 2008-05-18  Bruno Haible  <bruno@clisp.org>
94977         * modules/propername: New file, from GNU gettext.
94978         * lib/propername.h: New file, from GNU gettext.
94979         * lib/propername.c: New file, from GNU gettext.
94980         * MODULES.html.sh (Internationalization functions): Add propername.
94982 2008-05-16  Jim Meyering  <meyering@redhat.com>
94983             Bruno Haible  <bruno@clisp.org>
94985         Avoid some warnings from "gcc -Wshadow".
94986         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94988 2008-05-15  Eric Blake  <ebb9@byu.net>
94990         Extend previous patch to cygwin 1.7.0.
94991         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94992         fast implementation in cygwin >= 1.7.0.
94993         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94996 2008-05-15  Bruno Haible  <bruno@clisp.org>
94998         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94999         implementation in glibc >= 2.9.
95000         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95003 2008-05-15  Bruno Haible  <bruno@clisp.org>
95005         * MODULES.html.sh (Internationalization functions): Remove linebreak.
95006         (Unicode string functions): Add unilbrk/*.
95007         Reported by Karl Berry.
95009 2008-05-15  Eric Blake  <ebb9@byu.net>
95011         Fix violation of <stdbool.h> replacement in regex.
95012         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
95013         * lib/regexec.c (re_search_internal): Likewise.
95014         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
95016 2008-05-15  Jim Meyering  <meyering@redhat.com>
95018         avoid distracting test output when git or cvs is not found
95019         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
95020         * tests/test-vc-list-files-git.sh: Likewise.
95022 2008-05-15  Eric Blake  <ebb9@byu.net>
95024         Glibc finally accepted the memmem speedup code, bugzilla #5514.
95025         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
95026         glibc version.
95027         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
95028         * doc/posix-functions/strstr.texi (strstr): Likewise.
95029         * lib/str-two-way.h (MAX): Sychronize with glibc.
95031 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
95033         * lib/regcomp.c (optimize_utf8): Add a note on why we test
95034         opr.ctx_type.
95035         (calc_first): Initialize constraint field.
95036         (duplicate_node_closure): Use it instead of special casing ANCHORS.
95037         Fix grammar.
95038         (duplicate_node): Merge constraint field for all node types.
95039         (calc_eclosure_iter): Look at constraint field for all node types.
95040         * lib/regex_internal.c (create_cd_newstate): Don't look at
95041         opr.ctx_type.
95043 2008-05-14  Bruno Haible  <bruno@clisp.org>
95045         Help GCC to do better code generation.
95046         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
95047         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
95048         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
95049         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
95050         Declare with attribute 'malloc' if supported.
95052 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
95054         use "echo STR|wc -c" rather than unportable "expr length STR"
95055         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
95056         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
95058 2008-05-14  Jim Meyering  <meyering@redhat.com>
95060         use dd ibs=$n count=1 ... rather than less-portable head -c$n
95061         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
95062         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
95063         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
95064         via Collin Lasse.
95066 2008-05-14  Eric Blake  <ebb9@byu.net>
95068         Avoid quadratic growth in gl_LIBSOURCES.
95069         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
95070         Suggested by Bruno Haible.
95072         Test xmemdup0.
95073         * modules/xmemdup0-tests: New file.
95074         * tests/test-xmemdup0.c: Likewise.
95076 2008-05-13  Eric Blake  <ebb9@byu.net>
95078         Split xmemdup0 into its own module.
95079         * modules/xmemdup0: New file.
95080         * lib/xmemdup0.h: Likewise.
95081         * lib/xmemdup0.c: Likewise.
95082         * MODULES.html.sh (Memory management functions): Add xmemdup0.
95083         * lib/xalloc.h (xmemdup0): Remove.
95084         * lib/xmalloc.c (xmemdup0): Likewise.
95086 2008-05-13  Eric Blake  <ebb9@byu.net>
95087             Bruno Haible  <bruno@clisp.org>
95089         Reduce number of forks required during autoconf.
95090         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
95091         and gl_LIBSOURCES_DIR.
95092         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
95093         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
95094         m4_syscmd per file.
95095         <m4_foreach_w>: Move...
95096         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
95098 2008-05-13  Eric Blake  <ebb9@byu.net>
95100         * gnulib-tool: Fix various comment typos.
95102 2008-05-12  Bruno Haible  <bruno@clisp.org>
95104         Tailor the linebreaking algorithm.
95105         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
95107 2008-05-12  Bruno Haible  <bruno@clisp.org>
95109         Update to Unicode 5.0.0.
95110         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95111         LBP_JV, LBP_JT. Redistribute values.
95112         (unilbrk_table): Change size.
95113         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
95114         Unicode TR#14 rev. 22.
95115         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95116         LBP_JV, LBP_JT. Redistribute values.
95117         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
95118         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
95119         Update.
95120         * lib/unilbrk/lbrkprop1.h: Regenerated.
95121         * lib/unilbrk/lbrkprop2.h: Regenerated.
95122         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
95123         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
95124         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
95125         Likewise.
95126         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
95127         Likewise.
95128         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
95129         result.
95130         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
95131         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
95132         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
95133         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
95134         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
95135         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
95137 2008-05-11  Bruno Haible  <bruno@clisp.org>
95139         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
95141 2008-05-11  Bruno Haible  <bruno@clisp.org>
95143         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
95144         * modules/unilbrk/gen-lbrk: New file.
95146 2008-05-11  Bruno Haible  <bruno@clisp.org>
95148         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
95149         * m4/sha512.m4 (gl_SHA512): Likewise.
95151 2008-05-11  Jim Meyering  <meyering@redhat.com>
95153         New modules: crypto/sha256, crypto/sha512 (from coreutils)
95154         * modules/crypto/sha256: New file.
95155         * modules/crypto/sha512: Likewise.
95156         * lib/sha256.c: Likewise.
95157         * lib/sha256.h: Likewise.
95158         * lib/sha512.c: Likewise.
95159         * lib/sha512.h: Likewise.
95160         * lib/u64.h: Likewise.
95161         * m4/sha256.m4: Likewise.
95162         * m4/sha512.m4: Likewise.
95163         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
95165 2008-05-10  Bruno Haible  <bruno@clisp.org>
95167         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
95168         (Input/Output <stdio.h>): Add xprintf.
95169         (Signal handling <signal.h>): Add strsignal.
95170         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
95171         (Core language properties): Add func.
95172         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
95173         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
95174         strings.
95175         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
95176         (Input/output): New section.
95177         (File system functions): Add openat-die, stat-macros.
95178         (Networking functions): Add sockets.
95179         (Unicode string functions): Add unictype/*.
95180         (Support for building libraries and executables): Add gperf.
95181         (Support for building documentation): Add agpl-3.0.
95182         (Misc): Add nocrash.
95184 2008-05-10  Bruno Haible  <bruno@clisp.org>
95186         * modules/unictype/gen-ctype: New file.
95188 2008-05-10  Jim Meyering  <meyering@redhat.com>
95190         Make chdir-safer.c more efficient on a system with no symlinks.
95191         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
95192         also if ELOOP is zero.  Suggested by Bruno Haible.
95194         Make chdir-safer.c slightly safer.
95195         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
95196         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
95198         Avoid compile failure on systems without ELOOP (like mingw).
95199         * lib/chdir-safer.c (ELOOP): Define if not already defined.
95200         Reported by Bruno Haible.
95202 2008-05-10  Bruno Haible  <bruno@clisp.org>
95204         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
95205         (is_utf8_encoding): Use a case-insensitive comparison.
95206         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
95207         streq.
95209 2008-05-10  Bruno Haible  <bruno@clisp.org>
95211         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
95212         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
95213         * lib/unilbrk/ulc-common.h (iconv_string_length,
95214         iconv_string_keeping_offsets): Remove declarations.
95215         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
95216         Don't include <iconv.h>, streq.h, xsize.h.
95217         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
95218         conversion.
95219         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
95220         <iconv.h>, streq.h, xsize.h.
95221         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
95222         conversion.
95223         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
95224         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
95225         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
95226         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
95228 2008-05-10  Bruno Haible  <bruno@clisp.org>
95230         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
95231         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
95233         * modules/unilbrk/u32-width-linebreaks-tests: New file.
95234         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
95236         * modules/unilbrk/u16-width-linebreaks-tests: New file.
95237         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
95239         * modules/unilbrk/u8-width-linebreaks-tests: New file.
95240         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
95242         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
95243         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
95245         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
95246         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
95248         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
95249         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
95251         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
95252         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
95254 2008-05-10  Bruno Haible  <bruno@clisp.org>
95256         Split up 'linebreak' module.
95257         * lib/unilbrk.h: New file, based on lib/linebreak.h.
95258         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
95259         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
95260         modifications.
95261         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
95262         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
95263         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
95264         lib/linebreak.c.
95265         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
95266         lib/linebreak.c.
95267         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
95268         lib/linebreak.c.
95269         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
95270         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
95271         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
95272         lib/linebreak.c.
95273         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
95274         lib/linebreak.c.
95275         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
95276         lib/linebreak.c.
95277         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
95278         lib/linebreak.c.
95279         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
95280         lib/linebreak.c.
95281         * modules/unilbrk/base: New file.
95282         * modules/unilbrk/tables: New file.
95283         * modules/unilbrk/u8-possible-linebreaks: New file.
95284         * modules/unilbrk/u16-possible-linebreaks: New file.
95285         * modules/unilbrk/u32-possible-linebreaks: New file.
95286         * modules/unilbrk/ulc-common: New file.
95287         * modules/unilbrk/ulc-possible-linebreaks: New file.
95288         * modules/unilbrk/u8-width-linebreaks: New file.
95289         * modules/unilbrk/u16-width-linebreaks: New file.
95290         * modules/unilbrk/u32-width-linebreaks: New file.
95291         * modules/unilbrk/ulc-width-linebreaks: New file.
95292         * lib/linebreak.h: Remove file.
95293         * lib/linebreak.c: Remove file.
95294         * m4/linebreak.m4: Remove file.
95295         * modules/linebreak: Remove file.
95296         * NEWS: Mention the changes.
95298 2008-05-09  Eric Blake  <ebb9@byu.net>
95300         Add xmemdup0.
95301         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
95302         implementation.
95303         * lib/xmalloc.c (xmemdup0): New C implementation.
95305 2008-05-08  Bruno Haible  <bruno@clisp.org>
95307         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
95309 2008-05-07  Eric Blake  <ebb9@byu.net>
95311         Support cross-compilation of <wctype.h>.
95312         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
95313         AC_CACHE_CHECK.
95315 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
95317         * build-aux/vc-list-files: Add support for bzr.
95319 2008-05-03  Jim Meyering  <meyering@redhat.com>
95321         avoid failed assertion with tight malloc
95322         * tests/test-getndelim2.c: Correct an off-by-one assertion.
95324 2008-05-03  Simon Josefsson  <simon@josefsson.org>
95326         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
95327         are needed from arpa/inet.h.
95328         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
95329         Reported by Bruno Haible.
95331 2008-05-02  Jim Meyering  <meyering@redhat.com>
95333         avoid compilation error on FreeBSD 6
95334         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
95336 2008-05-01  Jim Meyering  <meyering@redhat.com>
95338         useless-if-before-free: correct --help's exit status description
95339         * build-aux/useless-if-before-free (usage): Like grep, exit 0
95340         for one or more matches, etc.  Reported by Bruno Haible.
95342         vc-list-files: make the stand-alone gnulib test work
95343         * modules/vc-list-files-tests (configure.ac):
95344         Define and AC_SUBST abs_aux_dir.
95345         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
95346         $(abs_top_srcdir) to each script and having each of them
95347         duplicate the work of setting PATH, set PATH here, using
95348         the new variable, abs_aux_dir instead.
95349         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
95350         * tests/test-vc-list-files-git.sh: Likewise.
95351         Reported by Bruno Haible.
95353 2008-05-01  Bruno Haible  <bruno@clisp.org>
95355         * lib/getndelim2.c (getndelim2): Fix newsize computation during
95356         reallocation. Rename 'done' to 'found_delimiter'.
95358 2008-05-01  Jim Meyering  <meyering@redhat.com>
95360         vc-list-files: accommodate /bin/sh like the one from Solaris 10
95361         * build-aux/vc-list-files: Use `...`, not $(...).
95363 2008-04-30  Jim Meyering  <meyering@redhat.com>
95365         add tests for vc-list-files
95366         * modules/vc-list-files-tests: New module.
95367         * tests/test-vc-list-files-cvs.sh: New file.
95368         * tests/test-vc-list-files-git.sh: New file.
95370         avoid a warning from gcc
95371         * lib/getndelim2.c (IF_LINT): Define.
95372         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
95374         vc-list-files: work properly with build-aux/cvsu, too
95375         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
95376         to all cvs-based clauses.
95378         vc-list-files: work properly in the CVS+awk case, too
95379         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
95381         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
95382         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
95383         take more than one file argument, so .  Add quotes, just in case $dir
95384         ever contains a shell meta-character.  Prompted by Soren Hansen in
95385         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
95387 2008-04-29  Eric Blake  <ebb9@byu.net>
95389         Optimize getndelim2 to use block operations when possible.
95390         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
95391         freadseek, and memchr2.
95392         * lib/getndelim2.c (getndelim2): Use them for block reads.
95394 2008-04-29  Bruno Haible  <bruno@clisp.org>
95396         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
95397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95398         * modules/inet_ntop (Depends-on): Add extensions.
95399         * modules/inet_pton (Depends-on): Likewise.
95400         Reported by Simon Josefsson.
95402 2008-04-29  Jim Meyering  <meyering@redhat.com>
95404         When the is more than one match in a block, match all of them.
95405         * build-aux/useless-if-before-free: Iterate through each block
95406         until there are no more matches.
95408         Fix broken useless-if-before-free script.
95409         * build-aux/useless-if-before-free: Fix typo: missing "?" after
95410         the expression to match cast of argument to free-like function.
95412 2008-04-29  Eric Blake  <ebb9@byu.net>
95414         Use new header.
95415         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
95417 2008-04-29  Jim Meyering  <meyering@redhat.com>
95419         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
95420         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95421         by gnulib to exist and to declare e.g., inet_ntop.
95422         Don't include "inet_ntop.h", now removed.
95424         * m4/arpa_inet_h.m4: Remove trailing blanks.
95426 2008-04-29  Eric Blake  <ebb9@byu.net>
95428         Silence valgrind on safe reads beyond potential array bounds.
95429         * lib/rawmemchr.valgrind: New file.
95430         * lib/strchrnul.valgrind: Likewise.
95431         * modules/rawmemchr (Files): Distribute new file.
95432         * modules/strchrnul (Files): Likewise.
95433         Suggested by Bruno Haible.
95435 2008-04-29  Bruno Haible  <bruno@clisp.org>
95437         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95438         (inet_ntop, inet_pton): Change portability warning's wording.
95439         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95440         Invoke gl_CHECK_NEXT_HEADERS.
95441         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95442         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95443         set ARPA_INET_H.
95444         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95445         * modules/arpa_inet (Description): No longer only for systems that
95446         lack it.
95447         (Depends-on): Add include_next.
95448         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95449         HAVE_ARPA_INET_H.
95451 2008-04-29  Jim Meyering  <meyering@redhat.com>
95453         * modules/mkdir (License): Re-license as LGPLv2+.
95455 2008-04-29  Bruno Haible  <bruno@clisp.org>
95457         * modules/rawmemchr (Maintainer): Set to Eric.
95458         * modules/strchrnul (Maintainer): Likewise.
95460 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95462         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95463         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95465         * modules/arpa_inet (arpa/inet.h): Use them.
95467 2008-04-28  Eric Blake  <ebb9@byu.net>
95469         Test getndelim2.
95470         * modules/getndelim2-tests: New file.
95471         * tests/test-getndelim2.c: Likewise.
95472         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95473         stream.
95474         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95476         * MODULES.html.sh: Document new module.
95478 2008-04-20  Bruno Haible  <bruno@clisp.org>
95480         * lib/c-stack.c (die): Use raise.
95481         * modules/c-stack (Depends-on): Add raise.
95483 2008-04-28  Bruno Haible  <bruno@clisp.org>
95485         Expect rpmatch to be declared.
95486         * lib/yesno.c (rpmatch): Remove declaration.
95488         Declare rpmatch.
95489         * lib/stdlib.in.h (rpmatch): New declaration.
95490         * lib/rpmatch.c: Include <stdlib.h> first.
95491         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95492         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95494         HAVE_RPMATCH.
95495         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95497         (Include): Set to <stdlib.h>.
95498         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95499         HAVE_RPMATCH.
95500         * NEWS: Document the change.
95502 2008-04-28  Bruno Haible  <bruno@clisp.org>
95504         Change rpmatch to use nl_langinfo when appropriate.
95505         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95506         (N_): New macro.
95507         (localized_pattern): New function/macro.
95508         (try): Remove match, nomatch arguments. Copy the pattern into safe
95509         memory before caching it.
95510         (rpmatch): Use localized_pattern. Add translator comments.
95511         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95512         Suggested by Eric Blake.
95513         * modules/rpmatch (Depends-on): Add stdbool.
95515 2008-04-28  Eric Blake  <ebb9@byu.net>
95517         Add rawmemchr module, matching glibc.
95518         * modules/string (Makefile.am): New indicator.
95519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95520         * lib/string.in.h (rawmemchr): Declare when appropriate.
95521         * modules/rawmemchr: New file.
95522         * m4/rawmemchr.m4: Likewise.
95523         * lib/rawmemchr.c: Likewise.
95524         * modules/rawmemchr-tests: Likewise.
95525         * tests/test-rawmemchr.c: Likewise.
95526         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95527         module.
95528         * modules/strchrnul (Depends-on): Add rawmemchr.
95529         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95531         Whitespace cleanup.
95532         * tests/test-strchrnul.c: Reindent.
95533         * lib/strchrnul.c: Likewise.
95535         Optimize and test strchrnul.
95536         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95537         * modules/strchrnul-tests: New file.
95538         * tests/test-strchrnul.c: Likewise.
95540         Remove intprops dependency.
95541         * modules/memchr (Depends-on): Remove intprops.
95542         * modules/memrchr (Depends-on): Likewise.
95543         * modules/memchr2 (Depends-on): Likewise.
95544         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95545         * lib/memrchr.c (__memrchr): Likewise.
95546         * lib/memrchr2.c (memchr2): Likewise.
95547         Reported by Simon Josefsson.
95549 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95551         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95552         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95554 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95556         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95558         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95560         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95562         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95563         declarations.
95564         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95566         * m4/inet_pton.m4: Don't check for header files.
95568         * m4/inet_ntop.m4: Don't check for header files.
95570 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95572         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95573         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95574         trigger for cygwin).
95575         Reported by Bruno Haible  <bruno@clisp.org>.
95577 2008-04-28  Bruno Haible  <bruno@clisp.org>
95579         * doc/posix-functions/strdup.texi: Mention mingw problem.
95581 2008-04-27  Bruno Haible  <bruno@clisp.org>
95583         * modules/stat-time-tests (Depends-on): Add sleep.
95584         * tests/test-stat-time.c (force_unlink): New function.
95585         (cleanup): Use it.
95586         (test_mtime): Remove the ctime related tests.
95587         (test_ctime): New function, containing the ctime related tests.
95588         (main): Call test_ctime, except on native Windows platforms.
95590 2008-04-27  Bruno Haible  <bruno@clisp.org>
95592         * lib/rpmatch.c (rpmatch): Add some comments.
95593         Reported by James Youngman <jay@gnu.org>.
95595 2008-04-27  Bruno Haible  <bruno@clisp.org>
95597         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95598         quiet NaNs.
95600 2008-04-27  Bruno Haible  <bruno@clisp.org>
95602         Make test-yesno.sh work on mingw.
95603         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95604         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95605         (main): Set stdin to binary mode.
95606         * modules/yesno-tests (Depends-on): Add binary-io.
95608 2008-04-27  Bruno Haible  <bruno@clisp.org>
95610         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95611         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95612         argument that lie outside the IEEE 854 domain.
95613         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95614         (gl_ISFINITE): Use it.
95615         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95617 2008-04-27  Bruno Haible  <bruno@clisp.org>
95619         Allow local renaming in config.h.
95620         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95622 2008-04-27  Bruno Haible  <bruno@clisp.org>
95624         * lib/memchr.c (__memchr): Change type of 'i'.
95625         * lib/memchr2.c (memchr2): Likewise.
95627 2008-04-26  Eric Blake  <ebb9@byu.net>
95628         and Bruno Haible  <bruno@clisp.org>
95630         Optimize and test memrchr.
95631         * modules/memrchr (Depends-on): Add intprops.
95632         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95633         * modules/memrchr-tests: New file.
95634         * tests/test-memrchr.c: New file.
95636 2008-04-26  Bruno Haible  <bruno@clisp.org>
95638         Add tentative support for DragonFly BSD.
95639         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95640         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95641         fp.
95642         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95643         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95644         * lib/fpurge.c (fpurge): Likewise.
95645         * lib/freadable.c (freaadable): Likewise.
95646         * lib/freadahead.c (freadahead): Likewise.
95647         * lib/freading.c (freading): Likewise.
95648         * lib/freadptr.c (freadptr): Likewise.
95649         * lib/freadseek.c (freadptrinc): Likewise.
95650         * lib/fseeko.c (fseeko): Likewise.
95651         * lib/fseterr.c (fseterr): Likewise.
95652         * lib/fwritable.c (fwritable): Likewise.
95653         * lib/fwriting.c (fwriting): Likewise.
95655 2008-04-26  Bruno Haible  <bruno@clisp.org>
95657         * lib/stdio-impl.h: New file.
95658         * lib/fbufmode.c: Include stdio-impl.h.
95659         (fbufmode): Use fp_, remove redundant #defines.
95660         * lib/fflush.c: Include stdio-impl.h.
95661         (clear_ungetc_buffer): Remove redundant #defines.
95662         * lib/fpurge.c: Include stdio-impl.h.
95663         (fpurge): Remove redundant #defines.
95664         * lib/freadable.c: Include stdio-impl.h.
95665         (freadable): Remove redundant #defines.
95666         * lib/freadahead.c: Include stdio-impl.h.
95667         (freadahead): Remove redundant #defines.
95668         * lib/freading.c: Include stdio-impl.h.
95669         (freading): Remove redundant #defines.
95670         * lib/freadptr.c: Include stdio-impl.h.
95671         (freadptr): Remove redundant #defines.
95672         * lib/freadseek.c: Include stdio-impl.h.
95673         (freadptrinc): Remove redundant #defines.
95674         * lib/fseeko.c: Include stdio-impl.h.
95675         (rpl_fseeko): Remove redundant #defines.
95676         * lib/fseterr.c: Include stdio-impl.h.
95677         (fseterr): Remove redundant #defines.
95678         * lib/fwritable.c: Include stdio-impl.h.
95679         (fwritable: Remove redundant #defines.
95680         * lib/fwriting.c: Include stdio-impl.h.
95681         (fwriting): Remove redundant #defines.
95682         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95683         * modules/fflush (Files): Likewise.
95684         * modules/fpurge (Files): Likewise.
95685         * modules/freadable (Files): Likewise.
95686         * modules/freadahead (Files): Likewise.
95687         * modules/freading (Files): Likewise.
95688         * modules/freadptr (Files): Likewise.
95689         * modules/freadseek (Files): Likewise.
95690         * modules/fseeko (Files): Likewise.
95691         * modules/fseterr (Files): Likewise.
95692         * modules/fwritable (Files): Likewise.
95693         * modules/fwriting (Files): Likewise.
95695 2008-04-26  Bruno Haible  <bruno@clisp.org>
95697         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95698         restore_seek_optimization, update_fpos_cache): New functions, extracted
95699         from rpl_fflush.
95700         (rpl_fflush): Use them.
95701         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95702         (gl_REPLACE_FFLUSH): Use it.
95704 2008-04-26  Bruno Haible  <bruno@clisp.org>
95706         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95707         on Solaris.
95708         * tests/test-xstrtoimax.sh: Likewise.
95709         * tests/test-xstrtoumax.sh: Likewise.
95710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95712 2008-04-26  Bruno Haible  <bruno@clisp.org>
95714         * modules/memchr-tests: New file.
95715         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95717 2008-04-26  Eric Blake  <ebb9@byu.net>
95718             Bruno Haible  <bruno@clisp.org>
95720         * lib/memchr.c: Include intprops.h.
95721         (__memchr): Optimize parallel detection of matching bytes. Rename local
95722         variables. Add explanatory comments.
95724 2008-04-26  Bruno Haible  <bruno@clisp.org>
95726         Fix module 'memchr', broken since 2000-10-28.
95727         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95729 2008-04-26  Bruno Haible  <bruno@clisp.org>
95731         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95732         comments.
95734 2008-04-25  Eric Blake  <ebb9@byu.net>
95736         Use native fstatat on cygwin 1.7.0.
95737         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95738         first.
95740 2008-04-23  Eric Blake  <ebb9@byu.net>
95742         Improve memchr2 performance.
95743         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95744         NUL bytes.
95745         * modules/memchr2 (Depends-on): Use intprops.h.
95747 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95749         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95750         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95751         <blp@cs.stanford.edu>.
95753 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95755         * lib/arpa_inet.in.h: New file.
95757         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95758         (Makefile.am): Sed in substitute header file.
95760         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95761         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95763         * modules/inet_ntop (configure.ac): Use
95764         gl_ARPA_INET_MODULE_INDICATOR.
95766         * modules/inet_pton (configure.ac): Use
95767         gl_ARPA_INET_MODULE_INDICATOR.
95769 2008-04-22  Jim Meyering  <meyering@redhat.com>
95771         * modules/verify (License): Re-license as LGPLv2+.
95773 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95775         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95776         parameter to void* as per POSIX standard (MinGW uses char*).
95778 2008-04-21  Bruno Haible  <bruno@clisp.org>
95780         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95781         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95782         Define to replacements if REPLACE_ISWCNTRL is 1.
95783         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95784         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95785         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95786         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95787         what it fixes.
95788         * doc/posix-functions/iswalpha.texi: Likewise.
95789         * doc/posix-functions/iswblank.texi: Likewise.
95790         * doc/posix-functions/iswcntrl.texi: Likewise.
95791         * doc/posix-functions/iswdigit.texi: Likewise.
95792         * doc/posix-functions/iswgraph.texi: Likewise.
95793         * doc/posix-functions/iswlower.texi: Likewise.
95794         * doc/posix-functions/iswprint.texi: Likewise.
95795         * doc/posix-functions/iswpunct.texi: Likewise.
95796         * doc/posix-functions/iswspace.texi: Likewise.
95797         * doc/posix-functions/iswupper.texi: Likewise.
95798         * doc/posix-functions/iswxdigit.texi: Likewise.
95799         Reported by Alain Guibert.
95801 2008-04-21  Bruno Haible  <bruno@clisp.org>
95803         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95804         Patch by Alain Guibert.
95806 2008-04-21  Bruno Haible  <bruno@clisp.org>
95808         Fix test failures on mingw.
95809         * tests/test-xstrtol.c (print_no_progname): New function.
95810         (main): Install it in error_print_progname hook.
95811         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95812         * tests/test-xstrtoimax.sh: Likewise.
95813         * tests/test-xstrtoumax.sh: Likewise.
95815 2008-04-21  Bruno Haible  <bruno@clisp.org>
95817         Fix test failure on mingw.
95818         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95820 2008-04-21  Bruno Haible  <bruno@clisp.org>
95822         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95823         Actually assign a value.
95825 2008-04-20  Bruno Haible  <bruno@clisp.org>
95827         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95828         take 2.
95829         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95830         'canonicalize-lgpl' module is also used.
95831         * lib/canonicalize-lgpl.c: Undo last change.
95832         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95834 2008-04-20  Bruno Haible  <bruno@clisp.org>
95836         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95837         config.h. Provide _mkdir based fallback for mingw.
95838         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95839         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95840         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95841         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95842         rather than defining mkdir in config.h.
95843         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95844         (gl_SYS_STAT_H_DEFAULTS): New macro.
95845         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95846         HAVE_IO_H any more.
95847         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95848         HAVE_DECL_MKDIR and HAVE_IO_H.
95850 2008-04-20  Bruno Haible  <bruno@clisp.org>
95852         * lib/isapipe.c: Port to native Windows platforms.
95854 2008-04-20  Bruno Haible  <bruno@clisp.org>
95856         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95858 2008-04-21  Eric Blake  <ebb9@byu.net>
95860         Work around preprocessors that don't handle UINTMAX_MAX.
95861         * lib/memchr2.c (memchr2): Avoid embedded #if.
95862         Reported by Alain Guibert, fix suggested by Bruno Haible.
95864 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95866         * doc/posix-functions/strftime.texi (strftime): Explain better
95867         Windows incompatibility.  Suggested by Micah Cowan
95868         <micah@cowan.name>.
95870 2008-04-20  Bruno Haible  <bruno@clisp.org>
95872         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95873         unistr/u8-mblen.
95875 2008-04-20  Bruno Haible  <bruno@clisp.org>
95877         Fix test failure on platforms with non-GNU iconv.
95878         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95879         (U_TO_U8): Use it, rather than u16_to_u8.
95880         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95881         units at the end of the input string.
95882         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95884 2008-04-20  Bruno Haible  <bruno@clisp.org>
95886         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95887         when the resulting length is 0.
95888         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95890 2008-04-20  Bruno Haible  <bruno@clisp.org>
95892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95893         works.
95894         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95896 2008-04-20  Bruno Haible  <bruno@clisp.org>
95898         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95899         * modules/tsearch-tests (configure.ac): Test for initstate function.
95901 2008-04-20  Bruno Haible  <bruno@clisp.org>
95903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95904         for nlink_t if missing.
95905         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95907 2008-04-19  Bruno Haible  <bruno@clisp.org>
95909         Work around snprintf bug on Linux libc5.
95910         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95912         gl_SNPRINTF_SIZE1.
95913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95914         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95915         that test failed.
95916         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95917         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95918         * modules/snprintf (Files): Add m4/printf.m4.
95919         * modules/vsnprintf (Files): Likewise.
95920         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95921         * doc/posix-functions/vsnprintf.texi: Likewise.
95923 2008-04-19  Bruno Haible  <bruno@clisp.org>
95925         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95926         from 0.0058 to less than 10^-7.
95928 2008-04-19  Bruno Haible  <bruno@clisp.org>
95930         Fix rounding when a precision is given.
95931         * lib/vasnprintf.c (is_borderline): New function.
95932         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95933         9...9x.
95934         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95935         %e, %g.
95936         * tests/test-vasprintf-posix.c (test_function): Likewise.
95937         * tests/test-snprintf-posix.h (test_function): Likewise.
95938         * tests/test-sprintf-posix.h (test_function): Likewise.
95939         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95940         * tests/test-printf-posix.h (test_function): Likewise.
95941         * tests/test-printf-posix.output: Update.
95942         Reported by John Darrington <john@darrington.wattle.id.au> via
95943         Ben Pfaff <blp@cs.stanford.edu>.
95945 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95947         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95948         Suggested by Bruno Haible <bruno@clisp.org>.
95950 2008-04-17  Bruno Haible  <bruno@clisp.org>
95952         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95953         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95954         implementation.
95955         Patch by Bruce Merry <bmerry@gmail.com>.
95957 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95959         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95960         doesn't work under Windows.
95962 2008-04-16  Bruno Haible  <bruno@clisp.org>
95964         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95965         New macros.
95966         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95967         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95968         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95969         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95970         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95971         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95972         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95973         macros.
95974         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95975         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95976         Northern Sotho, Uighur.
95978 2008-04-16  Bruno Haible  <bruno@clisp.org>
95980         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95981         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95982         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95983         Reported by Daniel Bergström <daniel@octocode.com>.
95985 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95986             Bruno Haible  <bruno@clisp.org>
95988         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95989         function.
95990         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95991         New functions, mostly extracted from gl_locale_name_default.
95992         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95994 2008-04-16  Eric Blake  <ebb9@byu.net>
95996         Adjust strtod detection to catch glibc 2.7 bug.
95997         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95998         Reported by John Gatewood Ham.
96000 2008-04-16  Bruno Haible  <bruno@clisp.org>
96002         Add tentative support for Linux libc5.
96003         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
96004         * lib/fpurge.c (fpurge): Likewise.
96005         * lib/freadable.c (freadable): Likewise.
96006         * lib/freadahead.c (freadahead): Likewise.
96007         * lib/freading.c (freading): Likewise.
96008         * lib/freadptr.c (freadptr): Likewise.
96009         * lib/freadseek.c (freadptrinc): Likewise.
96010         * lib/fseeko.c (rpl_fseeko): Likewise.
96011         * lib/fseterr.c (fseterr): Likewise.
96012         * lib/fwritable.c (fwritable): Likewise.
96013         * lib/fwriting.c (fwriting): Likewise.
96014         Reported by Alain Guibert <alguibert+bts@free.fr>.
96016 2008-04-15  Bruno Haible  <bruno@clisp.org>
96018         * modules/mathl (configure.ac): Define module indicator.
96020 2008-04-15  Bruno Haible  <bruno@clisp.org>
96022         * lib/logl.c (logl): Remove unused variables.
96024 2008-04-15  Bruno Haible  <bruno@clisp.org>
96026         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
96027         fails.
96029 2008-04-15  Bruno Haible  <bruno@clisp.org>
96031         * lib/trim.c (trim2): Fix argument of isspace() macro.
96033 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
96035         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
96036         to 0.
96037         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
96039 2008-04-14  Bruno Haible  <bruno@clisp.org>
96041         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
96042         AC_LANG_PROGRAM argument.
96043         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
96044         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
96045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
96046         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
96047         * m4/math_h.m4 (gl_MATH_H): Likewise.
96048         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
96049         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
96050         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
96051         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
96052         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96053         * m4/regex.m4 (gl_REGEX): Likewise.
96054         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
96055         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
96056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
96057         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
96058         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
96059         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
96060         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
96061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
96063 2008-04-14  Jim Meyering  <meyering@redhat.com>
96065         test-strtod: fix typos: s/abs/fabs/
96066         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
96068 2008-04-13  Bruno Haible  <bruno@clisp.org>
96070         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
96071         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
96072         module is also used and while not building the reloc-wrapper.
96074 2008-04-13  Bruno Haible  <bruno@clisp.org>
96076         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
96078 2008-04-13  Bruno Haible  <bruno@clisp.org>
96080         Fix AIX compilation failure introduced on 2008-04-02.
96081         * tests/test-frexp.c (exp): Undefine before redefining.
96082         * tests/test-frexpl.c (exp): Likewise.
96084 2008-04-13  Bruno Haible  <bruno@clisp.org>
96086         Work around a HP-UX stdio bug.
96087         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
96088         * tests/test-ftello.c (main): Likewise.
96089         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
96090         * doc/posix-functions/ftello.texi: Likewise.
96092 2008-04-13  Bruno Haible  <bruno@clisp.org>
96094         Make test-signbit pass on HP-UX/hppa.
96095         * tests/test-signbit.c (minus_zerol): New variable.
96096         (test_signbitl): Use it.
96098 2008-04-13  Bruno Haible  <bruno@clisp.org>
96100         Make truncl work on OSF/1 4.0.
96101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
96102         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96103         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
96105         HAVE_DECL_TRUNCL.
96106         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
96107         HAVE_DECL_TRUNCL.
96108         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
96110 2008-04-13  Bruno Haible  <bruno@clisp.org>
96112         * lib/unictype.h: Remove trailing comma from enumeration definitions.
96114 2008-04-13  Bruno Haible  <bruno@clisp.org>
96116         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
96117         expression, so as to avoid HP-UX 11 cc compiler bug.
96119 2008-04-13  Bruno Haible  <bruno@clisp.org>
96121         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
96123 2008-04-13  Bruno Haible  <bruno@clisp.org>
96125         * lib/git-merge-changelog.c: Remove empty declaration outside of
96126         functions.
96128 2008-04-13  Bruno Haible  <bruno@clisp.org>
96130         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
96132 2008-04-13  Bruno Haible  <bruno@clisp.org>
96134         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
96135         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
96136         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
96137         also if it exists but lacks definitions of the SHUT_* macros.
96138         * modules/sys_socket (Description): Update.
96139         Reported by Elbert Pol <e.pol@chello.nl>.
96141 2008-04-13  Bruno Haible  <bruno@clisp.org>
96143         * lib/localcharset.c (OS2): Don't redefine if already defined.
96144         Reported by Elbert Pol <e.pol@chello.nl>.
96146 2008-04-13  Bruno Haible  <bruno@clisp.org>
96148         * lib/binary-io.h [__EMX__]: Include <io.h>.
96149         Reported by Elbert Pol <e.pol@chello.nl>.
96151 2008-04-12  Bruno Haible  <bruno@clisp.org>
96153         * lib/fpucw.h: Enable the definitions also for x86_64.
96154         Needed for NetBSD/x86_64.
96155         Reported by Thomas Klausner <tk@giga.or.at>.
96157 2008-04-12  Bruno Haible  <bruno@clisp.org>
96159         * tests/test-strtod.c: Include isnand.h.
96160         (main): Use isnand instead of isnan.
96161         Reported by Jim Meyering.
96163 2008-04-12  Bruno Haible  <bruno@clisp.org>
96165         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
96166         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
96168 2008-04-12  Jim Meyering  <meyering@redhat.com>
96170         * m4/math_h.m4 (gl_MATH_H): Fix typos.
96172 2008-04-12  Bruno Haible  <bruno@clisp.org>
96174         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
96175         Reported by Elbert Pol <e.pol@chello.nl>.
96177 2008-04-12  Eric Blake  <ebb9@byu.net>
96179         Work around Solaris 10 math.h bug.
96180         * m4/math_h.m4 (gl_MATH_H): Check for bug.
96181         (gl_MATH_H_DEFAULTS): Set up default.
96182         * modules/math (Makefile.am): Replace new indicators.
96183         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
96184         * tests/test-math.c (main): Test this.
96185         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
96186         * doc/posix-headers/math.texi (math.h): Mention bug.
96187         Reported by Nelson H. F. Beebe and Jim Meyering.
96189 2008-04-11  Bruno Haible  <bruno@clisp.org>
96191         Adapt to future versions of Apple GCC.
96192         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
96193         Reported by Peter O'Gorman <peter@pogma.com>.
96195 2008-04-11  Bruno Haible  <bruno@clisp.org>
96197         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
96199 2008-04-11  Bruno Haible  <bruno@clisp.org>
96201         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
96203         * modules/getaddrinfo-tests (Makefile.am): Define
96204         test_getaddrinfo_LDADD.
96206 2008-04-11  Bruno Haible  <bruno@clisp.org>
96208         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
96209         (init): Fix syntax error.
96210         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
96211         is declared.
96213 2008-04-11  Bruno Haible  <bruno@clisp.org>
96215         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
96216         * modules/glob (Depends-on): Add stdbool.
96218 2008-04-11  Bruno Haible  <bruno@clisp.org>
96220         * lib/trim.c: Include <string.h>.
96222 2008-04-11  Eric Blake  <ebb9@byu.net>
96224         Avoid compile failure on OS/2.
96225         * lib/regex_internal.h (internal_function): Disable optimization
96226         on OS/2 (__EMX__), where it caused compiler error.
96227         Reported by Elbert Pol.
96229 2008-04-11  Bruno Haible  <bruno@clisp.org>
96231         Flush the standard error stream before aborting. Needed on mingw.
96232         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
96233         * tests/test-array_list.c (ASSERT): Likewise.
96234         * tests/test-array_oset.c (ASSERT): Likewise.
96235         * tests/test-avltree_list.c (ASSERT): Likewise.
96236         * tests/test-avltree_oset.c (ASSERT): Likewise.
96237         * tests/test-avltreehash_list.c (ASSERT): Likewise.
96238         * tests/test-binary-io.c (ASSERT): Likewise.
96239         * tests/test-byteswap.c (ASSERT): Likewise.
96240         * tests/test-c-ctype.c (ASSERT): Likewise.
96241         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
96242         * tests/test-c-strcasestr.c (ASSERT): Likewise.
96243         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
96244         * tests/test-c-strstr.c (ASSERT): Likewise.
96245         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
96246         * tests/test-canonicalize.c (ASSERT): Likewise.
96247         * tests/test-carray_list.c (ASSERT): Likewise.
96248         * tests/test-ceilf1.c (ASSERT): Likewise.
96249         * tests/test-ceilf2.c (ASSERT): Likewise.
96250         * tests/test-ceill.c (ASSERT): Likewise.
96251         * tests/test-count-one-bits.c (ASSERT): Likewise.
96252         * tests/test-fbufmode.c (ASSERT): Likewise.
96253         * tests/test-fflush2.c (ASSERT): Likewise.
96254         * tests/test-floorf1.c (ASSERT): Likewise.
96255         * tests/test-floorf2.c (ASSERT): Likewise.
96256         * tests/test-floorl.c (ASSERT): Likewise.
96257         * tests/test-fopen.c (ASSERT): Likewise.
96258         * tests/test-fpending.c (ASSERT): Likewise.
96259         * tests/test-fprintf-posix.c (ASSERT): Likewise.
96260         * tests/test-fpurge.c (ASSERT): Likewise.
96261         * tests/test-freadable.c (ASSERT): Likewise.
96262         * tests/test-freadahead.c (ASSERT): Likewise.
96263         * tests/test-freading.c (ASSERT): Likewise.
96264         * tests/test-freadptr.c (ASSERT): Likewise.
96265         * tests/test-freadptr2.c (ASSERT): Likewise.
96266         * tests/test-freadseek.c (ASSERT): Likewise.
96267         * tests/test-freopen.c (ASSERT): Likewise.
96268         * tests/test-frexp.c (ASSERT): Likewise.
96269         * tests/test-frexpl.c (ASSERT): Likewise.
96270         * tests/test-fseek.c (ASSERT): Likewise.
96271         * tests/test-fseeko.c (ASSERT): Likewise.
96272         * tests/test-fstrcmp.c (ASSERT): Likewise.
96273         * tests/test-ftell.c (ASSERT): Likewise.
96274         * tests/test-ftello.c (ASSERT): Likewise.
96275         * tests/test-func.c (ASSERT): Likewise.
96276         * tests/test-fwritable.c (ASSERT): Likewise.
96277         * tests/test-fwriting.c (ASSERT): Likewise.
96278         * tests/test-getdelim.c (ASSERT): Likewise.
96279         * tests/test-getline.c (ASSERT): Likewise.
96280         * tests/test-i-ring.c (ASSERT): Likewise.
96281         * tests/test-iconv-utf.c (ASSERT): Likewise.
96282         * tests/test-iconv.c (ASSERT): Likewise.
96283         * tests/test-isfinite.c (ASSERT): Likewise.
96284         * tests/test-isnand.c (ASSERT): Likewise.
96285         * tests/test-isnanf.c (ASSERT): Likewise.
96286         * tests/test-isnanl.h (ASSERT): Likewise.
96287         * tests/test-ldexpl.c (ASSERT): Likewise.
96288         * tests/test-linked_list.c (ASSERT): Likewise.
96289         * tests/test-linkedhash_list.c (ASSERT): Likewise.
96290         * tests/test-localename.c (ASSERT): Likewise.
96291         * tests/test-lseek.c (ASSERT): Likewise.
96292         * tests/test-mbscasecmp.c (ASSERT): Likewise.
96293         * tests/test-mbscasestr1.c (ASSERT): Likewise.
96294         * tests/test-mbscasestr2.c (ASSERT): Likewise.
96295         * tests/test-mbscasestr3.c (ASSERT): Likewise.
96296         * tests/test-mbscasestr4.c (ASSERT): Likewise.
96297         * tests/test-mbschr.c (ASSERT): Likewise.
96298         * tests/test-mbscspn.c (ASSERT): Likewise.
96299         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
96300         * tests/test-mbspbrk.c (ASSERT): Likewise.
96301         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
96302         * tests/test-mbsrchr.c (ASSERT): Likewise.
96303         * tests/test-mbsspn.c (ASSERT): Likewise.
96304         * tests/test-mbsstr1.c (ASSERT): Likewise.
96305         * tests/test-mbsstr2.c (ASSERT): Likewise.
96306         * tests/test-mbsstr3.c (ASSERT): Likewise.
96307         * tests/test-memchr2.c (ASSERT): Likewise.
96308         * tests/test-memmem.c (ASSERT): Likewise.
96309         * tests/test-open.c (ASSERT): Likewise.
96310         * tests/test-printf-frexp.c (ASSERT): Likewise.
96311         * tests/test-printf-frexpl.c (ASSERT): Likewise.
96312         * tests/test-printf-posix.c (ASSERT): Likewise.
96313         * tests/test-quotearg.c (ASSERT): Likewise.
96314         * tests/test-rbtree_list.c (ASSERT): Likewise.
96315         * tests/test-rbtree_oset.c (ASSERT): Likewise.
96316         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
96317         * tests/test-round1.c (ASSERT): Likewise.
96318         * tests/test-roundf1.c (ASSERT): Likewise.
96319         * tests/test-roundl.c (ASSERT): Likewise.
96320         * tests/test-signbit.c (ASSERT): Likewise.
96321         * tests/test-sleep.c (ASSERT): Likewise.
96322         * tests/test-snprintf-posix.c (ASSERT): Likewise.
96323         * tests/test-snprintf.c (ASSERT): Likewise.
96324         * tests/test-sprintf-posix.c (ASSERT): Likewise.
96325         * tests/test-stat-time.c (ASSERT): Likewise.
96326         * tests/test-strcasestr.c (ASSERT): Likewise.
96327         * tests/test-strerror.c (ASSERT): Likewise.
96328         * tests/test-striconv.c (ASSERT): Likewise.
96329         * tests/test-striconveh.c (ASSERT): Likewise.
96330         * tests/test-striconveha.c (ASSERT): Likewise.
96331         * tests/test-strsignal.c (ASSERT): Likewise.
96332         * tests/test-strstr.c (ASSERT): Likewise.
96333         * tests/test-strtod.c (ASSERT): Likewise.
96334         * tests/test-trunc1.c (ASSERT): Likewise.
96335         * tests/test-trunc2.c (ASSERT): Likewise.
96336         * tests/test-truncf1.c (ASSERT): Likewise.
96337         * tests/test-truncf2.c (ASSERT): Likewise.
96338         * tests/test-truncl.c (ASSERT): Likewise.
96339         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
96340         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
96341         * tests/test-vasnprintf.c (ASSERT): Likewise.
96342         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
96343         * tests/test-vasprintf.c (ASSERT): Likewise.
96344         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
96345         * tests/test-vprintf-posix.c (ASSERT): Likewise.
96346         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
96347         * tests/test-vsnprintf.c (ASSERT): Likewise.
96348         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
96349         * tests/test-wcwidth.c (ASSERT): Likewise.
96350         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
96351         * tests/test-xprintf-posix.c (ASSERT): Likewise.
96352         * tests/test-xvasprintf.c (ASSERT): Likewise.
96353         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
96354         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
96355         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
96356         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
96357         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
96358         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
96359         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
96360         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
96361         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
96362         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
96363         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
96364         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
96365         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
96366         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
96367         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
96368         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
96369         * tests/unictype/test-block_list.c (ASSERT): Likewise.
96370         * tests/unictype/test-block_of.c (ASSERT): Likewise.
96371         * tests/unictype/test-block_test.c (ASSERT): Likewise.
96372         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
96373         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
96374         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
96375         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
96376         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
96377         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
96378         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
96379         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
96380         * tests/unictype/test-combining.c (ASSERT): Likewise.
96381         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
96382         * tests/unictype/test-digit.c (ASSERT): Likewise.
96383         * tests/unictype/test-mirror.c (ASSERT): Likewise.
96384         * tests/unictype/test-numeric.c (ASSERT): Likewise.
96385         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
96386         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
96387         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
96388         * tests/unictype/test-scripts.c (ASSERT): Likewise.
96389         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
96390         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
96391         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
96392         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
96393         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
96394         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
96395         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
96396         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
96397         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
96398         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
96399         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
96400         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
96401         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
96402         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
96403         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
96404         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
96405         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
96406         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
96407         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
96408         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
96409         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
96410         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
96411         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
96412         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
96413         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
96414         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
96415         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
96416         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
96417         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
96418         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
96419         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
96420         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96421         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96422         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96423         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96424         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96425         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96426         Reported by Eric Blake.
96428 2008-04-11  Bruno Haible  <bruno@clisp.org>
96430         * lib/wchar.in.h: Tweak comment.
96432 2008-04-11  Bruno Haible  <bruno@clisp.org>
96434         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96435         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96436         gl_COMMON.
96437         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96439 2008-04-11  Bruno Haible  <bruno@clisp.org>
96441         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96443 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96445         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96446         of attempting to use non-existing /dev/*random.  Based on patch
96447         from Adam Strzelecki <ono@java.pl> in
96448         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96450 2008-04-08  Bruno Haible  <bruno@clisp.org>
96452         Add tentative support for emx+gcc.
96453         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96454         * lib/fpurge.c (fpurge): Likewise.
96455         * lib/freadable.c (freadable): Likewise.
96456         * lib/freadahead.c (freadahead): Likewise.
96457         * lib/freading.c (freading): Likewise.
96458         * lib/freadptr.c (freadptr): Likewise.
96459         * lib/freadseek.c (freadptrinc): Likewise.
96460         * lib/fseeko.c (rpl_fseeko): Likewise.
96461         * lib/fseterr.c (fseterr): Likewise.
96462         * lib/fwritable.c (fwritable): Likewise.
96463         * lib/fwriting.c (fwriting): Likewise.
96464         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96466 2008-04-09  Eric Blake  <ebb9@byu.net>
96468         Avoid some autoconf warnings.
96469         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96470         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96471         * m4/afs.m4 (gl_AFS): Likewise.
96472         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96473         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96475         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96476         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96477         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96478         (AC_CHECK_DECLS_ONCE): Likewise.
96479         Rename file...
96480         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96481         gnulib-tool requires autoconf 2.59 or better.
96482         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96484 2008-04-08  Eric Blake  <ebb9@byu.net>
96486         Use 'git describe --match' if present (added in git 1.5.5).
96487         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96488         if possible.
96490 2008-04-08  Bruno Haible  <bruno@clisp.org>
96492         Add tentative support for OpenServer.
96493         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96494         _ptr, _cnt.
96495         * lib/fpurge.c (fpurge): Likewise.
96496         * lib/freadable.c (freadable): Likewise.
96497         * lib/freadahead.c (freadahead): Likewise.
96498         * lib/freading.c (freading): Likewise.
96499         * lib/freadptr.c (freadptr): Likewise.
96500         * lib/freadseek.c (freadptrinc): Likewise.
96501         * lib/fseeko.c (rpl_fseeko): Likewise.
96502         * lib/fseterr.c (fseterr): Likewise.
96503         * lib/fwritable.c (fwritable): Likewise.
96504         * lib/fwriting.c (fwriting): Likewise.
96505         Reported by Roger Cornelius <rac@tenzing.org> and
96506         Brian K. White <brian@aljex.com>.
96508 2008-04-06  Jim Meyering  <meyering@redhat.com>
96510         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96512 2008-04-06  Bruno Haible  <bruno@clisp.org>
96514         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96515         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96516         * tests/test-printf-posix.sh: Likewise.
96517         * tests/test-vfprintf-posix.sh: Likewise.
96518         * tests/test-vprintf-posix.sh: Likewise.
96519         * tests/test-xprintf-posix.sh: Likewise.
96521 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96523         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96524         hide error from 'ls', needed on OS/2.
96525         Report by Elbert Pol <elbert.pol@gmail.com>.
96527 2008-04-04  Eric Blake  <ebb9@byu.net>
96529         Make test-fseeko.c failures meaningful.
96530         * tests/test-fseeko.c: Print line number on failure.
96531         * tests/test-fseek.c: Likewise.
96532         Reported by Nelson H. F. Beebe.
96534         Improve strtod bug detection check.
96535         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96536         required for Solaris 10.
96537         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96539 2008-04-04  Bruno Haible  <bruno@clisp.org>
96541         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96542         by m4/setenv.m4.
96544 2008-04-03  Eric Blake  <ebb9@byu.net>
96546         Ensure sane .version contents.
96547         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96548         version string.
96549         * build-aux/git-version-gen: Improve documentation.
96551         Make GNU make output nicer.
96552         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96553         MAKECMDGOALS to enforce message for all command line targets.  Set
96554         srcdir for use in maint.mk.
96556         Another maintainer tweak.
96557         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96558         a target that regenerates version.
96560 2008-04-03  Jim Meyering  <meyering@redhat.com>
96562         vc-list-files: don't cause coreutils "make po-check" failure
96563         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96565 2008-04-03  Eric Blake  <ebb9@byu.net>
96567         Allow VPATH usage of vc-list-files.
96568         * build-aux/vc-list-files (scriptversion): Add timestamp.
96569         (options): Add --help, --version, -C.
96570         (CVS): Support installed cvsu.
96572 2008-04-02  Bruno Haible  <bruno@clisp.org>
96574         Avoid some "statement with no effect" warnings from gcc.
96575         * tests/test-wctype.c (main): Explicitly ignore unused values.
96576         Reported by Jim Meyering.
96578 2008-04-02  Jim Meyering  <meyering@redhat.com>
96580         Avoid some warnings from "gcc -Wshadow".
96581         * tests/test-frexp.c (exp): Define to a different identifier.
96582         * tests/test-frexpl.c (exp): Likewise.
96584 2008-04-03  Jim Meyering  <meyering@redhat.com>
96586         bootstrap: remove dangling *.[ch] symlinks from lib
96587         * build-aux/bootstrap [dangling symlink removal]: Move find's
96588         -depth option to precede all others, to avoid a warning.
96589         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96591 2008-04-02  Bruno Haible  <bruno@clisp.org>
96593         Avoid some warnings from "gcc -Wshadow".
96594         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96595         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96596         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96597         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96598         Reported by Jim Meyering.
96600 2008-04-01  Bruno Haible  <bruno@clisp.org>
96602         Fix test to work on IRIX 6.5 with cc.
96603         * tests/test-math.c (numeric_equal): New function.
96604         (main): Use it.
96606 2008-04-01  Bruno Haible  <bruno@clisp.org>
96608         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96610 2008-04-01  Bruno Haible  <bruno@clisp.org>
96612         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96613         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96614         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96615         (Depends-on): Remove math.
96617         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96618         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96619         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96620         (Depends-on): Remove math.
96622         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96623         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96624         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96625         (Depends-on): Remove math.
96626         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96627         (Depends-on): Remove math.
96629         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96630         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96631         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96632         (Depends-on): Remove math.
96633         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96634         (Depends-on): Remove math.
96636         * tests/test-round1.c: Include nan.h.
96637         (main): Use NaNd instead of NAN.
96638         * modules/round-tests (Files): Add tests/nan.h.
96640         * tests/test-trunc1.c: Include nan.h.
96641         (main): Use NaNd instead of NAN.
96642         * modules/trunc-tests (Files): Add tests/nan.h.
96644         * tests/test-roundf1.c: Include nan.h.
96645         (main): Use NaNf instead of NAN.
96646         * modules/roundf-tests (Files): Add tests/nan.h.
96648         * tests/test-truncf1.c: Include nan.h.
96649         (main): Use NaNf instead of NAN.
96650         * modules/truncf-tests (Files): Add tests/nan.h.
96652         * tests/test-ceilf1.c: Include nan.h.
96653         (main): Use NaNf instead of NAN.
96654         * modules/ceilf-tests (Files): Add tests/nan.h.
96656         * tests/test-floorf1.c: Include nan.h.
96657         (main): Use NaNf instead of NAN.
96658         * modules/floorf-tests (Files): Add tests/nan.h.
96660         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96661         (main): Use NaNf instead of NAN.
96662         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96664         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96665         (main): Use NaNd instead of NAN.
96666         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96668         * tests/test-frexp.c: Include nan.h.
96669         (main): Use NaNd instead of NAN.
96670         * modules/frexp-tests (Files): Add tests/nan.h.
96672         * lib/isnan.c: Don't include <math.h>.
96673         (FUNC): Don't use NAN macro.
96674         * modules/isnand-nolibm (Depends-on): Remove math.
96675         * modules/isnanf-nolibm (Depends-on): Remove math.
96676         * modules/isnanl (Depends-on): Remove math.
96677         * modules/isnanl-nolibm (Depends-on): Remove math.
96679         * tests/nan.h: New file.
96681 2008-04-01  Eric Blake  <ebb9@byu.net>
96683         Fix typos.
96684         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96685         values to be the right type.
96687         For now, cater to gnulib strtod inaccuracies.
96688         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96689         fractional results.  While not as nice from a QoI perspective, it
96690         is a quicker patch than correctly implementing decimal to binary
96691         rounding.
96693 2008-03-31  Eric Blake  <ebb9@byu.net>
96695         Guarantee a definition of NAN.
96696         * lib/math.in.h (NAN): Define if missing.
96697         * tests/test-math.c (main): Test it.
96698         * doc/posix-headers/math.texi (math.h): Document this.
96699         * lib/isnan.c (rpl_isnand): Use it.
96700         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96701         * tests/test-floorf1.c (NaN): Likewise.
96702         * tests/test-frexp.c (NaN): Likewise.
96703         * tests/test-isnand.c (NaN): Likewise.
96704         * tests/test-isnanf.c (NaN): Likewise.
96705         * tests/test-round1.c (NaN): Likewise.
96706         * tests/test-roundf1.c (NaN): Likewise.
96707         * tests/test-snprintf-posix.h (NaN): Likewise.
96708         * tests/test-sprintf-posix.h (NaN): Likewise.
96709         * tests/test-trunc1.c (NaN): Likewise.
96710         * tests/test-truncf1.c (NaN): Likewise.
96711         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96712         * tests/test-vasprintf-posix.c (NaN): Likewise.
96713         * modules/isnand-nolibm (Depends-on): Add math.
96714         * modules/isnanf-nolibm (Depends-on): Likewise.
96715         * modules/isnanl (Depends-on): Likewise.
96716         * modules/isnanl-nolibm (Depends-on): Likewise.
96717         * modules/snprintf-posix-tests (Depends-on): Likewise.
96718         * modules/sprintf-posix-tests (Depends-on): Likewise.
96719         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96720         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96721         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96722         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96724 2008-03-31  Bruno Haible  <bruno@clisp.org>
96726         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96727         * doc/posix-functions/strtod.texi: Likewise.
96729 2008-03-31  Bruno Haible  <bruno@clisp.org>
96731         * tests/test-strtod.c (main): Don't use C99 syntax.
96733 2008-03-31  Bruno Haible  <bruno@clisp.org>
96735         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96736         Reported by Eric Blake.
96738 2008-03-31  Jim Meyering  <meyering@redhat.com>
96740         Don't compare actual signbit return values.
96741         * tests/test-strtod.c (main): Rather, compare only their
96742         zero/non-zero nature.
96744 2008-03-31  Eric Blake  <ebb9@byu.net>
96746         More strtod documentation.
96747         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96748         failures as distinct bugs.
96750 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96752         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96753         Problem reported by Erik Benada in
96754         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96756 2008-03-30  Bruno Haible  <bruno@clisp.org>
96758         * tests/test-strtod.c: Add comments about which assertion fails on which
96759         platform.
96760         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96762 2008-03-30  Eric Blake  <ebb9@byu.net>
96764         Test signbit behavior on zeros.
96765         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96766         (test_signbitd, test_signbitl): Likewise.
96768         More strtod touchups.
96769         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96770         sign of negative underflow, for now.  Use .5, not .1.
96771         * doc/posix-functions/strtod.texi (strtod): Mention these
96772         limitations.
96773         Reported by Jim Meyering.
96775 2008-03-30  Bruno Haible  <bruno@clisp.org>
96777         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96778         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96780 2008-03-30  Bruno Haible  <bruno@clisp.org>
96782         Avoid failure when attempting to return empty iconv results on some
96783         platforms.
96784         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96785         allocation, don't report ENOMEM when the resulting string is empty.
96787 2008-03-30  Bruno Haible  <bruno@clisp.org>
96789         Fix buffer overrun.
96790         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96791         Don't consider the width for tmp_length. Check count against tmp_length
96792         before doing the padding. Ensure enough allocation during padding.
96794 2008-03-30  Eric Blake  <ebb9@byu.net>
96796         strtod touchups.
96797         * lib/strtod.c (strtod): Avoid compiler warnings.
96798         Reported by Jim Meyering.
96800 2008-03-30  Bruno Haible  <bruno@clisp.org>
96802         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96803         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96804         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96805         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96806         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96807         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96808         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96809         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96811         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96812         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96813         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96814         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96815         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96816         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96817         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96818         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96820         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96821         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96822         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96823         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96824         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96825         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96826         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96827         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96829         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96830         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96832         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96833         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96835         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96836         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96838         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96840         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96842         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96844         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96846         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96848         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96850         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96852         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96854         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96855         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96857         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96858         (Depends-on): Add EOVERFLOW.
96859         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96860         (Depends-on): Add EOVERFLOW.
96861         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96862         (Depends-on): Add EOVERFLOW.
96863         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96864         (Depends-on): Add EOVERFLOW.
96865         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96866         (Depends-on): Add EOVERFLOW.
96867         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96868         (Depends-on): Add EOVERFLOW.
96869         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96870         (Depends-on): Add EOVERFLOW.
96871         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96872         (Depends-on): Add EOVERFLOW.
96874         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96876         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96878         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96880         * modules/snprintf (Depends-on): Add EOVERFLOW.
96882         * lib/poll.c (EOVERFLOW): Remove fallback.
96883         * modules/poll (Depends-on): Add EOVERFLOW.
96885         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96886         * modules/getugroups (Depends-on): Add EOVERFLOW.
96888         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96889         * modules/getdelim (Depends-on): Add EOVERFLOW.
96891         * lib/ftell.c (EOVERFLOW): Remove fallback.
96892         * modules/ftell (Depends-on): Add EOVERFLOW.
96894         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96896         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96898         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96900         * modules/EOVERFLOW-tests: New file.
96901         * tests/test-EOVERFLOW.c: New file.
96903         * modules/EOVERFLOW: New file.
96904         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96906 2008-03-30  Bruno Haible  <bruno@clisp.org>
96908         Fix bug introduced on 2007-06-10.
96909         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96910         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96912 2008-03-30  Bruno Haible  <bruno@clisp.org>
96914         Improve freadseek's efficiency after ungetc.
96915         * lib/freadseek.c: Include freadahead.h.
96916         (freadptrinc): New function, extracted from freadseek.
96917         (freadseek): Use it in a loop. Use freadahead to determine the number
96918         of loop iterations.
96919         * modules/freadseek (Depends-on): Add freadahead.
96920         (configure.ac): Require AC_C_INLINE.
96922 2008-03-30  Bruno Haible  <bruno@clisp.org>
96924         * lib/freadseek.c (freadseek): Don't ignore the return value of
96925         freadptr.
96927 2008-03-29  Eric Blake  <ebb9@byu.net>
96929         Add hex float support.
96930         * modules/strtod (Depends-on): Add c-ctype.
96931         (Link): Mention POW_LIB.
96932         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96933         whitespace between 'e' and exponent.
96934         * tests/test-strtod.c (main): Enable hex float tests.
96935         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96936         now provides.
96938         Document various strtod bugs, with some fixes.
96939         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96940         "-0x", "inf", "nan", and hex constants.
96941         * doc/posix-functions/atof.texi (atof): Likewise.
96942         * modules/stdlib (Makefile.am): Support strtod.
96943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96944         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96945         detect additional strtod bugs.
96946         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96947         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96948         bool where appropriate.  Parse 'inf' and 'nan'.
96949         * tests/test-strtod.c: New file.
96950         * modules/strtod (Depends-on): Add stdbool, stdlib.
96951         (configure.ac): Turn on module indicator.
96952         * modules/strtod-tests: New module.
96954 2008-03-29  Eric Blake  <ebb9@byu.net>
96956         Fix ftell on mingw.
96957         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96958         * modules/ftell-tests (Depends-on): Add binary-io.
96959         * modules/ftello-tests (Depends-on): Likewise.
96960         * tests/test-ftell.c (main): Enhance test to cover behavior after
96961         ungetc.  Enforce binary mode.
96962         * tests/test-ftello.c (main): Likewise.
96964         Pass test-freadseek on cygwin.
96965         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96966         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96967         ungetc buffer.
96969         * tests/test-fflush2.c (main): Fix typo.
96971 2008-03-29  Bruno Haible  <bruno@clisp.org>
96973         * tests/test-fflush2.c (main): Temporarily disable the contents of
96974         this test.
96975         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96976         Reported by Eric Blake.
96978 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96980         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96981         (GC_SHA224_DIGEST_SIZE): Add.
96983         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96984         (gc_hash_digest_length): Likewise.
96985         (gc_hash_buffer): Likewise.
96987 2008-03-25  Bruno Haible  <bruno@clisp.org>
96989         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96990         detail which gettext release to use.
96991         Reported by Simon Josefsson.
96993 2008-03-26  Jim Meyering  <meyering@redhat.com>
96995         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96996         * modules/gnumakefile (clean-GNUmakefile): Also, use
96997         test ... && ... || : syntax rather than if-then ... fi.
96999         gnumakefile: Don't double-quote-expand $(VPATH) value.
97000         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
97002 2008-03-24  Eric Blake  <ebb9@byu.net>
97004         Alter GNUmakefile to install into top directory.
97005         * modules/maintainer-makefile: Split, and add dependency...
97006         * modules/gnumakefile: to this new module.
97007         * build-aux/GNUmakefile: Move...
97008         * top/GNUmakefile: ...here.
97009         * build-aux/maint.mk: Move...
97010         * top/maint.mk: ...here.
97011         * MODULES.html.sh (Support for maintaining...): Document new
97012         module.
97014 2008-03-23  Bruno Haible  <bruno@clisp.org>
97016         * gnulib-tool: New options --vc-files, --no-vc-files.
97017         (func_usage): Document them.
97018         (vc_files): New variable.
97019         (func_import): Consider vc_files.
97020         (func_create_testdir): Set vc_files to empty.
97021         Suggested by Jim Meyering and Karl Berry.
97023 2008-03-23  Bruno Haible  <bruno@clisp.org>
97025         Fix regex compilation error on HP-UX 11.
97026         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
97027         * modules/regex (Files): Add m4/mbstate_t.m4.
97028         Reported by Ton Voon <ton.voon@altinity.com>.
97030 2008-03-23  Bruno Haible  <bruno@clisp.org>
97032         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
97034 2008-03-23  Eric Blake  <ebb9@byu.net>
97035             Bruno Haible  <bruno@clisp.org>
97037         Install files from top/ in the destination directory.
97038         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97039         augmentation also for the files from top/.
97040         (func_import, func_create_testdir): Rewrite file names:
97041         top/filename -> filename.
97043 2008-03-23  Bruno Haible  <bruno@clisp.org>
97045         Tweak "gnulib --version" output.
97046         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
97048 2008-03-23  Bruno Haible  <bruno@clisp.org>
97050         Tweak "gnulib --version" output.
97051         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
97052         rather than contents of ChangeLog, when possible.
97054 2008-03-21  Eric Blake  <ebb9@byu.net>
97056         More --version tweaks.
97057         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
97058         date of last ChangeLog entry.
97060 2008-03-21  Jim Meyering  <meyering@redhat.com>
97062         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
97064 2008-03-20  Eric Blake  <ebb9@byu.net>
97066         VPATH fix.
97067         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
97069 2008-03-20  Simon Josefsson  <simon@josefsson.org>
97071         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
97072         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
97074 2008-03-20  Eric Blake  <ebb9@byu.net>
97076         Sync GNUmakefile with coreutils.
97077         * build-aux/GNUmakefile (have-Makefile): Rename...
97078         (_have-Makefile): ...to this, for namespace consideration.
97079         (GNUmakefile.cfg): Include, if present.
97080         (_autoreconf): Define a default.
97081         (_is-dist-target): New rule for rebuilds to pick up intra-release
97082         version.
97083         (maint-cfg.mk): Rename...
97084         (cfg.mk): ...to this.
97086 2008-03-18  Jim Meyering  <meyering@redhat.com>
97088         New script and module: mktempd
97089         * MODULES.html.sh (maint+release support): Add mktempd.
97090         * build-aux/mktempd: New file.
97091         * modules/mktempd: New file.
97093 2008-03-15  Jim Meyering  <meyering@redhat.com>
97095         Undo last change.
97096         * lib/sha1.c, lib/md5.c: 63 != ~63.
97097         Reported by Andreas Schwab.
97099         sha1.c, md5.c: Hoist a redundant expression.
97100         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
97101         "ctx->buflen" only once, before calling *_process_block.
97102         * lib/md5.c (md5_process_bytes): Likewise.
97104 2008-03-14  Eric Blake  <ebb9@byu.net>
97106         Bump copyright year in files generated by gnulib-tool.
97107         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
97108         gnulib-tool, rather than hard-coding it.
97110         Fix 'gnulib-tool --version' output to work with git.
97111         * gnulib-tool (func_gnulib_dir): New function, extracted from...
97112         (startup): ...here.
97113         (func_version): Use it to invoke git-version-gen, rather than
97114         relying on CVS keyword expansion.  Modernize wording.
97115         (cvsdatestamp, last_checkin_date, version): Kill unused
97116         variables.
97118 2008-03-12  Jim Meyering  <meyering@redhat.com>
97120         Recognize optional cast of the argument to free.
97121         * build-aux/useless-if-before-free: Update regexps.
97123         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
97125 2008-03-11  Bruno Haible  <bruno@clisp.org>
97127         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
97128         by a single package.
97129         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
97130         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
97131         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
97132         Reported by Sam Steingold <sds@gnu.org>.
97134 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97136         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
97137         repositories.
97139 2008-03-11  Bruno Haible  <bruno@clisp.org>
97141         Avoid conflicts between local macro definitions.
97142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
97143         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
97145 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
97146             Bruno Haible  <bruno@clisp.org>
97148         Make va_copy work with some version of xlc on AIX 5.1.
97149         * lib/stdarg.in.h: New file.
97150         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
97151         On AIX, use a <stdarg.h> file substitute.
97152         * modules/stdarg (Files): Add lib/stdarg.in.h.
97153         (Depends-on): Add include_next.
97154         (Makefile.am): Build a stdarg.h substitute if requested.
97155         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
97157 2008-03-10  Bruno Haible  <bruno@clisp.org>
97159         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
97160         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
97161         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97163 2008-03-10  Bruno Haible  <bruno@clisp.org>
97165         * modules/stdlib (Depends-on): Add include_next, remove
97166         absolute-header.
97168 2008-03-09  Bruno Haible  <bruno@clisp.org>
97170         * lib/freadahead.h (freadahead): Document more precisely.
97171         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
97172         the sum of both buffer sizes.
97173         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
97174         * NEWS: Document the change.
97176 2008-03-09  Bruno Haible  <bruno@clisp.org>
97178         Extend freadptr to return also the buffer size.
97179         * lib/freadptr.h (freadptr): Add sizep argument.
97180         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
97181         (freadptr): Add sizep argument. Determine buffer size like freadahead
97182         does.
97183         * tests/test-freadptr.c: Don't include freadahead.h.
97184         (main): Adapt for new calling convention of freadptr.
97185         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
97186         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
97187         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
97188         tests/test-freadptr2.sh.
97189         (Depends): Remove freadahead.
97190         (TESTS): Add test-freadptr2.sh.
97191         (check_PROGRAMS): Add test-freadptr2.
97193 2008-03-09  Bruno Haible  <bruno@clisp.org>
97195         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
97196         Report and solution by Simon Josefsson.
97198 2008-03-06  Bruno Haible  <bruno@clisp.org>
97200         Make fflush after ungetc work on BSD platforms.
97201         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
97202         * tests/test-fflush2.c: New file.
97203         * tests/test-fflush2.sh: New file.
97204         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
97205         tests/test-fflush2.c.
97206         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
97207         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
97209 2008-03-06  Eric Blake  <ebb9@byu.net>
97211         Likewise for ftello.
97212         * modules/ftello (Dependencies): Add extensions.
97213         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
97215 2008-03-06  Bruno Haible  <bruno@clisp.org>
97217         * modules/fseeko (Dependencies): Add extensions.
97218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
97219         Needed on glibc systems.
97221 2008-03-06  Bruno Haible  <bruno@clisp.org>
97223         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
97224         email address.
97225         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97227 2008-03-06  Bruno Haible  <bruno@clisp.org>
97229         * users.txt: Add libgnupdf.
97231 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
97233         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
97234         (Header File Substitutes, Function Substitutes,
97235         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
97236         (Build robot for gnulib): Fix typo.
97238 2008-03-06  Bruno Haible  <bruno@clisp.org>
97240         * doc/gnulib-tool.texi (VCS Issues): Small updates.
97241         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97243 2008-03-06  Bruno Haible  <bruno@clisp.org>
97245         * doc/func.texi: New file, extracted from doc/gnulib.texi.
97246         * doc/gnulib.texi: Include it.
97248 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97250         * modules/func (License): Change license to unlimited; there was
97251         no LGPL parts in the module anyway.
97253 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97255         * modules/__func__: Renamed to modules/func.
97256         * modules/__func__-tests: Renamed to modules/func-tests.
97257         * tests/test-__func__.c: Renamed to tests/test-func.c.
97258         * m4/__func__.m4: Renamed to m4/func.m4.
97259         * doc/gnulib.texi (__func__): Section renamed to func.
97260         Suggested by Eric Blake <ebb9@byu.net>.
97262 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97264         * doc/gnulib.texi (__func__): Use C99 terminology when talking
97265         about __func__.  Make example self-contained.  Suggested by Eric
97266         Blake <ebb9@byu.net>.
97268         * tests/test-__func__.c (main): Avoid extraneous () around __func.
97269         Suggested by Eric Blake <ebb9@byu.net>.
97271 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97273         * modules/__func__: New file.
97274         * modules/__func__-tests: New file.
97275         * tests/test-__func__.c: New file.
97276         * m4/__func__.m4: New file.
97277         * doc/gnulib.texi (__func__): Document __func__ module.
97279 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97281         * modules/byteswap (License): Re-license as LGPLv2+.
97283 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97285         * doc/Makefile: Add pdf target.
97287 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97289         * modules/inline (License): Use 'unlimited', since there are only
97290         *.m4 files in this module.
97292 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97293             Bruno Haible  <bruno@clisp.org>
97295         Add support for HP C 7.1 on OpenVMS 8.3.
97296         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
97298 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97300         Update VMS specifics.
97301         * lib/getopt.c [VMS]: Remove include of unixlib.h.
97303 2008-03-02  Jim Meyering  <meyering@redhat.com>
97305         Remove the last dependency on the "free" module.
97306         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
97307         Reported by Bob Proulx.
97309         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
97311         Remove useless "if" tests before free.  Deprecate "free" module.
97312         * doc/posix-functions/free.texi: Mention that this
97313         module is no longer useful.
97314         * modules/free (Notice): Say this module is obsolete.
97315         * modules/readutmp (Depends-on): Remove free.
97316         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
97317         * lib/putenv.c (putenv): Likewise.
97318         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
97319         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
97320         * tests/test-c-strcasestr.c (main): Likewise.
97321         * tests/test-c-strstr.c (main): Likewise.
97322         * tests/test-mbscasestr1.c (main): Likewise.
97323         * tests/test-mbscasestr2.c (main): Likewise.
97324         * tests/test-mbsstr1.c (main): Likewise.
97325         * tests/test-mbsstr2.c (main): Likewise.
97326         * tests/test-memmem.c (main): Likewise.
97327         * tests/test-strcasestr.c (main): Likewise.
97328         * tests/test-striconv.c (main): Likewise.
97329         * tests/test-striconveh.c (main): Likewise.
97330         * tests/test-striconveha.c (main): Likewise.
97331         * tests/test-strstr.c (main): Likewise.
97333         * build-aux/git-version-gen: Adjust a comment and the Usage string.
97335         bootstrap: sync from coreutils again
97336         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
97338 2008-03-01  Jim Meyering  <meyering@redhat.com>
97340         bootstrap: sync from coreutils
97341         * build-aux/bootstrap (update_po_files): Copy a .po file into place
97342         also when the target doesn't exist.
97344 2008-03-01  Eric Blake  <ebb9@byu.net>
97346         Fix bugs in last patch.
97347         * lib/memchr2.c (memchr2): Fix typo.
97348         * tests/test-memchr2.c: Test previous bug, and don't use GNU
97349         extension.
97350         Reported by Bruce Korb.
97352         New module 'memchr2'.
97353         * modules/memchr2: New file.
97354         * modules/memchr2-tests: Likewise.
97355         * lib/memchr2.h: Likewise.
97356         * lib/memchr2.c: Likewise, based on memchr.c.
97357         * tests/test-memchr2.c: New test.
97358         * MODULES.html.sh (String handling): Add memchr2.
97360 2008-02-29  Bruno Haible  <bruno@clisp.org>
97362         * modules/freadseek-tests: New file.
97363         * tests/test-freadseek.sh: New file.
97364         * tests/test-freadseek.c: New file.
97366         New module 'freadseek'.
97367         * modules/freadseek: New file.
97368         * lib/freadseek.h: New file.
97369         * lib/freadseek.c: New file.
97370         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
97372 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
97374         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
97375         wydawca.
97377         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
97378         program_invocation_name and program_invocation_short_name are
97379         present.
97381 2008-02-28  Bruno Haible  <bruno@clisp.org>
97383         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
97384         * tests/test-freadptr.sh: Also test non-seekable stdin.
97386 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
97388         * build-aux/bootstrap (source_base, m4_base)
97389         (doc_base, tests_base): New variables.
97390         (gnulib_tool_options): Do not hardcode base directories, use
97391         the above variables instead.
97393 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
97395         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
97397 2008-02-28  Bruno Haible  <bruno@clisp.org>
97399         * modules/freadptr-tests: New file.
97400         * tests/test-freadptr.sh: New file.
97401         * tests/test-freadptr.c: New file.
97403         New module 'freadptr'.
97404         * modules/freadptr: New file.
97405         * lib/freadptr.h: New file.
97406         * lib/freadptr.c: New file.
97407         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
97409 2008-02-26  Karl Berry  <karl@freefriends.org>
97411         Sync from Libtool:
97412         * libltdl/argz.c (argz_add, argz_count): New functions.
97413         * libltdl/argz.in.h: Declare them.
97414         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
97416 2008-02-22  Bruno Haible  <bruno@clisp.org>
97418         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
97419         is a pointer type.  Needed for HP-UX 10.
97420         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97421         * doc/posix-functions/gmtime_r.texi: Likewise.
97422         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97424 2008-02-24  Bruno Haible  <bruno@clisp.org>
97426         * modules/environ-tests: New file.
97427         * tests/test-environ.c: New file.
97429         New module 'environ'.
97430         * modules/environ: New file.
97431         * lib/unistd.in.h (environ): New declaration.
97432         * m4/environ.m4: New file.
97433         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97434         after use.
97435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97436         HAVE_DECL_ENVIRON.
97437         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97438         HAVE_DECL_ENVIRON.
97439         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97440         wrong claim that 'environ' is missing on some systems.
97441         * modules/execute (Depends-on): Add environ.
97442         * lib/execute.c (environ): Remove fallback declaration.
97443         * modules/pipe (Depends-on): Add environ.
97444         * lib/pipe.c (environ): Remove fallback declaration.
97445         * modules/setenv (Depends-on): Add environ.
97446         * lib/setenv.c (environ): Remove fallback declaration.
97447         * modules/unsetenv (Depends-on): Add environ.
97448         * lib/unsetenv.c (environ): Remove fallback declaration.
97449         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97450         m4/environ.m4.
97451         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97452         (gl_PREREQ_UNSETENV): Likewise.
97454 2008-02-24  Bruno Haible  <bruno@clisp.org>
97456         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97458 2008-02-20  Bob Proulx  <bob@proulx.com>
97460         Enable use of older two part flavor 'git describe'.
97461         * build-aux/git-version-gen: If using the older two part flavor of
97462         git version then recreate the third part now present in the
97463         newer three part flavor of git describe.
97465 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97467         * lib/fts.c (fts_build): Typo correction to comment.
97469 2008-02-17  Bruno Haible  <bruno@clisp.org>
97471         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97472         generating no-op conflicts.
97474 2008-02-17  Bruno Haible  <bruno@clisp.org>
97476         Speed up by 10%.
97477         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97478         result_entries, rather than an index-based loop.
97480 2008-02-17  Bruno Haible  <bruno@clisp.org>
97482         Speed up by 25%.
97483         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97484         'hashcode_cached'.
97485         (entry_create): New function.
97486         (entry_hashcode): Use the cached hashcode if possible.
97487         (read_changelog_file, try_split_merged_entry): Use entry_create.
97489 2008-02-17  Bruno Haible  <bruno@clisp.org>
97491         Speed up from O(n^2) to O(n) for long ChangeLog files.
97492         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97493         (read_changelog_file): Change implementation of entries_reversed list
97494         to rbtreehash.
97495         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97497 2008-02-17  Bruno Haible  <bruno@clisp.org>
97499         New option --split-merged-entry.
97500         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97501         (find_paragraph_end, try_split_merged_entry): New functions.
97502         (long_options): Add option --split-merged-entry.
97503         (usage): Document option --split-merged-entry.
97504         (main): Implement option --split-merged-entry.
97505         Reported by Eric Blake.
97507 2008-02-17  Bruno Haible  <bruno@clisp.org>
97509         * lib/git-merge-changelog.c: Include c-strstr.h.
97510         (main): Support the "git pull --rebase" situation.
97511         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97512         Reported by Eric Blake.
97514 2008-02-16  Eric Blake  <ebb9@byu.net>
97516         Avoid doubling \ in common case of "c-maybe" quoting style.
97517         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97518         eliding outer quotes.
97519         * lib/quotearg.h: Document this.
97520         * tests/test-quotearg.c (result_strings, inputs, results_g)
97521         (flag_results, locale_results): Test it by adding a new string to
97522         each test group.
97523         (compare_strings): Test new string.
97525 2008-02-13  Eric Blake  <ebb9@byu.net>
97527         Avoid trigraph quoting in default output.
97528         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97529         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97530         unless explicitly requested.
97531         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97533 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97535         Don't rely on signed integer overflowing to negative value.
97536         * lib/getugroups.c (getugroups): Include <limits.h>.
97537         Instead, compare against INT_MAX, and increment only if the test passes.
97539 2008-02-13  Jim Meyering  <meyering@redhat.com>
97540         and Eric Blake  <ebb9@byu.net>
97542         Avoid shadowing warning and compile errors on Linux.
97543         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97544         forwarding macros on Linux.
97545         (dcgettext): Define a stub, for Linux.
97546         (results_g, main): Avoid warnings.
97548 2008-02-12  Eric Blake  <ebb9@byu.net>
97550         Silence warning in last patch.
97551         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97553         Quotearg part 4: add tests, fix c-maybe colon quoting.
97554         * lib/quotearg.h: Improve documentation.
97555         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97556         escapes when adding outer quotes.  When quoting trigraphs, use
97557         valid C notation.  When quoting NUL, omit extra characters if next
97558         character is not digit.  Alter prototype.
97559         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97560         callers.
97561         * modules/quotearg-tests: New module.
97562         * tests/test-quotearg.c: New test.
97564 2008-02-07  Eric Blake  <ebb9@byu.net>
97566         Quotearg part 3: add flag to control outer quote elision.
97567         * lib/quotearg.h (c_maybe_quoting_style): New style.
97568         (enum quoting_flags): Better documentation of flags.
97569         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97570         c-maybe style.
97571         (quotearg_buffer_restyled): Handle new flag to elide outer
97572         quotes.
97574         Quotearg part 2: add flag that can control NUL elision.
97575         * lib/quotearg.h (set_quoting_flags): New prototype.
97576         * lib/quotearg.c (struct quoting_options): Add flag field.
97577         (set_quoting_flags): New function.
97578         (quotearg_buffer_restyled): Add flags parameter.
97579         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97580         (quotearg_n_options): Set the flag, since length cannot be
97581         returned.
97582         (quoting_options_from_style): Default flags correctly.
97584         Quotearg part 1: more wrappers, restore quotearg_char state.
97585         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97586         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97587         (quotearg_colon_mem): New wrappers.
97588         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97589         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97590         functions.
97591         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97592         (quotearg_colon_mem): New functions.
97594 2008-02-11  Bruno Haible  <bruno@clisp.org>
97596         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97597         library in the current directory: it does not work with parallel make.
97598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97600 2008-02-11  Bruno Haible  <bruno@clisp.org>
97602         * .gitattributes: New file.
97604 2008-02-11  Jim Meyering  <meyering@redhat.com>
97606         useless-if-before-free: Fix reversed exit values.
97607         * build-aux/useless-if-before-free: Use correct values
97608         for EXIT_MATCH and EXIT_NO_MATCH.
97610         * build-aux/useless-if-before-free: Close stdout carefully.
97612 2008-02-10  Bruno Haible  <bruno@clisp.org>
97614         New module 'git-merge-changelog'.
97615         * modules/git-merge-changelog: New file.
97616         * lib/git-merge-changelog.c: New file.
97618 2008-02-10  Jim Meyering  <meyering@redhat.com>
97620         useless-if-before-free: New option: --list (-l).
97622         useless-if-before-free: Don't exit immediately upon open failure.
97623         * build-aux/useless-if-before-free: Exit 2 for errors.
97624         Upon failure to open a file, don't exit immediately.
97625         Rather, just warn and continue with any remaining files.
97627 2008-02-10  Bruno Haible  <bruno@clisp.org>
97629         New abstract list operation 'node_set_value'.
97630         * lib/gl_list.h (gl_list_node_set_value): New function.
97631         (struct gl_list_implementation): New field node_set_value.
97632         * lib/gl_list.c (gl_list_node_set_value): New function.
97633         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97634         (gl_array_list_implementation): Update.
97635         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97636         (gl_carray_list_implementation): Update.
97637         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97638         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97639         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97640         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97641         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97643         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97644         Update.
97645         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97646         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97647         (gl_sublist_list_implementation): Update.
97649 2008-02-10  Bruno Haible  <bruno@clisp.org>
97651         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97652         Needed when ELEMENT is #defined to 'some_type *'.
97654 2008-02-10  Jim Meyering  <meyering@redhat.com>
97656         New script and module: useless-if-before-free
97657         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97658         * build-aux/useless-if-before-free: New file.
97659         * modules/useless-if-before-free: New file.
97661         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97663         xstrtol_error: Fix typo.
97664         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97665         s/exit_failure/exit_status/.
97667 2008-02-09  Jim Meyering  <meyering@redhat.com>
97669         New script and module: gitlog-to-changelog
97670         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97671         * modules/gitlog-to-changelog: New file.
97672         * build-aux/gitlog-to-changelog: New file.
97674 2008-02-08  Jim Meyering  <meyering@redhat.com>
97676         Avoid two "parameter unused" warnings.
97677         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97678         Mark "st" as used.
97680         Use "git COMMAND", not "git-COMMAND".
97681         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97682         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97683         * build-aux/git-version-gen: Use "git status", not "git-status".
97685 2008-02-07  Bruno Haible  <bruno@clisp.org>
97687         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97688         Avoids a crash on Windows Vista.
97689         Reported by Adam Strzelecki <ono@java.pl> via
97690         Simon Josefsson <simon@josefsson.org>.
97692 2008-02-06  Bruno Haible  <bruno@clisp.org>
97694         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97695         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97696         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97698         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97699         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97700         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97701         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97706         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97709         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97710         left-adjust flag.
97711         * tests/test-snprintf-posix.h (test_function): Likewise.
97712         * tests/test-sprintf-posix.h (test_function): Likewise.
97713         * tests/test-vasprintf-posix.c (test_function): Likewise.
97714         * doc/posix-functions/fprintf.texi: Update.
97715         * doc/posix-functions/printf.texi: Update.
97716         * doc/posix-functions/snprintf.texi: Update.
97717         * doc/posix-functions/sprintf.texi: Update.
97718         * doc/posix-functions/vfprintf.texi: Update.
97719         * doc/posix-functions/vprintf.texi: Update.
97720         * doc/posix-functions/vsnprintf.texi: Update.
97721         * doc/posix-functions/vsprintf.texi: Update.
97722         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97724 2008-02-06  Bruno Haible  <bruno@clisp.org>
97726         Fix bug introduced on 2008-01-26.
97727         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97729 2008-02-06  Bruno Haible  <bruno@clisp.org>
97731         Fix bug introduced on 2007-06-10.
97732         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97733         !NEED_PRINTF_FLAG_ZERO.
97735 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97737         getloadavg: use libperfstat on AIX5
97738         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97740 2008-02-03  Bruno Haible  <bruno@clisp.org>
97742         * lib/diffseq.h: Add comments about required #includes.
97743         Reported by Michael Biggs <gnulib@doubleplum.net>.
97745 2008-02-01  Bruno Haible  <bruno@clisp.org>
97747         * users.txt: Add gnuit.
97749 2008-01-31  Bruno Haible  <bruno@clisp.org>
97751         * lib/md4.c (set_uint32): Mark as inline.
97752         * lib/md5.c (set_uint32): Likewise.
97753         * lib/sha1.c (set_uint32): Likewise.
97754         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97755         * m4/md5.m4 (gl_MD5): Likewise.
97756         * m4/sha1.m4 (gl_SHA1): Likewise.
97758 2008-01-31  Jim Meyering  <meyering@redhat.com>
97760         Use "sizeof VAR", rather than a literal "4".
97761         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97762         * lib/md4.c (md4_read_ctx): Likewise.
97763         * lib/sha1.c (sha1_read_ctx): Likewise.
97765 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97767         * tests/test-sha1.c: New file, based on test-md5.c.
97769         * modules/crypto/sha1-tests: New file.
97771 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97773         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97775 2008-01-31  Jim Meyering  <meyering@redhat.com>
97777         Prefer "sizeof v" over the equivalent "4".
97778         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97779         * lib/md5.c (set_uint32): Likewise.
97780         * lib/sha1.c (set_uint32): Likewise.
97782 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97784         * lib/sha1.c (set_uint32): Mark function as static.
97786 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97788         md2: clarify comments to say that alignment is not required.
97789         * lib/md2.h: Remove warning about alignment in comment.
97790         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97791         never been required.
97793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97795         md4: adapt alignment constraint fix from sha1.
97796         * lib/md4.c (set_uint32): New function, from sha1.c
97797         (md4_read_ctx): Use it.
97798         (md4_finish_ctx): Doc fix.
97799         * lib/md4.h: Doc fix.
97801 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97803         md5: adapt alignment constraint fix from sha1.
97804         * lib/md5.c (set_uint32): New function, from sha1.c
97805         (md5_read_ctx): Use it.
97806         (md5_finish_ctx): Doc fix.
97807         * lib/md5.h: Doc fix.
97809 2008-01-30  Peter Palfrader  <weasel@debian.org>
97811         sha1: remove the result buffer alignment constraint
97812         * lib/sha1.c (set_uint32): New function.
97813         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97814         constraint.
97815         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97816         * lib/sha1.h: Likewise.
97818 2008-01-30  Andreas Schwab  <schwab@suse.de>
97819             Bruno Haible  <bruno@clisp.org>
97821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97822         correct definition of LDBL_MIN_EXP.
97824 2008-01-30  Karl Berry  <karl@gnu.org>
97826         * config/srclist-update: try to preserve x bit on updates.
97827         * config/srclistvars.sh: update for karl.
97829 2008-01-29  Jim Meyering  <meyering@redhat.com>
97831         vasnprintf.c: Avoid warning about unused label
97832         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97833         "overflow" label definition and associated code with the
97834         same cpp condition that guards the sole use of that label.
97836 2008-01-26  Bruno Haible  <bruno@clisp.org>
97838         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97839         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97840         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97841         * lib/isnanl-nolibm.h (isnanl): Likewise.
97842         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97844 2008-01-26  Bruno Haible  <bruno@clisp.org>
97846         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97847         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97849 2008-01-26  Bruno Haible  <bruno@clisp.org>
97851         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97852         GCC >= 4.0 built-in.
97853         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97855 2008-01-26  Bruno Haible  <bruno@clisp.org>
97857         Rename isnan, applicable to 'double' only, to isnand.
97858         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97859         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97860         (configure.ac): Update.
97861         (Include): Replace "isnan.h" with "isnand.h".
97862         * m4/isnand.m4: Renamed from m4/isnan.m4.
97863         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97864         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97865         instead of isnan.c.
97866         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97867         instead of HAVE_ISNAN_IN_LIBC.
97868         (isnand): Renamed from isnan.
97869         * lib/isnand.c: New file.
97870         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97871         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97872         (Makefile.am): Update.
97873         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97874         Include isnand.h instead of isnan.h.
97875         (main): Test isnand instead of isnan.
97876         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97877         isnan-nolibm.
97878         * modules/frexp (Depends-on): Likewise.
97879         * modules/frexp-tests (Depends-on): Likewise.
97880         * modules/frexp-nolibm (Depends-on): Likewise.
97881         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97882         * modules/isfinite (Depends-on): Likewise.
97883         * modules/round-tests (Depends-on): Likewise.
97884         * modules/signbit (Depends-on): Likewise.
97885         * modules/signbit-tests (Depends-on): Likewise.
97886         * modules/snprintf-posix (Depends-on): Likewise.
97887         * modules/sprintf-posix (Depends-on): Likewise.
97888         * modules/trunc-tests (Depends-on): Likewise.
97889         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97890         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97891         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97892         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97893         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97894         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97895         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97896         * modules/vasnprintf-posix (Depends-on): Likewise.
97897         * modules/vasprintf-posix (Depends-on): Likewise.
97898         * modules/vfprintf-posix (Depends-on): Likewise.
97899         * modules/vsnprintf-posix (Depends-on): Likewise.
97900         * modules/vsprintf-posix (Depends-on): Likewise.
97901         * lib/frexp.c: Include isnand.h instead of isnan.h.
97902         (ISNAN): Set to isnand instead of isnan.
97903         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97904         (gl_isfinited): Use isnand instead of isnan.
97905         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97906         (gl_signbitd): Use isnand instead of isnan.
97907         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97908         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97909         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97910         (main): Use isnand instead of isnan.
97911         * tests/test-round1.c: Include isnand.h.
97912         (main): Use isnand instead of isnan.
97913         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97914         (ISNAN): Set to isnand instead of isnan.
97915         * tests/test-trunc1.c: Include isnand.h.
97916         (main): Use isnand instead of isnan.
97917         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97918         (equal): Use isnand instead of isnan.
97919         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97920         isnand-nolibm.
97921         * NEWS: Mention the change.
97923 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97924             Bruno Haible  <bruno@clisp.org>
97926         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97927         the GCC builtins for signbits are present and set
97928         REPLACE_SIGNBIT_USING_GCC if so.
97929         * lib/math.in.h (signbit): Define using GCC builtins if
97930         REPLACE_SIGNBIT_USING_GCC is set.
97931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97932         REPLACE_SIGNBIT_USING_GCC.
97933         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97935 2008-01-25  Jim Meyering  <meyering@redhat.com>
97937         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97938         * lib/poll.c: Include <config.h>, not "config.h".
97939         * tests/test-getaddrinfo.c: Likewise.
97941 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97943         * modules/sockets-tests: New file.
97945 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97947         * modules/sockets: New module, can be used to call WSA_Startup and
97948         WSA_Cleanup when needed.
97950         * lib/sockets.h, lib/sockets.c: New files.
97952         * m4/sockets.m4: New file.
97954         * tests/test-sockets.c: New file.
97956 2008-01-19  Bruno Haible  <bruno@clisp.org>
97958         * doc/posix-headers: Renamed from doc/headers.
97959         * doc/posix-functions: Renamed from doc/functions.
97960         * doc/gnulib.texi: Update.
97962 2008-01-19  Bruno Haible  <bruno@clisp.org>
97964         * doc/glibc-functions/strcasestr.texi: Include contents of
97965         doc/functions/strcasestr.texi, fixing the list of platforms.
97966         * doc/functions/strcasestr.texi: Remove file.
97968 2008-01-19  Bruno Haible  <bruno@clisp.org>
97970         * doc/glibc-functions/memmem.texi: Include contents of
97971         doc/functions/memmem.texi.
97972         * doc/functions/memmem.texi: Remove file.
97974 2008-01-18  Bruno Haible  <bruno@clisp.org>
97976         * doc/glibc-functions/*.texi: New files.
97977         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97978         to use the new files.
97980 2008-01-17  Bruno Haible  <bruno@clisp.org>
97982         * tests/test-gethostname.c (main): Fix printf statement.
97984 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97986         * modules/gethostname-tests: New file.
97988         * tests/test-gethostname.c: New file.
97990 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97992         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97993         used by the UNAME case.  Reported by Bruno Haible
97994         <bruno@clisp.org>.
97996 2008-01-17  Eric Blake  <ebb9@byu.net>
97998         Convert c-strcasestr to be more efficient.
97999         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
98000         (Depends-on): Add c-strcase, remove malloca, strnlen.
98001         * tests/test-c-strcasestr.c (main): Enhance test.
98002         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
98004 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
98006         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
98007         Use it in creating po/Makevars.
98009 2008-01-15  Simon Josefsson  <simon@josefsson.org>
98011         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
98012         Applications that requires it should initialize libgcrypt
98013         manually.
98015 2008-01-16  Simon Josefsson  <simon@josefsson.org>
98017         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
98019 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
98021         Fix problem with getdate on mingw32 reported by Simon Josefsson
98022         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
98023         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
98024         tzname", when deciding whether to declare tzname.
98025         * lib/strftime.c (tzname): Likewise.
98027 2008-01-15  Bruno Haible  <bruno@clisp.org>
98029         Work around a MacOS X 10.5 bug in frexpl().
98030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
98031         * doc/functions/frexpl.texi: Document the bug.
98032         Reported by Elias Pipping <pipping@gentoo.org>.
98034 2008-01-14  Eric Blake  <ebb9@byu.net>
98036         Touch up previous patch.
98037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
98038         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
98040         Convert strcasestr module to use Two-Way algorithm.
98041         * modules/strcasestr-simple: New module, based on the old
98042         strcasestr, but with Two-Way rather than KMP.
98043         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
98044         * lib/string.in.h (rpl_strcasestr): Declare.
98045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
98046         performance.
98047         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
98048         * modules/string (Makefile.am): Support strcasestr.
98049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
98050         * modules/strcasestr-tests (Depends-on): Check for alarm.
98051         * tests/test-strcasestr.c: Augment test.
98052         * lib/str-two-way.h: Clean up stray macro.
98053         * NEWS: Document new module.
98054         * MODULES.html.sh (string handling): Likewise.
98055         * doc/functions/strcasestr.texi: New file.
98056         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
98057         here, since it is not a POSIX function.
98059 2008-01-14  Colin Watson  <cjwatson@debian.org>
98060             Bruno Haible  <bruno@clisp.org>
98062         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
98063         works fine; if not, set REPLACE_STRSIGNAL.
98064         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
98065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98066         REPLACE_STRSIGNAL.
98067         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
98068         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
98069         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
98071 2008-01-14  Bruno Haible  <bruno@clisp.org>
98073         * modules/strsignal (Include): Change to <string.h>.
98075 2008-01-14  Colin Watson  <cjwatson@debian.org>
98077         * modules/argp (Notice): Add a notice recommending to change
98078         XGETTEXT_OPTIONS.
98079         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
98081 2008-01-13  Colin Watson  <cjwatson@debian.org>
98083         * modules/strsignal-tests: New file.
98084         * tests/test-strsignal.c: New file.
98086         * lib/strsignal.c: New file, from glibc with modifications.
98087         * lib/siglist.h: New file, from glibc with modifications.
98088         * lib/string.in.h (strsignal): New declaration.
98089         * m4/strsignal.m4: New file.
98090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98091         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
98092         * modules/strsignal: New file.
98093         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
98094         HAVE_DECL_STRSIGNAL.
98096 2008-01-13  Bruno Haible  <bruno@clisp.org>
98098         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
98099         locale encoding is not ASCII. Needed for OpenBSD 4.0.
98100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98101         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98103 2008-01-13  Bruno Haible  <bruno@clisp.org>
98105         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
98106         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
98107         * lib/argp.h (__attribute__): Likewise.
98108         * lib/c-stack.c (__attribute__): Likewise.
98109         * lib/error.h (__attribute__): Likewise.
98110         * lib/fts.c (__attribute__): Likewise.
98111         * lib/openat.h (__attribute__): Likewise.
98112         * lib/stdio.in.h (__attribute__): Likewise.
98113         * lib/string.in.h (__attribute__): Likewise.
98114         * lib/utimens.c (__attribute__): Likewise.
98115         * lib/vasnprintf.h (__attribute__): Likewise.
98116         * lib/xalloc.h (__attribute__): Likewise.
98117         * lib/xprintf.h (__attribute__): Likewise.
98118         * lib/xstrtol.h (__attribute__): Likewise.
98119         * lib/xvasprintf.h (__attribute__): Likewise.
98121 2008-01-12  Bruno Haible  <bruno@clisp.org>
98123         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
98124         * doc/glibc-headers/a.out.texi: New file.
98125         * doc/glibc-headers/aliases.texi: New file.
98126         * doc/glibc-headers/alloca.texi: New file.
98127         * doc/glibc-headers/ar.texi: New file.
98128         * doc/glibc-headers/argp.texi: New file.
98129         * doc/glibc-headers/argz.texi: New file.
98130         * doc/glibc-headers/byteswap.texi: New file.
98131         * doc/glibc-headers/crypt.texi: New file.
98132         * doc/glibc-headers/endian.texi: New file.
98133         * doc/glibc-headers/envz.texi: New file.
98134         * doc/glibc-headers/err.texi: New file.
98135         * doc/glibc-headers/error.texi: New file.
98136         * doc/glibc-headers/execinfo.texi: New file.
98137         * doc/glibc-headers/fpu_control.texi: New file.
98138         * doc/glibc-headers/fstab.texi: New file.
98139         * doc/glibc-headers/fts.texi: New file.
98140         * doc/glibc-headers/getopt.texi: New file.
98141         * doc/glibc-headers/ieee754.texi: New file.
98142         * doc/glibc-headers/ifaddrs.texi: New file.
98143         * doc/glibc-headers/libintl.texi: New file.
98144         * doc/glibc-headers/mcheck.texi: New file.
98145         * doc/glibc-headers/mntent.texi: New file.
98146         * doc/glibc-headers/obstack.texi: New file.
98147         * doc/glibc-headers/paths.texi: New file.
98148         * doc/glibc-headers/printf.texi: New file.
98149         * doc/glibc-headers/pty.texi: New file.
98150         * doc/glibc-headers/resolv.texi: New file.
98151         * doc/glibc-headers/shadow.texi: New file.
98152         * doc/glibc-headers/sysexits.texi: New file.
98153         * doc/glibc-headers/ttyent.texi: New file.
98155 2008-01-12  Jim Meyering  <meyering@redhat.com>
98157         announce-gen: emit Gnulib's git-based version string.
98158         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
98159         New option --gnulib-version=V, where V is expected to be
98160         the output of running git describe in the gnulib directory.
98161         (get_tool_versions): Request feedback on xdelta.  I suspect it's
98162         not useful, and plan to stop publishing an xdelta file with each
98163         coreutils release.
98165         * build-aux/announce-gen: Also check for lzma-compressed files.
98167 2008-01-11  Bruno Haible  <bruno@clisp.org>
98169         * tests/test-memmem.c (main): Increase maximum allowed time.
98170         * tests/test-strstr.c (main): Likewise.
98172 2008-01-11  Bruno Haible  <bruno@clisp.org>
98174         * doc/functions/memmem.texi: Add more precisions about platforms.
98175         * doc/functions/strstr.texi: Likewise.
98177 2008-01-10  Eric Blake  <ebb9@byu.net>
98179         * m4/strstr.m4: Delete cruft from copy-n-paste.
98180         Reported by Bruno Haible.
98182 2008-01-10  Bruno Haible  <bruno@clisp.org>
98184         Make c-strstr rely on strstr.
98185         * lib/c-strstr.c: Don't include str-kmp.h.
98186         (c_strstr): Define in terms of strstr.
98187         * modules/c-strstr (Files): Remove lib/str-kmp.h.
98188         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
98190 2008-01-10  Bruno Haible  <bruno@clisp.org>
98192         * doc/gnulib.texi (String Functions in C Locale): New section.
98193         * doc/c-ctype.texi: New file.
98194         * doc/c-strcase.texi: New file.
98195         * doc/c-strcaseeq.texi: New file.
98196         * doc/c-strcasestr.texi: New file.
98197         * doc/c-strstr.texi: New file.
98198         * doc/c-strtod.texi: New file.
98199         * doc/c-strtold.texi: New file.
98201 2008-01-10  Eric Blake  <ebb9@byu.net>
98203         * lib/relocatable.h: Fix a comment.
98205 2008-01-10  Eric Blake  <ebb9@byu.net>
98207         Share two-way algorithm.
98208         * lib/str-two-way.h: New file, merged from...
98209         * lib/memmem.c: ...here...
98210         * lib/strstr.c: ...and here.
98211         * modules/memmem (Files): Use it.
98212         * modules/strstr (Files): Likewise.
98214         Avoid quadratic strstr implementations.
98215         * lib/strstr.c: New file.
98216         * m4/strstr.m4: Likewise.
98217         * modules/strstr: Likewise.
98218         * modules/strstr-tests: Likewise.
98219         * tests/test-strstr.c: Likewise.
98220         * lib/string.in.h (rpl_strstr): Declare.
98221         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
98222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
98223         * modules/string (Makefile.am): Likewise.
98224         * MODULES.html.sh (string handling): Mention new module.
98225         * doc/functions/strstr.texi (strstr): Document the bug.
98227 2008-01-10  Bruno Haible  <bruno@clisp.org>
98229         * lib/relocatable.h (relocate): State whether result is freshly
98230         allocated or not.
98231         * lib/relocatable.c (relocate): Return a freshly allocated string
98232         instead of a pointer to a privately held string.
98233         Reported by Sylvain Beucler <beuc@gnu.org>.
98235 2008-01-10  Colin Watson  <cjwatson@debian.org>
98237         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
98238         s/S_ISNLK/S_ISLNK/.
98240 2008-01-09  Bruno Haible  <bruno@clisp.org>
98242         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
98243         and other files.
98244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
98245         if it's only a guess.
98246         * modules/memmem: Simplify by depending on memmem-simple.
98248 2008-01-09  Bruno Haible  <bruno@clisp.org>
98250         Work around OpenBSD 4.0 tdelete() bug.
98251         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
98252         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
98253         macros and don't redefine the enum values.
98254         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
98255         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
98256         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
98258 2008-01-09  Bruno Haible  <bruno@clisp.org>
98260         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
98261         (main): Don't perform the tests if setlocale did not install a UTF-8
98262         locale. Needed on OpenBSD 4.0.
98263         * modules/wcwidth-tests (Depends-on): Add localcharset.
98265 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98267         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
98268         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
98269         * NEWS: announce this.
98270         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
98272 2008-01-09  Simon Josefsson  <simon@josefsson.org>
98273         and Eric Blake  <ebb9@byu.net>
98275         Add memmem-simple module.
98276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
98277         (gl_FUNC_MEMMEM): Separate performance from presence checks.
98278         * modules/memmem-simple: New file.
98279         * modules/memmem (Description): Tweak.
98280         * MODULES.html.sh (string handling): Mention new module.
98281         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
98282         addressed by memmem-simple.
98283         * NEWS: Document the difference.
98285 2008-01-09  Eric Blake  <ebb9@byu.net>
98287         Give gcc some memmem optimization hints.
98288         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
98289         (strcasestr): Declare as pure.
98290         * modules/memmem (Maintainer): Claim my implementation.
98292 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98294         Support AIX 6.1 and higher.
98295         * build-aux/config.libpath: Likewise.
98296         * build-aux/config.rpath: Likewise.
98298 2008-01-08  Jim Meyering  <meyering@redhat.com>
98299             Bruno Haible  <bruno@clisp.org>
98301         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
98302         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
98303         Reported by Peter Fales in
98304         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
98306 2008-01-08  Bruno Haible  <bruno@clisp.org>
98308         * modules/unictype/category-of (Depends-on): Add
98309         unictype/category-none.
98310         * modules/unictype/category-and-tests (Depends-on): Add
98311         unictype/category-{L,N,Lu,Nd}.
98312         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
98313         * modules/unictype/category-or-tests (Depends-on): Add
98314         unictype/category-{L,N}.
98315         * modules/unictype/category-name-tests (Depends-on): Add
98316         unictype/category-{Z,Nl}.
98317         Reported by Simon Josefsson.
98319 2008-01-08  Bruno Haible  <bruno@clisp.org>
98321         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
98322         convention better.
98323         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
98324         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
98325         Reported by Peter Miller <millerp@canb.auug.org.au>.
98327 2008-01-08  Eric Blake  <ebb9@byu.net>
98329         Rewrite memmem to guarantee linear complexity without malloc.
98330         * lib/memmem.c (memmem): Use Two-Way rather than
98331         Knuth-Morris-Pratt, to allow O(1) space usage.
98332         (critical_factorization, two_way_short_needle)
98333         (two_way_long_needle): New functions.
98334         (knuth_morris_pratt): Delete.
98335         * modules/memmem (Depends-on): No longer need malloca or stdbool.
98336         Add stdint.
98337         * tests/test-memmem.c (main): Add tests for periodic needle and
98338         sublinear performance.
98339         * doc/functions/memmem.texi (memmem): Document other deficiencies
98340         in cygwin and older glibc.
98342 2008-01-08  Bruno Haible  <bruno@clisp.org>
98344         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
98345         augmentation.
98347 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
98349         Add a configure time option: --disable-acl.
98350         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
98351         AC_ARG_ENABLE(acl).
98353 2008-01-06  Simon Josefsson  <simon@josefsson.org>
98355         * tests/test-localename.c: Don't include obsolete "setenv.h".
98357         * modules/localename-tests (Depends-on): Need unsetenv.
98359 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98361         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
98363 2008-01-06  Colin Watson  <cjwatson@debian.org>
98365         * users.txt: Add man-db.
98367 2008-01-07  Bruno Haible  <bruno@clisp.org>
98369         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
98370         previous section name.
98372 2008-01-07  Bruno Haible  <bruno@clisp.org>
98374         * lib/progname.c (set_program_name): Don't strip off a leading
98375         "lt-" prefix outside a .libs directory.
98376         Suggested by Paul Eggert.
98378 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
98379             Bruno Haible  <bruno@clisp.org>
98381         Improve memory cleanup in 'relocatable' module.
98382         * lib/relocatable.h (compute_curr_prefix): Change return type to
98383         'char *'.
98384         * lib/relocatable.c (compute_curr_prefix): Change return type to
98385         'char *'. Free curr_installdir after use.
98386         (relocate): Free curr_prefix_better after use.
98387         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
98389 2008-01-01  Bruno Haible  <bruno@clisp.org>
98391         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
98392         failure on older glibc systems.
98393         Reported by Peter Fales <psfales@alcatel-lucent.com>.
98395 2008-01-05  Eric Blake  <ebb9@byu.net>
98397         Avoid quadratic system memmem.
98398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
98399         Reported by Ralf Wildenhues.
98401         Fix memmem test for mingw.
98402         * modules/memmem-tests (configure.ac): Check for alarm.
98403         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
98404         it.
98405         * doc/functions/memmem.texi: New file.
98406         * doc/gnulib.texi (Function Substitutes): Add memmem.
98407         Reported by Bruno Haible.
98409 2008-01-04  Bruno Haible  <bruno@clisp.org>
98411         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
98412         Require gl_HEADER_STRINGS_H_DEFAULTS, not
98413         gl_HEADER_STRING_H_DEFAULTS.
98415 2008-01-04  Eric Blake  <ebb9@byu.net>
98417         Shorten duration of memmem test.
98418         * tests/test-memmem.c (main): Use alarm to declare failure if test
98419         is taking too long.
98420         Reported by Ralf Wildenhues.
98422 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98424         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98425         string, needed by strerror.
98427 2008-01-03  Colin Watson  <cjwatson@debian.org>
98428             Bruno Haible  <bruno@clisp.org>
98430         * doc/gnulib-tool.texi (Localization): New section.
98432 2008-01-02  Bruno Haible  <bruno@clisp.org>
98434         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98435         variables to 'unsigned char *' type.
98436         Reported by Paul Eggert.
98438 2008-01-02  Jim Meyering  <jim@meyering.net>
98440         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98442 2007-12-31  Jim Meyering  <jim@meyering.net>
98444         Avoid use of private FTS type name.
98445         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98447 2007-12-30  Karl Berry  <karl@gnu.org>
98449         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98450         work around defect in Texinfo and/or the standalone Info browser.
98452 2007-12-30  Bruno Haible  <bruno@clisp.org>
98454         Unify 5 copies of the KMP code.
98455         * lib/str-kmp.h: New file.
98456         * lib/c-strcasestr.c: Include str-kmp.h.
98457         (knuth_morris_pratt): Remove function.
98458         (c_strcasestr): Update.
98459         * lib/c-strstr.c: Include str-kmp.h.
98460         (knuth_morris_pratt): Remove function.
98461         (c_strcasestr): Update.
98462         * lib/mbscasestr.c: Include str-kmp.h.
98463         (knuth_morris_pratt_unibyte): Remove function.
98464         * lib/mbsstr.c: Include str-kmp.h.
98465         (knuth_morris_pratt_unibyte): Remove function.
98466         * lib/strcasestr.c: Include str-kmp.h.
98467         (knuth_morris_pratt): Remove function.
98468         (strcasestr): Update.
98469         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98470         * modules/c-strstr (Files): Likewise.
98471         * modules/mbscasestr (Files): Likewise.
98472         * modules/mbsstr (Files): Likewise.
98473         * modules/strcasestr (Files): Likewise.
98474         Suggested by Paul Eggert.
98476 2007-12-30  Bruno Haible  <bruno@clisp.org>
98478         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98479         defined.
98481 2007-12-30  Bruno Haible  <bruno@clisp.org>
98483         * lib/xmalloca.h: Include xalloc.h.
98484         (xnmalloca): New macro.
98486 2007-12-30  Bruno Haible  <bruno@clisp.org>
98488         * lib/malloca.h (nmalloca): New macro.
98489         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98490         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98491         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98492         knuth_morris_pratt_multibyte): Likewise.
98493         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98494         knuth_morris_pratt_multibyte): Likewise.
98495         * lib/memmem.c (knuth_morris_pratt): Likewise.
98496         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98498 2007-12-25  Bruno Haible  <bruno@clisp.org>
98500         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98501         * lib/glob.c: Don't include openat.h.
98502         (link_exists2_p): Add back the code that deals with the
98503         !GLOB_ALTDIRFUNC case.
98504         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98505         let it do the filename concatenation.
98506         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98507         * modules/glob (Depends-on): Remove openat.
98509 2007-12-31  Bruno Haible  <bruno@clisp.org>
98511         * modules/dirfd (License): Change to LGPLv2+.
98512         Approved by Jim Meyering.
98514 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98516         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98517         when multiplying M by sizeof (size_t).
98519 2007-12-10  Martin Lambers  <marlam@marlam.de>
98521         Override getpagesize on mingw.
98522         * lib/getpagesize.c: New file.
98523         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98524         * modules/getpagesize (Files): Add lib/getpagesize.c.
98525         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98527         REPLACE_GETPAGESIZE.
98528         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98530 2007-12-25  Bruno Haible  <bruno@clisp.org>
98532         * modules/localcharset (Notice): New field.
98533         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98534         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98536 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98537             Bruno Haible  <bruno@clisp.org>
98539         Avoid using the syntax symbol() in formatted documentation.
98540         * MODULES.html.sh (func_module): When replacing symbol() with a
98541         hyperlink, remove the parentheses. Show an error if some remain.
98542         Recognize and render the '...' syntax.
98543         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98544         Rework. Add paragraph about GCC's inlining.
98545         * doc/alloca.texi: Likewise.
98546         * doc/error.texi: Remove parentheses from symbol reference.
98547         * doc/gnulib-intro.texi: Likewise.
98548         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98549         * modules/fnmatch (Description): Reword to say "the ... function".
98550         * modules/full-read (Description): Likewise.
98551         * modules/full-write (Description): Likewise.
98552         * modules/safe-read (Description): Likewise.
98553         * modules/safe-write (Description): Likewise.
98554         * modules/strchrnul (Description): Likewise.
98555         * modules/trim (Description): Likewise.
98556         * modules/error (Description): Remove parentheses from symbol
98557         references.
98558         * modules/verror (Description): Likewise.
98559         Reported by Karl Berry.
98561 2007-12-25  Bruno Haible  <bruno@clisp.org>
98563         Fixup after 2007-10-16 commit.
98564         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98566 2007-12-24  Bruno Haible  <bruno@clisp.org>
98568         Make --enable-relocatable work with DESTDIR.
98569         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98570         to compute installdir from destprog.
98571         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98572         also set the RELOC_DESTDIR variable.
98573         Reported by Левашев Иван <octagram@bluebottle.com>.
98575 2007-12-24  Bruno Haible  <bruno@clisp.org>
98577         Fix link error due to xalloc_die().
98578         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98579         of xreadlink.
98580         * lib/relocwrapper.c: Update comments.
98581         * build-aux/install-reloc: Remove xreadlink.c from file list.
98582         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98583         xreadlink.c.
98584         Reported by Левашев Иван <octagram@bluebottle.com>.
98586 2007-12-24  Bruno Haible  <bruno@clisp.org>
98588         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98589         * lib/setenv.h: Remove file.
98590         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98591         lib/setenv.h.
98592         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98593         (Depends-on): Add stdlib.
98594         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98595         gl_FUNC_UNSETENV.
98596         (Include): Replace setenv.h with <stdlib.h>.
98597         * modules/unsetenv: New file.
98598         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98599         * lib/unsetenv.c: Include <stdlib.h> first.
98600         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98601         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98602         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98603         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98604         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98605         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98607         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98608         * doc/functions/unsetenv.texi: Update.
98609         * modules/xsetenv (Depends-on): Add unsetenv.
98610         * modules/getdate (Depends-on): Likewise.
98611         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98612         * lib/xsetenv.c: Don't include setenv.h.
98613         * lib/getdate.y: Likewise.
98614         * lib/relocwrapper.c: Likewise.
98615         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98616         (Depends-on): Add stdlib.
98617         * NEWS: Mention the changes.
98618         Reported by Левашев Иван <octagram@bluebottle.com>.
98620 2007-12-23  Bruno Haible  <bruno@clisp.org>
98622         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98623         indentation.
98625 2007-12-23  Bruno Haible  <bruno@clisp.org>
98627         * lib/c-strcasestr.c: Add more comments.
98628         * lib/c-strstr.c: Likewise.
98629         * lib/mbscasestr.c: Likewise.
98630         * lib/mbsstr.c: Likewise.
98631         * lib/strcasestr.c: Likewise.
98632         * lib/memmem.c: Likewise.
98634 2007-12-23  Bruno Haible  <bruno@clisp.org>
98636         * tests/test-memmem.c: Include <string.h> first.
98638 2007-12-22  Bruno Haible  <bruno@clisp.org>
98640         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98641         the contents of $testsbase.
98642         Reported by Ralf Wildenhues.
98644 2007-12-22  Bruno Haible  <bruno@clisp.org>
98646         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98647         two variables local_ldadd_before, local_ldadd_last.
98649 2007-12-20  Eric Blake  <ebb9@byu.net>
98651         Work around circular library issue when cross-compiling.
98652         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98653         that progname.o does not need to pull in rpl_memcmp.
98655 2007-12-19  Eric Blake  <ebb9@byu.net>
98657         Fix memmem to avoid O(n^2) worst-case complexity.
98658         * lib/memmem.c (knuth_morris_pratt): New function.
98659         (memmem): Use it if first few naive iterations fail.
98660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98661         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98662         * modules/memchr (License): Likewise.
98663         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98664         malloca.
98665         * tests/test-memmem.c: Rewrite, borrowing ideas from
98666         test-mbsstr1.c; the old version wouldn't even compile!
98667         * modules/memmem-tests: New file.
98668         * lib/string.in.h (rpl_memmem): Add declaration.
98669         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98671         REPLACE_MEMMEM.
98673 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98675         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98676         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98677         before any system include files, and undef after them all.  This
98678         should fix a problem on VMS reported by John E. Malmberg in
98679         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98681 2007-12-17  Eric Blake  <ebb9@byu.net>
98683         Revert addition of verify, for BSD/OS.
98684         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98685         can't handle large files, for the sake of obsolete platforms.
98686         * modules/fseeko (Depends-on): Remove verify.
98687         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98688         * doc/functions/ftello.texi (ftello): Likewise.
98689         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98690         Reported by Larry Jones.
98692 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98694         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98695         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98697 2007-12-17  Jim Meyering  <meyering@redhat.com>
98699         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98700         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98701         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98702         * modules/getcwd (Depends-on): Add openat.
98703         Reported by Petr Salinger.
98705 2007-12-17  Bruno Haible  <bruno@clisp.org>
98707         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98708         avoid a segmentation fault of the configure test on x86_64 systems.
98710 2007-12-15  Jim Meyering  <meyering@redhat.com>
98712         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98714 2007-12-13  Eric Blake  <ebb9@byu.net>
98716         Another fseek test.
98717         * tests/test-fseek.c (main): Also test ungetc handling.
98718         * tests/test-fseeko.c (main): Likewise.
98719         * modules/fseeko (Depends-on): Add verify.
98720         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98721         large.
98722         Reported by Larry Jones.
98724         Fix fseeko on mingw.
98725         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98726         seek.
98728         Beef up fseek tests.
98729         * tests/test-fseek.c (main): Also test eof handling.
98730         * tests/test-fseeko.c (main): Likewise.
98731         Reported by Larry Jones.
98733 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98735         Fix fseeko on BSD-based platforms.
98736         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98737         successful seek.
98739 2007-12-12  Eric Blake  <ebb9@byu.net>
98741         Allow circular dependency of separate libtests.a
98742         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98743         when use_libtests.
98745 2007-12-11  Eric Blake  <ebb9@byu.net>
98747         Fix bug with -0.0L in previous patch.
98748         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98749         * tests/test-isnan.c (main): Also test on zeroes.
98750         * tests/test-isnanf.c (main): Likewise.
98751         * tests/test-isnanl.h (main): Likewise.
98753         Detect pseudo-denormals on x86 even when cross-compiling.
98754         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98755         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98756         invalid bit patterns that happen to satisfy ==.
98758         Avoid link failures with separate libtests.a.
98759         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98760         last, to satisfy circular dependencies.
98762 2007-12-11  Eric Blake  <ebb9@byu.net>
98763         and Bruno Haible  <bruno@clisp.org>
98765         Fix OpenBSD 4.0 <float.h> handling of long double.
98766         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98767         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98768         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98770 2007-12-11  Jim Meyering  <meyering@redhat.com>
98772         * users.txt: Add libvirt.
98774         Support versions of autoconf prior to 2.59c.
98775         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98776         if it is not already defined.
98778 2007-12-09  Bruno Haible  <bruno@clisp.org>
98780         Let 'gnulib-tool --import' collect sources needed for the tests in
98781         tests/ rather than in lib/.
98782         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98783         argument. If true, add rules to generate libtests.a, and put libtests.a
98784         into $(LDADD). Consider source files in subdirectories and set
98785         uses_subdirs.
98786         (func_emit_initmacro_start, func_emit_initmacro_end,
98787         func_emit_initmacro_done): Pass all arguments explicitly.
98788         (func_import): Determine two module lists main_modules,
98789         testsrelated_modules. Determine use_libtests. Determine two variables
98790         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98791         instead of just sed_transform_lib_file. Determine two variables
98792         main_files and testsrelated_files. Compute 'files' as the union of
98793         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98794         func_add_or_update. In the generated gnulib-comp.m4, collect the
98795         object files for tests/ in different variables than those for lib/.
98796         Substitute LIBTESTS_LIBDEPS.
98797         (func_create_testdir): Combine the uses_subdirs results from
98798         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98800 2007-12-09  Bruno Haible  <bruno@clisp.org>
98802         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98803         the build-aux directory.
98805 2007-12-09  Bruno Haible  <bruno@clisp.org>
98807         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98808         introduced on 2006-09-09.
98810 2007-12-07  Jim Meyering  <meyering@redhat.com>
98812         Let these macros work also with autoconf-2.59.
98813         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98814         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98817 2007-12-06  Jim Meyering  <meyering@redhat.com>
98819         Avoid a configure-time syntax error in gl_FUNC_ACL.
98820         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98821         function in each branch, before testing the cache variable.
98823 2007-12-04  Eric Blake  <ebb9@byu.net>
98825         Make scripts executable.
98826         * build-aux/config.guess: Add execute permissions.
98827         * build-aux/config.sub: Likewise.
98828         * build-aux/gendocs.sh: Likewise.
98830         Fix frexp on mingw.
98831         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98832         cross-compiling.
98833         * doc/functions/frexp.texi (frexp): Document the bug.
98835         Make cygwin fseeko check more reliable.
98836         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98837         version numbers, rather than unrelated feature check.
98838         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98839         * doc/functions/ftello.texi (ftello): Likewise.
98840         Reported by Bruno Haible.
98842         * m4/strerror.m4: Bump version number.
98844 2007-12-03  Bruno Haible  <bruno@clisp.org>
98846         * doc/functions/mprotect.texi: Mention the mingw problem.
98848 2007-12-03  Eric Blake  <ebb9@byu.net>
98850         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98851         REPLACE_STRERROR is initialized before this macro.
98853 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98855         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98856         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98857         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98858         put -lsec in even for programs other than 'ls'.  This fixes a problem
98859         for gettext reported by Bruno Haible in
98860         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98861         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98862         Add support for Solaris 10.  This isn't efficient, but should get the
98863         job done for now.
98865 2007-12-03  James Youngman  <jay@gnu.org>
98867         * doc/regexprops-generic.texi: change "an close-group" to "a
98868         close-group" and "illegal" to "not allowed".
98870 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98872         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98873         pr_byname.h. Needed for the rare case when the maintainer has done
98874         "make maintainer-clean" in the source directory and then attempts a
98875         build outside the source directory.
98876         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98877         scripts_byname.h.
98879 2007-12-02  Martin Lambers  <marlam@marlam.de>
98880             Bruno Haible  <bruno@clisp.org>
98882         * lib/getpagesize.h: Remove file.
98883         * lib/unistd.in.h: Include declaration of getpagesize here.
98884         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98885         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98886         HAVE_SYS_PARAM_H.
98887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98888         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98889         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98890         (Depends-on): Add unistd.
98891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98892         (Include): Use <unistd.h> instead of getpagesize.h.
98893         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98894         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98895         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98896         gl_GETPAGESIZE invocation, already handled by module dependency.
98897         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98899 2007-12-02  Bruno Haible  <bruno@clisp.org>
98901         * modules/strings-tests: New file.
98902         * tests/test-strings.c: New file.
98904         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98905         * lib/strings.in.h: New file.
98906         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98907         * m4/strings_h.m4: New file.
98908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98909         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98910         * modules/strings: New file.
98911         * modules/string (Makefile.am): Update.
98912         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98913         Reported by Karl Berry.
98915 2007-12-01  Eric Blake  <ebb9@byu.net>
98917         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98918         accommodate fix in cygwin 1.5.25.
98920 2007-12-01  Jim Meyering  <meyering@redhat.com>
98922         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98923         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98924         that would inhibit utf8-optimization of a regexp containing line-
98925         or buffer-anchors, e.g., `^', `$'.
98927 2007-11-30  Bruno Haible  <bruno@clisp.org>
98929         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98930         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98931         glthread_recursive_lock_init.
98932         * lib/lock.c (glthread_recursive_lock_init)
98933         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98934         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98936 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98938         New function qset_acl, like set_acl but with syscall semantics.
98939         * lib/acl.h (qset_acl): New decl.
98940         * lib/acl.c (qset_acl): New function.
98941         (set_acl): Use new function.  Use more-consistent diagnostics.
98943 2007-11-28  Jim Meyering  <meyering@redhat.com>
98945         * modules/physmem (License): Change from GPL to LGPLv2+.
98947 2007-11-26  Bruno Haible  <bruno@clisp.org>
98949         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98950         'long double' type has excess precision.
98951         Reported by Jim Meyering in
98952         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98954 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98956         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98957         Sync from <http://gnu.org/licenses>.
98958         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98959         with license text from same location.
98960         * doc/maintain.texi, doc/standards.texi:  Sync from
98961         <http://savannah.gnu.org/projects/gnustandards>.
98963 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98964         and Jim Meyering  <meyering@redhat.com>
98966         Adjust getdate' grammar to accept a slightly more regular language.
98967         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98968         Before, the former was rejected.
98969         * lib/getdate.y (digits_to_date_time): New function, factored
98970         out of ...
98971         (number): ...here.  Just call digits_to_date_time.
98972         (hybrid): New non-terminal to handle an <unsigned number,
98973         signed relative offset> sequence consistently.
98975 2007-11-18  Jim Meyering  <meyering@redhat.com>
98977         Pull my changes from coreutils:
98978         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98979         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98980         use of $gnulib_tool_option_extras, so that it's separated from the
98981         preceding argument.
98983         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98984         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98985         parent destination directories before copying a file into place.
98987 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98989         bootstrap: work also with 4-argument variant of AC_INIT
98990         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98992 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98994         Port test-getaddrinfo to Solaris.
98995         Problem reported by Bruno Haible in
98996         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98997         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98998         explanation of setting 'hints'.
98999         Don't reject an implementation merely because it returns EAI_SERVICE.
99000         (EAI_SERVICE): Define to 0 if not defined.
99002 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99004         The license of gnu-make and posix-shell is now "GPLed build tool".
99005         * modules/gnu-make (License): Likewise.
99006         * modules/posix-shell (License): Likewise.
99008         New module posix-shell, for determining a POSIX shell
99009         or perhaps something that is close enough to a POSIX shell.
99010         * m4/posix-shell.m4: New file.
99011         * modules/posix-shell: New file.
99013         * MODULES.html.sh: Mention new module.
99015         New module gnu-make, for determining whether we're using GNU Make.
99016         * m4/gnu-make.m4: New file.
99017         * modules/gnu-make: New file.
99018         * MODULES.html.sh: Mention new module.
99020 2007-11-14  Jim Meyering  <meyering@redhat.com>
99022         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
99023         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
99024         use this macro to create a function _definition_.
99025         Remove useless "#undef ARGMATCH_DIE".
99027 2007-11-14  Bruno Haible  <bruno@clisp.org>
99029         * lib/config.charset: Update for OpenBSD 4.1.
99030         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
99032 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
99034         Document 64-bit #if problems in stdint.texi.
99035         * doc/headers/stdint.texi (stdint.h): Mention problems with
99036         64-bit-#if, and how to work around them.
99038         Don't insist on 'long long int' support in the preprocessor.  It
99039         breaks too many things.  For example, PRIdMAX still uses a 'long
99040         long int' format with the latest Sun compiler, even though
99041         HAVE_LONG_LONG_INT isn't defined due to that compiler's
99042         preprocessor problem.  This causes the latest coreutils to dump
99043         core on Solaris 10 sparc with the Sun C compiler.
99044         Instead, fix the 2007-10-16 problem in a different way, by evaluating
99045         the troublesome expressions at configure-time, not at #if-time.
99046         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
99047         preprocessor.
99048         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
99049         compile-time C checks, done at 'configure'-time.
99050         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
99051         * modules/inttypes (Makefile): Substitute the new symbols that
99052         gl_INTTYPES_H now generates.
99053         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
99055 2007-11-12  Bruno Haible  <bruno@clisp.org>
99057         Tests for Unicode character classification functions.
99059         * modules/unictype/bidicategory-byname-tests: New file.
99060         * modules/unictype/bidicategory-name-tests: New file.
99061         * modules/unictype/bidicategory-of-tests: New file.
99062         * modules/unictype/bidicategory-test-tests: New file.
99063         * modules/unictype/block-list-tests: New file.
99064         * modules/unictype/block-of-tests: New file.
99065         * modules/unictype/block-test-tests: New file.
99066         * modules/unictype/category-C-tests: New file.
99067         * modules/unictype/category-Cc-tests: New file.
99068         * modules/unictype/category-Cf-tests: New file.
99069         * modules/unictype/category-Cn-tests: New file.
99070         * modules/unictype/category-Co-tests: New file.
99071         * modules/unictype/category-Cs-tests: New file.
99072         * modules/unictype/category-L-tests: New file.
99073         * modules/unictype/category-Ll-tests: New file.
99074         * modules/unictype/category-Lm-tests: New file.
99075         * modules/unictype/category-Lo-tests: New file.
99076         * modules/unictype/category-Lt-tests: New file.
99077         * modules/unictype/category-Lu-tests: New file.
99078         * modules/unictype/category-M-tests: New file.
99079         * modules/unictype/category-Mc-tests: New file.
99080         * modules/unictype/category-Me-tests: New file.
99081         * modules/unictype/category-Mn-tests: New file.
99082         * modules/unictype/category-N-tests: New file.
99083         * modules/unictype/category-Nd-tests: New file.
99084         * modules/unictype/category-Nl-tests: New file.
99085         * modules/unictype/category-No-tests: New file.
99086         * modules/unictype/category-P-tests: New file.
99087         * modules/unictype/category-Pc-tests: New file.
99088         * modules/unictype/category-Pd-tests: New file.
99089         * modules/unictype/category-Pe-tests: New file.
99090         * modules/unictype/category-Pf-tests: New file.
99091         * modules/unictype/category-Pi-tests: New file.
99092         * modules/unictype/category-Po-tests: New file.
99093         * modules/unictype/category-Ps-tests: New file.
99094         * modules/unictype/category-S-tests: New file.
99095         * modules/unictype/category-Sc-tests: New file.
99096         * modules/unictype/category-Sk-tests: New file.
99097         * modules/unictype/category-Sm-tests: New file.
99098         * modules/unictype/category-So-tests: New file.
99099         * modules/unictype/category-Z-tests: New file.
99100         * modules/unictype/category-Zl-tests: New file.
99101         * modules/unictype/category-Zp-tests: New file.
99102         * modules/unictype/category-Zs-tests: New file.
99103         * modules/unictype/category-and-not-tests: New file.
99104         * modules/unictype/category-and-tests: New file.
99105         * modules/unictype/category-byname-tests: New file.
99106         * modules/unictype/category-name-tests: New file.
99107         * modules/unictype/category-none-tests: New file.
99108         * modules/unictype/category-of-tests: New file.
99109         * modules/unictype/category-or-tests: New file.
99110         * modules/unictype/category-test-withtable-tests: New file.
99111         * modules/unictype/combining-class-tests: New file.
99112         * modules/unictype/ctype-alnum-tests: New file.
99113         * modules/unictype/ctype-alpha-tests: New file.
99114         * modules/unictype/ctype-blank-tests: New file.
99115         * modules/unictype/ctype-cntrl-tests: New file.
99116         * modules/unictype/ctype-digit-tests: New file.
99117         * modules/unictype/ctype-graph-tests: New file.
99118         * modules/unictype/ctype-lower-tests: New file.
99119         * modules/unictype/ctype-print-tests: New file.
99120         * modules/unictype/ctype-punct-tests: New file.
99121         * modules/unictype/ctype-space-tests: New file.
99122         * modules/unictype/ctype-upper-tests: New file.
99123         * modules/unictype/ctype-xdigit-tests: New file.
99124         * modules/unictype/decimal-digit-tests: New file.
99125         * modules/unictype/digit-tests: New file.
99126         * modules/unictype/mirror-tests: New file.
99127         * modules/unictype/numeric-tests: New file.
99128         * modules/unictype/property-alphabetic-tests: New file.
99129         * modules/unictype/property-ascii-hex-digit-tests: New file.
99130         * modules/unictype/property-bidi-arabic-digit-tests: New file.
99131         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
99132         * modules/unictype/property-bidi-block-separator-tests: New file.
99133         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
99134         * modules/unictype/property-bidi-common-separator-tests: New file.
99135         * modules/unictype/property-bidi-control-tests: New file.
99136         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
99137         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
99138         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
99139         * modules/unictype/property-bidi-european-digit-tests: New file.
99140         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
99141         * modules/unictype/property-bidi-left-to-right-tests: New file.
99142         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
99143         * modules/unictype/property-bidi-other-neutral-tests: New file.
99144         * modules/unictype/property-bidi-pdf-tests: New file.
99145         * modules/unictype/property-bidi-segment-separator-tests: New file.
99146         * modules/unictype/property-bidi-whitespace-tests: New file.
99147         * modules/unictype/property-byname-tests: New file.
99148         * modules/unictype/property-combining-tests: New file.
99149         * modules/unictype/property-composite-tests: New file.
99150         * modules/unictype/property-currency-symbol-tests: New file.
99151         * modules/unictype/property-dash-tests: New file.
99152         * modules/unictype/property-decimal-digit-tests: New file.
99153         * modules/unictype/property-default-ignorable-code-point-tests: New file.
99154         * modules/unictype/property-deprecated-tests: New file.
99155         * modules/unictype/property-diacritic-tests: New file.
99156         * modules/unictype/property-extender-tests: New file.
99157         * modules/unictype/property-format-control-tests: New file.
99158         * modules/unictype/property-grapheme-base-tests: New file.
99159         * modules/unictype/property-grapheme-extend-tests: New file.
99160         * modules/unictype/property-grapheme-link-tests: New file.
99161         * modules/unictype/property-hex-digit-tests: New file.
99162         * modules/unictype/property-hyphen-tests: New file.
99163         * modules/unictype/property-id-continue-tests: New file.
99164         * modules/unictype/property-id-start-tests: New file.
99165         * modules/unictype/property-ideographic-tests: New file.
99166         * modules/unictype/property-ids-binary-operator-tests: New file.
99167         * modules/unictype/property-ids-trinary-operator-tests: New file.
99168         * modules/unictype/property-ignorable-control-tests: New file.
99169         * modules/unictype/property-iso-control-tests: New file.
99170         * modules/unictype/property-join-control-tests: New file.
99171         * modules/unictype/property-left-of-pair-tests: New file.
99172         * modules/unictype/property-line-separator-tests: New file.
99173         * modules/unictype/property-logical-order-exception-tests: New file.
99174         * modules/unictype/property-lowercase-tests: New file.
99175         * modules/unictype/property-math-tests: New file.
99176         * modules/unictype/property-non-break-tests: New file.
99177         * modules/unictype/property-not-a-character-tests: New file.
99178         * modules/unictype/property-numeric-tests: New file.
99179         * modules/unictype/property-other-alphabetic-tests: New file.
99180         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
99181         * modules/unictype/property-other-grapheme-extend-tests: New file.
99182         * modules/unictype/property-other-id-continue-tests: New file.
99183         * modules/unictype/property-other-id-start-tests: New file.
99184         * modules/unictype/property-other-lowercase-tests: New file.
99185         * modules/unictype/property-other-math-tests: New file.
99186         * modules/unictype/property-other-uppercase-tests: New file.
99187         * modules/unictype/property-paired-punctuation-tests: New file.
99188         * modules/unictype/property-paragraph-separator-tests: New file.
99189         * modules/unictype/property-pattern-syntax-tests: New file.
99190         * modules/unictype/property-pattern-white-space-tests: New file.
99191         * modules/unictype/property-private-use-tests: New file.
99192         * modules/unictype/property-punctuation-tests: New file.
99193         * modules/unictype/property-quotation-mark-tests: New file.
99194         * modules/unictype/property-radical-tests: New file.
99195         * modules/unictype/property-sentence-terminal-tests: New file.
99196         * modules/unictype/property-soft-dotted-tests: New file.
99197         * modules/unictype/property-space-tests: New file.
99198         * modules/unictype/property-terminal-punctuation-tests: New file.
99199         * modules/unictype/property-test-tests: New file.
99200         * modules/unictype/property-titlecase-tests: New file.
99201         * modules/unictype/property-unassigned-code-value-tests: New file.
99202         * modules/unictype/property-unified-ideograph-tests: New file.
99203         * modules/unictype/property-uppercase-tests: New file.
99204         * modules/unictype/property-variation-selector-tests: New file.
99205         * modules/unictype/property-white-space-tests: New file.
99206         * modules/unictype/property-xid-continue-tests: New file.
99207         * modules/unictype/property-xid-start-tests: New file.
99208         * modules/unictype/property-zero-width-tests: New file.
99209         * modules/unictype/scripts-tests: New file.
99210         * modules/unictype/syntax-c-ident-tests: New file.
99211         * modules/unictype/syntax-c-whitespace-tests: New file.
99212         * modules/unictype/syntax-java-ident-tests: New file.
99213         * modules/unictype/syntax-java-whitespace-tests: New file.
99214         * tests/unictype/test-bidi_byname.c: New file.
99215         * tests/unictype/test-bidi_name.c: New file.
99216         * tests/unictype/test-bidi_of.c: New file.
99217         * tests/unictype/test-bidi_test.c: New file.
99218         * tests/unictype/test-block_list.c: New file.
99219         * tests/unictype/test-block_of.c: New file.
99220         * tests/unictype/test-block_test.c: New file.
99221         * tests/unictype/test-categ_and.c: New file.
99222         * tests/unictype/test-categ_and_not.c: New file.
99223         * tests/unictype/test-categ_byname.c: New file.
99224         * tests/unictype/test-categ_name.c: New file.
99225         * tests/unictype/test-categ_none.c: New file.
99226         * tests/unictype/test-categ_of.c: New file.
99227         * tests/unictype/test-categ_or.c: New file.
99228         * tests/unictype/test-categ_test_withtable.c: New file.
99229         * tests/unictype/test-combining.c: New file.
99230         * tests/unictype/test-decdigit.c: New file.
99231         * tests/unictype/test-digit.c: New file.
99232         * tests/unictype/test-mirror.c: New file.
99233         * tests/unictype/test-numeric.c: New file.
99234         * tests/unictype/test-pr_byname.c: New file.
99235         * tests/unictype/test-pr_test.c: New file.
99236         * tests/unictype/test-predicate-part1.h: New file.
99237         * tests/unictype/test-predicate-part2.h: New file.
99238         * tests/unictype/test-scripts.c: New file.
99239         * tests/unictype/test-sy_c_ident.c: New file.
99240         * tests/unictype/test-sy_java_ident.c: New file.
99242         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
99243         for Unicode 5.0.0.
99244         * tests/unictype/test-categ_Cc.c: Likewise.
99245         * tests/unictype/test-categ_Cf.c: Likewise.
99246         * tests/unictype/test-categ_Cn.c: Likewise.
99247         * tests/unictype/test-categ_Co.c: Likewise.
99248         * tests/unictype/test-categ_Cs.c: Likewise.
99249         * tests/unictype/test-categ_L.c: Likewise.
99250         * tests/unictype/test-categ_Ll.c: Likewise.
99251         * tests/unictype/test-categ_Lm.c: Likewise.
99252         * tests/unictype/test-categ_Lo.c: Likewise.
99253         * tests/unictype/test-categ_Lt.c: Likewise.
99254         * tests/unictype/test-categ_Lu.c: Likewise.
99255         * tests/unictype/test-categ_M.c: Likewise.
99256         * tests/unictype/test-categ_Mc.c: Likewise.
99257         * tests/unictype/test-categ_Me.c: Likewise.
99258         * tests/unictype/test-categ_Mn.c: Likewise.
99259         * tests/unictype/test-categ_N.c: Likewise.
99260         * tests/unictype/test-categ_Nd.c: Likewise.
99261         * tests/unictype/test-categ_Nl.c: Likewise.
99262         * tests/unictype/test-categ_No.c: Likewise.
99263         * tests/unictype/test-categ_P.c: Likewise.
99264         * tests/unictype/test-categ_Pc.c: Likewise.
99265         * tests/unictype/test-categ_Pd.c: Likewise.
99266         * tests/unictype/test-categ_Pe.c: Likewise.
99267         * tests/unictype/test-categ_Pf.c: Likewise.
99268         * tests/unictype/test-categ_Pi.c: Likewise.
99269         * tests/unictype/test-categ_Po.c: Likewise.
99270         * tests/unictype/test-categ_Ps.c: Likewise.
99271         * tests/unictype/test-categ_S.c: Likewise.
99272         * tests/unictype/test-categ_Sc.c: Likewise.
99273         * tests/unictype/test-categ_Sk.c: Likewise.
99274         * tests/unictype/test-categ_Sm.c: Likewise.
99275         * tests/unictype/test-categ_So.c: Likewise.
99276         * tests/unictype/test-categ_Z.c: Likewise.
99277         * tests/unictype/test-categ_Zl.c: Likewise.
99278         * tests/unictype/test-categ_Zp.c: Likewise.
99279         * tests/unictype/test-categ_Zs.c: Likewise.
99280         * tests/unictype/test-ctype_alnum.c: Likewise.
99281         * tests/unictype/test-ctype_alpha.c: Likewise.
99282         * tests/unictype/test-ctype_blank.c: Likewise.
99283         * tests/unictype/test-ctype_cntrl.c: Likewise.
99284         * tests/unictype/test-ctype_digit.c: Likewise.
99285         * tests/unictype/test-ctype_graph.c: Likewise.
99286         * tests/unictype/test-ctype_lower.c: Likewise.
99287         * tests/unictype/test-ctype_print.c: Likewise.
99288         * tests/unictype/test-ctype_punct.c: Likewise.
99289         * tests/unictype/test-ctype_space.c: Likewise.
99290         * tests/unictype/test-ctype_upper.c: Likewise.
99291         * tests/unictype/test-ctype_xdigit.c: Likewise.
99292         * tests/unictype/test-decdigit.h: Likewise.
99293         * tests/unictype/test-digit.h: Likewise.
99294         * tests/unictype/test-numeric.h: Likewise.
99295         * tests/unictype/test-pr_alphabetic.c: Likewise.
99296         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
99297         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
99298         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
99299         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
99300         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
99301         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
99302         * tests/unictype/test-pr_bidi_control.c: Likewise.
99303         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
99304         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
99305         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
99306         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
99307         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
99308         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
99309         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
99310         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
99311         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
99312         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
99313         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
99314         * tests/unictype/test-pr_combining.c: Likewise.
99315         * tests/unictype/test-pr_composite.c: Likewise.
99316         * tests/unictype/test-pr_currency_symbol.c: Likewise.
99317         * tests/unictype/test-pr_dash.c: Likewise.
99318         * tests/unictype/test-pr_decimal_digit.c: Likewise.
99319         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
99320         * tests/unictype/test-pr_deprecated.c: Likewise.
99321         * tests/unictype/test-pr_diacritic.c: Likewise.
99322         * tests/unictype/test-pr_extender.c: Likewise.
99323         * tests/unictype/test-pr_format_control.c: Likewise.
99324         * tests/unictype/test-pr_grapheme_base.c: Likewise.
99325         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
99326         * tests/unictype/test-pr_grapheme_link.c: Likewise.
99327         * tests/unictype/test-pr_hex_digit.c: Likewise.
99328         * tests/unictype/test-pr_hyphen.c: Likewise.
99329         * tests/unictype/test-pr_id_continue.c: Likewise.
99330         * tests/unictype/test-pr_id_start.c: Likewise.
99331         * tests/unictype/test-pr_ideographic.c: Likewise.
99332         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
99333         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
99334         * tests/unictype/test-pr_ignorable_control.c: Likewise.
99335         * tests/unictype/test-pr_iso_control.c: Likewise.
99336         * tests/unictype/test-pr_join_control.c: Likewise.
99337         * tests/unictype/test-pr_left_of_pair.c: Likewise.
99338         * tests/unictype/test-pr_line_separator.c: Likewise.
99339         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
99340         * tests/unictype/test-pr_lowercase.c: Likewise.
99341         * tests/unictype/test-pr_math.c: Likewise.
99342         * tests/unictype/test-pr_non_break.c: Likewise.
99343         * tests/unictype/test-pr_not_a_character.c: Likewise.
99344         * tests/unictype/test-pr_numeric.c: Likewise.
99345         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
99346         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
99347         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
99348         * tests/unictype/test-pr_other_id_continue.c: Likewise.
99349         * tests/unictype/test-pr_other_id_start.c: Likewise.
99350         * tests/unictype/test-pr_other_lowercase.c: Likewise.
99351         * tests/unictype/test-pr_other_math.c: Likewise.
99352         * tests/unictype/test-pr_other_uppercase.c: Likewise.
99353         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
99354         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
99355         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
99356         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
99357         * tests/unictype/test-pr_private_use.c: Likewise.
99358         * tests/unictype/test-pr_punctuation.c: Likewise.
99359         * tests/unictype/test-pr_quotation_mark.c: Likewise.
99360         * tests/unictype/test-pr_radical.c: Likewise.
99361         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
99362         * tests/unictype/test-pr_soft_dotted.c: Likewise.
99363         * tests/unictype/test-pr_space.c: Likewise.
99364         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
99365         * tests/unictype/test-pr_titlecase.c: Likewise.
99366         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
99367         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
99368         * tests/unictype/test-pr_uppercase.c: Likewise.
99369         * tests/unictype/test-pr_variation_selector.c: Likewise.
99370         * tests/unictype/test-pr_white_space.c: Likewise.
99371         * tests/unictype/test-pr_xid_continue.c: Likewise.
99372         * tests/unictype/test-pr_xid_start.c: Likewise.
99373         * tests/unictype/test-pr_zero_width.c: Likewise.
99374         * tests/unictype/test-sy_c_whitespace.c: Likewise.
99375         * tests/unictype/test-sy_java_whitespace.c: Likewise.
99377 2007-11-12  Bruno Haible  <bruno@clisp.org>
99379         Unicode character classification functions.
99380         * lib/unictype.h: New file.
99381         * modules/unictype/base: New file.
99382         * modules/unictype/category-L: New file.
99383         * modules/unictype/category-Lu: New file.
99384         * modules/unictype/category-Ll: New file.
99385         * modules/unictype/category-Lt: New file.
99386         * modules/unictype/category-Lm: New file.
99387         * modules/unictype/category-Lo: New file.
99388         * modules/unictype/category-M: New file.
99389         * modules/unictype/category-Mn: New file.
99390         * modules/unictype/category-Mc: New file.
99391         * modules/unictype/category-Me: New file.
99392         * modules/unictype/category-N: New file.
99393         * modules/unictype/category-Nd: New file.
99394         * modules/unictype/category-Nl: New file.
99395         * modules/unictype/category-No: New file.
99396         * modules/unictype/category-P: New file.
99397         * modules/unictype/category-Pc: New file.
99398         * modules/unictype/category-Pd: New file.
99399         * modules/unictype/category-Ps: New file.
99400         * modules/unictype/category-Pe: New file.
99401         * modules/unictype/category-Pi: New file.
99402         * modules/unictype/category-Pf: New file.
99403         * modules/unictype/category-Po: New file.
99404         * modules/unictype/category-S: New file.
99405         * modules/unictype/category-Sm: New file.
99406         * modules/unictype/category-Sc: New file.
99407         * modules/unictype/category-Sk: New file.
99408         * modules/unictype/category-So: New file.
99409         * modules/unictype/category-Z: New file.
99410         * modules/unictype/category-Zs: New file.
99411         * modules/unictype/category-Zl: New file.
99412         * modules/unictype/category-Zp: New file.
99413         * modules/unictype/category-C: New file.
99414         * modules/unictype/category-Cc: New file.
99415         * modules/unictype/category-Cf: New file.
99416         * modules/unictype/category-Cs: New file.
99417         * modules/unictype/category-Co: New file.
99418         * modules/unictype/category-Cn: New file.
99419         * modules/unictype/category-or: New file.
99420         * modules/unictype/category-of: New file.
99421         * modules/unictype/category-test: New file.
99422         * modules/unictype/category-test-withtable: New file.
99423         * modules/unictype/category-byname: New file.
99424         * modules/unictype/category-none: New file.
99425         * modules/unictype/category-and: New file.
99426         * modules/unictype/category-and-not: New file.
99427         * modules/unictype/category-name: New file.
99428         * modules/unictype/combining-class: New file.
99429         * modules/unictype/category-all: New file.
99430         * modules/unictype/bidicategory-all: New file.
99431         * modules/unictype/bidicategory-byname: New file.
99432         * modules/unictype/bidicategory-name: New file.
99433         * modules/unictype/bidicategory-of: New file.
99434         * modules/unictype/bidicategory-test: New file.
99435         * modules/unictype/decimal-digit: New file.
99436         * modules/unictype/digit: New file.
99437         * modules/unictype/numeric: New file.
99438         * modules/unictype/mirror: New file.
99439         * modules/unictype/property-white-space: New file.
99440         * modules/unictype/property-alphabetic: New file.
99441         * modules/unictype/property-other-alphabetic: New file.
99442         * modules/unictype/property-not-a-character: New file.
99443         * modules/unictype/property-default-ignorable-code-point: New file.
99444         * modules/unictype/property-other-default-ignorable-code-point: New
99445         file.
99446         * modules/unictype/property-deprecated: New file.
99447         * modules/unictype/property-logical-order-exception: New file.
99448         * modules/unictype/property-variation-selector: New file.
99449         * modules/unictype/property-private-use: New file.
99450         * modules/unictype/property-unassigned-code-value: New file.
99451         * modules/unictype/property-uppercase: New file.
99452         * modules/unictype/property-other-uppercase: New file.
99453         * modules/unictype/property-lowercase: New file.
99454         * modules/unictype/property-other-lowercase: New file.
99455         * modules/unictype/property-titlecase: New file.
99456         * modules/unictype/property-soft-dotted: New file.
99457         * modules/unictype/property-id-start: New file.
99458         * modules/unictype/property-other-id-start: New file.
99459         * modules/unictype/property-id-continue: New file.
99460         * modules/unictype/property-other-id-continue: New file.
99461         * modules/unictype/property-xid-start: New file.
99462         * modules/unictype/property-xid-continue: New file.
99463         * modules/unictype/property-pattern-white-space: New file.
99464         * modules/unictype/property-pattern-syntax: New file.
99465         * modules/unictype/property-join-control: New file.
99466         * modules/unictype/property-grapheme-base: New file.
99467         * modules/unictype/property-grapheme-extend: New file.
99468         * modules/unictype/property-other-grapheme-extend: New file.
99469         * modules/unictype/property-grapheme-link: New file.
99470         * modules/unictype/property-bidi-control: New file.
99471         * modules/unictype/property-bidi-left-to-right: New file.
99472         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99473         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99474         * modules/unictype/property-bidi-european-digit: New file.
99475         * modules/unictype/property-bidi-eur-num-separator: New file.
99476         * modules/unictype/property-bidi-eur-num-terminator: New file.
99477         * modules/unictype/property-bidi-arabic-digit: New file.
99478         * modules/unictype/property-bidi-common-separator: New file.
99479         * modules/unictype/property-bidi-block-separator: New file.
99480         * modules/unictype/property-bidi-segment-separator: New file.
99481         * modules/unictype/property-bidi-whitespace: New file.
99482         * modules/unictype/property-bidi-non-spacing-mark: New file.
99483         * modules/unictype/property-bidi-boundary-neutral: New file.
99484         * modules/unictype/property-bidi-pdf: New file.
99485         * modules/unictype/property-bidi-embedding-or-override: New file.
99486         * modules/unictype/property-bidi-other-neutral: New file.
99487         * modules/unictype/property-hex-digit: New file.
99488         * modules/unictype/property-ascii-hex-digit: New file.
99489         * modules/unictype/property-ideographic: New file.
99490         * modules/unictype/property-unified-ideograph: New file.
99491         * modules/unictype/property-radical: New file.
99492         * modules/unictype/property-ids-binary-operator: New file.
99493         * modules/unictype/property-ids-trinary-operator: New file.
99494         * modules/unictype/property-zero-width: New file.
99495         * modules/unictype/property-space: New file.
99496         * modules/unictype/property-non-break: New file.
99497         * modules/unictype/property-iso-control: New file.
99498         * modules/unictype/property-format-control: New file.
99499         * modules/unictype/property-dash: New file.
99500         * modules/unictype/property-hyphen: New file.
99501         * modules/unictype/property-punctuation: New file.
99502         * modules/unictype/property-line-separator: New file.
99503         * modules/unictype/property-paragraph-separator: New file.
99504         * modules/unictype/property-quotation-mark: New file.
99505         * modules/unictype/property-sentence-terminal: New file.
99506         * modules/unictype/property-terminal-punctuation: New file.
99507         * modules/unictype/property-currency-symbol: New file.
99508         * modules/unictype/property-math: New file.
99509         * modules/unictype/property-other-math: New file.
99510         * modules/unictype/property-paired-punctuation: New file.
99511         * modules/unictype/property-left-of-pair: New file.
99512         * modules/unictype/property-combining: New file.
99513         * modules/unictype/property-composite: New file.
99514         * modules/unictype/property-decimal-digit: New file.
99515         * modules/unictype/property-numeric: New file.
99516         * modules/unictype/property-diacritic: New file.
99517         * modules/unictype/property-extender: New file.
99518         * modules/unictype/property-ignorable-control: New file.
99519         * modules/unictype/property-test: New file.
99520         * modules/unictype/property-byname: New file.
99521         * modules/unictype/property-all: New file.
99522         * modules/unictype/scripts: New file.
99523         * modules/unictype/scripts-all: New file.
99524         * modules/unictype/block-of: New file.
99525         * modules/unictype/block-test: New file.
99526         * modules/unictype/block-list: New file.
99527         * modules/unictype/block-all: New file.
99528         * modules/unictype/syntax-c-whitespace: New file.
99529         * modules/unictype/syntax-java-whitespace: New file.
99530         * modules/unictype/syntax-c-ident: New file.
99531         * modules/unictype/syntax-java-ident: New file.
99532         * modules/unictype/ctype-alnum: New file.
99533         * modules/unictype/ctype-alpha: New file.
99534         * modules/unictype/ctype-cntrl: New file.
99535         * modules/unictype/ctype-digit: New file.
99536         * modules/unictype/ctype-graph: New file.
99537         * modules/unictype/ctype-lower: New file.
99538         * modules/unictype/ctype-print: New file.
99539         * modules/unictype/ctype-punct: New file.
99540         * modules/unictype/ctype-space: New file.
99541         * modules/unictype/ctype-upper: New file.
99542         * modules/unictype/ctype-xdigit: New file.
99543         * modules/unictype/ctype-blank: New file.
99544         * lib/unictype/bidi_byname.c: New file.
99545         * lib/unictype/bidi_name.c: New file.
99546         * lib/unictype/bidi_of.c: New file.
99547         * lib/unictype/bidi_test.c: New file.
99548         * lib/unictype/bitmap.h: New file.
99549         * lib/unictype/block_test.c: New file.
99550         * lib/unictype/blocks.c: New file.
99551         * lib/unictype/categ_C.c: New file.
99552         * lib/unictype/categ_Cc.c: New file.
99553         * lib/unictype/categ_Cf.c: New file.
99554         * lib/unictype/categ_Cn.c: New file.
99555         * lib/unictype/categ_Co.c: New file.
99556         * lib/unictype/categ_Cs.c: New file.
99557         * lib/unictype/categ_L.c: New file.
99558         * lib/unictype/categ_Ll.c: New file.
99559         * lib/unictype/categ_Lm.c: New file.
99560         * lib/unictype/categ_Lo.c: New file.
99561         * lib/unictype/categ_Lt.c: New file.
99562         * lib/unictype/categ_Lu.c: New file.
99563         * lib/unictype/categ_M.c: New file.
99564         * lib/unictype/categ_Mc.c: New file.
99565         * lib/unictype/categ_Me.c: New file.
99566         * lib/unictype/categ_Mn.c: New file.
99567         * lib/unictype/categ_N.c: New file.
99568         * lib/unictype/categ_Nd.c: New file.
99569         * lib/unictype/categ_Nl.c: New file.
99570         * lib/unictype/categ_No.c: New file.
99571         * lib/unictype/categ_P.c: New file.
99572         * lib/unictype/categ_Pc.c: New file.
99573         * lib/unictype/categ_Pd.c: New file.
99574         * lib/unictype/categ_Pe.c: New file.
99575         * lib/unictype/categ_Pf.c: New file.
99576         * lib/unictype/categ_Pi.c: New file.
99577         * lib/unictype/categ_Po.c: New file.
99578         * lib/unictype/categ_Ps.c: New file.
99579         * lib/unictype/categ_S.c: New file.
99580         * lib/unictype/categ_Sc.c: New file.
99581         * lib/unictype/categ_Sk.c: New file.
99582         * lib/unictype/categ_Sm.c: New file.
99583         * lib/unictype/categ_So.c: New file.
99584         * lib/unictype/categ_Z.c: New file.
99585         * lib/unictype/categ_Zl.c: New file.
99586         * lib/unictype/categ_Zp.c: New file.
99587         * lib/unictype/categ_Zs.c: New file.
99588         * lib/unictype/categ_and.c: New file.
99589         * lib/unictype/categ_and_not.c: New file.
99590         * lib/unictype/categ_byname.c: New file.
99591         * lib/unictype/categ_name.c: New file.
99592         * lib/unictype/categ_none.c: New file.
99593         * lib/unictype/categ_of.c: New file.
99594         * lib/unictype/categ_or.c: New file.
99595         * lib/unictype/categ_test.c: New file.
99596         * lib/unictype/combining.c: New file.
99597         * lib/unictype/ctype_alnum.c: New file.
99598         * lib/unictype/ctype_alpha.c: New file.
99599         * lib/unictype/ctype_blank.c: New file.
99600         * lib/unictype/ctype_cntrl.c: New file.
99601         * lib/unictype/ctype_digit.c: New file.
99602         * lib/unictype/ctype_graph.c: New file.
99603         * lib/unictype/ctype_lower.c: New file.
99604         * lib/unictype/ctype_print.c: New file.
99605         * lib/unictype/ctype_punct.c: New file.
99606         * lib/unictype/ctype_space.c: New file.
99607         * lib/unictype/ctype_upper.c: New file.
99608         * lib/unictype/ctype_xdigit.c: New file.
99609         * lib/unictype/decdigit.c: New file.
99610         * lib/unictype/digit.c: New file.
99611         * lib/unictype/identsyntaxmap.h: New file.
99612         * lib/unictype/mirror.c: New file.
99613         * lib/unictype/numeric.c: New file.
99614         * lib/unictype/pr_alphabetic.c: New file.
99615         * lib/unictype/pr_ascii_hex_digit.c: New file.
99616         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99617         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99618         * lib/unictype/pr_bidi_block_separator.c: New file.
99619         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99620         * lib/unictype/pr_bidi_common_separator.c: New file.
99621         * lib/unictype/pr_bidi_control.c: New file.
99622         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99623         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99624         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99625         * lib/unictype/pr_bidi_european_digit.c: New file.
99626         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99627         * lib/unictype/pr_bidi_left_to_right.c: New file.
99628         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99629         * lib/unictype/pr_bidi_other_neutral.c: New file.
99630         * lib/unictype/pr_bidi_pdf.c: New file.
99631         * lib/unictype/pr_bidi_segment_separator.c: New file.
99632         * lib/unictype/pr_bidi_whitespace.c: New file.
99633         * lib/unictype/pr_byname.c: New file.
99634         * lib/unictype/pr_byname.gperf: New file.
99635         * lib/unictype/pr_combining.c: New file.
99636         * lib/unictype/pr_composite.c: New file.
99637         * lib/unictype/pr_currency_symbol.c: New file.
99638         * lib/unictype/pr_dash.c: New file.
99639         * lib/unictype/pr_decimal_digit.c: New file.
99640         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99641         * lib/unictype/pr_deprecated.c: New file.
99642         * lib/unictype/pr_diacritic.c: New file.
99643         * lib/unictype/pr_extender.c: New file.
99644         * lib/unictype/pr_format_control.c: New file.
99645         * lib/unictype/pr_grapheme_base.c: New file.
99646         * lib/unictype/pr_grapheme_extend.c: New file.
99647         * lib/unictype/pr_grapheme_link.c: New file.
99648         * lib/unictype/pr_hex_digit.c: New file.
99649         * lib/unictype/pr_hyphen.c: New file.
99650         * lib/unictype/pr_id_continue.c: New file.
99651         * lib/unictype/pr_id_start.c: New file.
99652         * lib/unictype/pr_ideographic.c: New file.
99653         * lib/unictype/pr_ids_binary_operator.c: New file.
99654         * lib/unictype/pr_ids_trinary_operator.c: New file.
99655         * lib/unictype/pr_ignorable_control.c: New file.
99656         * lib/unictype/pr_iso_control.c: New file.
99657         * lib/unictype/pr_join_control.c: New file.
99658         * lib/unictype/pr_left_of_pair.c: New file.
99659         * lib/unictype/pr_line_separator.c: New file.
99660         * lib/unictype/pr_logical_order_exception.c: New file.
99661         * lib/unictype/pr_lowercase.c: New file.
99662         * lib/unictype/pr_math.c: New file.
99663         * lib/unictype/pr_non_break.c: New file.
99664         * lib/unictype/pr_not_a_character.c: New file.
99665         * lib/unictype/pr_numeric.c: New file.
99666         * lib/unictype/pr_other_alphabetic.c: New file.
99667         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99668         * lib/unictype/pr_other_grapheme_extend.c: New file.
99669         * lib/unictype/pr_other_id_continue.c: New file.
99670         * lib/unictype/pr_other_id_start.c: New file.
99671         * lib/unictype/pr_other_lowercase.c: New file.
99672         * lib/unictype/pr_other_math.c: New file.
99673         * lib/unictype/pr_other_uppercase.c: New file.
99674         * lib/unictype/pr_paired_punctuation.c: New file.
99675         * lib/unictype/pr_paragraph_separator.c: New file.
99676         * lib/unictype/pr_pattern_syntax.c: New file.
99677         * lib/unictype/pr_pattern_white_space.c: New file.
99678         * lib/unictype/pr_private_use.c: New file.
99679         * lib/unictype/pr_punctuation.c: New file.
99680         * lib/unictype/pr_quotation_mark.c: New file.
99681         * lib/unictype/pr_radical.c: New file.
99682         * lib/unictype/pr_sentence_terminal.c: New file.
99683         * lib/unictype/pr_soft_dotted.c: New file.
99684         * lib/unictype/pr_space.c: New file.
99685         * lib/unictype/pr_terminal_punctuation.c: New file.
99686         * lib/unictype/pr_test.c: New file.
99687         * lib/unictype/pr_titlecase.c: New file.
99688         * lib/unictype/pr_unassigned_code_value.c: New file.
99689         * lib/unictype/pr_unified_ideograph.c: New file.
99690         * lib/unictype/pr_uppercase.c: New file.
99691         * lib/unictype/pr_variation_selector.c: New file.
99692         * lib/unictype/pr_white_space.c: New file.
99693         * lib/unictype/pr_xid_continue.c: New file.
99694         * lib/unictype/pr_xid_start.c: New file.
99695         * lib/unictype/pr_zero_width.c: New file.
99696         * lib/unictype/scripts.c: New file.
99697         * lib/unictype/sy_c_ident.c: New file.
99698         * lib/unictype/sy_c_whitespace.c: New file.
99699         * lib/unictype/sy_java_ident.c: New file.
99700         * lib/unictype/sy_java_whitespace.c: New file.
99702         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99703         Unicode 5.0.0.
99704         * lib/unictype/blocks.h: Likewise.
99705         * lib/unictype/categ_C.h: Likewise.
99706         * lib/unictype/categ_Cc.h: Likewise.
99707         * lib/unictype/categ_Cf.h: Likewise.
99708         * lib/unictype/categ_Cn.h: Likewise.
99709         * lib/unictype/categ_Co.h: Likewise.
99710         * lib/unictype/categ_Cs.h: Likewise.
99711         * lib/unictype/categ_L.h: Likewise.
99712         * lib/unictype/categ_Ll.h: Likewise.
99713         * lib/unictype/categ_Lm.h: Likewise.
99714         * lib/unictype/categ_Lo.h: Likewise.
99715         * lib/unictype/categ_Lt.h: Likewise.
99716         * lib/unictype/categ_Lu.h: Likewise.
99717         * lib/unictype/categ_M.h: Likewise.
99718         * lib/unictype/categ_Mc.h: Likewise.
99719         * lib/unictype/categ_Me.h: Likewise.
99720         * lib/unictype/categ_Mn.h: Likewise.
99721         * lib/unictype/categ_N.h: Likewise.
99722         * lib/unictype/categ_Nd.h: Likewise.
99723         * lib/unictype/categ_Nl.h: Likewise.
99724         * lib/unictype/categ_No.h: Likewise.
99725         * lib/unictype/categ_P.h: Likewise.
99726         * lib/unictype/categ_Pc.h: Likewise.
99727         * lib/unictype/categ_Pd.h: Likewise.
99728         * lib/unictype/categ_Pe.h: Likewise.
99729         * lib/unictype/categ_Pf.h: Likewise.
99730         * lib/unictype/categ_Pi.h: Likewise.
99731         * lib/unictype/categ_Po.h: Likewise.
99732         * lib/unictype/categ_Ps.h: Likewise.
99733         * lib/unictype/categ_S.h: Likewise.
99734         * lib/unictype/categ_Sc.h: Likewise.
99735         * lib/unictype/categ_Sk.h: Likewise.
99736         * lib/unictype/categ_Sm.h: Likewise.
99737         * lib/unictype/categ_So.h: Likewise.
99738         * lib/unictype/categ_Z.h: Likewise.
99739         * lib/unictype/categ_Zl.h: Likewise.
99740         * lib/unictype/categ_Zp.h: Likewise.
99741         * lib/unictype/categ_Zs.h: Likewise.
99742         * lib/unictype/categ_of.h: Likewise.
99743         * lib/unictype/combining.h: Likewise.
99744         * lib/unictype/ctype_alnum.h: Likewise.
99745         * lib/unictype/ctype_alpha.h: Likewise.
99746         * lib/unictype/ctype_blank.h: Likewise.
99747         * lib/unictype/ctype_cntrl.h: Likewise.
99748         * lib/unictype/ctype_digit.h: Likewise.
99749         * lib/unictype/ctype_graph.h: Likewise.
99750         * lib/unictype/ctype_lower.h: Likewise.
99751         * lib/unictype/ctype_print.h: Likewise.
99752         * lib/unictype/ctype_punct.h: Likewise.
99753         * lib/unictype/ctype_space.h: Likewise.
99754         * lib/unictype/ctype_upper.h: Likewise.
99755         * lib/unictype/ctype_xdigit.h: Likewise.
99756         * lib/unictype/decdigit.h: Likewise.
99757         * lib/unictype/digit.h: Likewise.
99758         * lib/unictype/mirror.h: Likewise.
99759         * lib/unictype/numeric.h: Likewise.
99760         * lib/unictype/pr_alphabetic.h: Likewise.
99761         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99762         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99763         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99764         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99765         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99766         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99767         * lib/unictype/pr_bidi_control.h: Likewise.
99768         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99769         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99770         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99771         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99772         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99773         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99774         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99775         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99776         * lib/unictype/pr_bidi_pdf.h: Likewise.
99777         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99778         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99779         * lib/unictype/pr_combining.h: Likewise.
99780         * lib/unictype/pr_composite.h: Likewise.
99781         * lib/unictype/pr_currency_symbol.h: Likewise.
99782         * lib/unictype/pr_dash.h: Likewise.
99783         * lib/unictype/pr_decimal_digit.h: Likewise.
99784         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99785         * lib/unictype/pr_deprecated.h: Likewise.
99786         * lib/unictype/pr_diacritic.h: Likewise.
99787         * lib/unictype/pr_extender.h: Likewise.
99788         * lib/unictype/pr_format_control.h: Likewise.
99789         * lib/unictype/pr_grapheme_base.h: Likewise.
99790         * lib/unictype/pr_grapheme_extend.h: Likewise.
99791         * lib/unictype/pr_grapheme_link.h: Likewise.
99792         * lib/unictype/pr_hex_digit.h: Likewise.
99793         * lib/unictype/pr_hyphen.h: Likewise.
99794         * lib/unictype/pr_id_continue.h: Likewise.
99795         * lib/unictype/pr_id_start.h: Likewise.
99796         * lib/unictype/pr_ideographic.h: Likewise.
99797         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99798         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99799         * lib/unictype/pr_ignorable_control.h: Likewise.
99800         * lib/unictype/pr_iso_control.h: Likewise.
99801         * lib/unictype/pr_join_control.h: Likewise.
99802         * lib/unictype/pr_left_of_pair.h: Likewise.
99803         * lib/unictype/pr_line_separator.h: Likewise.
99804         * lib/unictype/pr_logical_order_exception.h: Likewise.
99805         * lib/unictype/pr_lowercase.h: Likewise.
99806         * lib/unictype/pr_math.h: Likewise.
99807         * lib/unictype/pr_non_break.h: Likewise.
99808         * lib/unictype/pr_not_a_character.h: Likewise.
99809         * lib/unictype/pr_numeric.h: Likewise.
99810         * lib/unictype/pr_other_alphabetic.h: Likewise.
99811         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99812         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99813         * lib/unictype/pr_other_id_continue.h: Likewise.
99814         * lib/unictype/pr_other_id_start.h: Likewise.
99815         * lib/unictype/pr_other_lowercase.h: Likewise.
99816         * lib/unictype/pr_other_math.h: Likewise.
99817         * lib/unictype/pr_other_uppercase.h: Likewise.
99818         * lib/unictype/pr_paired_punctuation.h: Likewise.
99819         * lib/unictype/pr_paragraph_separator.h: Likewise.
99820         * lib/unictype/pr_pattern_syntax.h: Likewise.
99821         * lib/unictype/pr_pattern_white_space.h: Likewise.
99822         * lib/unictype/pr_private_use.h: Likewise.
99823         * lib/unictype/pr_punctuation.h: Likewise.
99824         * lib/unictype/pr_quotation_mark.h: Likewise.
99825         * lib/unictype/pr_radical.h: Likewise.
99826         * lib/unictype/pr_sentence_terminal.h: Likewise.
99827         * lib/unictype/pr_soft_dotted.h: Likewise.
99828         * lib/unictype/pr_space.h: Likewise.
99829         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99830         * lib/unictype/pr_titlecase.h: Likewise.
99831         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99832         * lib/unictype/pr_unified_ideograph.h: Likewise.
99833         * lib/unictype/pr_uppercase.h: Likewise.
99834         * lib/unictype/pr_variation_selector.h: Likewise.
99835         * lib/unictype/pr_white_space.h: Likewise.
99836         * lib/unictype/pr_xid_continue.h: Likewise.
99837         * lib/unictype/pr_xid_start.h: Likewise.
99838         * lib/unictype/pr_zero_width.h: Likewise.
99839         * lib/unictype/scripts.h: Likewise.
99840         * lib/unictype/scripts_byname.gperf: Likewise.
99841         * lib/unictype/sy_c_ident.h: Likewise.
99842         * lib/unictype/sy_c_whitespace.h: Likewise.
99843         * lib/unictype/sy_java_ident.h: Likewise.
99844         * lib/unictype/sy_java_whitespace.h: Likewise.
99846         * lib/unictype/Makefile: New file.
99847         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99848         glibc.
99849         * lib/unictype/3level.h: New file, copied from glibc.
99850         * lib/unictype/3levelbit.h: New file.
99852 2007-11-11  Bruno Haible  <bruno@clisp.org>
99854         * modules/gperf: New file.
99855         * modules/iconv_open (Depends-on): Add it.
99856         (Makefile.am): Remove the GPERF definition.
99858 2007-11-11  Bruno Haible  <bruno@clisp.org>
99860         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99861         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99863 2007-11-11  Bruno Haible  <bruno@clisp.org>
99865         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99866         (usage): Remove function.
99868 2007-11-11  Bruno Haible  <bruno@clisp.org>
99870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99871         gl_FUNC_CEILF_LIBS.
99872         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99873         gl_FUNC_CEIL_LIBS.
99874         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99875         gl_FUNC_CEILL_LIBS.
99876         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99877         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99878         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99880 2007-11-11  Bruno Haible  <bruno@clisp.org>
99882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99883         roundf were declared but do not exist on functions.
99884         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99885         roundl were declared but do not exist on functions.
99886         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99887         HAVE_FLOORL_AND_CEILL, respectively.
99888         Needed for Sun C on Solaris 10.
99890 2007-11-11  Bruno Haible  <bruno@clisp.org>
99892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99893         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99894         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99895         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99897         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99898         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99899         HAVE_DECL_ROUNDF.
99900         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99901         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99903         of HAVE_DECL_ROUND*.
99904         * modules/math (Makefile.am): Update.
99906 2007-11-10  Bruno Haible  <bruno@clisp.org>
99908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99909         ptrdiff_t as m4/intl.m4.
99911 2007-11-10  Jim Meyering  <meyering@redhat.com>
99913         Avoid link failure for the argmatch test.
99914         * tests/test-argmatch.c (usage): Define function to avoid a link
99915         failure: argmatch_die requires a usage function.
99917 2007-11-09  Bruno Haible  <bruno@clisp.org>
99919         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99920         * doc/functions/vsnprintf.texi: Likewise.
99921         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99922         with a size argument < 2.
99924 2007-11-09  Bruno Haible  <bruno@clisp.org>
99926         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99927         buffer. Fixes an inefficiency introduced on 2007-11-03.
99929 2007-11-09  Bruno Haible  <bruno@clisp.org>
99931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99932         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99934 2007-11-08  Jim Meyering  <meyering@redhat.com>
99936         Change cache variable name prefix "jm_" to "gl_" everywhere.
99937         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99938         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99939         * m4/uptime.m4: s/gl_/jm_/
99941 2007-11-07  Bruno Haible  <bruno@clisp.org>
99943         Update to GNU gettext 0.17.
99944         * m4/intl.m4: Update to GNU gettext 0.17.
99945         * m4/po.m4: Likewise.
99946         * modules/gettext (Files): Remove m4/ulonglong.m4.
99947         (configure.ac): Require gettext infrastructure from version 0.17.
99949 2007-11-06  Bruno Haible  <bruno@clisp.org>
99951         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99952         symbolic values are not defined in a public header.
99953         * lib/freadable.c (freadable) [QNX]: Likewise.
99954         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99955         * lib/freading.c (freading) [QNX]: Likewise.
99956         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99957         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99958         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99959         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99960         Reported by Alain Magloire.
99962         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99964 2007-11-05  Bruno Haible  <bruno@clisp.org>
99966         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99967         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99968         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99969         Reported by Eric Blake.
99971 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99972             Bruno Haible  <bruno@clisp.org>
99974         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99975         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99976         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99977         (malloc): Undefine also before including <stdlib.h>.
99978         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99979         Needed on OSF/1 4.0.
99981 2007-11-05  Jim Meyering  <meyering@redhat.com>
99983         git-version-gen: sync from coreutils.
99984         * build-aux/git-version-gen: Add comments.
99985         Change the first '-' to '.' in the snapshot version string,
99986         e.g., 6.9-377-08144 -> 6.9.377-08144
99987         Remove first parameter.
99988         Don't declare a version "-dirty" merely because a time
99989         stamp has changed.
99991 2007-11-04  Bruno Haible  <bruno@clisp.org>
99993         * lib/lock.h: Protect all macro definitions containing an 'if'
99994         statement through a "do { ... } while (0)".
99995         * lib/tls.h: Likewise.
99997 2007-11-04  Bruno Haible  <bruno@clisp.org>
99999         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
100001 2007-11-04  Bruno Haible  <bruno@clisp.org>
100003         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
100004         * modules/fprintf-posix (Depends-on): Add nocrash.
100005         * modules/snprintf-posix (Depends-on): Likewise.
100006         * modules/sprintf-posix (Depends-on): Likewise.
100007         * modules/vasnprintf-posix (Depends-on): Likewise.
100008         * modules/vasprintf-posix (Depends-on): Likewise.
100009         * modules/vfprintf-posix (Depends-on): Likewise.
100010         * modules/vsnprintf-posix (Depends-on): Likewise.
100011         * modules/vsprintf-posix (Depends-on): Likewise.
100012         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
100013         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
100014         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
100015         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
100016         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
100017         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
100018         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
100020 2007-11-04  Bruno Haible  <bruno@clisp.org>
100022         * modules/nocrash: New file.
100023         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
100024         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
100026 2007-11-04  Bruno Haible  <bruno@clisp.org>
100028         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
100029         precision handling.
100030         * tests/test-vasprintf-posix.c (test_function): Likewise.
100031         * tests/test-snprintf-posix.h (test_function): Likewise.
100032         * tests/test-sprintf-posix.h (test_function): Likewise.
100034         Fix *printf behaviour for large precisions on mingw and BeOS.
100035         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
100036         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
100037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
100038         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100040         gl_PRINTF_PRECISION and test its result. Invoke
100041         gl_PREREQ_VASNPRINTF_PRECISION.
100042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100049         * doc/functions/fprintf.texi: Update.
100050         * doc/functions/printf.texi: Update.
100051         * doc/functions/snprintf.texi: Update.
100052         * doc/functions/sprintf.texi: Update.
100053         * doc/functions/vfprintf.texi: Update.
100054         * doc/functions/vprintf.texi: Update.
100055         * doc/functions/vsnprintf.texi: Update.
100056         * doc/functions/vsprintf.texi: Update.
100058 2007-11-04  Bruno Haible  <bruno@clisp.org>
100060         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
100062 2007-11-04  Bruno Haible  <bruno@clisp.org>
100064         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
100065         Reported by Sylvain Beucler <beuc@gnu.org>.
100067 2007-11-03  Bruno Haible  <bruno@clisp.org>
100069         * tests/test-fprintf-posix2.sh: New file.
100070         * tests/test-fprintf-posix2.c: New file.
100071         * modules/fprintf-posix-tests (Files): Add them.
100072         (TESTS): Add test-fprintf-posix2.sh.
100073         (configure.ac): Check for getrlimit and setrlimit.
100074         (check_PROGRAMS): Add test-fprintf-posix2.
100076         * tests/test-printf-posix2.sh: New file.
100077         * tests/test-printf-posix2.c: New file.
100078         * modules/printf-posix-tests (Files): Add them.
100079         (TESTS): Add test-printf-posix2.sh.
100080         (configure.ac): Check for getrlimit and setrlimit.
100081         (check_PROGRAMS): Add test-printf-posix2.
100083         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
100084         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
100085         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
100086         (decode_double): New function, copied from decode_long_double.
100087         (scale10_round_decimal_decoded): New function, extracted from
100088         scale10_round_decimal_long_double.
100089         (scale10_round_decimal_long_double): Use it.
100090         (scale10_round_decimal_double): New function.
100091         (floorlog10): New function.
100092         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
100093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
100094         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100096         gl_PRINTF_ENOMEM and test its result. Invoke
100097         gl_PREREQ_VASNPRINTF_ENOMEM.
100098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100099         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100105         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
100106         * modules/snprintf-posix (Depends-on): Likewise.
100107         * modules/sprintf-posix (Depends-on): Likewise.
100108         * modules/vasnprintf-posix (Depends-on): Likewise.
100109         * modules/vasprintf-posix (Depends-on): Likewise.
100110         * modules/vfprintf-posix (Depends-on): Likewise.
100111         * modules/vsnprintf-posix (Depends-on): Likewise.
100112         * modules/vsprintf-posix (Depends-on): Likewise.
100113         * doc/functions/fprintf.texi: Update.
100114         * doc/functions/printf.texi: Update.
100115         * doc/functions/snprintf.texi: Update.
100116         * doc/functions/sprintf.texi: Update.
100117         * doc/functions/vfprintf.texi: Update.
100118         * doc/functions/vprintf.texi: Update.
100119         * doc/functions/vsnprintf.texi: Update.
100120         * doc/functions/vsprintf.texi: Update.
100122 2007-11-03  Bruno Haible  <bruno@clisp.org>
100124         * modules/frexp-nolibm-tests: New file.
100126         * modules/frexp-nolibm: New file.
100127         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
100129 2007-11-03  Bruno Haible  <bruno@clisp.org>
100131         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
100132         value is C99 compliant.
100133         Needed for OSF/1 5.1.
100135 2007-11-03  Bruno Haible  <bruno@clisp.org>
100137         Fix out-of-memory handling of vasnprintf.
100138         * lib/printf-parse.c: Include <errno.h>.
100139         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
100140         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
100141         is already set.
100143 2007-11-02  Eric Blake  <ebb9@byu.net>
100145         Fix tests on cygwin.
100146         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
100148 2007-11-01  Bruno Haible  <bruno@clisp.org>
100150         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
100151         warning.
100152         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
100153         needed for POSIX compatibility.
100155 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100157         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
100158         for compatibility with GNU.
100160 2007-11-01  Bruno Haible  <bruno@clisp.org>
100162         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
100163         (putenv): Renamed from rpl_putenv. Change argument type from
100164         'const char *' to 'char *'.
100165         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
100166         of defining putenv in config.h, just set REPLACE_PUTENV.
100167         * modules/putenv (Depends-on): Add stdlib.
100168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
100169         (Include): Use <stdlib.h>.
100170         * lib/stdlib.in.h (putenv): New declaration.
100171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
100172         REPLACE_PUTENV.
100173         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
100174         REPLACE_PUTENV.
100175         Needed for MacOS X 10.5.0.
100176         Reported by Peter O'Gorman <peter@pogma.com>.
100178 2007-11-01  Jim Meyering  <meyering@redhat.com>
100180         Treat an empty date string exactly like "0".
100181         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
100182         if the remaining date string (to be parsed) is empty, use "0".
100183         Reported by Mischa Molhoek and discussed in this thread:
100184         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
100186 2007-10-31  Bruno Haible  <bruno@clisp.org>
100188         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
100189         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
100190         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
100191         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
100192         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
100193         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
100195 2007-10-31  Bruno Haible  <bruno@clisp.org>
100197         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
100198         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
100199         (AC_TYPE_LONG_LONG_INT): Use it.
100200         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
100201         it as well.
100202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
100203         to m4/longlong.m4.
100204         * modules/stdint (Files): Remove m4/ulonglong.m4.
100205         * modules/strtoull (Files): Use m4/longlong.m4 instead of
100206         m4/ulonglong.m4.
100207         * modules/strtoumax (Files): Likewise.
100209 2007-10-30  Bruno Haible  <bruno@clisp.org>
100211         * modules/xvasprintf-posix: New file.
100212         Suggested by Eric Blake.
100214 2007-10-30  Bruno Haible  <bruno@clisp.org>
100216         * modules/xprintf-posix-tests: New file.
100217         * tests/test-xprintf-posix.sh: New file.
100218         * tests/test-xprintf-posix.c: New file.
100219         * tests/test-xfprintf-posix.c: New file.
100221         * modules/xprintf-posix: New file.
100223 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100225         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
100226         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
100227         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
100229 2007-10-29  Bruno Haible  <bruno@clisp.org>
100231         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
100232         contain the special marker '_cv_'.
100233         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
100234         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
100235         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
100236         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
100237         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
100238         Reported by Ralf Wildenhues.
100240 2007-10-29  Bruno Haible  <bruno@clisp.org>
100242         * gnulib-tool (func_import): When --lgpl is not specified, set
100243         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
100244         GPLv3.
100245         Reported by Simon Josefsson.
100247 2007-10-28  Bruno Haible  <bruno@clisp.org>
100249         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
100250         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
100251         HAVE_DECL_ISFINITE.
100252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100253         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
100254         HAVE_DECL_ISFINITE.
100256 2007-10-28  Bruno Haible  <bruno@clisp.org>
100258         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
100259         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
100261 2007-10-28  Bruno Haible  <bruno@clisp.org>
100263         Fix link errors with Sun C 5.0 on Solaris 10.
100264         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
100265         function is declared but not present in the compiler's libm.
100266         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
100267         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
100268         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
100269         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
100270         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
100271         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
100272         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
100273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100274         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
100275         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
100276         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
100277         HAVE_DECL_FLOORL.
100279 2007-10-28  Bruno Haible  <bruno@clisp.org>
100281         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
100282         gl_FUNC_FLOORL. Cache the result.
100283         (gl_FUNC_FLOORL): Use it.
100284         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
100285         gl_FUNC_CEILL. Cache the result.
100286         (gl_FUNC_CEILL): Use it.
100288         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
100289         gl_FUNC_FLOOR. Cache the result.
100290         (gl_FUNC_FLOOR): Use it.
100291         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
100292         gl_FUNC_CEIL. Cache the result.
100293         (gl_FUNC_CEIL): Use it.
100295         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
100296         gl_FUNC_FLOORF. Cache the result.
100297         (gl_FUNC_FLOORF): Use it.
100298         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
100299         gl_FUNC_CEILF. Cache the result.
100300         (gl_FUNC_CEILF): Use it.
100302 2007-10-28  Bruno Haible  <bruno@clisp.org>
100304         * gnulib-tool: Allow specifying the LGPL version number through
100305         --lgpl=2 or --lgpl=3.
100306         (func_usage): Document --lgpl with argument.
100307         Handle --lgpl=... arguments.
100308         (func_import): Recognize also gl_LGPL calls with an argument. When
100309         --lgpl=2 is used and the module's license is just LGPL, report an
100310         error. Set sed_transform_lib_file according to the lgpl variable. In
100311         the generated files, use --lgpl or gl_LGPL invocations with argument,
100312         if necessary.
100313         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
100314         an LGPv2+ license.
100315         * doc/gnulib-tool.texi (Modified imports): Update explanation of
100316         gl_LGPL macro.
100318 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100319             Bruno Haible  <bruno@clisp.org>
100321         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
100322         (u16_uctomb_aux): Likewise.
100323         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
100324         !HAVE_INLINE.
100325         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
100327 2007-10-28  Bruno Haible  <bruno@clisp.org>
100329         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
100330         Invoke AM_GETTEXT_OPTION if it exists.
100331         * modules/vasprintf: Likewise.
100332         * modules/verror: Likewise.
100333         * modules/xprintf: Likewise.
100334         * modules/xvasprintf: Likewise.
100336 2007-10-27  Ben Pfaff  <blp@gnu.org>
100338         * lib/math.in.h: Define isfinite macro and prototypes for
100339         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
100340         implementations.
100341         * m4/math_h.m4: New substitutions for isfinite module.
100342         * lib/isfinite.c: New file.
100343         * m4/isfinite.m4: New file.
100344         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
100345         * modules/isfinite: New file.
100346         * modules/isfinite-tests: New file.
100347         * tests/tests-isfinite.c: New file.
100348         * doc/functions/isfinite.texi: Mention isfinite module.
100349         * MODULES.html.sh: Mention new module.
100351 2007-10-27  Ben Pfaff  <blp@gnu.org>
100353         Ralf Wildenhues reported that Tru64 4.0D declares the round
100354         functions but does not have definitions.
100355         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
100356         cannot be found in any library, set the output variable to
100357         "missing" instead of "".
100358         * m4/round.m4: Also use our substitute if we cannot find round in
100359         any library, even if it is declared.
100360         * m4/roundf.m4: Likewise for roundf.
100361         * m4/roundl.m4: Likewise for roundl.
100362         * lib/math.in.h: Undefine roundf, round, roundl before defining
100363         their replacements, to allow for hypothetical systems where these
100364         may be defined as macros but not available in libraries.
100366 2007-10-27  Bruno Haible  <bruno@clisp.org>
100368         * doc/gnulib.texi: Invoke @firstparagraphindent.
100369         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
100370         changes in gnulib.
100371         (Source changes): New section.
100373 2007-10-26  Bruno Haible  <bruno@clisp.org>
100375         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
100376         borrowed from autoconf.
100378 2007-10-26  Bruno Haible  <bruno@clisp.org>
100380         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
100381         strerror returned the empty string. Needed on HP-UX 11.00.
100383 2007-10-24  Micah Cowan  <micah@cowan.name>
100385         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
100386         * build-aux/bootstrap: Remove support for now-unnecessary option,
100387         --cvs-user, and envvars CVS_USER, CVS_RSH.
100389 2007-10-24  Jim Meyering  <meyering@redhat.com>
100391         Avoid diagnostics from sha1sum when there is no cached checksum.
100392         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
100393         if the po.s1 file hasn't been created yet.
100395         * build-aux/bootstrap: Sync from coreutils:
100396         2007-10-24  Jim Meyering  <meyering@redhat.com>
100397         Get gnulib from the git repository, not from an obsolete cvs one.
100398         * build-aux/bootstrap: Suggestion from Micah Cowan.
100399         2007-10-04  Jim Meyering  <jim@meyering.net>
100400         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
100401         (update_po_files): Work also when there are no .po files in po/.
100403 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100405         * README: Append ".git" to git and cg examples.
100406         Problem reported by Benoit Sigoure.
100408 2007-10-23  Micah Cowan  <micah@cowan.name>
100410         * users.txt: Add wget.
100412 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100414         Fix linking of some unistdio tests on FreeBSD.
100415         * modules/unistdio/u16-vsnprintf-tests
100416         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
100417         * modules/unistdio/u16-vsprintf-tests
100418         (test_u16_vsnprintf1_LDADD): Likewise.
100419         * modules/unistdio/u32-vsnprintf-tests
100420         (test_u32_vsnprintf1_LDADD): Likewise.
100421         * modules/unistdio/u32-vsprintf-tests
100422         (test_u32_vsprintf1_LDADD): Likewise.
100423         * modules/unistdio/u8-vsnprintf-tests
100424         (test_u8_vsnprintf1_LDADD): Likewise.
100425         * modules/unistdio/u8-vsprintf-tests
100426         (test_u8_vsprintf1_LDADD): Likewise.
100427         * modules/unistdio/ulc-vsnprintf-tests
100428         (test_ulc_vsnprintf1_LDADD): Likewise.
100429         * modules/unistdio/ulc-vsprintf-tests
100430         (test_ulc_vsprintf1_LDADD): Likewise.
100432         Fix linking of some uniconv tests on FreeBSD.
100433         * modules/uniconv/u16-conv-from-enc-tests
100434         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100435         * modules/uniconv/u16-conv-to-enc-tests
100436         (test_u16_conv_to_enc_LDADD): Likewise.
100437         * modules/uniconv/u16-strconv-from-enc-tests
100438         (test_u16_strconv_from_enc_LDADD): Likewise.
100439         * modules/uniconv/u16-strconv-to-enc-tests
100440         (test_u16_strconv_to_enc_LDADD): Likewise.
100441         * modules/uniconv/u32-conv-from-enc-tests
100442         (test_u32_conv_from_enc_LDADD): Likewise.
100443         * modules/uniconv/u32-conv-to-enc-tests
100444         (test_u32_conv_to_enc_LDADD): Likewise.
100445         * modules/uniconv/u32-strconv-from-enc-tests
100446         (test_u32_strconv_from_enc_LDADD): Likewise.
100447         * modules/uniconv/u32-strconv-to-enc-tests
100448         (test_u32_strconv_to_enc_LDADD): Likewise.
100449         * modules/uniconv/u8-conv-from-enc-tests
100450         (test_u8_conv_from_enc_LDADD): Likewise.
100451         * modules/uniconv/u8-conv-to-enc-tests
100452         (test_u8_conv_to_enc_LDADD): Likewise.
100453         * modules/uniconv/u8-strconv-from-enc-tests
100454         (test_u8_strconv_from_enc_LDADD): Likewise.
100455         * modules/uniconv/u8-strconv-to-enc-tests
100456         (test_u8_strconv_to_enc_LDADD): Likewise.
100458 2007-10-22  Bruno Haible  <bruno@clisp.org>
100460         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100461         size.
100463 2007-10-22  Eric Blake  <ebb9@byu.net>
100465         Tweak x*printf documentation.
100466         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100467         variable name and comments.
100468         Suggested by Bruno Haible.
100470 2007-10-22  Bruno Haible  <bruno@clisp.org>
100472         * lib/acl.c (copy_acl): Fix file name in comment.
100474 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100476         Fix Tru64 problem with stdbool.h.
100477         * lib/stdbool.in.h (false, true):
100478         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100479         Don't declare as an enum in this situation; it runs afoul of Tru64.
100480         Problem reported by Steven M. Schweda in
100481         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100483 2007-10-22  Eric Blake  <ebb9@byu.net>
100485         Also wrap vf?printf.
100486         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100487         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100488         (xvprintf, xvfprintf): New functions.
100490 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100492         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100493         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100495         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100496         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100498 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100500         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100501         by Bruno Haible.
100503 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100505         * lib/getloadavg.c
100506         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100507         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100509         * tests/test-i-ring.c: Work for C89.
100511 2007-10-22  Bruno Haible  <bruno@clisp.org>
100513         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100514         -1u, in preprocessor expression, so that we don't test for the bug
100515         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100516         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100518 2007-10-22  Eric Blake  <ebb9@byu.net>
100520         * tests/test-yesno.sh: Silence stderr during test.
100522 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100524         * modules/crypto/gc-camellia: New file.
100526         * m4/gc-camellia.m4: New file.
100528         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100530         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100532 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100534         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100535         --help to stdout.  Reported by sms@antinode.org (Steven
100536         M. Schweda).
100538 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100540         * users.txt: Fix link to libksba.
100542 2007-10-21  Ben Pfaff  <blp@gnu.org>
100544         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100545         round.c roundf implementation that depends on floorf and ceilf to
100546         be tested unconditionally.
100548 2007-10-21  Ben Pfaff  <blp@gnu.org>
100550         * m4/check-libm-func.m4: Removed.
100551         * m4/check-math-lib.m4: New file.
100552         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100553         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100554         definition and lack of AC_LIBOBJ([roundf]).
100555         * m4/roundl.m4: Ditto, and similarly for roundl.
100556         * modules/round: Reference new m4 file.
100557         * modules/roundf: Ditto.
100558         * modules/roundl: Ditto.
100559         * tests/test-round2.c (main): Use ROUND instead of round.
100560         Bug report from Bruno Haible.
100562 2007-10-21  Bruno Haible  <bruno@clisp.org>
100564         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100565         context.
100567 2007-10-21  Bruno Haible  <bruno@clisp.org>
100569         * tests/test-wcwidth.c (main): Allow negative result for some control
100570         characters.
100572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100573         Needed on OSF/1 5.1.
100575 2007-10-21  Bruno Haible  <bruno@clisp.org>
100577         * tests/test-floorf1.c: Include isnanf.h.
100578         (main): Use isnanf() instead of isnan().
100579         * tests/test-ceilf1.c: Include isnanf.h.
100580         (main): Use isnanf() instead of isnan().
100581         * tests/test-truncf1.c: Include isnanf.h.
100582         (main): Use isnanf() instead of isnan().
100583         * tests/test-roundf1.c: Include isnanf.h.
100584         (main): Use isnanf() instead of isnan().
100586 2007-10-21  Eric Blake  <ebb9@byu.net>
100588         * users.txt: Update URL for m4.
100590 2007-10-21  Bruno Haible  <bruno@clisp.org>
100592         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100594 2007-10-21  Bruno Haible  <bruno@clisp.org>
100596         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100597         Git's management files if the CVS files are not present.
100599 2007-10-20  Bruno Haible  <bruno@clisp.org>
100601         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100602         gcc-3.4.x.
100604 2007-10-20  Ben Pfaff  <blp@gnu.org>
100606         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100607         implementations.
100608         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100609         * lib/round.c: New file.
100610         * lib/roundf.c: New file.
100611         * lib/roundl.c: New file.
100612         * m4/round.m4: New file.
100613         * m4/roundf.m4: New file.
100614         * m4/roundl.m4: New file.
100615         * m4/check-libm-func-m4: New file.
100616         * modules/math: Replace round, roundf, roundl related @VARS@ in
100617         math.in.h.
100618         * modules/round: New file.
100619         * modules/round-tests: New file.
100620         * modules/roundf: New file.
100621         * modules/roundf-tests: New file.
100622         * modules/roundl: New file.
100623         * modules/roundl-tests: New file.
100624         * tests/test-round1.c: New file.
100625         * tests/test-round2.c: New file.
100626         * tests/test-roundf1.c: New file.
100627         * tests/test-roundf2.c: New file.
100628         * tests/test-roundl.c: New file.
100629         * doc/functions/round.texi: Mention round module.
100630         * doc/functions/roundf.texi: Mention roundf module.
100631         * doc/functions/roundl.texi: Mention roundl module.
100632         * MODULES.html.sh: Mention new modules.
100633         Thanks to Bruno Haible for suggestions.
100635 2007-10-20  Jim Meyering  <meyering@redhat.com>
100637         * lib/xprintf.c: Include <config.h> unconditionally.
100639         Change xprintf's license to GPL.
100640         * modules/xprintf (License): s/LGPL/GPL/, since this module
100641         depends on modules (exit and exitfail) which are GPL.
100642         Suggestion from Bruno Haible.
100644         xprintf fixes.
100645         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100646         Use a clearer diagnostic.
100647         Patch from Bruno Haible.
100649 2007-10-20  Bruno Haible  <bruno@clisp.org>
100651         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100652         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100655 2007-10-20  Bruno Haible  <bruno@clisp.org>
100657         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100658         precision in the comparison result > x - 1 or similar.
100659         * tests/test-ceilf2.c (correct_result_p): Likewise.
100660         * tests/test-truncf2.c (correct_result_p): Likewise.
100661         * tests/test-trunc2.c (correct_result_p): Likewise.
100662         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100664 2007-10-20  Bruno Haible  <bruno@clisp.org>
100666         * modules/ceil: New file.
100667         * m4/ceil.m4: New file.
100668         * doc/functions/ceil.texi: Mention the 'ceil' module.
100670 2007-10-20  Bruno Haible  <bruno@clisp.org>
100672         * modules/floor: New file.
100673         * m4/floor.m4: New file.
100674         * doc/functions/floor.texi: Mention the 'floor' module.
100676 2007-10-20  Bruno Haible  <bruno@clisp.org>
100678         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100679         of %a.
100680         * modules/floorf-tests (Depends-on): Likewise.
100681         * modules/truncf-tests (Depends-on): Likewise.
100682         * modules/trunc-tests (Depends-on): Likewise.
100683         Reported by Ben Pfaff.
100685 2007-10-19  Jim Meyering  <meyering@redhat.com>
100687         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100688         Don't bother testing specific errno values.  Just test ferror.
100690         New module: xprintf
100691         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100693 2007-10-19  Bruno Haible  <bruno@clisp.org>
100695         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100696         syntax.
100697         * modules/javaexec (Makefile.am): Likewise.
100698         * modules/relocatable-prog (Makefile.am): Likewise.
100699         Suggested by Jim Meyering.
100701 2007-10-18  Bruno Haible  <bruno@clisp.org>
100703         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100704         Reported by Jim Meyering.
100706 2007-10-18  Eric Blake  <ebb9@byu.net>
100708         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100710 2007-10-18  Bruno Haible  <bruno@clisp.org>
100712         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100713         the format string into writable memory. Needed in Fortify conditions.
100715 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100716             Bruno Haible  <bruno@clisp.org>
100718         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100719         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100720         * modules/trim (Depends-on): Add mbchar.
100721         (configure.ac): Add gl_FUNC_MBRTOWC.
100722         (Makefile.am): Augment lib_SOURCES.
100724 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100726         Modify glob.c to use fstatat and dirfd, to simplify it.
100727         Suggested by Eric Blake.
100728         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100729         Don't include <stdbool.h>; not used.
100730         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100731         (link_exists_p): Simplify implementation, since we can now assume
100732         dirfd and fstatat.
100733         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100735 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100737         * gnulib-tool (func_get_dependencies): Fix sed script to
100738         match only tests.
100740 2007-10-17  Bruno Haible  <bruno@clisp.org>
100742         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100743         allow locale names without encoding suffix.
100744         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100745         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100747 2007-10-16  Bruno Haible  <bruno@clisp.org>
100749         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100750         * lib/getgroups.c (getgroups): Likewise.
100751         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100753 2007-10-16  Bruno Haible  <bruno@clisp.org>
100755         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100756         * modules/malloc-posix (License): Likewise.
100757         * modules/realloc-posix (License): Likewise.
100758         * modules/calloc-posix (License): Likewise.
100759         * modules/intprops (License): Change from GPL to LGPL, with
100760         Paul Eggert's approval.
100762 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100764         Merge glibc changes into lib/glob.c.
100766         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100767         2007-10-15 04:59:03 UTC.  Here are the changes:
100769         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100771         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100773         * lib/glob.c: Add some branch prediction throughout.
100775         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100777         [BZ #5103]
100778         * lib/glob.c (glob): Recognize patterns starting \/.
100780         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100782         [BZ #3996]
100783         * lib/glob.c (attribute_hidden): Define if not defined.
100784         (glob): Unescape dirname, filename or username when needed and not
100785         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100786         is NULL.  Handle unescaped [ in pattern without closing ].
100787         Don't pass GLOB_CHECK down to recursive glob for directories.
100788         (__glob_pattern_type): New function.
100789         (__glob_pattern_p): Implement using __glob_pattern_type.
100790         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100791         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100792         Remove unreachable code.
100794         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100796         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100797         explain why there are no leaks.
100799         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100801         [BZ #3253]
100802         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100803         time, rather allocate increasingly bigger arrays of pointers, if
100804         possible with alloca, if too large with malloc.
100806 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100808         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100809         Problem reported by H.Merijn Brand in
100810         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100812         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100814 2007-10-15  Bruno Haible  <bruno@clisp.org>
100816         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100817         with explicit rpl_ prefix.
100818         * lib/fopen.c (fopen): Likewise.
100819         * lib/freopen.c (freopen): Likewise.
100820         * lib/iconv.c (iconv): Likewise.
100821         * lib/iconv_close.c (iconv_close): Likewise.
100823 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100825         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100827 2007-10-15  Bruno Haible  <bruno@clisp.org>
100829         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100830         <stddef.h> instead of <stdlib.h> since we only need NULL.
100831         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100833 2007-10-15  Bruno Haible  <bruno@clisp.org>
100835         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100836         Replace paragraph talking about LIBOBJS.
100837         Reported by Colin Watson <cjwatson@debian.org>.
100839 2007-10-15  Bruno Haible  <bruno@clisp.org>
100841         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100842         <stdlib.h> before using NULL.
100844 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100846         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100847         Reported by Albert Chin <china@thewrittenword.com>.
100849 2007-10-14  Bruno Haible  <bruno@clisp.org>
100851         * modules/iconv_open-utf-tests: New file.
100852         * tests/test-iconv-utf.c: New file.
100854         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100855         * modules/iconv_open-utf: New file.
100856         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100857         (iconv, iconv_close): New declarations.
100858         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100859         be defined.
100860         (iconv_open): Add special handling of conversion between UTF-8 and
100861         UTF-{16,32}{BE,LE}.
100862         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100863         * lib/iconv_close.c: New file.
100864         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100865         gl_FUNC_ICONV_OPEN.
100866         (gl_FUNC_ICONV_OPEN): Use it.
100867         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100868         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100869         and REPLACE_ICONV_UTF.
100870         * modules/iconv_open (Depends-on): Add c-strcase.
100871         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100872         ICONV_CONST.
100873         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100875 2007-10-13  Albert Chin  <china@thewrittenword.com>
100876             Bruno Haible  <bruno@clisp.org>
100878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100879         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100881 2007-10-13  Bruno Haible  <bruno@clisp.org>
100883         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100884         defined, use the ISO C99 inline semantics.
100885         * lib/argp.h (ARGP_EI): Likewise.
100887 2007-10-13  Bruno Haible  <bruno@clisp.org>
100889         Handle 'inline' change in gcc 4.3.0.
100890         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100891         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100892         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100893         argp_fmtstream_point): Disable 'extern' declaration if the function
100894         definition is going to be provided inline.
100895         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100896         semantics, not the ISO C99 inline semantics.
100897         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100898         'extern' declaration if the function definition is going to be provided
100899         inline.
100900         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100901         the GNU C inline semantics, not the ISO C99 inline semantics. With
100902         GCC 4.2, avoid a warning.
100904 2007-10-13  Bruno Haible  <bruno@clisp.org>
100906         * lib/freading.h (freading): Enable the use of __freading for
100907         glibc >= 2.7.
100908         * lib/freading.c (freading): Likewise.
100910 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100912         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100913         "warning: C99 inline functions are not supported; using GNU89".
100915 2007-10-12  Bruno Haible  <bruno@clisp.org>
100917         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100918         of 2.
100919         * tests/test-ceilf2.c: New file.
100920         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100922         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100923         * modules/ceilf-tests: Update.
100925 2007-10-12  Bruno Haible  <bruno@clisp.org>
100927         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100928         of 2.
100929         * tests/test-floorf2.c: New file.
100930         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100932         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100933         * modules/floorf-tests: Update.
100935 2007-10-12  Bruno Haible  <bruno@clisp.org>
100937         * tests/test-trunc2.c: New file.
100938         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100940         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100941         * modules/trunc-tests: Update.
100943 2007-10-12  Bruno Haible  <bruno@clisp.org>
100945         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100946         of 2.
100947         * tests/test-truncf2.c: New file.
100948         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100950         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100951         * modules/truncf-tests: Update.
100953 2007-10-11  Eric Blake  <ebb9@byu.net>
100955         Don't claim strerror is broken on Interix.
100956         * doc/functions/strerror.texi (strerror): Known broken systems are
100957         now Solaris 8, and not Interix.
100958         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100959         Interix on cross-compile.
100960         Reported by Martin Koeppe in
100961         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100963 2007-10-11  Bruno Haible  <bruno@clisp.org>
100965         * modules/i-ring-tests: New file.
100966         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100967         instead of assert.
100969 2007-10-11  Bruno Haible  <bruno@clisp.org>
100971         * modules/filenamecat-tests: New file.
100972         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100973         * lib/filenamecat.c: Remove test code.
100975 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100977         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100979         * lib/strerror.c: Include <string.h> always, to test interface,
100980         and to remove the need for the dummy.
100981         Include intprops.h to compute width instead of doing it ourselves
100982         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100983         (strerror): Define it to return NULL if there's no system strerror.
100984         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100985         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100986         ancient pre-strerror Unix systems well any more.  Saying "unknown
100987         system error" is enough.
100988         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100989         simpler strerror.c implementation.
100990         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100991         Simplify the tests to reflect the simpler strerror implementation.
100992         * modules/strerror (Depends-on): Add intprops.
100994 2007-10-09  Eric Blake  <ebb9@byu.net>
100996         Silence test-fpending.
100997         * modules/fpending-tests (Files): Add wrapper script.
100998         * tests/test-fpending.sh: New file.
101000 2007-10-09  Bruno Haible  <bruno@clisp.org>
101002         * MODULES.html.sh (func_module): Don't create a hyperlink for
101003         function names like 'printf_frexp'.
101004         (Misc): Add crc, memxor.
101005         (Characteristics of floating types): New section.
101006         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
101007         isnanf-nolibm, signbit, trunc, truncf, truncl.
101008         (Enhancements for ISO C 99 functions): New subsection Input/output.
101009         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
101010         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
101011         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
101012         (Compatibility checks for POSIX:2001 functions): Add clock-time.
101013         (Enhancements for POSIX:2001 functions): Add chdir-long.
101014         (File system functions): Add areadlink, chdir-safer, read-file.
101015         Remove cycle-check.
101016         (File system as inode set): New section.
101017         (Date and time): Add gethrxtime.
101018         (Multithreading): Add openmp.
101019         (Internationalization functions): Add localename.
101020         (Unicode string functions): Add unistr/u*-mbsnlen.
101021         (Support for maintaining and releasing projects): Add git-version-gen.
101022         (Lone files): Remove directories.
101024 2007-10-08  Ben Pfaff  <blp@gnu.org>
101026         * lib/xmalloca.h: Fix typo in comment.
101028 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101030         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
101031         when avoiding problems with integer overflow.  Use a portable test
101032         instead.
101034 2007-10-08  Simon Josefsson  <simon@josefsson.org>
101036         * modules/dummy (License): Change to LGPLv2+.
101037         * modules/float (License): Likewise
101038         * modules/realloc (License): Likewise
101039         * modules/stdlib (License): Likewise
101041 2007-10-07  Bruno Haible  <bruno@clisp.org>
101043         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
101044         * floor.c (TWO_MANT_DIG): Likewise.
101045         * ceil.c (TWO_MANT_DIG): Likewise.
101046         Reported by Ben Pfaff.
101048 2007-10-07  Bruno Haible  <bruno@clisp.org>
101050         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
101051         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
101052         * lib/frexp.c (FUNC): Likewise.
101053         * lib/printf-frexp.h (printf_frexp): Likewise.
101054         * lib/printf-frexpl.h (printf_frexpl): Likewise.
101055         * lib/printf-frexp.c (FUNC): Likewise.
101056         Suggested by Jim Meyering.
101058 2007-10-07  Jim Meyering  <meyering@redhat.com>
101060         Make xnanosleep's integer overflow test more robust.
101061         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
101062         so that gcc-4.3.0 doesn't optimize away this test for overflow.
101064 2007-10-07  Bruno Haible  <bruno@clisp.org>
101066         * NEWS: Mention the license change.
101068         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
101069         abbreviations in the modules files.
101071         Change copyright notice from GPLv2+ to GPLv3+.
101072         * README: Change copyright notice.
101073         * MODULES.html.sh: Likewise.
101074         * build-aux/bootstrap.conf: Likewise.
101075         * build-aux/config.libpath: Likewise.
101076         * build-aux/csharpcomp.sh.in: Likewise.
101077         * build-aux/csharpexec.sh.in: Likewise.
101078         * build-aux/install-reloc: Likewise.
101079         * build-aux/javacomp.sh.in: Likewise.
101080         * build-aux/javaexec.sh.in: Likewise.
101081         * build-aux/ldd.sh.in: Likewise.
101082         * build-aux/reloc-ldflags: Likewise.
101083         * build-aux/relocatable.sh.in: Likewise.
101084         * build-aux/x-to-1.in: Likewise.
101085         * check-module: Likewise.
101086         * config/srclistvars.sh: Likewise.
101087         * gnulib-tool: Likewise.
101088         * lib/acl-internal.h: Likewise.
101089         * lib/acl.c: Likewise.
101090         * lib/acl.h: Likewise.
101091         * lib/acl_entries.c: Likewise.
101092         * lib/areadlink-with-size.c: Likewise.
101093         * lib/areadlink.c: Likewise.
101094         * lib/areadlink.h: Likewise.
101095         * lib/argmatch.c: Likewise.
101096         * lib/argmatch.h: Likewise.
101097         * lib/argp-ba.c: Likewise.
101098         * lib/argp-eexst.c: Likewise.
101099         * lib/argp-fmtstream.c: Likewise.
101100         * lib/argp-fmtstream.h: Likewise.
101101         * lib/argp-fs-xinl.c: Likewise.
101102         * lib/argp-help.c: Likewise.
101103         * lib/argp-namefrob.h: Likewise.
101104         * lib/argp-parse.c: Likewise.
101105         * lib/argp-pin.c: Likewise.
101106         * lib/argp-pv.c: Likewise.
101107         * lib/argp-pvh.c: Likewise.
101108         * lib/argp-xinl.c: Likewise.
101109         * lib/argp.h: Likewise.
101110         * lib/at-func.c: Likewise.
101111         * lib/atanl.c: Likewise.
101112         * lib/backupfile.c: Likewise.
101113         * lib/backupfile.h: Likewise.
101114         * lib/basename.c: Likewise.
101115         * lib/binary-io.h: Likewise.
101116         * lib/byteswap.in.h: Likewise.
101117         * lib/c-stack.c: Likewise.
101118         * lib/c-stack.h: Likewise.
101119         * lib/c-strcasestr.c: Likewise.
101120         * lib/c-strcasestr.h: Likewise.
101121         * lib/c-strstr.c: Likewise.
101122         * lib/c-strstr.h: Likewise.
101123         * lib/c-strtod.c: Likewise.
101124         * lib/calloc.c: Likewise.
101125         * lib/canon-host.c: Likewise.
101126         * lib/canon-host.h: Likewise.
101127         * lib/canonicalize-lgpl.c: Likewise.
101128         * lib/canonicalize.c: Likewise.
101129         * lib/canonicalize.h: Likewise.
101130         * lib/ceil.c: Likewise.
101131         * lib/ceilf.c: Likewise.
101132         * lib/ceill.c: Likewise.
101133         * lib/chdir-long.c: Likewise.
101134         * lib/chdir-long.h: Likewise.
101135         * lib/chdir-safer.c: Likewise.
101136         * lib/chdir-safer.h: Likewise.
101137         * lib/chown.c: Likewise.
101138         * lib/classpath.c: Likewise.
101139         * lib/classpath.h: Likewise.
101140         * lib/clean-temp.c: Likewise.
101141         * lib/clean-temp.h: Likewise.
101142         * lib/cloexec.c: Likewise.
101143         * lib/close-stream.c: Likewise.
101144         * lib/closein.c: Likewise.
101145         * lib/closein.h: Likewise.
101146         * lib/closeout.c: Likewise.
101147         * lib/closeout.h: Likewise.
101148         * lib/concat-filename.c: Likewise.
101149         * lib/copy-file.c: Likewise.
101150         * lib/copy-file.h: Likewise.
101151         * lib/count-one-bits.h: Likewise.
101152         * lib/crc.c: Likewise.
101153         * lib/crc.h: Likewise.
101154         * lib/creat-safer.c: Likewise.
101155         * lib/csharpcomp.c: Likewise.
101156         * lib/csharpcomp.h: Likewise.
101157         * lib/csharpexec.c: Likewise.
101158         * lib/csharpexec.h: Likewise.
101159         * lib/cycle-check.c: Likewise.
101160         * lib/cycle-check.h: Likewise.
101161         * lib/diacrit.c: Likewise.
101162         * lib/diacrit.h: Likewise.
101163         * lib/diffseq.h: Likewise.
101164         * lib/dirchownmod.c: Likewise.
101165         * lib/dirent.in.h: Likewise.
101166         * lib/dirfd.c: Likewise.
101167         * lib/dirfd.h: Likewise.
101168         * lib/dirname.c: Likewise.
101169         * lib/dirname.h: Likewise.
101170         * lib/dummy.c: Likewise.
101171         * lib/dup-safer.c: Likewise.
101172         * lib/dup2.c: Likewise.
101173         * lib/eealloc.h: Likewise.
101174         * lib/error.c: Likewise.
101175         * lib/error.h: Likewise.
101176         * lib/euidaccess.c: Likewise.
101177         * lib/exclude.c: Likewise.
101178         * lib/exclude.h: Likewise.
101179         * lib/execute.c: Likewise.
101180         * lib/execute.h: Likewise.
101181         * lib/exitfail.c: Likewise.
101182         * lib/exitfail.h: Likewise.
101183         * lib/expl.c: Likewise.
101184         * lib/fatal-signal.c: Likewise.
101185         * lib/fatal-signal.h: Likewise.
101186         * lib/fbufmode.c: Likewise.
101187         * lib/fbufmode.h: Likewise.
101188         * lib/fchdir.c: Likewise.
101189         * lib/fchmodat.c: Likewise.
101190         * lib/fchownat.c: Likewise.
101191         * lib/fcntl--.h: Likewise.
101192         * lib/fcntl-safer.h: Likewise.
101193         * lib/fcntl.in.h: Likewise.
101194         * lib/fd-safer.c: Likewise.
101195         * lib/fflush.c: Likewise.
101196         * lib/file-has-acl.c: Likewise.
101197         * lib/file-set.c: Likewise.
101198         * lib/file-type.c: Likewise.
101199         * lib/file-type.h: Likewise.
101200         * lib/fileblocks.c: Likewise.
101201         * lib/filemode.c: Likewise.
101202         * lib/filemode.h: Likewise.
101203         * lib/filename.h: Likewise.
101204         * lib/filenamecat.c: Likewise.
101205         * lib/filenamecat.h: Likewise.
101206         * lib/findprog.c: Likewise.
101207         * lib/findprog.h: Likewise.
101208         * lib/float.in.h: Likewise.
101209         * lib/floor.c: Likewise.
101210         * lib/floorf.c: Likewise.
101211         * lib/floorl.c: Likewise.
101212         * lib/fopen-safer.c: Likewise.
101213         * lib/fopen.c: Likewise.
101214         * lib/fpending.c: Likewise.
101215         * lib/fpending.h: Likewise.
101216         * lib/fprintf.c: Likewise.
101217         * lib/fprintftime.h: Likewise.
101218         * lib/fpucw.h: Likewise.
101219         * lib/fpurge.c: Likewise.
101220         * lib/fpurge.h: Likewise.
101221         * lib/freadable.c: Likewise.
101222         * lib/freadable.h: Likewise.
101223         * lib/freadahead.c: Likewise.
101224         * lib/freadahead.h: Likewise.
101225         * lib/freading.c: Likewise.
101226         * lib/freading.h: Likewise.
101227         * lib/free.c: Likewise.
101228         * lib/freopen.c: Likewise.
101229         * lib/frexp.c: Likewise.
101230         * lib/frexpl.c: Likewise.
101231         * lib/fseek.c: Likewise.
101232         * lib/fseterr.c: Likewise.
101233         * lib/fseterr.h: Likewise.
101234         * lib/fstatat.c: Likewise.
101235         * lib/fstrcmp.c: Likewise.
101236         * lib/fstrcmp.h: Likewise.
101237         * lib/fsusage.c: Likewise.
101238         * lib/fsusage.h: Likewise.
101239         * lib/ftell.c: Likewise.
101240         * lib/ftello.c: Likewise.
101241         * lib/fts-cycle.c: Likewise.
101242         * lib/fts.c: Likewise.
101243         * lib/fts_.h: Likewise.
101244         * lib/full-read.c: Likewise.
101245         * lib/full-read.h: Likewise.
101246         * lib/full-write.c: Likewise.
101247         * lib/full-write.h: Likewise.
101248         * lib/fwritable.c: Likewise.
101249         * lib/fwritable.h: Likewise.
101250         * lib/fwriteerror.c: Likewise.
101251         * lib/fwriteerror.h: Likewise.
101252         * lib/fwriting.c: Likewise.
101253         * lib/fwriting.h: Likewise.
101254         * lib/gcd.c: Likewise.
101255         * lib/gcd.h: Likewise.
101256         * lib/getcwd.c: Likewise.
101257         * lib/getdate.h: Likewise.
101258         * lib/getdate.y: Likewise.
101259         * lib/getdomainname.c: Likewise.
101260         * lib/getdomainname.h: Likewise.
101261         * lib/getgroups.c: Likewise.
101262         * lib/gethostname.c: Likewise.
101263         * lib/gethrxtime.c: Likewise.
101264         * lib/gethrxtime.h: Likewise.
101265         * lib/getloadavg.c: Likewise.
101266         * lib/getndelim2.c: Likewise.
101267         * lib/getndelim2.h: Likewise.
101268         * lib/getnline.c: Likewise.
101269         * lib/getnline.h: Likewise.
101270         * lib/getopt.c: Likewise.
101271         * lib/getopt.in.h: Likewise.
101272         * lib/getopt1.c: Likewise.
101273         * lib/getopt_int.h: Likewise.
101274         * lib/getpagesize.h: Likewise.
101275         * lib/getsubopt.c: Likewise.
101276         * lib/gettime.c: Likewise.
101277         * lib/getugroups.c: Likewise.
101278         * lib/getugroups.h: Likewise.
101279         * lib/getusershell.c: Likewise.
101280         * lib/gl_anyavltree_list1.h: Likewise.
101281         * lib/gl_anyavltree_list2.h: Likewise.
101282         * lib/gl_anyhash_list1.h: Likewise.
101283         * lib/gl_anyhash_list2.h: Likewise.
101284         * lib/gl_anylinked_list1.h: Likewise.
101285         * lib/gl_anylinked_list2.h: Likewise.
101286         * lib/gl_anyrbtree_list1.h: Likewise.
101287         * lib/gl_anyrbtree_list2.h: Likewise.
101288         * lib/gl_anytree_list1.h: Likewise.
101289         * lib/gl_anytree_list2.h: Likewise.
101290         * lib/gl_anytree_oset.h: Likewise.
101291         * lib/gl_anytreehash_list1.h: Likewise.
101292         * lib/gl_anytreehash_list2.h: Likewise.
101293         * lib/gl_array_list.c: Likewise.
101294         * lib/gl_array_list.h: Likewise.
101295         * lib/gl_array_oset.c: Likewise.
101296         * lib/gl_array_oset.h: Likewise.
101297         * lib/gl_avltree_list.c: Likewise.
101298         * lib/gl_avltree_list.h: Likewise.
101299         * lib/gl_avltree_oset.c: Likewise.
101300         * lib/gl_avltree_oset.h: Likewise.
101301         * lib/gl_avltreehash_list.c: Likewise.
101302         * lib/gl_avltreehash_list.h: Likewise.
101303         * lib/gl_carray_list.c: Likewise.
101304         * lib/gl_carray_list.h: Likewise.
101305         * lib/gl_linked_list.c: Likewise.
101306         * lib/gl_linked_list.h: Likewise.
101307         * lib/gl_linkedhash_list.c: Likewise.
101308         * lib/gl_linkedhash_list.h: Likewise.
101309         * lib/gl_list.c: Likewise.
101310         * lib/gl_list.h: Likewise.
101311         * lib/gl_oset.c: Likewise.
101312         * lib/gl_oset.h: Likewise.
101313         * lib/gl_rbtree_list.c: Likewise.
101314         * lib/gl_rbtree_list.h: Likewise.
101315         * lib/gl_rbtree_oset.c: Likewise.
101316         * lib/gl_rbtree_oset.h: Likewise.
101317         * lib/gl_rbtreehash_list.c: Likewise.
101318         * lib/gl_rbtreehash_list.h: Likewise.
101319         * lib/gl_sublist.c: Likewise.
101320         * lib/gl_sublist.h: Likewise.
101321         * lib/group-member.c: Likewise.
101322         * lib/group-member.h: Likewise.
101323         * lib/hard-locale.c: Likewise.
101324         * lib/hard-locale.h: Likewise.
101325         * lib/hash-pjw.c: Likewise.
101326         * lib/hash-pjw.h: Likewise.
101327         * lib/hash-triple.c: Likewise.
101328         * lib/hash.c: Likewise.
101329         * lib/hash.h: Likewise.
101330         * lib/human.c: Likewise.
101331         * lib/human.h: Likewise.
101332         * lib/i-ring.c: Likewise.
101333         * lib/i-ring.h: Likewise.
101334         * lib/idcache.c: Likewise.
101335         * lib/imaxabs.c: Likewise.
101336         * lib/imaxdiv.c: Likewise.
101337         * lib/inet_pton.c: Likewise.
101338         * lib/inet_pton.h: Likewise.
101339         * lib/intprops.h: Likewise.
101340         * lib/inttostr.c: Likewise.
101341         * lib/inttostr.h: Likewise.
101342         * lib/inttypes.in.h: Likewise.
101343         * lib/isapipe.c: Likewise.
101344         * lib/isdir.c: Likewise.
101345         * lib/isnan.c: Likewise.
101346         * lib/isnan.h: Likewise.
101347         * lib/isnanf.c: Likewise.
101348         * lib/isnanf.h: Likewise.
101349         * lib/isnanl-nolibm.h: Likewise.
101350         * lib/isnanl.c: Likewise.
101351         * lib/isnanl.h: Likewise.
101352         * lib/javacomp.c: Likewise.
101353         * lib/javacomp.h: Likewise.
101354         * lib/javaexec.c: Likewise.
101355         * lib/javaexec.h: Likewise.
101356         * lib/javaversion.c: Likewise.
101357         * lib/javaversion.h: Likewise.
101358         * lib/javaversion.java: Likewise.
101359         * lib/lbrkprop.h: Likewise.
101360         * lib/lchmod.h: Likewise.
101361         * lib/lchown.c: Likewise.
101362         * lib/ldexpl.c: Likewise.
101363         * lib/linebreak.c: Likewise.
101364         * lib/linebreak.h: Likewise.
101365         * lib/linebuffer.c: Likewise.
101366         * lib/linebuffer.h: Likewise.
101367         * lib/locale.in.h: Likewise.
101368         * lib/logl.c: Likewise.
101369         * lib/long-options.c: Likewise.
101370         * lib/long-options.h: Likewise.
101371         * lib/lstat.c: Likewise.
101372         * lib/lstat.h: Likewise.
101373         * lib/math.in.h: Likewise.
101374         * lib/mbchar.c: Likewise.
101375         * lib/mbchar.h: Likewise.
101376         * lib/mbfile.h: Likewise.
101377         * lib/mbiter.h: Likewise.
101378         * lib/mbscasecmp.c: Likewise.
101379         * lib/mbscasestr.c: Likewise.
101380         * lib/mbschr.c: Likewise.
101381         * lib/mbscspn.c: Likewise.
101382         * lib/mbslen.c: Likewise.
101383         * lib/mbsncasecmp.c: Likewise.
101384         * lib/mbsnlen.c: Likewise.
101385         * lib/mbspbrk.c: Likewise.
101386         * lib/mbspcasecmp.c: Likewise.
101387         * lib/mbsrchr.c: Likewise.
101388         * lib/mbssep.c: Likewise.
101389         * lib/mbsspn.c: Likewise.
101390         * lib/mbsstr.c: Likewise.
101391         * lib/mbstok_r.c: Likewise.
101392         * lib/mbswidth.c: Likewise.
101393         * lib/mbswidth.h: Likewise.
101394         * lib/mbuiter.h: Likewise.
101395         * lib/memcasecmp.c: Likewise.
101396         * lib/memcasecmp.h: Likewise.
101397         * lib/memchr.c: Likewise.
101398         * lib/memcmp.c: Likewise.
101399         * lib/memcoll.c: Likewise.
101400         * lib/memcoll.h: Likewise.
101401         * lib/memcpy.c: Likewise.
101402         * lib/memrchr.c: Likewise.
101403         * lib/mkancesdirs.c: Likewise.
101404         * lib/mkdir-p.c: Likewise.
101405         * lib/mkdir-p.h: Likewise.
101406         * lib/mkdir.c: Likewise.
101407         * lib/mkdirat.c: Likewise.
101408         * lib/mkdtemp.c: Likewise.
101409         * lib/mkstemp-safer.c: Likewise.
101410         * lib/mkstemp.c: Likewise.
101411         * lib/modechange.c: Likewise.
101412         * lib/modechange.h: Likewise.
101413         * lib/mountlist.c: Likewise.
101414         * lib/mountlist.h: Likewise.
101415         * lib/mpsort.c: Likewise.
101416         * lib/nanosleep.c: Likewise.
101417         * lib/obstack.c: Likewise.
101418         * lib/obstack.h: Likewise.
101419         * lib/open-safer.c: Likewise.
101420         * lib/open.c: Likewise.
101421         * lib/openat-die.c: Likewise.
101422         * lib/openat-priv.h: Likewise.
101423         * lib/openat-proc.c: Likewise.
101424         * lib/openat.c: Likewise.
101425         * lib/openat.h: Likewise.
101426         * lib/pagealign_alloc.c: Likewise.
101427         * lib/pagealign_alloc.h: Likewise.
101428         * lib/physmem.c: Likewise.
101429         * lib/physmem.h: Likewise.
101430         * lib/pipe-safer.c: Likewise.
101431         * lib/pipe.c: Likewise.
101432         * lib/pipe.h: Likewise.
101433         * lib/posixtm.c: Likewise.
101434         * lib/posixtm.h: Likewise.
101435         * lib/posixver.c: Likewise.
101436         * lib/printf-frexp.c: Likewise.
101437         * lib/printf-frexp.h: Likewise.
101438         * lib/printf-frexpl.c: Likewise.
101439         * lib/printf-frexpl.h: Likewise.
101440         * lib/printf.c: Likewise.
101441         * lib/progname.c: Likewise.
101442         * lib/progname.h: Likewise.
101443         * lib/progreloc.c: Likewise.
101444         * lib/putenv.c: Likewise.
101445         * lib/quote.c: Likewise.
101446         * lib/quote.h: Likewise.
101447         * lib/quotearg.c: Likewise.
101448         * lib/quotearg.h: Likewise.
101449         * lib/raise.c: Likewise.
101450         * lib/readline.c: Likewise.
101451         * lib/readline.h: Likewise.
101452         * lib/readlink.c: Likewise.
101453         * lib/readtokens.c: Likewise.
101454         * lib/readtokens.h: Likewise.
101455         * lib/readtokens0.c: Likewise.
101456         * lib/readtokens0.h: Likewise.
101457         * lib/readutmp.c: Likewise.
101458         * lib/readutmp.h: Likewise.
101459         * lib/realloc.c: Likewise.
101460         * lib/relocwrapper.c: Likewise.
101461         * lib/rename-dest-slash.c: Likewise.
101462         * lib/rename.c: Likewise.
101463         * lib/rmdir.c: Likewise.
101464         * lib/rpmatch.c: Likewise.
101465         * lib/safe-read.c: Likewise.
101466         * lib/safe-read.h: Likewise.
101467         * lib/safe-write.c: Likewise.
101468         * lib/safe-write.h: Likewise.
101469         * lib/same-inode.h: Likewise.
101470         * lib/same.c: Likewise.
101471         * lib/same.h: Likewise.
101472         * lib/save-cwd.c: Likewise.
101473         * lib/save-cwd.h: Likewise.
101474         * lib/savedir.c: Likewise.
101475         * lib/savedir.h: Likewise.
101476         * lib/savewd.c: Likewise.
101477         * lib/savewd.h: Likewise.
101478         * lib/search.in.h: Likewise.
101479         * lib/setenv.c: Likewise.
101480         * lib/setenv.h: Likewise.
101481         * lib/settime.c: Likewise.
101482         * lib/sh-quote.c: Likewise.
101483         * lib/sh-quote.h: Likewise.
101484         * lib/sig2str.c: Likewise.
101485         * lib/sig2str.h: Likewise.
101486         * lib/signal.in.h: Likewise.
101487         * lib/signbitd.c: Likewise.
101488         * lib/signbitf.c: Likewise.
101489         * lib/signbitl.c: Likewise.
101490         * lib/sigprocmask.c: Likewise.
101491         * lib/sincosl.c: Likewise.
101492         * lib/sleep.c: Likewise.
101493         * lib/sprintf.c: Likewise.
101494         * lib/sqrtl.c: Likewise.
101495         * lib/stat-time.h: Likewise.
101496         * lib/stdio--.h: Likewise.
101497         * lib/stdio-safer.h: Likewise.
101498         * lib/stdlib--.h: Likewise.
101499         * lib/stdlib-safer.h: Likewise.
101500         * lib/stdlib.in.h: Likewise.
101501         * lib/stpcpy.c: Likewise.
101502         * lib/stpncpy.c: Likewise.
101503         * lib/strchrnul.c: Likewise.
101504         * lib/strcspn.c: Likewise.
101505         * lib/strerror.c: Likewise.
101506         * lib/strftime.c: Likewise.
101507         * lib/strftime.h: Likewise.
101508         * lib/striconveh.c: Likewise.
101509         * lib/striconveh.h: Likewise.
101510         * lib/striconveha.c: Likewise.
101511         * lib/striconveha.h: Likewise.
101512         * lib/stripslash.c: Likewise.
101513         * lib/strnlen1.c: Likewise.
101514         * lib/strnlen1.h: Likewise.
101515         * lib/strtod.c: Likewise.
101516         * lib/strtoimax.c: Likewise.
101517         * lib/strtok_r.c: Likewise.
101518         * lib/strtol.c: Likewise.
101519         * lib/strtoll.c: Likewise.
101520         * lib/strtoul.c: Likewise.
101521         * lib/strtoull.c: Likewise.
101522         * lib/sysexits.in.h: Likewise.
101523         * lib/tempname.c: Likewise.
101524         * lib/tempname.h: Likewise.
101525         * lib/timespec.h: Likewise.
101526         * lib/tls.c: Likewise.
101527         * lib/tls.h: Likewise.
101528         * lib/tmpdir.c: Likewise.
101529         * lib/tmpdir.h: Likewise.
101530         * lib/tmpfile-safer.c: Likewise.
101531         * lib/tmpfile.c: Likewise.
101532         * lib/trigl.c: Likewise.
101533         * lib/trigl.h: Likewise.
101534         * lib/trim.c: Likewise.
101535         * lib/trim.h: Likewise.
101536         * lib/trunc.c: Likewise.
101537         * lib/truncf.c: Likewise.
101538         * lib/truncl.c: Likewise.
101539         * lib/tsearch.c: Likewise.
101540         * lib/unicodeio.c: Likewise.
101541         * lib/unicodeio.h: Likewise.
101542         * lib/unistd--.h: Likewise.
101543         * lib/unistd-safer.h: Likewise.
101544         * lib/unistdio/ulc-fprintf.c: Likewise.
101545         * lib/unistdio/ulc-vfprintf.c: Likewise.
101546         * lib/unlinkdir.c: Likewise.
101547         * lib/unlinkdir.h: Likewise.
101548         * lib/unlocked-io.h: Likewise.
101549         * lib/unsetenv.c: Likewise.
101550         * lib/userspec.c: Likewise.
101551         * lib/utime.c: Likewise.
101552         * lib/utimecmp.c: Likewise.
101553         * lib/utimecmp.h: Likewise.
101554         * lib/utimens.c: Likewise.
101555         * lib/verify.h: Likewise.
101556         * lib/verror.c: Likewise.
101557         * lib/verror.h: Likewise.
101558         * lib/version-etc-fsf.c: Likewise.
101559         * lib/version-etc.c: Likewise.
101560         * lib/version-etc.h: Likewise.
101561         * lib/vfprintf.c: Likewise.
101562         * lib/vprintf.c: Likewise.
101563         * lib/vsprintf.c: Likewise.
101564         * lib/w32spawn.h: Likewise.
101565         * lib/wait-process.c: Likewise.
101566         * lib/wait-process.h: Likewise.
101567         * lib/wcwidth.c: Likewise.
101568         * lib/write-any-file.c: Likewise.
101569         * lib/xalloc-die.c: Likewise.
101570         * lib/xalloc.h: Likewise.
101571         * lib/xasprintf.c: Likewise.
101572         * lib/xgetcwd.c: Likewise.
101573         * lib/xgetcwd.h: Likewise.
101574         * lib/xgetdomainname.c: Likewise.
101575         * lib/xgetdomainname.h: Likewise.
101576         * lib/xgethostname.c: Likewise.
101577         * lib/xmalloc.c: Likewise.
101578         * lib/xmalloca.c: Likewise.
101579         * lib/xmalloca.h: Likewise.
101580         * lib/xmemcoll.c: Likewise.
101581         * lib/xnanosleep.c: Likewise.
101582         * lib/xreadlink.c: Likewise.
101583         * lib/xreadlink.h: Likewise.
101584         * lib/xsetenv.c: Likewise.
101585         * lib/xsetenv.h: Likewise.
101586         * lib/xstriconv.c: Likewise.
101587         * lib/xstriconv.h: Likewise.
101588         * lib/xstrndup.c: Likewise.
101589         * lib/xstrndup.h: Likewise.
101590         * lib/xstrtod.c: Likewise.
101591         * lib/xstrtod.h: Likewise.
101592         * lib/xstrtol-error.c: Likewise.
101593         * lib/xstrtol.c: Likewise.
101594         * lib/xstrtol.h: Likewise.
101595         * lib/xtime.h: Likewise.
101596         * lib/xvasprintf.c: Likewise.
101597         * lib/xvasprintf.h: Likewise.
101598         * lib/yesno.c: Likewise.
101599         * lib/yesno.h: Likewise.
101600         * posix-modules: Likewise.
101601         * tests/test-alloca-opt.c: Likewise.
101602         * tests/test-arcfour.c: Likewise.
101603         * tests/test-arctwo.c: Likewise.
101604         * tests/test-argmatch.c: Likewise.
101605         * tests/test-argp-2.sh: Likewise.
101606         * tests/test-argp.c: Likewise.
101607         * tests/test-arpa_inet.c: Likewise.
101608         * tests/test-array_list.c: Likewise.
101609         * tests/test-array_oset.c: Likewise.
101610         * tests/test-atexit.c: Likewise.
101611         * tests/test-avltree_list.c: Likewise.
101612         * tests/test-avltree_oset.c: Likewise.
101613         * tests/test-avltreehash_list.c: Likewise.
101614         * tests/test-base64.c: Likewise.
101615         * tests/test-binary-io.c: Likewise.
101616         * tests/test-byteswap.c: Likewise.
101617         * tests/test-c-ctype.c: Likewise.
101618         * tests/test-c-strcasecmp.c: Likewise.
101619         * tests/test-c-strcasestr.c: Likewise.
101620         * tests/test-c-strncasecmp.c: Likewise.
101621         * tests/test-c-strstr.c: Likewise.
101622         * tests/test-canonicalize-lgpl.c: Likewise.
101623         * tests/test-canonicalize.c: Likewise.
101624         * tests/test-carray_list.c: Likewise.
101625         * tests/test-ceilf.c: Likewise.
101626         * tests/test-ceill.c: Likewise.
101627         * tests/test-count-one-bits.c: Likewise.
101628         * tests/test-crc.c: Likewise.
101629         * tests/test-dirname.c: Likewise.
101630         * tests/test-fbufmode.c: Likewise.
101631         * tests/test-fcntl.c: Likewise.
101632         * tests/test-fflush.c: Likewise.
101633         * tests/test-floorf.c: Likewise.
101634         * tests/test-floorl.c: Likewise.
101635         * tests/test-fopen.c: Likewise.
101636         * tests/test-fprintf-posix.c: Likewise.
101637         * tests/test-fprintf-posix.h: Likewise.
101638         * tests/test-fpurge.c: Likewise.
101639         * tests/test-freadable.c: Likewise.
101640         * tests/test-freadahead.c: Likewise.
101641         * tests/test-freading.c: Likewise.
101642         * tests/test-freopen.c: Likewise.
101643         * tests/test-frexp.c: Likewise.
101644         * tests/test-frexpl.c: Likewise.
101645         * tests/test-fseek.c: Likewise.
101646         * tests/test-fseeko.c: Likewise.
101647         * tests/test-fseterr.c: Likewise.
101648         * tests/test-fstrcmp.c: Likewise.
101649         * tests/test-ftell.c: Likewise.
101650         * tests/test-ftello.c: Likewise.
101651         * tests/test-fwritable.c: Likewise.
101652         * tests/test-fwriting.c: Likewise.
101653         * tests/test-getaddrinfo.c: Likewise.
101654         * tests/test-getpass.c: Likewise.
101655         * tests/test-gettimeofday.c: Likewise.
101656         * tests/test-hmac-md5.c: Likewise.
101657         * tests/test-hmac-sha1.c: Likewise.
101658         * tests/test-iconv.c: Likewise.
101659         * tests/test-iconvme.c: Likewise.
101660         * tests/test-inttypes.c: Likewise.
101661         * tests/test-isnan.c: Likewise.
101662         * tests/test-isnanf.c: Likewise.
101663         * tests/test-isnanl-nolibm.c: Likewise.
101664         * tests/test-isnanl.c: Likewise.
101665         * tests/test-isnanl.h: Likewise.
101666         * tests/test-ldexpl.c: Likewise.
101667         * tests/test-linked_list.c: Likewise.
101668         * tests/test-linkedhash_list.c: Likewise.
101669         * tests/test-locale.c: Likewise.
101670         * tests/test-localename.c: Likewise.
101671         * tests/test-lock.c: Likewise.
101672         * tests/test-lseek.c: Likewise.
101673         * tests/test-malloca.c: Likewise.
101674         * tests/test-math.c: Likewise.
101675         * tests/test-mbscasecmp.c: Likewise.
101676         * tests/test-mbscasestr1.c: Likewise.
101677         * tests/test-mbscasestr2.c: Likewise.
101678         * tests/test-mbscasestr3.c: Likewise.
101679         * tests/test-mbscasestr4.c: Likewise.
101680         * tests/test-mbschr.c: Likewise.
101681         * tests/test-mbscspn.c: Likewise.
101682         * tests/test-mbsncasecmp.c: Likewise.
101683         * tests/test-mbspbrk.c: Likewise.
101684         * tests/test-mbspcasecmp.c: Likewise.
101685         * tests/test-mbsrchr.c: Likewise.
101686         * tests/test-mbsspn.c: Likewise.
101687         * tests/test-mbsstr1.c: Likewise.
101688         * tests/test-mbsstr2.c: Likewise.
101689         * tests/test-mbsstr3.c: Likewise.
101690         * tests/test-md5.c: Likewise.
101691         * tests/test-memmem.c: Likewise.
101692         * tests/test-netinet_in.c: Likewise.
101693         * tests/test-open.c: Likewise.
101694         * tests/test-printf-frexp.c: Likewise.
101695         * tests/test-printf-frexpl.c: Likewise.
101696         * tests/test-printf-posix.c: Likewise.
101697         * tests/test-printf-posix.h: Likewise.
101698         * tests/test-rbtree_list.c: Likewise.
101699         * tests/test-rbtree_oset.c: Likewise.
101700         * tests/test-rbtreehash_list.c: Likewise.
101701         * tests/test-read-file.c: Likewise.
101702         * tests/test-rijndael.c: Likewise.
101703         * tests/test-search.c: Likewise.
101704         * tests/test-signbit.c: Likewise.
101705         * tests/test-sleep.c: Likewise.
101706         * tests/test-snprintf-posix.c: Likewise.
101707         * tests/test-snprintf-posix.h: Likewise.
101708         * tests/test-snprintf.c: Likewise.
101709         * tests/test-sprintf-posix.c: Likewise.
101710         * tests/test-sprintf-posix.h: Likewise.
101711         * tests/test-stat-time.c: Likewise.
101712         * tests/test-stdbool.c: Likewise.
101713         * tests/test-stdint.c: Likewise.
101714         * tests/test-stdio.c: Likewise.
101715         * tests/test-stdlib.c: Likewise.
101716         * tests/test-stpncpy.c: Likewise.
101717         * tests/test-strcasestr.c: Likewise.
101718         * tests/test-striconv.c: Likewise.
101719         * tests/test-striconveh.c: Likewise.
101720         * tests/test-striconveha.c: Likewise.
101721         * tests/test-string.c: Likewise.
101722         * tests/test-sys_select.c: Likewise.
101723         * tests/test-sys_socket.c: Likewise.
101724         * tests/test-sys_stat.c: Likewise.
101725         * tests/test-sys_time.c: Likewise.
101726         * tests/test-sysexits.c: Likewise.
101727         * tests/test-time.c: Likewise.
101728         * tests/test-tls.c: Likewise.
101729         * tests/test-trunc.c: Likewise.
101730         * tests/test-truncf.c: Likewise.
101731         * tests/test-truncl.c: Likewise.
101732         * tests/test-unistd.c: Likewise.
101733         * tests/test-vasnprintf-posix.c: Likewise.
101734         * tests/test-vasnprintf-posix2.c: Likewise.
101735         * tests/test-vasnprintf.c: Likewise.
101736         * tests/test-vasprintf-posix.c: Likewise.
101737         * tests/test-vasprintf.c: Likewise.
101738         * tests/test-verify.c: Likewise.
101739         * tests/test-vfprintf-posix.c: Likewise.
101740         * tests/test-vprintf-posix.c: Likewise.
101741         * tests/test-vsnprintf-posix.c: Likewise.
101742         * tests/test-vsnprintf.c: Likewise.
101743         * tests/test-vsprintf-posix.c: Likewise.
101744         * tests/test-wchar.c: Likewise.
101745         * tests/test-wctype.c: Likewise.
101746         * tests/test-wcwidth.c: Likewise.
101747         * tests/test-xstrtol.c: Likewise.
101748         * tests/test-xvasprintf.c: Likewise.
101749         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101750         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101751         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101752         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101753         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101754         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101755         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101756         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101757         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101758         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101759         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101760         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101761         * tests/uniname/test-uninames.c: Likewise.
101762         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101763         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101764         * tests/unistdio/test-u16-printf1.h: Likewise.
101765         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101766         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101767         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101768         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101769         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101770         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101771         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101772         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101773         * tests/unistdio/test-u32-printf1.h: Likewise.
101774         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101775         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101776         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101777         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101778         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101779         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101780         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101781         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101782         * tests/unistdio/test-u8-printf1.h: Likewise.
101783         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101784         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101785         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101786         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101787         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101788         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101789         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101790         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101791         * tests/unistdio/test-ulc-printf1.h: Likewise.
101792         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101793         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101794         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101795         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101796         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101797         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101798         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101799         * tests/uniwidth/test-u16-width.c: Likewise.
101800         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101801         * tests/uniwidth/test-u32-width.c: Likewise.
101802         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101803         * tests/uniwidth/test-u8-width.c: Likewise.
101804         * tests/uniwidth/test-uc_width.c: Likewise.
101805         * config/srclist-update: Likewise.
101806         (fixlicense): Update to GPLv3+.
101808         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101809         * tests/test-tsearch.c: Change copyright notice.
101811         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101812         * lib/c-strcaseeq.h: Change copyright notice.
101813         * lib/streq.h: Likewise.
101814         * lib/uniconv.h: Likewise.
101815         * lib/uniconv/u-conv-from-enc.h: Likewise.
101816         * lib/uniconv/u-conv-to-enc.h: Likewise.
101817         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101818         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101819         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101820         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101821         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101822         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101823         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101824         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101825         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101826         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101827         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101828         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101829         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101830         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101831         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101832         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101833         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101834         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101835         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101836         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101837         * lib/uniname.h: Likewise.
101838         * lib/uniname/uniname.c: Likewise.
101839         * lib/unistdio.h: Likewise.
101840         * lib/unistdio/u-asnprintf.h: Likewise.
101841         * lib/unistdio/u-asprintf.h: Likewise.
101842         * lib/unistdio/u-printf-args.c: Likewise.
101843         * lib/unistdio/u-printf-args.h: Likewise.
101844         * lib/unistdio/u-printf-parse.h: Likewise.
101845         * lib/unistdio/u-snprintf.h: Likewise.
101846         * lib/unistdio/u-sprintf.h: Likewise.
101847         * lib/unistdio/u-vasprintf.h: Likewise.
101848         * lib/unistdio/u-vsnprintf.h: Likewise.
101849         * lib/unistdio/u-vsprintf.h: Likewise.
101850         * lib/unistdio/u16-asnprintf.c: Likewise.
101851         * lib/unistdio/u16-asprintf.c: Likewise.
101852         * lib/unistdio/u16-printf-parse.c: Likewise.
101853         * lib/unistdio/u16-snprintf.c: Likewise.
101854         * lib/unistdio/u16-sprintf.c: Likewise.
101855         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101856         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101857         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101858         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101859         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101860         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101861         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101862         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101863         * lib/unistdio/u16-vasnprintf.c: Likewise.
101864         * lib/unistdio/u16-vasprintf.c: Likewise.
101865         * lib/unistdio/u16-vsnprintf.c: Likewise.
101866         * lib/unistdio/u16-vsprintf.c: Likewise.
101867         * lib/unistdio/u32-asnprintf.c: Likewise.
101868         * lib/unistdio/u32-asprintf.c: Likewise.
101869         * lib/unistdio/u32-printf-parse.c: Likewise.
101870         * lib/unistdio/u32-snprintf.c: Likewise.
101871         * lib/unistdio/u32-sprintf.c: Likewise.
101872         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101873         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101874         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101875         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101876         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101877         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101878         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101879         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101880         * lib/unistdio/u32-vasnprintf.c: Likewise.
101881         * lib/unistdio/u32-vasprintf.c: Likewise.
101882         * lib/unistdio/u32-vsnprintf.c: Likewise.
101883         * lib/unistdio/u32-vsprintf.c: Likewise.
101884         * lib/unistdio/u8-asnprintf.c: Likewise.
101885         * lib/unistdio/u8-asprintf.c: Likewise.
101886         * lib/unistdio/u8-printf-parse.c: Likewise.
101887         * lib/unistdio/u8-snprintf.c: Likewise.
101888         * lib/unistdio/u8-sprintf.c: Likewise.
101889         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101890         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101891         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101892         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101893         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101894         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101895         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101896         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101897         * lib/unistdio/u8-vasnprintf.c: Likewise.
101898         * lib/unistdio/u8-vasprintf.c: Likewise.
101899         * lib/unistdio/u8-vsnprintf.c: Likewise.
101900         * lib/unistdio/u8-vsprintf.c: Likewise.
101901         * lib/unistdio/ulc-asnprintf.c: Likewise.
101902         * lib/unistdio/ulc-asprintf.c: Likewise.
101903         * lib/unistdio/ulc-printf-parse.c: Likewise.
101904         * lib/unistdio/ulc-snprintf.c: Likewise.
101905         * lib/unistdio/ulc-sprintf.c: Likewise.
101906         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101907         * lib/unistdio/ulc-vasprintf.c: Likewise.
101908         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101909         * lib/unistdio/ulc-vsprintf.c: Likewise.
101910         * lib/unistr.h: Likewise.
101911         * lib/unistr/u-cpy-alloc.h: Likewise.
101912         * lib/unistr/u-cpy.h: Likewise.
101913         * lib/unistr/u-endswith.h: Likewise.
101914         * lib/unistr/u-move.h: Likewise.
101915         * lib/unistr/u-set.h: Likewise.
101916         * lib/unistr/u-startswith.h: Likewise.
101917         * lib/unistr/u-stpcpy.h: Likewise.
101918         * lib/unistr/u-stpncpy.h: Likewise.
101919         * lib/unistr/u-strcat.h: Likewise.
101920         * lib/unistr/u-strcpy.h: Likewise.
101921         * lib/unistr/u-strcspn.h: Likewise.
101922         * lib/unistr/u-strdup.h: Likewise.
101923         * lib/unistr/u-strlen.h: Likewise.
101924         * lib/unistr/u-strncat.h: Likewise.
101925         * lib/unistr/u-strncpy.h: Likewise.
101926         * lib/unistr/u-strnlen.h: Likewise.
101927         * lib/unistr/u-strpbrk.h: Likewise.
101928         * lib/unistr/u-strspn.h: Likewise.
101929         * lib/unistr/u-strstr.h: Likewise.
101930         * lib/unistr/u-strtok.h: Likewise.
101931         * lib/unistr/u16-check.c: Likewise.
101932         * lib/unistr/u16-chr.c: Likewise.
101933         * lib/unistr/u16-cmp.c: Likewise.
101934         * lib/unistr/u16-cpy-alloc.c: Likewise.
101935         * lib/unistr/u16-cpy.c: Likewise.
101936         * lib/unistr/u16-endswith.c: Likewise.
101937         * lib/unistr/u16-mblen.c: Likewise.
101938         * lib/unistr/u16-mbsnlen.c: Likewise.
101939         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101940         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101941         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101942         * lib/unistr/u16-mbtouc.c: Likewise.
101943         * lib/unistr/u16-mbtoucr.c: Likewise.
101944         * lib/unistr/u16-move.c: Likewise.
101945         * lib/unistr/u16-next.c: Likewise.
101946         * lib/unistr/u16-prev.c: Likewise.
101947         * lib/unistr/u16-set.c: Likewise.
101948         * lib/unistr/u16-startswith.c: Likewise.
101949         * lib/unistr/u16-stpcpy.c: Likewise.
101950         * lib/unistr/u16-stpncpy.c: Likewise.
101951         * lib/unistr/u16-strcat.c: Likewise.
101952         * lib/unistr/u16-strchr.c: Likewise.
101953         * lib/unistr/u16-strcmp.c: Likewise.
101954         * lib/unistr/u16-strcpy.c: Likewise.
101955         * lib/unistr/u16-strcspn.c: Likewise.
101956         * lib/unistr/u16-strdup.c: Likewise.
101957         * lib/unistr/u16-strlen.c: Likewise.
101958         * lib/unistr/u16-strmblen.c: Likewise.
101959         * lib/unistr/u16-strmbtouc.c: Likewise.
101960         * lib/unistr/u16-strncat.c: Likewise.
101961         * lib/unistr/u16-strncmp.c: Likewise.
101962         * lib/unistr/u16-strncpy.c: Likewise.
101963         * lib/unistr/u16-strnlen.c: Likewise.
101964         * lib/unistr/u16-strpbrk.c: Likewise.
101965         * lib/unistr/u16-strrchr.c: Likewise.
101966         * lib/unistr/u16-strspn.c: Likewise.
101967         * lib/unistr/u16-strstr.c: Likewise.
101968         * lib/unistr/u16-strtok.c: Likewise.
101969         * lib/unistr/u16-to-u32.c: Likewise.
101970         * lib/unistr/u16-to-u8.c: Likewise.
101971         * lib/unistr/u16-uctomb-aux.c: Likewise.
101972         * lib/unistr/u16-uctomb.c: Likewise.
101973         * lib/unistr/u32-check.c: Likewise.
101974         * lib/unistr/u32-chr.c: Likewise.
101975         * lib/unistr/u32-cmp.c: Likewise.
101976         * lib/unistr/u32-cpy-alloc.c: Likewise.
101977         * lib/unistr/u32-cpy.c: Likewise.
101978         * lib/unistr/u32-endswith.c: Likewise.
101979         * lib/unistr/u32-mblen.c: Likewise.
101980         * lib/unistr/u32-mbsnlen.c: Likewise.
101981         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101982         * lib/unistr/u32-mbtouc.c: Likewise.
101983         * lib/unistr/u32-mbtoucr.c: Likewise.
101984         * lib/unistr/u32-move.c: Likewise.
101985         * lib/unistr/u32-next.c: Likewise.
101986         * lib/unistr/u32-prev.c: Likewise.
101987         * lib/unistr/u32-set.c: Likewise.
101988         * lib/unistr/u32-startswith.c: Likewise.
101989         * lib/unistr/u32-stpcpy.c: Likewise.
101990         * lib/unistr/u32-stpncpy.c: Likewise.
101991         * lib/unistr/u32-strcat.c: Likewise.
101992         * lib/unistr/u32-strchr.c: Likewise.
101993         * lib/unistr/u32-strcmp.c: Likewise.
101994         * lib/unistr/u32-strcpy.c: Likewise.
101995         * lib/unistr/u32-strcspn.c: Likewise.
101996         * lib/unistr/u32-strdup.c: Likewise.
101997         * lib/unistr/u32-strlen.c: Likewise.
101998         * lib/unistr/u32-strmblen.c: Likewise.
101999         * lib/unistr/u32-strmbtouc.c: Likewise.
102000         * lib/unistr/u32-strncat.c: Likewise.
102001         * lib/unistr/u32-strncmp.c: Likewise.
102002         * lib/unistr/u32-strncpy.c: Likewise.
102003         * lib/unistr/u32-strnlen.c: Likewise.
102004         * lib/unistr/u32-strpbrk.c: Likewise.
102005         * lib/unistr/u32-strrchr.c: Likewise.
102006         * lib/unistr/u32-strspn.c: Likewise.
102007         * lib/unistr/u32-strstr.c: Likewise.
102008         * lib/unistr/u32-strtok.c: Likewise.
102009         * lib/unistr/u32-to-u16.c: Likewise.
102010         * lib/unistr/u32-to-u8.c: Likewise.
102011         * lib/unistr/u32-uctomb.c: Likewise.
102012         * lib/unistr/u8-check.c: Likewise.
102013         * lib/unistr/u8-chr.c: Likewise.
102014         * lib/unistr/u8-cmp.c: Likewise.
102015         * lib/unistr/u8-cpy-alloc.c: Likewise.
102016         * lib/unistr/u8-cpy.c: Likewise.
102017         * lib/unistr/u8-endswith.c: Likewise.
102018         * lib/unistr/u8-mblen.c: Likewise.
102019         * lib/unistr/u8-mbsnlen.c: Likewise.
102020         * lib/unistr/u8-mbtouc-aux.c: Likewise.
102021         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
102022         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
102023         * lib/unistr/u8-mbtouc.c: Likewise.
102024         * lib/unistr/u8-mbtoucr.c: Likewise.
102025         * lib/unistr/u8-move.c: Likewise.
102026         * lib/unistr/u8-next.c: Likewise.
102027         * lib/unistr/u8-prev.c: Likewise.
102028         * lib/unistr/u8-set.c: Likewise.
102029         * lib/unistr/u8-startswith.c: Likewise.
102030         * lib/unistr/u8-stpcpy.c: Likewise.
102031         * lib/unistr/u8-stpncpy.c: Likewise.
102032         * lib/unistr/u8-strcat.c: Likewise.
102033         * lib/unistr/u8-strchr.c: Likewise.
102034         * lib/unistr/u8-strcmp.c: Likewise.
102035         * lib/unistr/u8-strcpy.c: Likewise.
102036         * lib/unistr/u8-strcspn.c: Likewise.
102037         * lib/unistr/u8-strdup.c: Likewise.
102038         * lib/unistr/u8-strlen.c: Likewise.
102039         * lib/unistr/u8-strmblen.c: Likewise.
102040         * lib/unistr/u8-strmbtouc.c: Likewise.
102041         * lib/unistr/u8-strncat.c: Likewise.
102042         * lib/unistr/u8-strncmp.c: Likewise.
102043         * lib/unistr/u8-strncpy.c: Likewise.
102044         * lib/unistr/u8-strnlen.c: Likewise.
102045         * lib/unistr/u8-strpbrk.c: Likewise.
102046         * lib/unistr/u8-strrchr.c: Likewise.
102047         * lib/unistr/u8-strspn.c: Likewise.
102048         * lib/unistr/u8-strstr.c: Likewise.
102049         * lib/unistr/u8-strtok.c: Likewise.
102050         * lib/unistr/u8-to-u16.c: Likewise.
102051         * lib/unistr/u8-to-u32.c: Likewise.
102052         * lib/unistr/u8-uctomb-aux.c: Likewise.
102053         * lib/unistr/u8-uctomb.c: Likewise.
102054         * lib/unitypes.h: Likewise.
102055         * lib/uniwidth.h: Likewise.
102056         * lib/uniwidth/cjk.h: Likewise.
102057         * lib/uniwidth/u16-strwidth.c: Likewise.
102058         * lib/uniwidth/u16-width.c: Likewise.
102059         * lib/uniwidth/u32-strwidth.c: Likewise.
102060         * lib/uniwidth/u32-width.c: Likewise.
102061         * lib/uniwidth/u8-strwidth.c: Likewise.
102062         * lib/uniwidth/u8-width.c: Likewise.
102063         * lib/uniwidth/width.c: Likewise.
102065 2007-10-07  Bruno Haible  <bruno@clisp.org>
102067         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
102068         The file is still under LGPL (see modules/inttypes).
102070 2007-10-06  Bruno Haible  <bruno@clisp.org>
102072         * modules/trunc (Dependencies): Add 'extensions'.
102073         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
102074         Reported by Ben Pfaff <blp@gnu.org>.
102076 2007-10-06  Bruno Haible  <bruno@clisp.org>
102078         * modules/freopen-tests: New file.
102079         * tests/test-freopen.c: New file.
102081         * modules/fopen-tests: New file.
102082         * tests/test-fopen.c: New file.
102084         * modules/fopen: New file.
102085         * lib/fopen.c: New file.
102086         * m4/fopen.m4: New file.
102087         * modules/freopen: New file.
102088         * lib/freopen.c: New file.
102089         * m4/freopen.m4: New file.
102090         * lib/stdio.in.h (fopen, freopen): New declarations.
102091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
102092         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102093         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
102094         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102095         * doc/functions/fopen.texi: Mention the 'fopen' module.
102096         * doc/functions/freopen.texi: Mention the 'freopen' module.
102098 2007-10-06  Bruno Haible  <bruno@clisp.org>
102100         * modules/open-tests: New file.
102101         * tests/test-open.c: New file.
102103         * modules/open: New file.
102104         * lib/open.c: New file.
102105         * m4/open.m4: New file.
102106         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
102107         lib/open.c does.
102108         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
102109         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
102110         macros.
102111         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
102112         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
102113         REPLACE_OPEN.
102114         * doc/functions/open.texi: Mention the 'open' module.
102116 2007-10-04  Bruno Haible  <bruno@clisp.org>
102118         * modules/ceill-tests: New file.
102119         * tests/test-ceill.c: New file.
102121         * modules/ceill: New file.
102122         * lib/ceill.c: Replace entire file.
102123         * m4/ceill.m4: New file.
102124         * lib/math.in.h (ceill): Replace declaration.
102125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
102126         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
102127         * doc/functions/ceill.texi: Mention the 'ceill' module.
102128         * modules/mathl (Files): Remove lib/ceill.c.
102129         (Depends-on): Add ceill.
102131 2007-10-04  Bruno Haible  <bruno@clisp.org>
102133         * modules/ceilf-tests: New file.
102134         * tests/test-ceilf.c: New file.
102136         * modules/ceilf: New file.
102137         * lib/ceil.c: New file.
102138         * lib/ceilf.c: New file.
102139         * m4/ceilf.m4: New file.
102140         * lib/math.in.h (ceilf): New declaration.
102141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
102142         HAVE_DECL_CEILF.
102143         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
102144         HAVE_DECL_CEILF.
102145         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
102147 2007-10-04  Bruno Haible  <bruno@clisp.org>
102149         * modules/floorl-tests: New file.
102150         * tests/test-floorl.c: New file.
102152         * modules/floorl: New file.
102153         * lib/floorl.c: Replace entire file.
102154         * m4/floorl.m4: New file.
102155         * lib/math.in.h (floorl): Replace declaration.
102156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
102157         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
102158         * doc/functions/floorl.texi: Mention the 'floorl' module.
102159         * modules/mathl (Files): Remove lib/floorl.c.
102160         (Depends-on): Add floorl.
102162 2007-10-04  Bruno Haible  <bruno@clisp.org>
102164         * modules/floorf-tests: New file.
102165         * tests/test-floorf.c: New file.
102167         * modules/floorf: New file.
102168         * lib/floor.c: New file.
102169         * lib/floorf.c: New file.
102170         * m4/floorf.m4: New file.
102171         * lib/math.in.h (floorf): New declaration.
102172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
102173         HAVE_DECL_FLOORF.
102174         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
102175         HAVE_DECL_FLOORF.
102176         * doc/functions/floorf.texi: Mention the 'floorf' module.
102178 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
102179             Bruno Haible  <bruno@clisp.org>
102181         Advertise for the Git server instead of the CVS server.
102182         * doc/gnulib-intro.texi (Steady Development): Mention the Git
102183         repository instead of the CVS one.
102184         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
102185         about all VCS systems generically.
102186         * doc/gnulib.texi (Introduction): Capitalize `Git'.
102188 2007-10-04  Bruno Haible  <bruno@clisp.org>
102190         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
102191         means.
102192         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
102194 2007-10-04  Bruno Haible  <bruno@clisp.org>
102196         * modules/truncl-tests: New file.
102197         * tests/test-truncl.c: New file.
102199         * modules/truncl: New file.
102200         * lib/truncl.c: New file.
102201         * m4/truncl.m4: New file.
102202         * lib/math.in.h (truncl): New declaration.
102203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
102204         HAVE_DECL_TRUNCL.
102205         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
102206         HAVE_DECL_TRUNCL.
102207         * doc/functions/truncl.texi: Mention the 'truncl' module.
102209 2007-10-04  Bruno Haible  <bruno@clisp.org>
102211         * modules/truncf-tests: New file.
102212         * tests/test-truncf.c: New file.
102214         * modules/truncf: New file.
102215         * lib/trunc.c: Make paramerizable through USE_* macros.
102216         * lib/truncf.c: New file.
102217         * m4/truncf.m4: New file.
102218         * lib/math.in.h (truncf): New declaration.
102219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
102220         HAVE_DECL_TRUNCF.
102221         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
102222         HAVE_DECL_TRUNCF.
102223         * doc/functions/truncf.texi: Mention the 'truncf' module.
102225 2007-10-03  Bruno Haible  <bruno@clisp.org>
102227         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
102228         augmentation also for tests modules.
102229         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
102230         * modules/atexit-tests (Makefile.am): Likewise.
102231         * modules/binary-io-tests (Makefile.am): Likewise.
102232         * modules/c-strcase-tests (Makefile.am): Likewise.
102233         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
102234         * modules/canonicalize-tests (Makefile.am): Likewise.
102235         * modules/closein-tests (Makefile.am): Likewise.
102236         * modules/fprintf-posix-tests (Makefile.am): Likewise.
102237         * modules/freadahead-tests (Makefile.am): Likewise.
102238         * modules/fseek-tests (Makefile.am): Likewise.
102239         * modules/fseeko-tests (Makefile.am): Likewise.
102240         * modules/ftell-tests (Makefile.am): Likewise.
102241         * modules/ftello-tests (Makefile.am): Likewise.
102242         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
102243         * modules/isnanl-tests (Makefile.am): Likewise.
102244         * modules/lseek-tests (Makefile.am): Likewise.
102245         * modules/mbscasecmp-tests (Makefile.am): Likewise.
102246         * modules/mbscasestr-tests (Makefile.am): Likewise.
102247         * modules/mbschr-tests (Makefile.am): Likewise.
102248         * modules/mbscspn-tests (Makefile.am): Likewise.
102249         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
102250         * modules/mbspbrk-tests (Makefile.am): Likewise.
102251         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
102252         * modules/mbsrchr-tests (Makefile.am): Likewise.
102253         * modules/mbsspn-tests (Makefile.am): Likewise.
102254         * modules/mbsstr-tests (Makefile.am): Likewise.
102255         * modules/printf-posix-tests (Makefile.am): Likewise.
102256         * modules/snprintf-posix-tests (Makefile.am): Likewise.
102257         * modules/sprintf-posix-tests (Makefile.am): Likewise.
102258         * modules/tsearch-tests (Makefile.am): Likewise.
102259         * modules/uniname/uniname-tests (Makefile.am): Likewise.
102260         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
102261         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
102262         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
102263         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
102264         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
102265         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
102266         * modules/vprintf-posix-tests (Makefile.am): Likewise.
102267         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
102268         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
102269         * modules/xstrtoimax-tests (Makefile.am): Likewise.
102270         * modules/xstrtol-tests (Makefile.am): Likewise.
102271         * modules/xstrtoumax-tests (Makefile.am): Likewise.
102272         * modules/yesno-tests (Makefile.am): Likewise.
102274 2007-10-03  Bruno Haible  <bruno@clisp.org>
102276         * modules/trunc-tests: New file.
102277         * tests/test-trunc.c: New file.
102279         * modules/trunc: New file.
102280         * lib/trunc.c: New file.
102281         * m4/trunc.m4: New file.
102282         * lib/math.in.h (trunc): New declaration.
102283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
102284         HAVE_DECL_TRUNC.
102285         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
102286         HAVE_DECL_TRUNC.
102287         * doc/functions/trunc.texi: Mention the 'trunc' module.
102289 2007-10-03  Bruno Haible  <bruno@clisp.org>
102291         * tests/test-fpending.c: New file, mostly copied
102292         from coreutils/lib/t-fpending.c.
102293         * modules/fpending-tests: New file.
102295 2007-10-03  Bruno Haible  <bruno@clisp.org>
102297         Port the stdio extensions to QNX (untested).
102298         * lib/fseterr.c (fseterr): Add support for QNX.
102299         * lib/fbufmode.c (fbufmode): Likewise.
102300         * lib/freadable.c (freadable): Likewise.
102301         * lib/fwritable.c (fwritable): Likewise.
102302         * lib/freading.c (freading): Likewise.
102303         * lib/fwriting.c (fwriting): Likewise.
102304         * lib/freadahead.c (freadahed): Likewise.
102305         * lib/fpurge.c (fpurge): Likewise.
102306         * lib/fseeko.c (rpl_fseeko): Likewise.
102308 2007-10-03  Bruno Haible  <bruno@clisp.org>
102309             Jim Meyering  <jim@meyering.net>
102310             Eric Blake  <ebb9@byu.net>
102312         * doc/relocatable.texi: Use @command instead of @program.
102314 2007-10-02  Jim Meyering  <jim@meyering.net>
102316         Perform one more "_.h" -> ".in.h" substitution.
102317         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
102318         instead of unistd_.h here, too.
102320 2007-10-01  Bruno Haible  <bruno@clisp.org>
102322         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
102323         Needed for the alloca-opt module.
102325 2007-09-30  Bruno Haible  <bruno@clisp.org>
102327         * lib/alloca.in.h: Renamed from lib/alloca_.h.
102328         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
102329         alloca_.h.
102330         * lib/argz.in.h: Renamed from lib/argz_.h.
102331         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
102332         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
102333         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
102334         byteswap_.h.
102335         * lib/dirent.in.h: Renamed from lib/dirent_.h.
102336         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
102337         dirent_.h.
102338         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
102339         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
102340         fcntl_.h.
102341         * lib/float.in.h: Renamed from lib/float_.h.
102342         * modules/float (Files, Makefile.am): Use float.in.h instead of
102343         float_.h.
102344         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
102345         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
102346         fnmatch_.h.
102347         * lib/getopt.in.h: Renamed from lib/getopt_.h.
102348         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
102349         getopt_.h.
102350         * lib/glob.in.h: Renamed from lib/glob_.h.
102351         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
102352         * lib/iconv.in.h: Renamed from lib/iconv_.h.
102353         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
102354         iconv_.h.
102355         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
102356         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
102357         inttypes_.h.
102358         * lib/locale.in.h: Renamed from lib/locale_.h.
102359         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
102360         locale_.h.
102361         * lib/math.in.h: Renamed from lib/math_.h.
102362         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
102363         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
102364         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
102365         of netinet_in_.h. Add dependency.
102366         * lib/poll.in.h: Renamed from lib/poll_.h.
102367         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
102368         * lib/search.in.h: Renamed from lib/search_.h.
102369         * modules/search (Files, Makefile.am): Use search.in.h instead of
102370         search_.h.
102371         * lib/signal.in.h: Renamed from lib/signal_.h.
102372         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
102373         _signal.h.
102374         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
102375         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
102376         stdbool_.h.
102377         * lib/stdint.in.h: Renamed from lib/stdint_.h.
102378         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
102379         stdint_.h.
102380         * lib/stdio.in.h: Renamed from lib/stdio_.h.
102381         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
102382         stdio_.h.
102383         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
102384         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
102385         stdlib_.h.
102386         * lib/string.in.h: Renamed from lib/string_.h.
102387         * modules/string (Files, Makefile.am): Use string.in.h instead of
102388         string_.h.
102389         * doc/gnulib-tool.texi (Initial import): Update.
102390         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
102391         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
102392         of sys_select_.h. Add dependency.
102393         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
102394         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102395         of sys_socket_.h.
102396         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
102397         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
102398         sys_stat_.h.
102399         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
102400         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
102401         sys_time_.h.
102402         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
102403         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
102404         sysexits_.h.
102405         * lib/time.in.h: Renamed from lib/time_.h.
102406         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
102407         * lib/unistd.in.h: Renamed from lib/unistd_.h.
102408         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
102409         unistd_.h.
102410         * lib/wchar.in.h: Renamed from lib/wchar_.h.
102411         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
102412         wchar_.h.
102413         * lib/wctype.in.h: Renamed from lib/wctype_.h.
102414         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
102415         wctype_.h.
102416         * build-aux/bootstrap (slurp): Update.
102417         * lib/.cppi-disable: Update.
102419 2007-09-30  Bruno Haible  <bruno@clisp.org>
102421         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102422         Needed on BeOS.
102424 2007-09-30  Bruno Haible  <bruno@clisp.org>
102426         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102428 2007-09-29  Bruno Haible  <bruno@clisp.org>
102430         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102432 2007-09-29  Bruno Haible  <bruno@clisp.org>
102434         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102435         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102436         * build-aux/install-reloc: Compile also areadlink.c.
102437         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102439 2007-09-29  Bruno Haible  <bruno@clisp.org>
102441         * gnulib-tool (func_emit_initmacro_done): Indentation.
102443 2007-09-29  Bruno Haible  <bruno@clisp.org>
102445         * README: Add CVS checkout update instructions.
102446         Info from Bob Proulx <bob@proulx.com>.
102448 2007-09-28  Eric Blake  <ebb9@byu.net>
102450         Provide move-if-change.
102451         * build-aux/move-if-change: New file, based on best practice
102452         rather than any canonical upstream location.
102454 2007-09-28  Jim Meyering  <jim@meyering.net>
102456         Fix canonicalize loop-detection corner case.
102457         Do not attempt to stat the symlink values stored via seen_triple.
102458         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102459         on linux-2.6.18, (but not 2.6.22).
102460         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102461         triple_compare.  The former compares dev,ino,filename, while the latter
102462         would actually stat dirname(filename) when dev and ino were equal.
102463         * lib/hash-triple.c: Install <string.h>.
102464         (STREQ): Define.
102465         (triple_compare_ino_str): New function.
102466         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102468 2007-09-28  Eric Blake  <ebb9@byu.net>
102470         Enforce that AC_REPLACE_FUNCS files exist.
102471         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102472         override check for typos.
102474         Fix test-closein on Solaris 10.
102475         * tests/test-closein.c (main): Don't assume stdin can be inherited
102476         closed on all systems.
102477         * tests/test-closein.sh: Likewise.
102478         Reported by Piotr Tarnowski.
102480 2007-09-28  Jim Meyering  <jim@meyering.net>
102482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102484 2007-09-27  Jim Meyering  <jim@meyering.net>
102486         canonicalize: Avoid a false-positive cycle failure.
102487         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102488         Sort.  Remove cycle-check.
102489         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102490         not cycle-check.h.
102491         (seen_triple): New function.
102492         (canonicalize_filename_mode): Use it instead of cycle-check.
102493         * tests/test-canonicalize.c: Add a test for this bug.
102494         * tests/test-canonicalize.sh: Set up and run the test.
102496         New module, file-set, from coreutils.
102497         * modules/file-set: Define it.
102498         * lib/file-set.c, lib/file-set.h: Implement.
102500         New module, hash-triple, from coreutils.
102501         * modules/hash-triple: Define it.
102502         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102504 2007-09-25  Eric Blake  <ebb9@byu.net>
102506         Fix strerror on Interix.
102507         * lib/string_.h (strerror): Declare replacement.
102508         * doc/functions/strerror.texi (strerror): Document the Interix
102509         shortcoming.
102510         * modules/string (Makefile.am): Support new hooks.
102511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102512         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102513         gl_FUNC_STRERROR_SEPARATE.
102514         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102515         * lib/strerror.c (rpl_strerror): Provide replacement.
102516         * modules/strerror (Depends-on): Add string.
102517         (configure.ac): Detect use of module.
102518         * tests/test-strerror.c: New file.
102519         * modules/strerror-tests: New test module.
102520         * modules/argp (Depends-on): Add strerror.
102521         * modules/error (Depends-on): Likewise.
102522         Reported by Martin Koeppe.
102524 2007-09-24  Bruno Haible  <bruno@clisp.org>
102526         * README: Update git instructions.
102528 2007-09-24  Eric Blake  <ebb9@byu.net>
102530         Revert fpending breakage from 2007-09-08.
102531         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102532         __fpending.c.
102534 2007-09-24  Jim Meyering  <jim@meyering.net>
102536         filenamecat.c: Add a test.
102537         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102538         showing how the function works when DIR is the empty string.
102540 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102542         * tests/test-canonicalize.sh: Turn on executable bit.
102544 2007-09-19  Eric Blake  <ebb9@byu.net>
102546         * README: Update CVS instructions.
102548 2007-09-18  Bruno Haible  <bruno@clisp.org>
102550         * modules/areadlink: New file.
102551         * lib/areadlink.h (areadlink): New declaration.
102552         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102554 2007-09-17  Jim Meyering  <jim@meyering.net>
102556         * lib/savewd.c (ESTALE) [!defined]: Define.
102557         Reported to be required on Interix by Martin Koeppe.
102559 2007-09-17  Bruno Haible  <bruno@clisp.org>
102561         * gnulib-tool (func_version): Use $version.
102563 2007-09-16  Bruno Haible  <bruno@clisp.org>
102565         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102566         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102567         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102568         Reported by Greg Schafer <gschafer@zip.com.au>.
102570 2007-09-15  Bruno Haible  <bruno@clisp.org>
102572         * gnulib-tool (sed): Try a little harder to make bash understand the
102573         alias.
102574         Reported by Bruce Korb <bruce.korb@gmail.com>.
102576 2007-09-13  Eric Blake  <ebb9@byu.net>
102578         * ChangeLog: Remove conflict markers.
102580 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102582         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102583         Reported by Bruno Haible <bruno@clisp.org>.
102585 2007-09-12  Bruno Haible  <bruno@clisp.org>
102587         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102588         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102589         is not defined.
102591 2007-09-12  Eric Blake  <ebb9@byu.net>
102593         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102594         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102595         Autoconf definition.
102596         * modules/euidaccess (Depends-on): Add extensions, for
102597         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102598         * modules/fnmatch (Depends-on): Likewise.
102599         * modules/getaddrinfo (Depends-on): Likewise.
102600         * modules/getdelim (Depends-on): Likewise.
102601         * modules/getline (Depends-on): Likewise.
102602         * modules/getsubopt (Depends-on): Likewise.
102603         * modules/gettext (Depends-on): Likewise.
102604         * modules/group-member (Depends-on): Likewise.
102605         * modules/mbchar (Depends-on): Likewise.
102606         * modules/memmem (Depends-on): Likewise.
102607         * modules/mempcpy (Depends-on): Likewise.
102608         * modules/memrchr (Depends-on): Likewise.
102609         * modules/pagealign_alloc (Depends-on): Likewise.
102610         * modules/readutmp (Depends-on): Likewise.
102611         * modules/stpcpy (Depends-on): Likewise.
102612         * modules/stpncpy (Depends-on): Likewise.
102613         * modules/strchrnul (Depends-on): Likewise.
102614         * modules/strndup (Depends-on): Likewise.
102615         * modules/strsep (Depends-on): Likewise.
102616         * modules/strverscmp (Depends-on): Likewise.
102617         * modules/vasprintf (Depends-on): Likewise.
102618         * modules/wcwidth (Depends-on): Likewise.
102619         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102620         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102621         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102623         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102624         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102625         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102626         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102627         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102628         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102631         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102633         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102634         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102635         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102636         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102638         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102639         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102640         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102641         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102642         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102643         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102645         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102646         so that lock.m4 can be used in gettext without extensions module.
102648 2007-09-11  Bruno Haible  <bruno@clisp.org>
102650         * m4/isc-posix.m4: Remove file.
102651         Suggested by Eric Blake.
102653 2007-09-11  Eric Blake  <ebb9@byu.net>
102655         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102657 2007-09-10  Bruno Haible  <bruno@clisp.org>
102659         * posix-modules: Fix typo in error message.
102660         Reported by Matt <mkraai@beckman.com>.
102662 2007-09-09  Bruno Haible  <bruno@clisp.org>
102664         * doc/functions/getdelim.texi: Update list of platforms lacking the
102665         function.
102666         * doc/functions/getline.texi: Likewise.
102668 2007-09-09  Jim Meyering  <jim@meyering.net>
102670         * lib/hash.c (hash_initialize): Detect calloc failure.
102671         Reported by Bruno Haible.
102673 2007-09-09  Bruno Haible  <bruno@clisp.org>
102675         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102676         malloc or realloc fails.
102678 2007-09-09  Bruno Haible  <bruno@clisp.org>
102680         * modules/getcwd (Depends-on): Add malloc-posix.
102681         * modules/glob (Depends-on): Likewise.
102682         * modules/putenv (Depends-on): Likewise.
102683         * modules/strdup (Depends-on): Likewise.
102684         * modules/getdelim (Depends-on): Add realloc-posix.
102685         * modules/read-file (Depends-on): Likewise.
102687 2007-09-09  Bruno Haible  <bruno@clisp.org>
102689         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102690         (gl_FUNC_MALLOC_POSIX): Require it.
102691         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102692         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102693         * modules/realloc (Files): Add m4/malloc.m4.
102694         * modules/calloc (Files): Likewise.
102696 2007-09-09  Bruno Haible  <bruno@clisp.org>
102698         * modules/malloc-posix: New file.
102699         * modules/malloc (Depends-on): Add malloc-posix.
102700         * lib/malloc.c: Include errno.h.
102701         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102702         and a POSIX-compatible malloc into a single function. Set ENOMEM
102703         when returning NULL.
102704         * m4/malloc.m4: New file.
102705         * doc/functions/malloc.texi: Mention the malloc-posix module.
102706         * lib/stdlib_.h (malloc): New declaration.
102707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102708         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102709         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102710         and HAVE_MALLOC_POSIX.
102712 2007-09-09  Bruno Haible  <bruno@clisp.org>
102714         * modules/realloc-posix: New file.
102715         * modules/realloc (Depends-on): Add realloc-posix.
102716         * lib/realloc.c: Include errno.h.
102717         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102718         and a POSIX-compatible realloc into a single function. Set ENOMEM
102719         when returning NULL.
102720         * m4/realloc.m4: New file.
102721         * doc/functions/realloc.texi: Mention the realloc-posix module.
102722         * lib/stdlib_.h (realloc): New declaration.
102723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102724         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102725         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102726         and HAVE_REALLOC_POSIX.
102728 2007-09-09  Bruno Haible  <bruno@clisp.org>
102730         * modules/calloc-posix: New file.
102731         * modules/calloc (Depends-on): Add calloc-posix.
102732         * lib/calloc.c: Include errno.h.
102733         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102734         and a POSIX-compatible calloc into a single function. Set ENOMEM
102735         when returning NULL.
102736         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102737         * doc/functions/calloc.texi: Mention the calloc-posix module.
102738         * lib/stdlib_.h (calloc): New declaration.
102739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102740         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102741         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102742         and HAVE_CALLOC_POSIX.
102744 2007-09-09  Bruno Haible  <bruno@clisp.org>
102746         Allow for modules to show an arbitrary notice.
102747         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102748         * gnulib-tool: New option --extract-notice.
102749         (func_usage): Document it.
102750         (sed_extract_prog): Update.
102751         (func_get_notice): New function.
102752         (func_modules_notice): New function.
102753         (func_import, func_create_testdir): Invoke it.
102754         Suggested by Jim Meyering.
102756 2007-09-09  Bruno Haible  <bruno@clisp.org>
102758         * gnulib-tool: New options --verbose, --quiet.
102759         (func_usage): Document them.
102760         (verbose): New variable.
102761         (func_execute_command): New function.
102762         (func_import): Don't show the module list and the file list if
102763         $verbose < 0.
102764         (func_create_testdir): Likewise. Use func_execute_command.
102765         (func_create_megatestdir): Use func_execute_command.
102767 2007-09-08  Bruno Haible  <bruno@clisp.org>
102769         * gnulib-tool (func_import): Prefer rsync over wget when available,
102770         for fetching the PO files.
102772 2007-09-08  Bruno Haible  <bruno@clisp.org>
102774         * posix-modules: New file. Portions copied from gnulib-tool.
102775         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102777 2007-09-08  Jim Meyering  <jim@meyering.net>
102779         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102780         * lib/fpending.h: Rename from __fpending.h.
102781         * lib/fpending.c: Rename from __fpending.c.
102782         Include "fpending.h", not "__fpending.h".
102783         * lib/__fpending.h, lib/__fpending.c: Remove files.
102784         * modules/fpending (Files): Reflect new file names.
102785         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102787 2007-09-08  Bruno Haible  <bruno@clisp.org>
102789         * m4/inttypes-h.m4: Remove stub file.
102791 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102793         * doc/headers/stdint.texi: Discuss #include_next issue.
102795 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102797         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102799 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102801         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102802         in variable name.
102804 2007-09-03  Jim Meyering  <jim@meyering.net>
102806         New module: git-version-gen.
102807         * modules/git-version-gen: New file.
102809         Import changes from coreutils for bootstrap script.
102811         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102813         bootstrap: uses rsync to download the .po files
102814         * build-aux/bootstrap (po_download_command_format): New global.
102815         (download_po_files): Use rsync.
102816         (update_po_files): Don't remove .po files after download,
102817         so future rsync runs can take advantage of the copies.
102819         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102821         Solve the unnecessary-.po-file-regeneration problem once and for all.
102822         * build-aux/bootstrap (download_po_files): New function, renamed from
102823         get_translations.  Now, downloads, but doesn't update LINGUAS.
102824         (update_po_files): New function.
102826         bootstrap: Ignore more.
102827         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102828         uniwidth to e.g., lib/.gitignore.
102829         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102831         * build-aux/bootstrap: New setting: vc_ignore.
102832         (insert_sorted_if_absent): Create $file if absent.
102833         Adapt to new, possibly empty, list: $vc_ignore.
102835         bootstrap: generate more ignorable names
102836         * build-aux/bootstrap (slurp): When generating ignorable names,
102837         also map .sin to .sed, .gperf to .c, and .y to .c.
102839 2007-09-03  Jim Meyering  <jim@meyering.net>
102841         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102842         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102844 2007-09-02  Bruno Haible  <bruno@clisp.org>
102846         Fix mis-recognition of 'mcs' on QNX 6.
102847         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102848         output contains the string "Mono".
102849         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102850         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102852 2007-09-01  Bruno Haible  <bruno@clisp.org>
102854         Fix collision between uniwidth/* and linebreak modules.
102855         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102856         u32_width): Remove declarations.
102857         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102858         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102859         streq3, streq2, streq1, streq0): Remove functions.
102860         (STREQ): Remove macro.
102861         (is_cjk_encoding): Remove function.
102862         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102863         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102864         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102865         * NEWS: Document the change.
102867 2007-09-01  Bruno Haible  <bruno@clisp.org>
102869         * lib/streq.h: Add double-inclusion guard.
102871 2007-09-01  Karl Berry  <karl@gnu.org>
102873         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102875 2007-08-28  Jim Meyering  <jim@meyering.net>
102877         Rename mreadlink_with_size to areadlink_with_size.
102878         * NEWS: Document the change.
102879         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102880         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102881         * lib/mreadlink.h: Rename this to...
102882         * lib/areadlink.h: ...this.
102883         * modules/mreadlink-with-size: Rename this to...
102884         * modules/areadlink-with-size: ...this.
102885         * lib/canonicalize.c: Reflect the renaming.
102886         * modules/canonicalize: Likewise.
102888 2007-08-26  Bruno Haible  <bruno@clisp.org>
102890         * gnulib-tool (func_import): When deciding which files to remove,
102891         consider also dangling symbolic links.
102892         Reported by Eric Blake.
102894 2007-08-26  Bruno Haible  <bruno@clisp.org>
102896         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102898 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102900         * lib/readline.c: Don't include getline.h, the prototype is now
102901         found in stdio.h.
102903 2007-08-23  Jim Meyering  <jim@meyering.net>
102905         Getdelim touchup.
102906         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102907         around the funlockfile call, since funlockfile never sets errno.
102908         Don't set errno upon failed realloc.
102910 2007-08-22  Eric Blake  <ebb9@byu.net>
102912         Getline touchups.
102913         * lib/getdelim.c (getdelim): Revert regression that required *n to
102914         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102915         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102916         getdelim, rather than whether implementation is missing.
102917         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102918         * lib/stdio_.h (getline): Also declare if replacement is
102919         required.
102920         * doc/functions/getdelim.texi: New file.
102921         * doc/functions/getline.texi: Likewise.
102922         * doc/gnulib.texi (Function Substitutes): Add new files.
102923         Reported by Bruno Haible.
102925 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102927         * users.txt: Add Guile.
102929 2007-08-22  Eric Blake  <ebb9@byu.net>
102931         * tests/test-getdelim.c (main): Use remove, not unlink.
102932         * tests/test-getline.c (main): Likewise.
102934         Move getline and getdelim into stdio.h, per POSIX 200x.
102935         * modules/getline (Files): Remove getline.h.
102936         (Depends-on): Add stdio.
102937         (configure.ac): Add module indicator.
102938         * modules/getdelim (Files): Remove getdelim.h.
102939         (Depends-on): Add stdio.
102940         (configure.ac): Add module indicator.
102941         * modules/stdio (Makefile.am): Work with new indicators.
102942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102944         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102945         * lib/getdelim.h: Delete.
102946         * lib/getline.h: Delete.
102947         * lib/stdio_.h (getdelim, getline): Declare.
102948         * modules/getdelim-tests: New module.
102949         * modules/getline-tests: Likewise.
102950         * tests/test-getdelim.c: New file.
102951         * tests/test-getline.c: Likewise.
102952         * NEWS: Document the change.
102953         * lib/getline.c: Update choice of header.
102954         * lib/csharpcomp.c: Likewise.
102955         * lib/getpass.c: Likewise.
102956         * lib/javacomp.c: Likewise.
102957         * lib/javaversion.c: Likewise.
102958         * lib/yesno.c: Likewise.
102959         * lib/getdelim.c: Likewise.
102960         (getdelim): Set errno on failure, and avoid memory leak.
102962 2007-08-19  Bruno Haible  <bruno@clisp.org>
102964         * modules/closein (Depends-on): Add freadahead.
102965         * lib/closein.c: Include freadahead.h.
102966         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102967         is zero.
102969 2007-08-19  Bruno Haible  <bruno@clisp.org>
102971         * modules/freadahead-tests: New file.
102972         * tests/test-freadahead.sh: New file.
102973         * tests/test-freadahead.c: New file.
102975         * modules/freadahead: New file.
102976         * lib/freadahead.h: New file.
102977         * lib/freadahead.c: New file.
102978         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102979         fbufmode, fpurge, freadable, fwritable.
102981 2007-08-19  Eric Blake  <ebb9@byu.net>
102983         Test yesno in combination with closein.
102984         * lib/yesno.c (yesno): Document use of stdin.
102985         * modules/yesno-tests (Files): New module.
102986         * tests/test-yesno.c (main): New file.
102987         * tests/test-yesno.sh: Likewise.
102989 2007-08-19  Bruno Haible  <bruno@clisp.org>
102991         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102992         * lib/fseeko.c (rpl_fseeko): Likewise.
102993         * lib/fseterr.c (fseterr): Likewise.
102995 2007-08-19  Bruno Haible  <bruno@clisp.org>
102997         * tests/test-lseek.c (main): Disable a test for BeOS.
102998         * doc/functions/lseek.texi: Document the BeOS bug.
103000 2007-08-19  Bruno Haible  <bruno@clisp.org>
103001             Eric Blake  <ebb9@byu.net>
103003         * lib/lseek.c: Include <sys/stat.h>.
103004         (rpl_lseek): Add workaround code also for Unix platforms.
103005         Needed for BeOS.
103006         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
103007         * doc/functions/lseek.texi: Document BeOS definiency.
103009 2007-08-18  Bruno Haible  <bruno@clisp.org>
103011         * modules/fstrcmp-tests: New file.
103012         * tests/test-fstrcmp.c: New file.
103014 2007-08-18  Bruno Haible  <bruno@clisp.org>
103016         * modules/fstrcmp: New file, from GNU gettext with modifications.
103017         * lib/fstrcmp.h: New file, from GNU gettext.
103018         * lib/fstrcmp.c: New file, from GNU gettext.
103019         * MODULES.html.sh (String handling): Add fstrcmp.
103021 2007-08-18  Bruno Haible  <bruno@clisp.org>
103023         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
103024         'bool'.
103025         (diag, compareseq): Remove const from the ctxt argument.
103026         (USE_HEURISTIC): Undefine at the end.
103028 2007-08-18  Jim Meyering  <jim@meyering.net>
103030         New file: lib/idcache.h
103031         * NEWS: Mention the addition.
103032         * modules/idcache (Files): Add lib/idcache.h
103033         * lib/idcache.c: Include "idcache.h".
103034         Don't include <sys/types.h>.
103035         Add a FIXME comment.
103036         Move file-scoped "static" declarations to the top.
103037         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
103039 2007-08-17  Bruno Haible  <bruno@clisp.org>
103040         and Paul Eggert  <eggert@cs.ucla.edu>
103042         * MODULES.html.sh: Add diffseq.
103043         * modules/diffseq: New file.
103044         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
103045         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
103047 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103049         Import changes from coreutils for bootstrap script.
103051         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
103053         * build-aux/bootstrap (slurp): Work even in environments where
103054         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
103055         current code does not slurp files whose names start with ".", and
103056         this looks like it might be a troublesome area.
103058         2007-07-11  Jim Meyering  <jim@meyering.net>
103060         If there's a GPL vN copyright comment, require that N == 3.
103062         2007-07-08  Jim Meyering  <jim@meyering.net>
103064         Run the coreutils-specific code only if tests/Makefile.am.in exists.
103065         * build-aux/bootstrap (mam_template): Move definition out of loop.
103067         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
103069         * build-aux/bootstrap (symlink_to_dir): Rename function from
103070         symlink_to_gnulib.  Add a directory parameter.  Update all
103071         callers.
103072         (cp_mark_as_generated): Also check for -- and link to -- files in
103073         gl/.
103075         2007-07-08  Jim Meyering  <jim@meyering.net>
103077         Adapt to deeper hierarchy in gnulib.
103078         * build-aux/bootstrap (symlink_to_dir): If the destination
103079         directory doesn't exist, create it. This is required at least for
103080         "lib/uniwidth/cjk.h".
103082         2007-05-15  Jim Meyering  <jim@meyering.net>
103084         * build-aux/bootstrap: Now that generated Makefile.am files
103085         are no longer under version control, they must be created at
103086         bootstrap time.
103088 2007-08-14  Ben Pfaff  <blp@gnu.org>
103090         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
103092 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103094         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
103095         given the changes below.
103096         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
103097         even on hosts that have padding bits beyond the supported 64.
103099 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103101         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
103102         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
103103         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
103104         depends on it.
103105         (xstrtol_error): Remove.
103106         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
103107         but with a different signature.
103108         (ATTRIBUTE_NORETURN, __attribute__): New macros.
103109         * lib/xstrtol-error.c: Include exitfail.h.
103110         (xstrtol_fatal): New function, with a different signature from the
103111         old xstrtol_error, so that the caller need not worry about passing
103112         in an exit status, or about storage management of the option argument.
103113         (xstrtol_error): Now a static function.  Redo signature to
103114         implement xstrtol_fatal.  Output the correct number of hyphens in
103115         front of the option so that the caller need not worry about
103116         storage management.
103117         (N_): New macro.
103118         (_): Remove; not used now.
103119         * modules/xstrtol: Depend on getopt.
103120         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
103121         of old STRTOL_FATAL_ERROR macro.
103122         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
103123         of test program.
103124         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
103125         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
103127 2007-08-08  Eric Blake  <ebb9@byu.net>
103129         * lib/xstrtol-error.c: Add missing include.
103131         Move xstrtol messages into gnulib domain, when --pobase is used.
103132         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
103133         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
103134         * modules/xstrtol (Files): Distribute new file.
103135         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
103136         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
103137         * tests/test-xstrtol.c: ...into new file.
103138         * tests/test-xstrtoul.c: Also test xstrtoul.
103139         * tests/test-xstrtoimax.c: Also test xstrtoimax.
103140         * tests/test-xstrtoumax.c: Also test xstrtoumax.
103141         * tests/test-xstrtol.sh: Drive the tests.
103142         * tests/test-xstrtoimax.sh: Likewise.
103143         * tests/test-xstrtoumax.sh: Likewise.
103144         * modules/xstrtol-tests: New module.
103145         * modules/xstrtoimax-tests: Likewise.
103146         * modules/xstrtoumax-tests: Likewise.
103148 2007-08-08  Jim Meyering  <jim@meyering.net>
103150         New function: mfile_name_concat.
103151         * lib/filenamecat.c (mfile_name_concat): New function, just like
103152         file_name_concat, but return NULL upon failure rather than exiting
103153         with a diagnostic.
103154         * lib/filenamecat.h: Declare it.
103156 2007-08-07  Bruno Haible  <bruno@clisp.org>
103158         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
103159         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
103160         warning from gcc.
103161         Reported by Eric Blake.
103163 2007-08-07  Simon Josefsson  <simon@josefsson.org>
103165         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
103166         * modules/crypto/arcfour (License): Likewise.
103167         * modules/crypto/des-tests (License): Likewise.
103168         * modules/crypto/gc-arctwo-tests (License): Likewise.
103169         * modules/crypto/gc-des-tests (License): Likewise.
103170         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
103171         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
103172         * modules/crypto/gc-md2-tests (License): Likewise.
103173         * modules/crypto/gc-md4-tests (License): Likewise.
103174         * modules/crypto/gc-md5-tests (License): Likewise.
103175         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
103176         * modules/crypto/gc-rijndael-tests (License): Likewise.
103177         * modules/crypto/gc-sha1-tests (License): Likewise.
103178         * modules/crypto/gc-tests (License): Likewise.
103179         * modules/crypto/hmac-md5 (License): Likewise.
103180         * modules/crypto/hmac-sha1 (License): Likewise.
103181         * modules/crypto/md2-tests (License): Likewise.
103182         * modules/crypto/md4-tests (License): Likewise.
103183         * modules/crypto/md5 (License): Likewise.
103184         * modules/crypto/rijndael (License): Likewise.
103185         * modules/crypto/sha1 (License): Likewise.
103186         * modules/memxor (License): Likewise.
103188 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103189         and Bruno Haible  <bruno@clisp.org>
103191         * NEWS: Describe interface changes to human, xstrtol.
103192         * lib/human.h: Include <xstrtol.h>.
103193         (human_options): Return enum strtol_error, not int.  Remove
103194         bool arg; take int * instead.
103195         * lib/human.c: Don't include "gettext.h".
103196         (_): Remove; no longer used.
103197         Don't include <xstrtol.h>, since human.h does it.
103198         (human_options): Adjust to abovementioned interface changes.
103199         Do not report error to stderr; that's now the caller's
103200         responsibility.
103201         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
103202         interface change.
103203         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
103204         Str, Argument_type_string.  All uses changed.  Put " argument"
103205         in diagnostics to make them clearer.  Change wording of suffix
103206         message for clarity.
103207         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
103208         Argument_type_string.
103209         (STRTOL_FATAL_WARN): Remove; no longer used.
103210         * modules/human (Depends-on): Remove gettext-h.
103212 2007-08-06  Simon Josefsson  <simon@josefsson.org>
103214         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
103216 2007-07-31  Bruno Haible  <bruno@clisp.org>
103218         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
103219         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
103220         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
103222 2007-07-31  Bruno Haible  <bruno@clisp.org>
103224         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
103225         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
103227 2007-07-30  Bruno Haible  <bruno@clisp.org>
103229         * modules/base64 (License): Use the synonymous term "LGPLv2+".
103230         * modules/c-ctype (License): Likewise.
103231         * modules/c-strcase (License): Likewise.
103232         * modules/check-version (License): Likewise.
103233         * modules/iconv (License): Likewise.
103234         * modules/iconv_open (License): Likewise.
103235         * modules/read-file (License): Likewise.
103236         * modules/striconv (License): Likewise.
103237         * modules/strverscmp (License): Likewise.
103238         * modules/vasprintf (License): Likewise.
103239         * modules/crypto/des (License): Likewise.
103240         * modules/crypto/gc (License): Likewise.
103241         * modules/crypto/gc-arcfour (License): Likewise.
103242         * modules/crypto/gc-arctwo (License): Likewise.
103243         * modules/crypto/gc-des (License): Likewise.
103244         * modules/crypto/gc-hmac-md5 (License): Likewise.
103245         * modules/crypto/gc-hmac-sha1 (License): Likewise.
103246         * modules/crypto/gc-md2 (License): Likewise.
103247         * modules/crypto/gc-md4 (License): Likewise.
103248         * modules/crypto/gc-md5 (License): Likewise.
103249         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
103250         * modules/crypto/gc-random (License): Likewise.
103251         * modules/crypto/gc-rijndael (License): Likewise.
103252         * modules/crypto/gc-sha1 (License): Likewise.
103253         * modules/crypto/md2 (License): Likewise.
103254         * modules/crypto/md4 (License): Likewise.
103256 2007-07-30  Jim Meyering  <jim@meyering.net>
103258         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
103259         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
103260         it has valid stat data.  This bug would cause du not to count the
103261         sizes of inaccessible directories.
103262         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
103263         in <http://bugzilla.redhat.com/250077>.
103265 2007-07-25  Peter O'Gorman  <peter@pogma.com>
103266             Bruno Haible  <bruno@clisp.org>
103268         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
103269         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
103270         #include_next, gives a diagnostic about it, but reports no error in
103271         the exit code.
103272         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
103274 2007-07-24  Ben Pfaff  <blp@gnu.org>
103276         Improve name: "count-one-bits" is better than "popcount".
103277         * MODULES.html.sh: Update name.
103278         * lib/popcount.h: Renamed lib/count-one-bits.h.
103279         (popcount): Renamed count_one_bits.
103280         (popcountl): Renamed count_one_bits_l.
103281         (popcountll): Renamed count_one_bits_ll.
103282         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
103283         * modules/popcount: Renamed module/count-one-bits.
103284         * modules/popcount-tests: Renamed module/count-one-bits-tests.
103285         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
103287 2007-07-23  Ben Pfaff  <blp@gnu.org>
103289         * lib/popcount.h (popcount32): Reduce size of constants, to allow
103290         better code generation, and add U to large constants to avoid
103291         warnings, in non-GCC case.
103292         Suggested by Bruno Haible.
103294 2007-07-23  Ben Pfaff  <blp@gnu.org>
103296         * lib/popcount.h: Use verify_true instead of if...abort.
103297         * modules/popcount: Depend on verify module.
103298         Suggested by Jim Meyering.
103300 2007-07-23  Bruno Haible  <bruno@clisp.org>
103302         * gnulib-tool (func_import): Create a .cvsignore file also when the
103303         directory is not yet in CVS but the toplevel directory is. When
103304         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
103305         Reported by Karl Berry.
103307 2007-07-22  Ben Pfaff  <blp@gnu.org>
103309         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
103310         case.
103311         Suggested by Eric Blake.
103313 2007-07-22  Ben Pfaff  <blp@gnu.org>
103315         New module: popcount.
103316         * MODULES.html.sh: Add popcount.
103317         * modules/popcount: New file.
103318         * modules/popcount-tests: New file.
103319         * tests/test-popcount.c: New file.
103320         * lib/popcount.h: New file.
103321         * m4/popcount.m4: New file.
103323 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
103325         * build-aux/announce-gen: Update to GPLv3.
103327         * build-aux/config.guess: Update from config.
103329 2007-07-21  Bruno Haible  <bruno@clisp.org>
103331         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
103332         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
103334 2007-07-20  Jim Meyering  <jim@meyering.net>
103336         * check-module: Diagnose a self-dependency.
103338 2007-07-19  Bruno Haible  <bruno@clisp.org>
103340         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
103341         empty.
103342         Reported by Eric Blake.
103344 2007-07-18  Bruno Haible  <bruno@clisp.org>
103346         * gnulib-tool: New options --po-base, --po-domain.
103347         (func_usage): Document them.
103348         (pobase, po_domain): New variables.
103349         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
103350         DEFAULT_TEXT_DOMAIN.
103351         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
103352         (func_import): Consider pobase and po_domain. Create a po/ directory.
103353         (func_create_testdir): Set pobase and po_domain to empty.
103354         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
103355         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
103357 2007-07-18  Bruno Haible  <bruno@clisp.org>
103359         * gnulib-tool (func_get_automake_snippet): Synthesize also an
103360         EXTRA_DIST augmentation for files in build-aux/.
103362 2007-07-16  Bruno Haible  <bruno@clisp.org>
103364         * modules/lseek (License): Use the synonymous term "LGPLv2+".
103365         * modules/getdelim (License): Likewise.
103367 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103369         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
103370         * modules/d-type (License): Likewise.
103371         * modules/extensions (License): Likewise.
103372         * modules/fnmatch (License): Likewise.
103373         * modules/fseeko (License): Likewise.
103374         * modules/getaddrinfo (License): Likewise.
103375         * modules/getline (License): Likewise.
103376         * modules/getlogin_r (License): Likewise.
103377         * modules/getpass (License): Likewise.
103378         * modules/gettimeofday (License): Likewise.
103379         * modules/glob (License): Likewise.
103380         * modules/inet_ntop (License): Likewise.
103381         * modules/malloc (License): Likewise.
103382         * modules/malloca (License): Likewise.
103383         * modules/memmem (License): Likewise.
103384         * modules/mempcpy (License): Likewise.
103385         * modules/memset (License): Likewise.
103386         * modules/minmax (License): Likewise.
103387         * modules/mktime (License): Likewise.
103388         * modules/netinet_in (License): Likewise.
103389         * modules/pathmax (License): Likewise.
103390         * modules/poll (License): Likewise.
103391         * modules/regex (License): Likewise.
103392         * modules/snprintf (License): Likewise.
103393         * modules/stdbool (License): Likewise.
103394         * modules/stdint (License): Likewise.
103395         * modules/stdio (License): Likewise.
103396         * modules/strcase (License): Likewise.
103397         * modules/strcasestr (License): Likewise.
103398         * modules/strdup (License): Likewise.
103399         * modules/string (License): Likewise.
103400         * modules/strndup (License): Likewise.
103401         * modules/strnlen (License): Likewise.
103402         * modules/strpbrk (License): Likewise.
103403         * modules/strptime (License): Likewise.
103404         * modules/strsep (License): Likewise.
103405         * modules/sys_select (License): Likewise.
103406         * modules/sys_socket (License): Likewise.
103407         * modules/sys_stat (License): Likewise.
103408         * modules/sys_time (License): Likewise.
103409         * modules/time (License): Likewise.
103410         * modules/time_r (License): Likewise.
103411         * modules/timegm (License): Likewise.
103412         * modules/unistd (License): Likewise.
103413         * modules/vsnprintf (License): Likewise.
103414         * modules/wctype (License): Likewise.
103416 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103418         * modules/argz (License): LGPLv2+.
103420 2007-07-15  Karl Berry  <karl@gnu.org>
103422         * doc/gnulib.texi: revise node structure per new fdl.texi.
103424 2007-07-14  Bruno Haible  <bruno@clisp.org>
103426         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103427         the output file.
103428         * lib/uniname/uninames.h: Regenerated.
103430 2007-07-14  Karl Berry  <karl@gnu.org>
103432         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103433         omitting sectioning and index commands.
103435 2007-07-13  Bruno Haible  <bruno@clisp.org>
103437         New gnulib-tool option --more-symlinks.
103438         * gnulib-tool (func_usage): Document --more-symlinks.
103439         (do_copyrights): New variable.
103440         Recognize option --more-symlinks.
103441         (func_import): Don't add a copyright notice transform to
103442         sed_transform_lib_file if do_copyrights is empty.
103444 2007-07-13  Bruno Haible  <bruno@clisp.org>
103446         * lib/vasnprintf.c (decimal_point_char): Define also if
103447         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103448         && !NEED_PRINTF_DIRECTIVE_A.
103449         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103450         Gary V. Vaughan <gary@gnu.org>.
103452 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103454         * lib/inttypes_.h: Undo previous change, since it was fixed
103455         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103457 2007-07-13  Bruno Haible  <bruno@clisp.org>
103459         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103460         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103462 2007-07-13  Jim Meyering  <jim@meyering.net>
103464         df: Don't fail for Tru64's "file-on-file mount".
103465         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103466         so we fall through and use statfs instead.  Details here:
103467         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103468         Reported by Albert Chin.
103470 2007-07-13  Bruno Haible  <bruno@clisp.org>
103472         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103473         * modules/configmake (License): Likewise.
103474         * modules/gettext (License): Likewise.
103475         * modules/gettext-h (License): Likewise.
103476         * modules/include_next (License): Likewise.
103477         * modules/link-warning (License): Likewise.
103478         * modules/localcharset (License): Likewise.
103479         * modules/localename (License): Likewise.
103480         * modules/lock (License): Likewise.
103481         * modules/relocatable-lib-lgpl (License): Likewise.
103482         * modules/size_max (License): Likewise.
103483         * modules/vasnprintf (License): Likewise.
103484         * modules/wchar (License): Likewise.
103485         * modules/xsize (License): Likewise.
103487 2007-07-13  Bruno Haible  <bruno@clisp.org>
103489         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103490         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103492 2007-07-12  Bruno Haible  <bruno@clisp.org>
103494         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103495         in the modules files.
103497 2007-07-11  Karl Berry  <karl@gnu.org>
103499         * MODULES.html.sh (func_module): use
103500          sed -e '\|^'"${includefile}"'$|d'
103501          instead of /.../d, to avoid errors on $includefile's containing /.
103503 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103505         * gnulib-tool (func_import): Avoid duplication of --avoid
103506         statements
103507         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103508         names to `_' in variable names.
103510 2007-07-10  Eric Blake  <ebb9@byu.net>
103512         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103513         * NEWS: Document this change.
103515 2007-07-08  Bruno Haible  <bruno@clisp.org>
103517         Update to Unicode 5.0.
103518         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103519         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103520         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103521         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103522         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103523         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103524         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103525         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103526         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103527         U+10A3F, U+1D242..U+1D244.
103528         (nonspacing_table_ind): Update.
103529         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103530         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103532 2007-07-08  Bruno Haible  <bruno@clisp.org>
103534         Update to Unicode 5.0.
103535         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103536         code transform. Extend the name index field of unicode_name_to_code and
103537         unicode_code_to_name from 16 to 24 bits.
103538         * lib/uniname/uniname.c (unicode_character_name,
103539         unicode_name_character): Add the range 0x12xxx to the code transform.
103540         * lib/uniname/uninames.h: Regenerated.
103541         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103543 2007-07-07  Bruno Haible  <bruno@clisp.org>
103545         * modules/wcwidth-tests: New file.
103546         * tests/test-wcwidth.c: New file.
103548         Work around MacOS X wcwidth() bug.
103549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103550         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103551         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103552         original wcwidth in non-UTF-8 locales.
103553         * modules/wcwidth (Depends-on): Add localcharset, streq,
103554         uniwidth/width.
103555         * doc/functions/wcwidth.texi: Update.
103557 2007-07-07  Bruno Haible  <bruno@clisp.org>
103559         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103560         (wcwidth): New declaration.
103561         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103562         macros.
103563         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103564         here. Prepare for creating <wchar.h> unconditionally.
103565         * modules/wchar (Depends-on): Add link-warning.
103566         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103567         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103568         * lib/wcwidth.h: Remove file.
103569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103570         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103571         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103572         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103573         (Include): Replace wcwidth.h with <wchar.h>.
103574         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103575         * lib/mbchar.h: Don't include wcwidth.h.
103576         * lib/mbswidth.c: Likewise.
103577         * NEWS: Mention the change.
103579 2007-07-07  Bruno Haible  <bruno@clisp.org>
103581         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103582         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103583         definition with an external declaration.
103584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103585         defined as a function. Remove AC_C_INLINE requirement.
103586         * modules/wcwidth (Files): Add lib/wcwidth.c.
103587         (Makefile.am): Remove redundant statement.
103589 2007-07-07  Bruno Haible  <bruno@clisp.org>
103591         * MODULES.html.sh (Unicode string functions): Add the new modules.
103593         * tests/uniwidth/test-u32-strwidth.c: New file.
103594         * modules/uniwidth/u32-strwidth-tests: New file.
103596         * lib/uniwidth/u32-strwidth.c: New file.
103597         * modules/uniwidth/u32-strwidth: New file.
103599         * tests/uniwidth/test-u16-strwidth.c: New file.
103600         * modules/uniwidth/u16-strwidth-tests: New file.
103602         * lib/uniwidth/u16-strwidth.c: New file.
103603         * modules/uniwidth/u16-strwidth: New file.
103605         * tests/uniwidth/test-u8-strwidth.c: New file.
103606         * modules/uniwidth/u8-strwidth-tests: New file.
103608         * lib/uniwidth/u8-strwidth.c: New file.
103609         * modules/uniwidth/u8-strwidth: New file.
103611         * tests/uniwidth/test-u32-width.c: New file.
103612         * modules/uniwidth/u32-width-tests: New file.
103614         * lib/uniwidth/u32-width.c: New file.
103615         * modules/uniwidth/u32-width: New file.
103617         * tests/uniwidth/test-u16-width.c: New file.
103618         * modules/uniwidth/u16-width-tests: New file.
103620         * lib/uniwidth/u16-width.c: New file.
103621         * modules/uniwidth/u16-width: New file.
103623         * tests/uniwidth/test-u8-width.c: New file.
103624         * modules/uniwidth/u8-width-tests: New file.
103626         * lib/uniwidth/u8-width.c: New file.
103627         * modules/uniwidth/u8-width: New file.
103629         * tests/uniwidth/test-uc_width.c: New file.
103630         * modules/uniwidth/width-tests: New file.
103632         * lib/uniwidth/width.c: New file, from GNU libiconv.
103633         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103634         * modules/uniwidth/width: New file.
103636         * lib/uniwidth.h: New file, from GNU libiconv.
103637         * modules/uniwidth/base: New file.
103639 2007-07-07  Bruno Haible  <bruno@clisp.org>
103641         * lib/uniname.h: New file, from GNU gettext.
103642         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103643         * lib/uniname/uninames.h: New file, from GNU gettext.
103644         * lib/uniname/uniname.c: New file, from GNU gettext.
103645         * tests/uniname/test-uninames.sh: New file.
103646         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103647         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103648         * modules/uniname/base: New file.
103649         * modules/uniname/uniname: New file.
103650         * modules/uniname/uniname-tests: New file.
103651         * MODULES.html.sh (Unicode string functions): Add the new modules.
103653 2007-07-06  Bruno Haible  <bruno@clisp.org>
103655         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103657 2007-07-06  Bruno Haible  <bruno@clisp.org>
103659         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103660         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103661         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103662         include <sys/time.h>.
103663         Reported by Eric Blake.
103665 2007-07-06  Eric Blake  <ebb9@byu.net>
103667         Fix testing canonicalize on cygwin.
103668         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103669         Revert patch from 2007-06-19.
103670         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103671         canonicalize module is also in use.
103672         * tests/test-canonicalize.c: New file.
103673         * tests/test-canonicalize.sh: Likewise.
103674         * modules/canonicalize-tests: Likewise.
103676 2007-07-06  Jim Meyering  <jim@meyering.net>
103678         * lib/getugroups.c (getugroups): Detect getgrent failure.
103679         Adjust comment to reflect reality: this function may return -1.
103681 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103683         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103684         the new TP address.
103685         (usage): Fix typo
103686         (gnulib_mk): New variable.
103688 2007-07-05  Jim Meyering  <jim@meyering.net>
103690         Don't let endgrent clobber errno, no matter how improbable.
103691         * lib/getugroups.c (getugroups): Save and restore errno around
103692         endgrent call.
103694         Close the group DB even when failing with 2^31 or more members.
103695         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103697 2007-07-04  Jim Meyering  <jim@meyering.net>
103699         * lib/getugroups.h: New file.
103700         * lib/getugroups.c: Include "getugroups.h".
103701         Remove uses of "register" keyword.
103702         Move local variable, "cp", down into scope where used.
103703         Give "username" parameter the "const" attribute.
103704         * modules/getugroups (Files): Add lib/getugroups.h
103706 2007-07-04  Karl Berry  <karl@gnu.org>
103708         * MODULES.html.sh (func_all_modules): Complete rename of
103709         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103711 2007-07-02  Bruno Haible  <bruno@clisp.org>
103713         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103714         mode, when inttypes.h comes from gnulib.
103715         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103717 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103719         * NEWS: Mention lgpl module name change.
103721         * modules/lgpl-2.1: Renamed from lgpl.
103723         * NEWS: Mention gpl module name change.
103725         * modules/gpl-3.0: New file, based on gpl-2.0.
103727         * modules/gpl-2.0: Renamed from gpl.
103729         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103730         doc/gpl-2.0.texi.
103732 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103734         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103735         #define __STDC_LIMIT_MACROS temporarily while including
103736         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103737         Problem reported by Joel E. Denny in
103738         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103740 2007-07-01  Bruno Haible  <bruno@clisp.org>
103742         * lib/unistdio.h: New file.
103743         * lib/unistdio/u-asnprintf.h: New file.
103744         * lib/unistdio/u-asprintf.h: New file.
103745         * lib/unistdio/u-printf-args.c: New file.
103746         * lib/unistdio/u-printf-args.h: New file.
103747         * lib/unistdio/u-printf-parse.h: New file.
103748         * lib/unistdio/u-snprintf.h: New file.
103749         * lib/unistdio/u-sprintf.h: New file.
103750         * lib/unistdio/u-vasprintf.h: New file.
103751         * lib/unistdio/u-vsnprintf.h: New file.
103752         * lib/unistdio/u-vsprintf.h: New file.
103753         * lib/unistdio/ulc-asnprintf.c: New file.
103754         * lib/unistdio/ulc-asprintf.c: New file.
103755         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103756         * lib/unistdio/ulc-printf-parse.c: New file.
103757         * lib/unistdio/ulc-snprintf.c: New file.
103758         * lib/unistdio/ulc-sprintf.c: New file.
103759         * lib/unistdio/ulc-vasnprintf.c: New file.
103760         * lib/unistdio/ulc-vasprintf.c: New file.
103761         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103762         * lib/unistdio/ulc-vsnprintf.c: New file.
103763         * lib/unistdio/ulc-vsprintf.c: New file.
103764         * lib/unistdio/u8-asnprintf.c: New file.
103765         * lib/unistdio/u8-asprintf.c: New file.
103766         * lib/unistdio/u8-printf-parse.c: New file.
103767         * lib/unistdio/u8-snprintf.c: New file.
103768         * lib/unistdio/u8-sprintf.c: New file.
103769         * lib/unistdio/u8-vasnprintf.c: New file.
103770         * lib/unistdio/u8-vasprintf.c: New file.
103771         * lib/unistdio/u8-vsnprintf.c: New file.
103772         * lib/unistdio/u8-vsprintf.c: New file.
103773         * lib/unistdio/u8-u8-asnprintf.c: New file.
103774         * lib/unistdio/u8-u8-asprintf.c: New file.
103775         * lib/unistdio/u8-u8-snprintf.c: New file.
103776         * lib/unistdio/u8-u8-sprintf.c: New file.
103777         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103778         * lib/unistdio/u8-u8-vasprintf.c: New file.
103779         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103780         * lib/unistdio/u8-u8-vsprintf.c: New file.
103781         * lib/unistdio/u16-asnprintf.c: New file.
103782         * lib/unistdio/u16-asprintf.c: New file.
103783         * lib/unistdio/u16-printf-parse.c: New file.
103784         * lib/unistdio/u16-snprintf.c: New file.
103785         * lib/unistdio/u16-sprintf.c: New file.
103786         * lib/unistdio/u16-vasnprintf.c: New file.
103787         * lib/unistdio/u16-vasprintf.c: New file.
103788         * lib/unistdio/u16-vsnprintf.c: New file.
103789         * lib/unistdio/u16-vsprintf.c: New file.
103790         * lib/unistdio/u16-u16-asnprintf.c: New file.
103791         * lib/unistdio/u16-u16-asprintf.c: New file.
103792         * lib/unistdio/u16-u16-snprintf.c: New file.
103793         * lib/unistdio/u16-u16-sprintf.c: New file.
103794         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103795         * lib/unistdio/u16-u16-vasprintf.c: New file.
103796         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103797         * lib/unistdio/u16-u16-vsprintf.c: New file.
103798         * lib/unistdio/u32-asnprintf.c: New file.
103799         * lib/unistdio/u32-asprintf.c: New file.
103800         * lib/unistdio/u32-printf-parse.c: New file.
103801         * lib/unistdio/u32-snprintf.c: New file.
103802         * lib/unistdio/u32-sprintf.c: New file.
103803         * lib/unistdio/u32-vasnprintf.c: New file.
103804         * lib/unistdio/u32-vasprintf.c: New file.
103805         * lib/unistdio/u32-vsnprintf.c: New file.
103806         * lib/unistdio/u32-vsprintf.c: New file.
103807         * lib/unistdio/u32-u32-asnprintf.c: New file.
103808         * lib/unistdio/u32-u32-asprintf.c: New file.
103809         * lib/unistdio/u32-u32-snprintf.c: New file.
103810         * lib/unistdio/u32-u32-sprintf.c: New file.
103811         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103812         * lib/unistdio/u32-u32-vasprintf.c: New file.
103813         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103814         * lib/unistdio/u32-u32-vsprintf.c: New file.
103815         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103816         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103817         * tests/unistdio/test-ulc-printf1.h: New file.
103818         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103819         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103820         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103821         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103822         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103823         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103824         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103825         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103826         * tests/unistdio/test-u8-asnprintf1.c: New file.
103827         * tests/unistdio/test-u8-asnprintf1.h: New file.
103828         * tests/unistdio/test-u8-printf1.h: New file.
103829         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103830         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103831         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103832         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103833         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103834         * tests/unistdio/test-u8-vasprintf1.c: New file.
103835         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103836         * tests/unistdio/test-u8-vsprintf1.c: New file.
103837         * tests/unistdio/test-u16-asnprintf1.c: New file.
103838         * tests/unistdio/test-u16-asnprintf1.h: New file.
103839         * tests/unistdio/test-u16-printf1.h: New file.
103840         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103841         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103842         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103843         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103844         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103845         * tests/unistdio/test-u16-vasprintf1.c: New file.
103846         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103847         * tests/unistdio/test-u16-vsprintf1.c: New file.
103848         * tests/unistdio/test-u32-asnprintf1.c: New file.
103849         * tests/unistdio/test-u32-asnprintf1.h: New file.
103850         * tests/unistdio/test-u32-printf1.h: New file.
103851         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103852         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103853         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103854         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103855         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103856         * tests/unistdio/test-u32-vasprintf1.c: New file.
103857         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103858         * tests/unistdio/test-u32-vsprintf1.c: New file.
103859         * modules/unistdio/base: New file.
103860         * modules/unistdio/u-printf-args: New file.
103861         * modules/unistdio/ulc-asnprintf: New file.
103862         * modules/unistdio/ulc-asprintf: New file.
103863         * modules/unistdio/ulc-fprintf: New file.
103864         * modules/unistdio/ulc-printf-parse: New file.
103865         * modules/unistdio/ulc-snprintf: New file.
103866         * modules/unistdio/ulc-sprintf: New file.
103867         * modules/unistdio/ulc-vasnprintf: New file.
103868         * modules/unistdio/ulc-vasprintf: New file.
103869         * modules/unistdio/ulc-vfprintf: New file.
103870         * modules/unistdio/ulc-vsnprintf: New file.
103871         * modules/unistdio/ulc-vsprintf: New file.
103872         * modules/unistdio/u8-asnprintf: New file.
103873         * modules/unistdio/u8-asprintf: New file.
103874         * modules/unistdio/u8-printf-parse: New file.
103875         * modules/unistdio/u8-snprintf: New file.
103876         * modules/unistdio/u8-sprintf: New file.
103877         * modules/unistdio/u8-vasnprintf: New file.
103878         * modules/unistdio/u8-vasprintf: New file.
103879         * modules/unistdio/u8-vsnprintf: New file.
103880         * modules/unistdio/u8-vsprintf: New file.
103881         * modules/unistdio/u8-u8-asnprintf: New file.
103882         * modules/unistdio/u8-u8-asprintf: New file.
103883         * modules/unistdio/u8-u8-snprintf: New file.
103884         * modules/unistdio/u8-u8-sprintf: New file.
103885         * modules/unistdio/u8-u8-vasnprintf: New file.
103886         * modules/unistdio/u8-u8-vasprintf: New file.
103887         * modules/unistdio/u8-u8-vsnprintf: New file.
103888         * modules/unistdio/u8-u8-vsprintf: New file.
103889         * modules/unistdio/u16-asnprintf: New file.
103890         * modules/unistdio/u16-asprintf: New file.
103891         * modules/unistdio/u16-printf-parse: New file.
103892         * modules/unistdio/u16-snprintf: New file.
103893         * modules/unistdio/u16-sprintf: New file.
103894         * modules/unistdio/u16-vasnprintf: New file.
103895         * modules/unistdio/u16-vasprintf: New file.
103896         * modules/unistdio/u16-vsnprintf: New file.
103897         * modules/unistdio/u16-vsprintf: New file.
103898         * modules/unistdio/u16-u16-asnprintf: New file.
103899         * modules/unistdio/u16-u16-asprintf: New file.
103900         * modules/unistdio/u16-u16-snprintf: New file.
103901         * modules/unistdio/u16-u16-sprintf: New file.
103902         * modules/unistdio/u16-u16-vasnprintf: New file.
103903         * modules/unistdio/u16-u16-vasprintf: New file.
103904         * modules/unistdio/u16-u16-vsnprintf: New file.
103905         * modules/unistdio/u16-u16-vsprintf: New file.
103906         * modules/unistdio/u32-asnprintf: New file.
103907         * modules/unistdio/u32-asprintf: New file.
103908         * modules/unistdio/u32-printf-parse: New file.
103909         * modules/unistdio/u32-snprintf: New file.
103910         * modules/unistdio/u32-sprintf: New file.
103911         * modules/unistdio/u32-vasnprintf: New file.
103912         * modules/unistdio/u32-vasprintf: New file.
103913         * modules/unistdio/u32-vsnprintf: New file.
103914         * modules/unistdio/u32-vsprintf: New file.
103915         * modules/unistdio/u32-u32-asnprintf: New file.
103916         * modules/unistdio/u32-u32-asprintf: New file.
103917         * modules/unistdio/u32-u32-snprintf: New file.
103918         * modules/unistdio/u32-u32-sprintf: New file.
103919         * modules/unistdio/u32-u32-vasnprintf: New file.
103920         * modules/unistdio/u32-u32-vasprintf: New file.
103921         * modules/unistdio/u32-u32-vsnprintf: New file.
103922         * modules/unistdio/u32-u32-vsprintf: New file.
103923         * modules/unistdio/ulc-asnprintf-tests: New file.
103924         * modules/unistdio/ulc-vasnprintf-tests: New file.
103925         * modules/unistdio/ulc-vasprintf-tests: New file.
103926         * modules/unistdio/ulc-vsnprintf-tests: New file.
103927         * modules/unistdio/ulc-vsprintf-tests: New file.
103928         * modules/unistdio/u8-asnprintf-tests: New file.
103929         * modules/unistdio/u8-vasnprintf-tests: New file.
103930         * modules/unistdio/u8-vasprintf-tests: New file.
103931         * modules/unistdio/u8-vsnprintf-tests: New file.
103932         * modules/unistdio/u8-vsprintf-tests: New file.
103933         * modules/unistdio/u16-asnprintf-tests: New file.
103934         * modules/unistdio/u16-vasnprintf-tests: New file.
103935         * modules/unistdio/u16-vasprintf-tests: New file.
103936         * modules/unistdio/u16-vsnprintf-tests: New file.
103937         * modules/unistdio/u16-vsprintf-tests: New file.
103938         * modules/unistdio/u32-asnprintf-tests: New file.
103939         * modules/unistdio/u32-vasnprintf-tests: New file.
103940         * modules/unistdio/u32-vasprintf-tests: New file.
103941         * modules/unistdio/u32-vsnprintf-tests: New file.
103942         * modules/unistdio/u32-vsprintf-tests: New file.
103943         * MODULES.html.sh (Unicode string functions): Add the new modules.
103945 2007-07-01  Bruno Haible  <bruno@clisp.org>
103947         * lib/sprintf.c (sprintf): Limit the available length estimation,
103948         to avoid address wraparound.
103949         * lib/vsprintf.c (vsprintf): Likewise.
103950         * modules/sprintf-posix (Dependencies): Add stdint.
103951         * modules/vsprintf-posix (Dependencies): Likewise.
103953 2007-07-01  Bruno Haible  <bruno@clisp.org>
103955         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103956         Windows PATH as well. Conservative double-quoting. Comments.
103958 2007-07-01  Bruno Haible  <bruno@clisp.org>
103959             Eric Blake  <ebb9@byu.net>
103960             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103962         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103963         empty components in $PATH, denoting '.'.
103965 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103967         * gnulib-tool: Fix indentation.
103968         (func_create_megatestdir): Likewise.
103969         Report by Bruno Haible.
103971 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103973         Sync from Automake.
103974         * build-aux/gnupload: Fix shell portability issues with for loops.
103975         Report by Karl Berry.
103977 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103979         * build-aux/maint.mk (POURL): Use translationproject.org.
103981 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103982             Bruno Haible  <bruno@clisp.org>
103984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103985         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103986         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103987         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103988         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103990 2007-06-27  Bruno Haible  <bruno@clisp.org>
103992         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103993         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103995 2007-06-26  Karl Berry  <karl@gnu.org>
103997         * MODULES.html.sh: remove xreadlink-with-size.
103999 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104001         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
104002         method that I hope also handles the double-include problem noted
104003         by Bruno Haible in
104004         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
104006 2007-06-23  Bruno Haible  <bruno@clisp.org>
104008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104009         Don't let the 'mostlyclean' target fail if the last subdirectory could
104010         not be removed.
104011         Reported by Karl Berry.
104013 2007-06-23  Bruno Haible  <bruno@clisp.org>
104015         * gnulib-tool (echo): Add a speedier workaround for ksh.
104016         * tests/test-echo.sh: Likewise.
104018 2007-06-23  Bruno Haible  <bruno@clisp.org>
104020         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
104021         * tests/test-echo.sh: Likewise.
104023 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104025         * gnulib-tool (IFS): Initialize early, so we don't set it to
104026         empty later.
104027         (self_abspathname): Rewrite algorithm to set it, reindent.
104028         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
104029         (func_create_megatestdir): Merge some sed scripts.
104031 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104033         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
104034         exposed by Sun Studio 11 cc on Solaris 8.
104036 2007-06-22  Bruno Haible  <bruno@clisp.org>
104038         * gnulib-tool (echo): Ensure the echo primitive does not interpret
104039         backslashes.
104040         * tests/test-echo.sh: New file.
104042 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104044         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
104045         simplify `sed_replace_build_aux' scripts, they are portable but
104046         echoing them with `echo' is not.
104047         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
104049 2007-06-21  Karl Berry  <karl@gnu.org>
104051         * config/srclist.txt: guess we can't handle the licenses via
104052         srclist at the moment.
104054 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
104056         * MODULES.html.sh: Add include_next.
104057         * modules/include_next: New file.
104059 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
104061         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
104062         INCLUDE_NEXT.
104063         (gl_CHECK_NEXT_HEADERS): New macro.
104064         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
104065         the obsolescent gl_ABSOLUTE_HEADER.
104066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
104067         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
104068         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
104069         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
104070         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
104071         * m4/math_h.m4 (gl_MATH_H): Likewise.
104072         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
104073         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
104074         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
104075         * m4/stdint.m4 (gl_STDINT_H): Likewise.
104076         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
104077         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
104078         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
104079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
104080         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
104081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
104082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
104083         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
104084         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
104085         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
104086         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
104087         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
104088         * m4/inttypes.m4 (gl_INTTYPES_H): Define
104089         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
104090         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
104091         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
104092         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
104093         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
104094         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
104095         * lib/float_.h: Likewise.
104096         * lib/inttypes_.h: Likewise.
104097         * lib/math_.h: Likewise.
104098         * lib/search_.h: Likewise.
104099         * lib/signal_.h: Likewise.
104100         * lib/stdint_.h: Likewise.
104101         * lib/stdio_.h: Likewise.
104102         * lib/stdlib_.h: Likewise.
104103         * lib/string_.h: Likewise.
104104         * lib/sys_stat_.h: Likewise.
104105         * lib/sys_time_.h: Likewise.
104106         * lib/time_.h: Likewise.
104107         * lib/unistd_.h: Likewise.
104108         * lib/wchar_.h: Likewise.
104109         * lib/wctype_.h: Likewise.
104110         * lib/dirent_.h: Likewise.
104111         * lib/iconv_.h: Likewise.
104112         * lib/locale_.h: Likewise.
104113         * lib/netinet_in_.h: Likewise.
104114         * lib/sys_select_.h: Likewise.
104115         * lib/sys_socket_.h: Likewise.
104116         * lib/sysexits_.h: Likewise.
104117         * modules/fcntl (Depends-on): Depend on include_next, not
104118         absolute_header.
104119         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
104120         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
104121         * modules/fchdir: Likewise.
104122         * modules/float: Likewise.
104123         * modules/iconv_open: Likewise.
104124         * modules/inttypes: Likewise.
104125         * modules/locale: Likewise.
104126         * modules/math: Likewise.
104127         * modules/netinet_in: Likewise.
104128         * modules/search: Likewise.
104129         * modules/signal: Likewise.
104130         * modules/stdint: Likewise.
104131         * modules/stdio: Likewise.
104132         * modules/stdlib: Likewise.
104133         * modules/string: Likewise.
104134         * modules/sys_select: Likewise.
104135         * modules/sys_socket: Likewise.
104136         * modules/sys_stat: Likewise.
104137         * modules/sys_time: Likewise.
104138         * modules/sysexits: Likewise.
104139         * modules/time: Likewise.
104140         * modules/unistd: Likewise.
104141         * modules/wchar: Likewise.
104142         * modules/wctype: Likewise.
104143         * modules/sys_stat: Change maintainer to "all".
104144         * modules/unistd: Likewise.
104146 2007-06-20  Karl Berry  <karl@gnu.org>
104148         * config/srclist.txt: track www changes in license files.
104150 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
104152         * build-aux/bootstrap: Remove stray dot.
104153         Make sure build_aux settings are honored when linking
104154         gnulib_extra_files.
104156 2007-06-19  Eric Blake  <ebb9@byu.net>
104158         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
104159         Allow compilation on cygwin.
104161 2007-06-19  Jim Meyering  <jim@meyering.net>
104163         xreadlink-with-size: Remove module.  No longer used.
104164         Ex-callers now use xreadlink or mreadlink-with-size.
104165         * modules/xreadlink-with-size: Remove module.
104166         * lib/xreadlink-with-size.c: Remove file.
104167         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
104168         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
104169         just before the function definition *is* accurate.
104171         Eliminate one way canonicalize_filename_mode could exit.
104172         * lib/canonicalize.c (canonicalize_filename_mode):
104173         Use mreadlink_with_size, not xreadlink_with_size.
104175 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
104177         Detect porting problems to FreeBSD/arm, which has time_t wider than
104178         long int.  Original problem reported for GNU diff by Xin Li in
104179         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
104180         * modules/getdate (Depends-on): Add intprops, verify.
104181         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
104182         is an integer type no wider than long int.
104184 2007-06-18  Jim Meyering  <jim@meyering.net>
104186         New module: mreadlink-with-size.
104187         * MODULES.html.sh: Add mreadlink-with-size.
104188         * modules/mreadlink-with-size: New module
104189         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
104190         not xreadlink-with-size.
104191         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
104193 2007-06-16  Bruno Haible  <bruno@clisp.org>
104195         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
104196         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
104197         Reported by Gary V. Vaughan <gary@gnu.org>.
104199 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
104201         Revamp lchown so that it lives in unistd.h where it belongs.
104202         * lib/lchown.h: Remove.
104203         * lib/dirchownmod.c: Don't include lib/lchown.h.
104204         * lib/fchownat.c: Likewise.
104205         * lib/openat.c: Likewise.
104206         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
104207         does not follow symlinks.
104208         (EOPNOTSUPP): Define if not defined.
104209         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
104210         is defined to 0.
104211         (lchown): New decl.
104212         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
104213         Do not check for lchown decl.
104214         Set REPLACE_LCHOWN.
104215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
104216         REPLACE_LCHOWN.
104217         * modules/chown: Make it clear it follows symlinks.
104218         * modules/lchown: Make it clear it doesn't follow symlinks.
104219         (Files): Remove lib/lchown.h
104220         (Depends-on): Add unistd.
104221         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
104222         (Include): Include <unistd.h>, not "lchown.h".
104223         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
104224         REPLACE_LCHOWN.
104226 2007-06-15  Jim Meyering  <jim@meyering.net>
104228         Change license (GPL to LGPL) of fsusage and dependents.
104229         * modules/fsusage (License): Change to LGPL.
104230         * modules/full-read (License): Likewise.
104231         * modules/full-write (License): Likewise.
104232         * modules/safe-read (License): Likewise.
104233         * modules/safe-write (License): Likewise.
104235 2007-06-14  Ben Pfaff  <blp@gnu.org>
104237         Missing part of allocsa -> malloca transition.
104238         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
104239         gl_MALLOCA.
104241 2007-06-12  Bruno Haible  <bruno@clisp.org>
104243         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
104244         to ia64, x86_64, i386.
104245         Reported by Eric Blake.
104247 2007-06-12  Bruno Haible  <bruno@clisp.org>
104249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
104250         cross-compiling to x86_64.
104252 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
104254         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
104255         glitch reported by Ralf Wildenhues in
104256         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
104258         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
104259         Vin Shelton.
104261 2007-06-11  Bruno Haible  <bruno@clisp.org>
104263         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
104264         replacement string.
104265         Reported by Eric Blake.
104267 2007-06-10  Bruno Haible  <bruno@clisp.org>
104269         Prepare vasnprintf code for use with Unicode strings.
104270         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
104271         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
104272         TYPE_U32_STRING.
104273         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
104274         a_u32_string variants.
104275         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104276         * lib/printf-args.c: Don't include config.h and the specification
104277         header if PRINTF_FETCHARGS is already defined.
104278         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104279         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
104280         TYPE_U16_STRING, TYPE_U32_STRING.
104281         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
104282         u16_directive, u16_directives, u32_directive, u32_directives): New
104283         types.
104284         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
104285         New declarations.
104286         * lib/printf-parse.c: Don't include config.h and the specification
104287         header if PRINTF_PARSE is already defined. Eliminate the set of
104288         parameters for WIDE_CHAR_VERSION; the user of this file must provide
104289         them now. Include c-ctype.h.
104290         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
104291         directive and CHAR_T_ONLY_ASCII.
104292         * lib/vasnprintf.c: Don't include config.h and the specification header
104293         if VASNPRINTF is already defined.
104294         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
104295         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
104296         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
104297         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
104298         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
104299         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
104300         code accordingly.
104301         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
104302         pad_ourselves also in this case, with the 'c' and 's' directives, and
104303         with a different notion of "width".
104304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
104306 2007-06-10  Bruno Haible  <bruno@clisp.org>
104308         * modules/unistr/u32-mbsnlen: New file.
104309         * lib/unistr/u32-mbsnlen.c: New file.
104311         * modules/unistr/u16-mbsnlen: New file.
104312         * lib/unistr/u16-mbsnlen.c: New file.
104314         * modules/unistr/u8-mbsnlen: New file.
104315         * lib/unistr/u8-mbsnlen.c: New file.
104317         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
104318         declarations.
104320 2007-06-10  Bruno Haible  <bruno@clisp.org>
104322         * lib/string_.h (mbsnlen): New declaration.
104323         * lib/mbsnlen.c: New file.
104324         * m4/mbsnlen.m4: New file.
104325         * modules/mbsnlen: New file.
104326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
104327         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
104328         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
104330 2007-06-10  Bruno Haible  <bruno@clisp.org>
104332         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
104334 2007-06-10  Bruno Haible  <bruno@clisp.org>
104336         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
104337         * lib/mbuiter.h: Likewise.
104339 2007-06-10  Bruno Haible  <bruno@clisp.org>
104341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
104342         declaration.
104344 2007-06-10  Karl Berry  <karl@gnu.org>
104346         * config/srclist.txt: remove gettext entries, Bruno prefers
104347         to update individually.
104349 2007-06-10  Bruno Haible  <bruno@clisp.org>
104351         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
104352         'maxlen'. Ensure only length + width bytes are allocated, not
104353         length + 1 + width.
104355 2007-06-09  Bruno Haible  <bruno@clisp.org>
104357         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
104358         (CHAR_T): Remove macro.
104359         (VASNPRINTF): Update.
104361 2007-06-09  Bruno Haible  <bruno@clisp.org>
104363         * MODULES.html.sh (Unicode string functions): Add the new modules.
104365         * modules/uniconv/u32-conv-to-enc: New file.
104366         * lib/uniconv/u32-conv-to-enc.c: New file.
104367         * modules/uniconv/u32-conv-to-enc-tests: New file.
104368         * tests/uniconv/test-u32-conv-to-enc.c: New file.
104370         * modules/uniconv/u16-conv-to-enc: New file.
104371         * lib/uniconv/u16-conv-to-enc.c: New file.
104372         * lib/uniconv/u-conv-to-enc.h: New file.
104373         * modules/uniconv/u16-conv-to-enc-tests: New file.
104374         * tests/uniconv/test-u16-conv-to-enc.c: New file.
104376         * modules/uniconv/u8-conv-to-enc: New file.
104377         * lib/uniconv/u8-conv-to-enc.c: New file.
104378         * modules/uniconv/u8-conv-to-enc-tests: New file.
104379         * tests/uniconv/test-u8-conv-to-enc.c: New file.
104381         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
104382         u32_conv_to_encoding): New declarations.
104384 2007-06-09  Bruno Haible  <bruno@clisp.org>
104386         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
104388 2007-06-09  Bruno Haible  <bruno@clisp.org>
104390         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
104391         * modules/malloca: Renamed from modules/allocsa, updated.
104392         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
104393         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
104394         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
104395         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
104396         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
104397         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
104398         * modules/xmalloca: Renamed from modules/xallocsa, updated.
104399         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
104400         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
104401         * modules/c-strcasestr (Depends-on): Update.
104402         * lib/c-strcasestr.c: Update.
104403         * modules/c-strstr (Depends-on): Update.
104404         * lib/c-strstr.c: Update.
104405         * modules/canonicalize-lgpl (Depends-on): Update.
104406         * lib/canonicalize-lgpl.c: Update.
104407         * modules/clean-temp (Depends-on): Update.
104408         * lib/clean-temp.c: Update.
104409         * modules/csharpcomp (Depends-on): Update.
104410         * lib/csharpcomp.c: Update.
104411         * modules/csharpexec (Depends-on): Update.
104412         * lib/csharpexec.c: Update.
104413         * modules/javacomp (Depends-on): Update.
104414         * lib/javacomp.c: Update.
104415         * modules/javaexec (Depends-on): Update.
104416         * lib/javaexec.c: Update.
104417         * modules/mbscasestr (Depends-on): Update.
104418         * lib/mbscasestr.c: Update.
104419         * modules/mbsstr (Depends-on): Update.
104420         * lib/mbsstr.c: Update.
104421         * modules/setenv (Depends-on): Update.
104422         * lib/setenv.c: Update.
104423         * modules/strcasestr (Depends-on): Update.
104424         * lib/strcasestr.c: Update.
104425         * modules/striconveha (Depends-on): Update.
104426         * lib/striconveha.c: Update.
104427         * modules/relocatable-prog-wrapper (Files): Update.
104428         * lib/relocwrapper.c: Update.
104429         * build-aux/install-reloc: Update.
104430         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104432 2007-06-08  Bruno Haible  <bruno@clisp.org>
104434         Port to uClibc.
104435         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104436         * lib/fpurge.c (fpurge): Likewise.
104437         * lib/freading.c (freading): Likewise.
104438         * lib/fseeko.c (rpl_fseeko): Likewise.
104439         * lib/fseterr.c (fseterr): Likewise.
104440         * lib/fwriting.c (fwriting): Likewise.
104441         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104443 2007-06-08  Bruno Haible  <bruno@clisp.org>
104445         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104446         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104447         * modules/gettext (Files): Add m4/intlmacosx.m4.
104449 2007-06-07  Bruno Haible  <bruno@clisp.org>
104451         * modules/localename-tests: New file.
104452         * tests/test-localename.c: New file.
104454         New module 'localename'.
104455         * lib/localename.h: New file.
104456         * lib/localename.c: New file, from GNU gettext.
104457         * m4/localename.m4: New file.
104458         * modules/localename: New file.
104460 2007-06-07  Bruno Haible  <bruno@clisp.org>
104462         Work around the lack of <wchar.h> on some builds of uClibc.
104463         * doc/headers/wchar.texi: Update.
104464         * lib/wchar_.h: Include <wchar.h> only if it exists.
104465         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104466         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104467         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104468         doesn't exist.
104469         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104470         * modules/mbfile (Depends-on): Add wchar.
104471         * modules/mbiter (Depends-on): Likewise.
104472         * modules/mbuiter (Depends-on): Likewise.
104473         Reported by Simon Josefsson.
104475 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104477         Work around problem reported by Steven M. Schweda in
104478         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104479         Tru64 5.1B with the Compaq compiler environment installed declares
104480         an 'isblank' function but does not define it in the C library.
104481         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104482         * lib/regex_internal.h (isblank): Likewise.
104483         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104484         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104486 2007-06-05  Bruno Haible  <bruno@clisp.org>
104488         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104489         ia64.
104490         * modules/printf-safe: New file.
104491         * modules/fprintf-posix (Depends-on): Add printf-safe.
104492         * modules/printf-posix (Depends-on): Likewise.
104493         * modules/snprintf-posix (Depends-on): Likewise.
104494         * modules/sprintf-posix (Depends-on): Likewise.
104495         * modules/vasnprintf-posix (Depends-on): Likewise.
104496         * modules/vasprintf-posix (Depends-on): Likewise.
104497         * modules/vfprintf-posix (Depends-on): Likewise.
104498         * modules/vprintf-posix (Depends-on): Likewise.
104499         * modules/vsnprintf-posix (Depends-on): Likewise.
104500         * modules/vsprintf-posix (Depends-on): Likewise.
104501         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104502         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104503         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104504         "no" on i386, x86_64, ia64.
104505         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104506         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104507         on i386, x86_64, ia64.
104508         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104509         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104510         on i386, x86_64, ia64.
104511         * tests/test-vasnprintf-posix.c: Include float.h.
104512         (LDBL80_WORDS): New macro.
104513         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104514         on i386, x86_64, ia64.
104515         * tests/test-vasprintf-posix.c: Include float.h.
104516         (LDBL80_WORDS): New macro.
104517         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104518         on i386, x86_64, ia64.
104519         * tests/test-snprintf-posix.c: Include float.h.
104520         * tests/test-sprintf-posix.c: Likewise.
104521         * tests/test-vsnprintf-posix.c: Likewise.
104522         * tests/test-vsprintf-posix.c: Likewise.
104524 2007-06-05  Bruno Haible  <bruno@clisp.org>
104526         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104527         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104528         non-IEEE numbers on i386, x86_64, ia64.
104529         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104530         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104531         * tests/test-isnanl.h: Include float.h.
104532         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104534 2007-06-05  Bruno Haible  <bruno@clisp.org>
104536         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104537         also the %a / %A. Handle the %a / %A code before this extra handling.
104539 2007-06-05  Bruno Haible  <bruno@clisp.org>
104541         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104542         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104544 2007-06-05  Bruno Haible  <bruno@clisp.org>
104546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104547         typo in variable name.
104549 2007-06-05  Eric Blake  <ebb9@byu.net>
104551         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104552         Reported by Simon Josefsson.
104554 2007-06-04  Bruno Haible  <bruno@clisp.org>
104556         Avoid test failures on some PowerPC platforms.
104557         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104558         Define differently for PowerPC.
104559         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104560         Reported by Gary V. Vaughan <gary@gnu.org>.
104562 2007-06-02  Bruno Haible  <bruno@clisp.org>
104564         Fix test-stdint failure on FreeBSD/ia64.
104565         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104566         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104567         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104568         * doc/headers/stdint.texi: Update.
104570 2007-06-01  Bruno Haible  <bruno@clisp.org>
104572         * tests/test-binary-io.c (main): Pass a third argument to open().
104573         Reported by Gary V. Vaughan <gary@gnu.org>.
104575 2007-06-01  Bruno Haible  <bruno@clisp.org>
104577         * doc/functions/frexpl.texi: Update for mingw.
104579 2007-06-01  Bruno Haible  <bruno@clisp.org>
104581         * tests/test-lseek.c (main): Disable test of errno for invalid third
104582         argument.
104583         * doc/functions/lseek.texi: Update.
104584         Reported by Gary V. Vaughan <gary@gnu.org>.
104586 2007-05-28  Bruno Haible  <bruno@clisp.org>
104588         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104590 2007-05-31  Eric Blake  <ebb9@byu.net>
104592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104593         cross compiling.
104595 2007-05-30  Eric Blake  <ebb9@byu.net>
104596         and Bruno Haible  <bruno@clisp.org>
104598         Work around mingw test failures exposed by m4-1.4.9b.
104599         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104600         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104601         moment.
104603 2007-05-30  Bruno Haible  <bruno@clisp.org>
104605         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104606         assuming that they are closed. Needed on HP-UX 11.
104608 2007-05-29  Bruno Haible  <bruno@clisp.org>
104610         Fix a problem with #include_next.
104611         * lib/dirent_.h: Split the double-inclusion guard.
104612         * lib/fcntl_.h: Likewise.
104613         * lib/float_.h: Likewise.
104614         * lib/iconv_.h: Likewise.
104615         * lib/inttypes_.h: Likewise.
104616         * lib/locale_.h: Likewise.
104617         * lib/math_.h: Likewise.
104618         * lib/netinet_in_.h: Likewise.
104619         * lib/search_.h: Likewise.
104620         * lib/signal_.h: Likewise.
104621         * lib/stdint_.h: Likewise.
104622         * lib/stdio_.h: Likewise.
104623         * lib/stdlib_.h: Likewise.
104624         * lib/string_.h: Likewise.
104625         * lib/sys_select_.h: Likewise.
104626         * lib/sys_socket_.h: Likewise.
104627         * lib/sys_stat_.h: Likewise.
104628         * lib/sys_time_.h: Likewise.
104629         * lib/sysexits_.h: Likewise.
104630         * lib/time_.h: Likewise.
104631         * lib/unistd_.h: Likewise.
104632         * lib/wchar_.h: Likewise.
104633         * lib/wctype_.h: Likewise.
104635 2007-05-29  Bruno Haible  <bruno@clisp.org>
104637         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104638         for the moment.
104640 2007-05-29  Bruno Haible  <bruno@clisp.org>
104642         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104643         invocation.
104644         Reported by Eric Blake.
104646 2007-05-29  Bruno Haible  <bruno@clisp.org>
104648         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104649         compiling case.
104651 2007-05-29  Eric Blake  <ebb9@byu.net>
104652             Bruno Haible  <bruno@clisp.org>
104654         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104655         cross compiles.
104657 2007-05-28  Eric Blake  <ebb9@byu.net>
104659         * modules/closein-tests (test_closein_LDADD): Support test on
104660         cygwin with libtool.
104662 2007-05-28  Bruno Haible  <bruno@clisp.org>
104664         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104665         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104666         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104667         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104668         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104669         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104670         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104671         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104672         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104674 2007-05-28  Eric Blake  <ebb9@byu.net>
104676         Unconditionally include <config.h> in unit tests.
104677         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104678         * tests/test-allocsa.c, tests/test-arcfour.c,
104679         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104680         tests/test-array_list.c, tests/test-array_oset.c,
104681         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104682         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104683         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104684         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104685         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104686         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104687         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104688         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104689         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104690         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104691         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104692         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104693         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104694         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104695         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104696         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104697         test-md5.c, test-memmem.c, test-printf-posix.c,
104698         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104699         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104700         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104701         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104702         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104703         test-vasnprintf-posix2.c, test-vasnprintf.c,
104704         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104705         test-vfprintf-posix.c, test-vprintf-posix.c,
104706         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104707         test-xvasprintf.c: Likewise.
104709 2007-05-28  Bruno Haible  <bruno@clisp.org>
104711         * gnulib-tool (func_import): Remember the --with-tests command-line
104712         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104713         Reported by Eric Blake.
104715 2007-05-28  Bruno Haible  <bruno@clisp.org>
104717         * modules/ftell-tests: New file.
104718         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104719         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104721         * lib/ftell.c: New file.
104722         * modules/ftell: New file.
104723         * m4/ftell.m4: New file.
104724         * doc/functions/ftell.texi: Update.
104725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104726         REPLACE_FTELL.
104727         * lib/stdio_.h (rpl_ftell): New declaration.
104728         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104729         REPLACE_FTELL.
104731 2007-05-28  Eric Blake  <ebb9@byu.net>
104733         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104735 2007-05-28  Bruno Haible  <bruno@clisp.org>
104737         * modules/fseek-tests: New file.
104738         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104739         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104741         * lib/fseek.c: New file.
104742         * modules/fseek: New file.
104743         * m4/fseek.m4: New file.
104744         * doc/functions/fseek.texi: Update.
104745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104746         REPLACE_FSEEK.
104747         * lib/stdio_.h (rpl_fseek): New declaration.
104748         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104749         REPLACE_FSEEK.
104751 2007-05-28  Bruno Haible  <bruno@clisp.org>
104753         * lib/stdio_.h (fflush): More comments.
104755 2007-05-28  Bruno Haible  <bruno@clisp.org>
104757         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104758         runtime test.
104760 2007-05-28  Eric Blake  <ebb9@byu.net>
104762         Improve lseek module.
104763         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104764         * lib/unistd_.h (lseek): Scale back link warning message.
104765         * tests/test-lseek.c: Beef up test.
104766         * tests/test-lseek.sh: Exercise more facets of lseek.
104767         Reported by Bruno Haible.
104769 2007-05-28  Bruno Haible  <bruno@clisp.org>
104771         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104772         to define.
104774 2007-05-27  Bruno Haible  <bruno@clisp.org>
104776         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104778 2007-05-27  Bruno Haible  <bruno@clisp.org>
104780         * modules/openmp: New file.
104781         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104782         Noah Misch.
104784 2007-05-26  Bruno Haible  <bruno@clisp.org>
104786         * modules/chdir-long (Depends-on): Add fchdir.
104787         * modules/chdir-safer (Depends-on): Likewise.
104788         * modules/fts (Depends-on): Likewise.
104789         * modules/fts-lgpl (Depends-on): Likewise.
104790         * modules/openat (Depends-on): Likewise.
104791         * modules/savewd (Depends-on): Likewise.
104793 2007-05-24  Eric Blake  <ebb9@byu.net>
104795         Fix lseek on mingw.
104796         * modules/lseek: New module.
104797         * m4/lseek.m4: New file.
104798         * lib/lseek.c: New file.
104799         * modules/lseek-tests: New file.
104800         * tests/test-lseek.c: New file.
104801         * tests/test-lseek.sh: New file.
104802         * MODULES.html.sh: Document lseek module.
104803         * modules/fflush (Depends-on): Add lseek, fseeko.
104804         * modules/fseeko (Depends-on): Likewise.
104805         * modules/ftello (Depends-on): Likewise.
104806         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104807         broken.
104808         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104809         broken.
104810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104811         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104812         * lib/ftello.c (rpl_ftello): Likewise.
104813         * tests/test-fseeko.c (main): Test this.
104814         * tests/test-fseeko.sh: Likewise.
104815         * tests/test-ftello.c (main): Likewise.
104816         * tests/test-ftello.sh: Likewise.
104817         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104818         implies replacing fseek.
104819         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104820         HAVE_FTELLO.
104821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104822         * modules/unistd (Makefile.am): Likewise.
104823         * lib/unistd_.h (lseek): Declare a replacement.
104824         * doc/functions/lseek.texi (lseek): Document this fix.
104825         * doc/functions/fseek.texi (fseek): Likewise.
104826         * doc/functions/ftell.texi (ftell): Likewise.
104828 2007-05-24  Bruno Haible  <bruno@clisp.org>
104830         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104831         in the printed representation of a NaN.
104832         * tests/test-vasprintf-posix.c (test_function): Likewise.
104833         * tests/test-snprintf-posix.h (test_function): Likewise.
104834         * tests/test-sprintf-posix.h (test_function): Likewise.
104835         Reported by Eric Blake.
104837 2007-05-23  Eric Blake  <ebb9@byu.net>
104839         Fix fseeko/ftello on cygwin 1.5.24.
104840         * doc/functions/fseeko.texi (fseeko): Document the fix.
104841         * doc/functions/ftello.texi (ftello): Document the fix.
104842         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104843         * doc/functions/stdout.text (stdout): New file.
104844         * doc/functions/stderr.text (stderr): New file.
104845         * doc/gnulib.texi (Function Substitutes): Use new files.
104846         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104847         prior to 1.7.0.
104848         * tests/test-ftello.c (main): Likewise for ftello.
104849         * tests/test-fseeko.sh: New file.
104850         * tests/test-ftello.sh: New file.
104851         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104852         with seekable stdin.
104853         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104855         (gl_REPLACE_FSEEKO): New macro.
104856         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104857         * modules/fseeko (Files): Distribute fseeko.c.
104858         * modules/ftello (Files): Distribute ftello.c.
104859         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104860         mode.
104861         * lib/ftello.c (rpl_ftello): New file.
104862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104863         fseeko, ftello.
104864         (gl_STDIN_LARGE_OFFSET): New macro.
104865         * modules/stdio (Makefile.am): Perform the replacement.
104866         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104868 2007-05-23  Bruno Haible  <bruno@clisp.org>
104870         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104871         GNULIB_POSIXCHECK is defined.
104873 2007-05-21  Bruno Haible  <bruno@clisp.org>
104875         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104876         Check also the output for NaN arguments. When cross-compiling, guess
104877         no on IRIX.
104878         * lib/vasnprintf.c: Update comments.
104879         * tests/test-vasnprintf-posix.c (strisnan): New function.
104880         (test_function): Use it.
104881         * tests/test-vasprintf-posix.c (strisnan): New function.
104882         (test_function): Use it.
104883         * tests/test-snprintf-posix.h (strisnan): New function.
104884         (test_function): Use it.
104885         * tests/test-sprintf-posix.h (strisnan): New function.
104886         (test_function): Use it.
104887         Reported by Eric Blake.
104889 2007-05-20  Bruno Haible  <bruno@clisp.org>
104891         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104892         numbers that fails on BeOS.
104893         * doc/functions/frexpl.texi: Update.
104895 2007-05-20  Jim Meyering  <jim@meyering.net>
104897         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104898         forced upon us by glibc-2.6.
104900 2007-05-20  Bruno Haible  <bruno@clisp.org>
104902         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104903         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104904         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104905         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104906         NEED_PRINTF_INFINITE.
104907         (is_infinitel): New function.
104908         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104910         gl_PREREQ_VASNPRINTF_INFINITE.
104911         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104913         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104914         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104915         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104916         gl_PREREQ_VASNPRINTF_INFINITE.
104917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104924         * doc/functions/fprintf.texi: Update.
104925         * doc/functions/printf.texi: Update.
104926         * doc/functions/snprintf.texi: Update.
104927         * doc/functions/sprintf.texi: Update.
104928         * doc/functions/vfprintf.texi: Update.
104929         * doc/functions/vprintf.texi: Update.
104930         * doc/functions/vsnprintf.texi: Update.
104931         * doc/functions/vsprintf.texi: Update.
104933 2007-05-20  Bruno Haible  <bruno@clisp.org>
104935         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104936         was not found in libc.
104937         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104939 2007-05-20  Bruno Haible  <bruno@clisp.org>
104941         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104942         printed as "-nan" instead of "nan".
104943         * tests/test-vasprintf-posix.c (test_function): Likewise.
104944         * tests/test-snprintf-posix.h (test_function): Likewise.
104945         * tests/test-sprintf-posix.h (test_function): Likewise.
104946         Needed for HP-UX 11.
104948 2007-05-20  Jim Meyering  <jim@meyering.net>
104950         Fix buggy test for the fchownat-deref bug.
104951         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104952         symlink required for the run-test.  Without it, this test would
104953         always declare that fchownat doesn't work, and client code would
104954         unnecessarily use the replacement function with fixed libc.
104955         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104956         Reported by Greg Schafer.
104958 2007-05-19  Bruno Haible  <bruno@clisp.org>
104960         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104961         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104962         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104963         Needed for IRIX 6.5 and Solaris 2.5.1.
104965 2007-05-19  Bruno Haible  <bruno@clisp.org>
104967         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104968         (test_function): Skip tests involving -0.0 on platforms where
104969         -0.0 = 0.0.
104970         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104971         (test_function): Skip tests involving -0.0 on platforms where
104972         -0.0 = 0.0.
104973         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104974         (test_function): Skip tests involving -0.0 on platforms where
104975         -0.0 = 0.0.
104976         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104977         (test_function): Skip tests involving -0.0 on platforms where
104978         -0.0 = 0.0.
104979         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104980         tests.
104981         * tests/test-printf-posix.h (test_function): Likewise.
104982         * tests/test-printf-posix.output: Remove all -0.0 related results.
104983         Needed for IRIX 6.5.
104985 2007-05-19  Bruno Haible  <bruno@clisp.org>
104987         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104988         printed as "nan0x7fffffff" instead of "nan".
104989         * tests/test-vasprintf-posix.c (test_function): Likewise.
104990         * tests/test-snprintf-posix.h (test_function): Likewise.
104991         * tests/test-sprintf-posix.h (test_function): Likewise.
104992         * tests/test-fprintf-posix.h (NaN): Remove macro.
104993         (test_function): Remove all NaN related tests.
104994         * tests/test-printf-posix.h (NaN): Remove macro.
104995         (test_function): Remove all NaN related tests.
104996         * tests/test-printf-posix.output: Remove all NaN related results.
104997         Needed for IRIX 6.5.
104999 2007-05-19  Bruno Haible  <bruno@clisp.org>
105001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
105002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
105004 2007-05-19  Bruno Haible  <bruno@clisp.org>
105006         * lib/float_.h: New file.
105007         * m4/float_h.m4: New file.
105008         * modules/float: New file.
105009         * modules/isnanl (Dependencies): Add float.
105010         * modules/isnanl-nolibm (Dependencies): Likewise.
105011         * modules/mathl (Dependencies): Likewise.
105012         * modules/printf-frexpl (Dependencies): Likewise.
105013         * modules/signbit (Dependencies): Likewise.
105014         * modules/vasnprintf (Dependencies): Likewise.
105015         * doc/headers/float.texi: Update.
105017 2007-05-19  Jim Meyering  <jim@meyering.net>
105019         * lib/utimens.c (gl_futimens): Rename from futimens,
105020         now that glibc-2.6 declares futimens.
105021         * lib/utimens.h: Likewise.
105023 2007-05-19  Bruno Haible  <bruno@clisp.org>
105025         Avoid test failures on mingw.
105026         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
105027         * tests/test-printf-posix.sh: Likewise.
105028         * tests/test-vfprintf-posix.sh: Likewise.
105029         * tests/test-vprintf-posix.sh: Likewise.
105031 2007-05-19  Bruno Haible  <bruno@clisp.org>
105033         Fix *printf result for NaN, Inf, -0.0 on mingw.
105034         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
105035         * lib/vasnprintf.c: Include math.h and isnan.h.
105036         (is_infinite_or_zero): New function.
105037         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
105038         values in the %f, %F, %e, %E, %g, %G directives.
105039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
105040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105041         gl_PRINTF_INFINITE and test its result. Invoke
105042         gl_PREREQ_VASNPRINTF_INFINITE.
105043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105047         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105050         * doc/functions/fprintf.texi: Update.
105051         * doc/functions/printf.texi: Update.
105052         * doc/functions/snprintf.texi: Update.
105053         * doc/functions/sprintf.texi: Update.
105054         * doc/functions/vfprintf.texi: Update.
105055         * doc/functions/vprintf.texi: Update.
105056         * doc/functions/vsnprintf.texi: Update.
105057         * doc/functions/vsprintf.texi: Update.
105059 2007-05-19  Bruno Haible  <bruno@clisp.org>
105061         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
105062         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
105063         Instead of multiplying with 10^k, set extra_zeroes to k.
105064         (scale10_round_long_double): Remove function.
105066 2007-05-18  Bruno Haible  <bruno@clisp.org>
105068         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
105069         introduced on 2007-05-06.
105071 2007-05-18  Bruno Haible  <bruno@clisp.org>
105073         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
105074         %g directives.
105075         * tests/test-vasprintf-posix.c (test_function): Likewise.
105076         * tests/test-snprintf-posix.h (test_function): Likewise.
105077         * tests/test-sprintf-posix.h (test_function): Likewise.
105079 2007-05-18  Bruno Haible  <bruno@clisp.org>
105081         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
105082         (strmatch): New function.
105083         (test_function): Test the %f directive on numbers of various exponents.
105084         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
105085         (strmatch): New function.
105086         (test_function): Test the %f directive on numbers of various exponents.
105087         * tests/test-snprintf-posix.h (strmatch): New function.
105088         (test_function): Test the %f directive on numbers of various exponents.
105089         * tests/test-sprintf-posix.h (strmatch): New function.
105090         (test_function): Test the %f directive on numbers of various exponents.
105091         * tests/test-snprintf-posix.c (SIZEOF): New macro.
105092         * tests/test-sprintf-posix.c (SIZEOF): New macro.
105093         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
105094         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
105096 2007-05-18  Bruno Haible  <bruno@clisp.org>
105098         Add support for 'long double' number output.
105099         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
105100         * lib/vasnprintf.c: Include math.h and float+.h.
105101         (mp_limb_t): New type.
105102         (GMP_LIMB_BITS): New macro.
105103         (mp_twolimb_t): New type.
105104         (GMP_TWOLIMB_BITS): New macro.
105105         (mpn_t): New type.
105106         (multiply, divide, convert_to_decimal, decode_long_double,
105107         scale10_round_long_double, scale10_round_decimal_long_double,
105108         floorlog10l): New functions.
105109         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
105110         for the %f, %F, %e, %E, %g, %G directives.
105111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
105112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105113         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
105114         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
105115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105116         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105122         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
105123         * modules/snprintf-posix (Depends-on): Likewise.
105124         * modules/sprintf-posix (Depends-on): Likewise.
105125         * modules/vasnprintf-posix (Depends-on): Likewise.
105126         * modules/vasprintf-posix (Depends-on): Likewise.
105127         * modules/vfprintf-posix (Depends-on): Likewise.
105128         * modules/vsnprintf-posix (Depends-on): Likewise.
105129         * modules/vsprintf-posix (Depends-on): Likewise.
105130         * modules/vasnprintf (Files): Add lib/float+.h.
105131         * doc/functions/fprintf.texi: Update.
105132         * doc/functions/printf.texi: Update.
105133         * doc/functions/snprintf.texi: Update.
105134         * doc/functions/sprintf.texi: Update.
105135         * doc/functions/vfprintf.texi: Update.
105136         * doc/functions/vprintf.texi: Update.
105137         * doc/functions/vsnprintf.texi: Update.
105138         * doc/functions/vsprintf.texi: Update.
105140 2007-05-18  Bruno Haible  <bruno@clisp.org>
105142         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
105144 2007-05-18  Bruno Haible  <bruno@clisp.org>
105146         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
105147         for printing 64-bit integers. Needed for mingw.
105149 2007-05-18  Bruno Haible  <bruno@clisp.org>
105151         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105152         gl_FUNC_FREXPL_WORKS.
105153         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
105155 2007-05-18  Bruno Haible  <bruno@clisp.org>
105157         * modules/frexpl-nolibm-tests: New file.
105159         * modules/frexpl-nolibm: New file.
105160         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
105162 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105164         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
105165         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105166         GCC 4.2, which otherwise issues a lot of warnings.
105167         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
105168         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
105169         Likewise.
105170         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
105171         * modules/iconv_open (iconv.h): Likewise.
105172         * modules/locale (locale.h): Likewise.
105173         * modules/netinet_in (netinet/in.h): Likewise.
105174         * modules/sys_select (sys_select.h): Likewise.
105175         * modules/sys_socket (sys/socket.h): Likewise.
105176         * modules/sys_stat (sys/stat.h): Likewise.
105177         * modules/sysexits (sysexits.h): Likewise.
105178         * modules/unistd (unistd.h): Likewise.
105180 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105182         * modules/closein-tests (Makefile.am): Distribute
105183         `test-closein.sh'.
105185 2007-05-17  Bruno Haible  <bruno@clisp.org>
105187         * tests/test-printf-posix.output: Renamed from
105188         tests/test-fprintf-posix.out.
105189         * modules/fprintf-posix-tests: Update.
105190         * modules/printf-posix-tests: Update.
105191         * modules/vfprintf-posix-tests: Update.
105192         * modules/vprintf-posix-tests: Update.
105193         * tests/test-fprintf-posix.sh: Update.
105194         * tests/test-printf-posix.sh: Update.
105195         * tests/test-vfprintf-posix.sh: Update.
105196         * tests/test-vprintf-posix.sh: Update.
105197         Reported by Ralf Wildenhues.
105199 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105201         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
105202         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105203         GCC 4.2, which otherwise issues a lot of warnings.
105204         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
105205         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
105206         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
105207         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
105208         it should no longer be needed.
105209         * lib/string_.h: Likewise.
105210         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
105211         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
105212         * modules/inttypes (inttypes.h): Likewise.
105213         * modules/math (math.h): Likewise.
105214         * modules/search (search.h): Likewise.
105215         * modules/signal (signal.h): Likewise.
105216         * modules/stdint (stdint.h): Likewise.
105217         * modules/stdio (stdio.h): Likewise.
105218         * modules/stdlib (stdlib.h): Likewise.
105219         * modules/string (string.h): Likewise.
105220         * modules/sys_time (sys/time.h): Likewise.
105221         * modules/time (time.h): Likewise.
105222         * modules/wchar (wchar.h): Likewise.
105223         * modules/wctype (wtype.h): Likewise.
105225 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
105227         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
105229 2007-05-13  Bruno Haible  <bruno@clisp.org>
105231         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
105232         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105233         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
105234         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105235         (gl_PREREQ_STRTOK_R): Don't require it here.
105237 2007-05-13  Bruno Haible  <bruno@clisp.org>
105239         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
105240         when used in C++ mode.
105242 2007-05-12  Bruno Haible  <bruno@clisp.org>
105244         * lib/linebuffer.h: Tweak doc.
105245         * lib/linebuffer.c: Likewise.
105247 2007-05-12  James Youngman  <jay@gnu.org>
105249         * lib/linebuffer.c (readlinebuffer_delim): New function,
105250         like readlinebuffer, but use a caller-specified delimiter.
105251         (readlinebuffer): Just call readlinebuffer_delim with '\n'
105252         as the delimiter.
105253         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
105255 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105257         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
105258         * modules/openat (Files): Remove openat-die.c.
105259         (Depends-on): Add openat-die.
105260         * modules/openat-die: New module.
105262 2007-05-06  Bruno Haible  <bruno@clisp.org>
105264         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
105265         Update with info about Cygwin.
105266         * doc/functions/fprintf.texi: Update.
105267         * doc/functions/printf.texi: Update.
105268         * doc/functions/snprintf.texi: Update.
105269         * doc/functions/sprintf.texi: Update.
105270         * doc/functions/vfprintf.texi: Update.
105271         * doc/functions/vprintf.texi: Update.
105272         * doc/functions/vsnprintf.texi: Update.
105273         * doc/functions/vsprintf.texi: Update.
105274         Reported by Eric Blake.
105276 2007-05-06  Bruno Haible  <bruno@clisp.org>
105278         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
105279         padding ourselves for the floating-point directives.
105280         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
105281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
105282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105283         gl_PRINTF_FLAG_ZERO and test its result. Invoke
105284         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
105285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105286         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105292         * tests/test-snprintf-posix.h (test_function): Also check the width
105293         and some flags in the %f directive.
105294         * tests/test-sprintf-posix.h (test_function): Likewise.
105295         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105296         * tests/test-vasprintf-posix.c (test_function): Likewise.
105297         * doc/functions/fprintf.texi: Update.
105298         * doc/functions/printf.texi: Update.
105299         * doc/functions/snprintf.texi: Update.
105300         * doc/functions/sprintf.texi: Update.
105301         * doc/functions/vfprintf.texi: Update.
105302         * doc/functions/vprintf.texi: Update.
105303         * doc/functions/vsnprintf.texi: Update.
105304         * doc/functions/vsprintf.texi: Update.
105306 2007-05-06  Bruno Haible  <bruno@clisp.org>
105308         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
105309         pass the ' flag character to sprintf or snprintf.
105310         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
105311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
105312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105313         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
105314         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
105315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105322         * tests/test-snprintf-posix.h (test_function): Also check the grouping
105323         flag.
105324         * tests/test-sprintf-posix.h (test_function): Likewise.
105325         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105326         * tests/test-vasprintf-posix.c (test_function): Likewise.
105327         * doc/functions/fprintf.texi: Update.
105328         * doc/functions/printf.texi: Update.
105329         * doc/functions/snprintf.texi: Update.
105330         * doc/functions/sprintf.texi: Update.
105331         * doc/functions/vfprintf.texi: Update.
105332         * doc/functions/vprintf.texi: Update.
105333         * doc/functions/vsnprintf.texi: Update.
105334         * doc/functions/vsprintf.texi: Update.
105336 2007-05-01  Bruno Haible  <bruno@clisp.org>
105338         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
105340 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
105342         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
105343         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
105345 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105347         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
105348         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
105349         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
105351 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
105353         * lib/argp-help.c (struct hol_entry): New member `ord'.
105354         (HOL_ENTRY_PTRCMP): Use ord for comparison
105355         (hol_sort): Initialize ord.
105357 2007-05-01  Bruno Haible  <bruno@clisp.org>
105359         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
105360         Reported by Eric Blake.
105361         * doc/gnulib.texi (Function Substitutes): Update.
105363 2007-05-01  Bruno Haible  <bruno@clisp.org>
105365         * doc/functions.texi: Remove file, now redundant through
105366         doc/functions/*.texi.
105368 2007-05-01  Bruno Haible  <bruno@clisp.org>
105370         * modules/argp (Depends-on): Add sleep.
105372 2007-05-01  Bruno Haible  <bruno@clisp.org>
105374         * modules/sleep-tests: New file.
105375         * tests/test-sleep.c: New file.
105377         * modules/sleep: New file.
105378         * lib/sleep.c: New file.
105379         * m4/sleep.m4: New file.
105380         * lib/unistd_.h (sleep): New declaration.
105381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
105382         HAVE_SLEEP.
105383         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
105384         * doc/functions/sleep.texi: Document the sleep module.
105386 2007-05-01  Bruno Haible  <bruno@clisp.org>
105388         * lib/sigprocmask.h: Remove file.
105389         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
105390         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
105391         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
105392         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
105393         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
105394         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
105395         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
105396         HAVE_SIGSET_T as a shell variable.
105397         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
105398         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
105399         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
105400         (Depends-on): Add signal. Remove verify.
105401         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
105402         (Include): Mention <signal.h> instead of sigprocmask.h.
105403         * NEWS: Mention the change.
105404         * lib/fatal-signal.c: Don't include sigprocmask.h.
105406 2007-05-01  Bruno Haible  <bruno@clisp.org>
105408         * modules/signal: New file.
105409         * lib/signal_.h: New file.
105410         * m4/signal_h.m4: New file.
105412 2007-05-01  Bruno Haible  <bruno@clisp.org>
105414         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
105415         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
105416         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
105417         HAVE_WCTYPE_CTMP_BUG into wctype.h.
105419 2007-05-01  Bruno Haible  <bruno@clisp.org>
105421         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105422         configure time.
105423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105424         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105425         * modules/sys_stat (Makefile.am): Substitute their values into
105426         sys/stat.h.
105428 2007-05-01  Bruno Haible  <bruno@clisp.org>
105430         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105431         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105432         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105434 2007-05-01  Bruno Haible  <bruno@clisp.org>
105436         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105437         'assert' module here.
105439 2007-05-01  Bruno Haible  <bruno@clisp.org>
105441         * doc/functions/*.texi: New files.
105442         * doc/functions/google-ranking.txt: New file.
105443         * doc/gnulib.texi (Function Substitutes): New chapter.
105444         (ctime, inet_ntoa): Remove sections.
105445         * doc/ctime.texi: Remove file.
105446         * doc/inet_ntoa.texi: Remove file.
105447         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105448         dependencies.
105449         (%.info): New rule, specifying a --reference-limit.
105451 2007-05-01  Bruno Haible  <bruno@clisp.org>
105453         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105455 2007-05-01  Bruno Haible  <bruno@clisp.org>
105457         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105458         the portability of 'mkdir' to mingw systems.
105460 2007-05-01  Bruno Haible  <bruno@clisp.org>
105462         * doc/headers/google-ranking.txt: New file.
105464 2007-04-30  Eric Blake  <ebb9@byu.net>
105466         Prefer fseeko to fseek.
105467         * modules/getpass (Depends-on): Add fseeko.
105468         * lib/getpass.c (getpass): Use fseeko, not fseek.
105470 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105472         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105473         assumes the sorting is stable, while most qsort implementations
105474         are not.  Use argument addresses to ensure they never compare as
105475         equal.
105477         * tests/test-argp-2.sh (usage-indent test): Fix output
105478         (func_compare): Restore diff options
105479         * tests/test-argp.c: Restore #include "progname.h"
105481 2007-04-29  Bruno Haible  <bruno@clisp.org>
105483         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105485         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105487         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105488         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105489         (TESTS, check_PROGRAMS): Add test-snprintf.
105490         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105491         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105492         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105493         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105494         assertions that fail on HP-UX, OSF/1, or IRIX.
105495         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105497 2007-04-29  Bruno Haible  <bruno@clisp.org>
105499         * MODULES.html.sh (posix_functions): Remove 'contents'.
105501 2007-04-29  Karl Berry  <karl@gnu.org>
105503         * config/srclist.txt (gendocs_template_min): new entry.
105505 2007-04-29  Bruno Haible  <bruno@clisp.org>
105507         Work around fpurge bug on BSD systems.
105508         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105509         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105510         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105511         fpurge to rpl_fpurge if the system already has this function.
105512         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105513         the case where the system already has this function. Correct invariants
105514         on BSD systems.
105515         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105516         BSD systems.
105518 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105520         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105521         proposed by Sven Verdoolaege.
105523         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105524         options.
105525         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105526         (usage and help tests): Update
105528 2007-04-29  Bruno Haible  <bruno@clisp.org>
105530         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105531         Print more information in case of failure. Disable a test on BeOS.
105533 2007-04-29  Bruno Haible  <bruno@clisp.org>
105535         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105536         This helps debugging on systems on which no gdb is available.
105538 2007-04-29  Bruno Haible  <bruno@clisp.org>
105540         * lib/freading.h: Improve comments.
105541         * lib/fwriting.h: Likewise.
105542         * tests/test-freading.c (main): Don't check freading immediately after
105543         repositioning. Needed for glibc.
105545 2007-04-29  Bruno Haible  <bruno@clisp.org>
105547         * lib/freading.c (freading): Trivial simplification.
105549 2007-04-28  Bruno Haible  <bruno@clisp.org>
105551         * tests/test-fwriting.c (main): Also test the interaction between
105552         fflush and fwriting.
105553         * modules/fwriting-tests (Depends-on): Add fflush.
105555         * tests/test-freading.c (main): Also test the interaction between
105556         fflush and freading.
105557         * modules/freading-tests (Depends-on): Add fflush.
105559 2007-04-28  Bruno Haible  <bruno@clisp.org>
105561         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105562         fseeko and ftello.
105563         Suggested by Eric Blake.
105565 2007-04-28  Jim Meyering  <jim@meyering.net>
105567         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105568         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105569         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105571 2007-04-27  Eric Blake  <ebb9@byu.net>
105573         * doc/headers/assert.texi (assert.h): Document assert module use.
105575 2007-04-27  Bruno Haible  <bruno@clisp.org>
105577         * doc/headers/*.texi: New files.
105578         * doc/gnulib.texi (Header File Substitutes): New chapter.
105579         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105580         dependencies.
105581         (standards.info ,standards.html, standards.dvi): Update dependencies.
105582         (mostlyclean, clean): New targets.
105584 2007-04-27  Bruno Haible  <bruno@clisp.org>
105586         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105587         * modules/sysexits (Files, Makefile.am): Update.
105589         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105590         * modules/sys_socket (Files, Makefile.am): Update.
105592         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105593         * modules/sys_stat (Files, Makefile.am): Update.
105595 2007-04-27  Eric Blake  <ebb9@byu.net>
105597         * lib/freading.h: Improve comments.
105598         * lib/fwriting.h: Likewise.
105599         * lib/fflush.c: Likewise.
105601         Fix closein for mingw.
105602         * modules/closein-tests: Add tests for closein.
105603         * tests/test-closein.c: New file.
105604         * tests/test-closein.sh: Likewise.
105605         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105606         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105608 2007-04-27  Bruno Haible  <bruno@clisp.org>
105610         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105611         version is < 6.
105612         * lib/math_.h [__DECC]: Likewise.
105613         * lib/stdio_.h [__DECC]: Likewise.
105614         * lib/stdlib_.h [__DECC]: Likewise.
105615         * lib/string_.h [__DECC]: Likewise.
105616         * lib/time_.h [__DECC]: Likewise.
105617         * lib/wchar_.h [__DECC]: Likewise.
105618         * lib/wctype_.h [__DECC]: Likewise.
105620 2007-04-27  Bruno Haible  <bruno@clisp.org>
105622         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105624 2007-04-27  Bruno Haible  <bruno@clisp.org>
105626         * lib/fflush.c: Add comments.
105627         * modules/fpurge-tests (Depends-on): Add fflush.
105628         * modules/freadable-tests (Depends-on): Likewise.
105629         * modules/fwritable-tests (Depends-on): Likewise.
105631 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105633         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105634         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105635         Report by Bruno Haible <bruno@clisp.org>.
105637 2007-04-26  Eric Blake  <ebb9@byu.net>
105639         Fix fflush on mingw.
105640         * modules/fflush (Depends-on): Add freading.
105641         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105642         but unread data.
105644 2007-04-26  Eric Blake  <ebb9@byu.net>
105645         and Bruno Haible  <bruno@clisp.org>
105647         Implement freading and fwriting.
105648         * lib/freading.c: New file.
105649         * lib/freading.h: Likewise.
105650         * m4/freading.m4: Likewise.
105651         * modules/freading: Likewise.
105652         * modules/freading-tests: Likewise.
105653         * tests/test-freading.c: Likewise.
105654         * lib/fwriting.c: New file.
105655         * lib/fwriting.h: Likewise.
105656         * m4/fwriting.m4: Likewise.
105657         * modules/fwriting: Likewise.
105658         * modules/fwriting-tests: Likewise.
105659         * tests/test-fwriting.c: Likewise.
105660         * MODULES.html.sh (File stream based Input/Output): Mention them.
105662 2007-04-26  Bruno Haible  <bruno@clisp.org>
105664         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105665         'long' when we assume it.
105666         Suggested by Eric Blake.
105668 2007-04-26  Bruno Haible  <bruno@clisp.org>
105670         Ensure fseeko, ftello are declared on glibc systems.
105671         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105672         * modules/fseeko (configure.ac-early): Likewise.
105673         * modules/ftello (configure.ac-early): Likewise.
105674         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105675         AC_FUNC_FSEEKO for this.
105676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105677         (gl_CHECK_FSEEKO): Remove macro.
105679 2007-04-26  Bruno Haible  <bruno@clisp.org>
105681         * tests/test-fflush.c (main): Also check the ftell result after
105682         fflush and fseek/fseeko.
105683         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105684         file descriptor position cache in the stream.
105685         * lib/fseeko.c (rpl_fseeko): Likewise.
105687 2007-04-26  Bruno Haible  <bruno@clisp.org>
105689         * modules/fflush-tests (Depends-on): Add fseeko.
105691 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105692             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105694         * lib/argz_.h: ensure error_t definition is obtained in same
105695         mechanism system argz.h would have.
105696         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105697         argz facilities are known bad.  Err on the side of caution if
105698         cross-compiling.
105700 2007-04-25  Eric Blake  <ebb9@byu.net>
105702         * lib/fpurge.c (includes): Use stdlib.h for free.
105703         * tests/test-fflush.c (main): Also test fflush-fseeko.
105705 2007-04-25  Bruno Haible  <bruno@clisp.org>
105707         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105708         * lib/fseeko.c: New file.
105709         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105710         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105711         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105712         gl_FUNC_FSEEKO.
105713         (gl_FUNC_FSEEKO): Invoke it.
105714         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105715         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105716         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105718 2007-04-25  Bruno Haible  <bruno@clisp.org>
105720         * modules/fflush (Depends-on): Add ftello.
105722 2007-04-25  Bruno Haible  <bruno@clisp.org>
105724         * modules/ftello-tests: New file.
105725         * tests/test-ftello.c: New file.
105727         * modules/ftello: New file.
105728         * m4/ftello.m4: New file.
105729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105730         HAVE_FTELLO.
105731         * lib/stdio_.h (ftello): New declaration.
105732         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105733         HAVE_FTELLO.
105735 2007-04-25  Bruno Haible  <bruno@clisp.org>
105737         * modules/fseeko-tests: New file.
105738         * tests/test-fseeko.c: New file.
105740         * modules/fseeko: New file.
105741         * m4/fseeko.m4: New file.
105742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105743         HAVE_FSEEKO.
105744         * lib/stdio_.h (fseeko): New declaration.
105745         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105746         HAVE_FSEEKO.
105748 2007-04-25  Bruno Haible  <bruno@clisp.org>
105750         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105752 2007-04-25  Bruno Haible  <bruno@clisp.org>
105754         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105755         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105756         * tests/test-unistd.c: Likewise.
105757         * tests/test-fcntl.c: Likewise.
105759 2007-04-23  Eric Blake  <ebb9@byu.net>
105761         * lib/fflush.c: Fix missing include.
105762         Reported by Bruno Haible.
105764 2007-04-23  Bruno Haible  <bruno@clisp.org>
105766         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105767         Reported by Eric Blake.
105769 2007-04-23  Bruno Haible  <bruno@clisp.org>
105771         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105773 2007-04-23  Bruno Haible  <bruno@clisp.org>
105775         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105777 2007-04-23  Bruno Haible  <bruno@clisp.org>
105779         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105780         Needed on HP-UX 11.
105782 2007-04-16  Eric Blake  <ebb9@byu.net>
105784         Make fflush rely on fpurge.
105785         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105786         open coding all variants.
105787         * modules/fflush (Depends-on): Add fpurge and unistd.
105788         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105789         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105791         Fix --with-tests compilation on cygwin.
105792         * modules/argmatch-tests (Makefile.am): List gnulib library first
105793         in LDADD.
105794         * modules/argp-tests (Makefile.am): Likewise.
105795         * modules/array-list-tests (Makefile.am): Likewise.
105796         * modules/array-oset-tests (Makefile.am): Likewise.
105797         * modules/avltree-list-tests (Makefile.am): Likewise.
105798         * modules/avltree-oset-tests (Makefile.am): Likewise.
105799         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105800         * modules/carray-list-tests (Makefile.am): Likewise.
105801         * modules/dirname-tests (Makefile.am): Likewise.
105802         * modules/frexp-tests (Makefile.am): Likewise.
105803         * modules/isnanl-tests (Makefile.am): Likewise.
105804         * modules/linked-list-tests (Makefile.am): Likewise.
105805         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105806         * modules/lock-tests (Makefile.am): Likewise.
105807         * modules/rbtree-list-tests (Makefile.am): Likewise.
105808         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105809         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105810         * modules/tls-tests (Makefile.am): Likewise.
105811         * modules/tsearch-tests (Makefile.am): Likewise.
105812         * modules/xvasprintf-tests (Makefile.am): Likewise.
105814         Fix fpurge for cygwin.
105815         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105816         value.
105817         * modules/fpurge-tests (Depends-on): Clean up trash.
105819 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105821         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105823         * m4/autobuild.m4: Re-indent.
105825 2007-04-13  Bruno Haible  <bruno@clisp.org>
105827         * modules/fpurge-tests: New file.
105828         * tests/test-fpurge.c: New file.
105830         * modules/fpurge: New file.
105831         * lib/fpurge.h: New file.
105832         * lib/fpurge.c: New file.
105833         * m4/fpurge.m4: New file.
105835 2007-04-13  Bruno Haible  <bruno@clisp.org>
105837         * modules/fbufmode-tests: New file.
105838         * tests/test-fbufmode.c: New file.
105840         * modules/fbufmode: New file.
105841         * lib/fbufmode.h: New file.
105842         * lib/fbufmode.c: New file.
105843         * m4/fbufmode.m4: New file.
105845 2007-04-13  Bruno Haible  <bruno@clisp.org>
105847         * modules/fwritable-tests: New file.
105848         * tests/test-fwritable.c: New file.
105850         * modules/fwritable: New file.
105851         * lib/fwritable.h: New file.
105852         * lib/fwritable.c: New file.
105853         * m4/fwritable.m4: New file.
105855 2007-04-13  Bruno Haible  <bruno@clisp.org>
105857         * modules/freadable-tests: New file.
105858         * tests/test-freadable.c: New file.
105860         * modules/freadable: New file.
105861         * lib/freadable.h: New file.
105862         * lib/freadable.c: New file.
105863         * m4/freadable.m4: New file.
105865 2007-04-13  Bruno Haible  <bruno@clisp.org>
105867         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105868         MOSTLYCLEANFILES.
105870 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105872         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105873         gzip bootstrap.conf to avoid dragging in i18n machinery.
105874         (gnulib_tool_option): Use it.
105876 2007-04-13  Bruno Haible  <bruno@clisp.org>
105878         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105879         %F directives.
105880         * tests/test-vasprintf-posix.c (test_function): Likewise.
105881         * tests/test-snprintf-posix.h (test_function): Likewise.
105882         * tests/test-sprintf-posix.h (test_function): Likewise.
105883         * tests/test-fprintf-posix.h (test_function): Likewise.
105884         * tests/test-printf-posix.h (test_function): Likewise.
105885         * tests/test-fprintf-posix.out: Likewise.
105887 2007-04-13  Bruno Haible  <bruno@clisp.org>
105889         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105890         * modules/tls-tests (configure.ac): Likewise.
105891         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105893 2007-04-13  Bruno Haible  <bruno@clisp.org>
105895         * lib/tls.c (glthread_tls_get): Fix return type.
105896         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105898 2007-04-12  Eric Blake  <ebb9@byu.net>
105900         * modules/gettime (Depends-on): Remove gettime.
105901         Reported by Dmitry V. Levin.
105903 2007-04-12  Bruno Haible  <bruno@clisp.org>
105905         * modules/fflush (Include): Mention <stdio.h>.
105906         * modules/strtoimax (Include): Mention <inttypes.h>.
105907         * modules/strtoumax (Include): Likewise.
105909 2007-04-12  Eric Blake  <ebb9@byu.net>
105911         * .cvsignore: New file.
105912         * .gitignore: Likewise.
105914 2007-04-12  Bruno Haible  <bruno@clisp.org>
105916         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105917         not before, since $(LDADD) often contains libgnu.a.
105918         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105919         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105920         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105921         Needed on Cygwin.
105923 2007-04-12  Eric Blake  <ebb9@byu.net>
105925         Work around glibc's failure to flush stdin on fclose.
105926         * lib/closein.c (close_stdin): Flush stdin before closing.
105928         Work around glibc's failure to reset seekable stdin on exit.
105929         * modules/closein: New module.
105930         * lib/closein.c: New file.
105931         * lib/closein.h: Likewise.
105932         * m4/closein.m4: Likewise.
105933         * MODULES.html.sh (File stream based Input/Output): Document it.
105935 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105937         * gnulib-tool: Rename generated 'autobuild' script to
105938         'do-autobuild' in --create-megatestdir output.
105940         * doc/gnulib.texi (Build robot for gnulib): Fix.
105942 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105944         * modules/sysexits (Depends-on): Add absolute-header.
105946 2007-04-12  Eric Blake  <ebb9@byu.net>
105948         No need to preserve errno on success.
105949         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105950         Reported by Bruno Haible.
105952 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105954         * MODULES.html.sh (Support for maintaining and releasing
105955         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105957 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105959         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105961 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105963         * modules/autobuild: New module.
105965         * m4/autobuild.m4: New file.
105967 2007-04-11  Bruno Haible  <bruno@clisp.org>
105969         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105970         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105989         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105990         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105992         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105993         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105995         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105996         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105997         Reported by Eric Blake.
105999 2007-04-11  Bruno Haible  <bruno@clisp.org>
106001         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
106003 2007-04-10  Bruno Haible  <bruno@clisp.org>
106005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
106006         for NaN and Infinity. Needed on FreeBSD 6.1.
106007         * tests/test-vasnprintf-posix.c (test_function): Undo last change
106008         regarding results for "%010a" of Infinity and NaN.
106009         * tests/test-vasprintf-posix.c (test_function): Likewise.
106010         * tests/test-snprintf-posix.h (test_function): Likewise.
106011         * tests/test-sprintf-posix.h (test_function): Likewise.
106012         * tests/test-fprintf-posix.h (test_function): Likewise.
106013         * tests/test-printf-posix.h (test_function): Likewise.
106014         * tests/test-fprintf-posix.out: Likewise.
106016 2007-04-10  Bruno Haible  <bruno@clisp.org>
106018         * modules/locale-tests: New file.
106019         * tests/test-locale.c: New file.
106021         * modules/locale: New file.
106022         * lib/locale_.h: New file.
106023         * m4/locale_h.m4: New file.
106025 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
106026             Bruno Haible  <bruno@clisp.org>
106028         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
106029         be determined, test for availability of the copysignf, copysign,
106030         copysignl functions.
106031         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
106032         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
106033         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
106035 2007-04-09  Eric Blake  <ebb9@byu.net>
106037         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
106038         * modules/stdio (Makefile.am): Support fflush.
106039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
106040         * modules/fflush: New file.
106041         * lib/fflush.c: Likewise.
106042         * m4/fflush.m4: Likewise.
106043         * modules/fflush-tests: New test.
106044         * tests/test-fflush.c: Likewise.
106045         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
106047 2007-04-06  Bruno Haible  <bruno@clisp.org>
106049         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
106050         (VASNPRINTF): Use signbit for faster determination whether to print a
106051         minus sign.
106052         * modules/vasnprintf (Files): Remove lib/float+.h.
106053         * modules/fprintf-posix (Depends-on): Add signbit.
106054         * modules/snprintf-posix (Depends-on): Likewise.
106055         * modules/sprintf-posix (Depends-on): Likewise.
106056         * modules/vasnprintf-posix (Depends-on): Likewise.
106057         * modules/vasprintf-posix (Depends-on): Likewise.
106058         * modules/vfprintf-posix (Depends-on): Likewise.
106059         * modules/vsnprintf-posix (Depends-on): Likewise.
106060         * modules/vsprintf-posix (Depends-on): Likewise.
106062 2007-04-06  Bruno Haible  <bruno@clisp.org>
106064         * tests/test-frexp.c (main): Test also the sign bit of zero results.
106065         * tests/test-frexpl.c (main): Likewise.
106066         * tests/test-ldexpl.c (main): Likewise.
106067         * modules/frexp-tests (Depends-on): Add signbit.
106068         * modules/frexpl-tests (Depdends-on): Likewise.
106069         * modules/ldexpl-tests (Depdends-on): Likewise.
106071 2007-04-06  Bruno Haible  <bruno@clisp.org>
106073         * modules/signbit-tests: New file.
106074         * tests/test-signbit.c: New file.
106076         * modules/signbit: New file.
106077         * lib/signbitf.c: New file.
106078         * lib/signbitd.c: New file.
106079         * lib/signbitl.c: New file.
106080         * m4/signbit.m4: New file.
106081         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
106082         (signbit): New macro.
106083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
106084         REPLACE_SIGNBIT.
106085         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
106086         REPLACE_FREXPL into math.h.
106088 2007-04-06  Bruno Haible  <bruno@clisp.org>
106090         * modules/isnanf-nolibm-tests: New file.
106091         * tests/test-isnanf.c: New file.
106093         * modules/isnanf-nolibm: New file.
106094         * lib/isnanf.h: New file.
106095         * lib/isnanf.c: New file.
106096         * lib/isnan.c: Consider the USE_FLOAT macro.
106097         * m4/isnanf.m4: New file.
106099 2007-04-06  Bruno Haible  <bruno@clisp.org>
106101         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
106102         (Link): New section.
106104         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
106106 2007-04-06  Bruno Haible  <bruno@clisp.org>
106108         Assume the 'long double' type.
106109         * m4/longdouble.m4: Remove file.
106110         * config/srclist.txt: Don't mention longdouble.m4.
106111         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
106112         * lib/float+.h: Likewise.
106113         * lib/frexp.c: Likewise.
106114         * lib/printf-args.h: Likewise.
106115         * lib/printf-args.c: Likewise.
106116         * lib/printf-frexp.c: Likewise.
106117         * lib/printf-parse.c: Likewise.
106118         * lib/vasnprintf.c: Likewise.
106119         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
106120         * m4/intl.m4: Likewise.
106121         * m4/isnanl.m4: Likewise.
106122         * m4/printf.m4: Likewise.
106123         * m4/printf-frexpl.m4: Likewise.
106124         * m4/vasnprintf.m4: Likewise.
106125         * modules/allocsa (Files): Remove m4/longdouble.m4.
106126         * modules/gettext (Files): Likewise.
106127         * modules/relocatable-prog-wrapper (Files): Likewise.
106128         * modules/vasnprintf (Files): Likewise.
106129         * modules/isnanl (Files): Likewise.
106130         (Include): Simplify.
106131         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
106132         (Include): Simplify.
106133         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
106134         (Include): Simplify.
106135         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
106136         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106137         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
106138         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106139         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106140         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106141         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
106142         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106143         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106144         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106145         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
106146         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106147         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
106148         * tests/test-isnanl.c: Likewise.
106149         * tests/test-snprintf-posix.h: Likewise.
106150         * tests/test-sprintf-posix.h: Likewise.
106151         * tests/test-vasnprintf-posix.c: Likewise.
106152         * tests/test-vasnprintf-posix2.c: Likewise.
106153         * tests/test-vasprintf-posix.c: Likewise.
106155 2007-04-06  Bruno Haible  <bruno@clisp.org>
106157         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
106158         * lib/math_.h [__DECC]: Include the overridden include file through
106159         #include_next, outside the double-inclusion guard.
106160         * lib/stdio_.h [__DECC]: Likewise.
106161         * lib/stdlib_.h [__DECC]: Likewise.
106162         * lib/string_.h [__DECC]: Likewise.
106163         * lib/time_.h [__DECC]: Likewise.
106164         * lib/wchar_.h [__DECC]: Likewise.
106165         * lib/wctype_.h [__DECC]: Likewise.
106166         * lib/inttypes_.h [__DECC]: Likewise.
106167         Reported by Albert Chin <china@thewrittenword.com> in
106168         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
106170 2007-04-04  Eric Blake  <ebb9@byu.net>
106172         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
106173         1.5.x.
106175 2007-04-04  Bruno Haible  <bruno@clisp.org>
106177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
106178         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
106180 2007-04-04  Bruno Haible  <bruno@clisp.org>
106182         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
106183         results for "%010a" of Infinity and NaN.
106184         * tests/test-vasprintf-posix.c (test_function): Likewise.
106185         * tests/test-snprintf-posix.h (test_function): Likewise.
106186         * tests/test-sprintf-posix.h (test_function): Likewise.
106187         * tests/test-fprintf-posix.h (test_function): Remove these tests.
106188         * tests/test-printf-posix.h (test_function): Likewise.
106189         * tests/test-fprintf-posix.out: Update.
106190         Needed for FreeBSD 6.1.
106192 2007-04-04  Bruno Haible  <bruno@clisp.org>
106194         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
106195         directly used by the gnulib modules nor by gnulib-tool.
106197 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106199         * DEPENDENCIES: Give overall description of version dependency
106200         desirability.  Use more-typical names for apps.
106201         Add shell, coreutils, diffutils, grep, tar, gzip.
106203 2007-04-04  Simon Josefsson  <simon@josefsson.org>
106205         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
106207 2007-04-04  Karl Berry  <karl@gnu.org>
106209         * MODULES.html.sh (func_module): missing '.
106211 2007-04-03  Bruno Haible  <bruno@clisp.org>
106213         * modules/argmatch-tests (Makefile.am): New variable
106214         test_argmatch_LDADD.
106215         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
106216         * modules/array-list-tests (Makefile.am): New variable
106217         test_array_list_LDADD.
106218         * modules/array-oset-tests (Makefile.am): New variable
106219         test_array_oset_LDADD.
106220         * modules/avltree-list-tests (Makefile.am): New variable
106221         test_avltree_list_LDADD.
106222         * modules/avltree-oset-tests (Makefile.am): New variable
106223         test_avltree_oset_LDADD.
106224         * modules/avltreehash-list-tests (Makefile.am): New variable
106225         test_avltreehash_list_LDADD.
106226         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
106227         test_canonicalize_lgpl_LDADD.
106228         * modules/carray-list-tests (Makefile.am): New variable
106229         test_carray_list_LDADD.
106230         * modules/dirname-tests (Makefile.am): New variable
106231         test_dirname_LDADD.
106232         * modules/linked-list-tests (Makefile.am): New variable
106233         test_linked_list_LDADD.
106234         * modules/linkedhash-list-tests (Makefile.am): New variable
106235         test_linkedhash_list_LDADD.
106236         * modules/rbtree-list-tests (Makefile.am): New variable
106237         test_rbtree_list_LDADD.
106238         * modules/rbtree-oset-tests (Makefile.am): New variable
106239         test_rbtree_oset_LDADD.
106240         * modules/rbtreehash-list-tests (Makefile.am): New variable
106241         test_rbtreehash_list_LDADD.
106242         * modules/xvasprintf-tests (Makefile.am): New variable
106243         test_xvasprintf_LDADD.
106244         Reported by Eric Blake.
106246 2007-04-03  Eric Blake  <ebb9@byu.net>
106248         * DEPENDENCIES: Weaken m4 requirements.
106250 2007-04-03  Bruno Haible  <bruno@clisp.org>
106252         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
106253         * modules/isnanl-tests (configure.ac): Likewise.
106255 2007-04-03  Ben Pfaff  <blp@gnu.org>
106257         * modules/iconv_open: Add $(srcdir)/ to source directory
106258         references in Makefile fragments that call gperf, to fix VPATH
106259         builds.
106261 2007-04-03  Bruno Haible  <bruno@clisp.org>
106263         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
106264         * lib/ldexpl.c: Undo last change.
106266 2007-04-03  Bruno Haible  <bruno@clisp.org>
106268         * modules/printf-frexpl (Depends-on): Undo last change.
106269         (Files): Add m4/ldexpl.m4.
106271 2007-04-03  Bruno Haible  <bruno@clisp.org>
106273         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
106274         * modules/isnanl (Link): New section.
106276         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
106277         * modules/frexp (Link): New section.
106279         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
106280         * modules/frexpl (Link): New section.
106282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
106283         * modules/ldexpl (Link): New section.
106285 2007-04-03  Bruno Haible  <bruno@clisp.org>
106287         * modules/TEMPLATE-EXTENDED: New file.
106288         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
106290 2007-04-03  Bruno Haible  <bruno@clisp.org>
106292         * DEPENDENCIES: New file.
106293         Suggested by Simon Josefsson.
106295 2007-04-03  Bruno Haible  <bruno@clisp.org>
106297         * doc/gnulib.texi: Escape @.
106299 2007-04-03  James Youngman  <jay@gnu.org>
106300         and Paul Eggert  <eggert@cs.ucla.edu>
106302         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
106303         birthtime on all systems that have birthtime, not just those which
106304         use st_birthtimensec rather than st_birthtim.  Putting zero in
106305         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
106306         that the birth time is not available for files on an NFS mount.
106308 2007-04-03  Simon Josefsson  <simon@josefsson.org>
106310         * modules/memxor: Move back from crypto/, suggested by Bruno.
106311         * modules/crypto/hmac-sha1: Fix memxor dependency.
106313         * modules/crypto/gc: Moved from ../.
106315 2007-04-02  Eric Blake  <ebb9@byu.net>
106317         * lib/ldexpl.c (includes): Avoid libm.
106319         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
106321 2007-04-02  Bruno Haible  <bruno@clisp.org>
106323         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
106324         on IRIX.
106326 2007-04-02  Bruno Haible  <bruno@clisp.org>
106328         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
106329         x86 or x86_64 platforms running MacOS X.
106330         Reported by Ryan Schmidt <@ryandesign.com>.
106332 2007-04-02  Bruno Haible  <bruno@clisp.org>
106334         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
106335         i386.
106337 2007-04-01  Simon Josefsson  <simon@josefsson.org>
106339         * modules/crypto/arcfour: Moved from ../.
106340         * modules/crypto/arcfour-tests: Moved from ../.
106341         * modules/crypto/arctwo: Moved from ../.
106342         * modules/crypto/arctwo-tests: Moved from ../.
106343         * modules/crypto/des: Moved from ../.
106344         * modules/crypto/des-tests: Moved from ../.
106345         * modules/crypto/gc-arcfour: Moved from ../.
106346         * modules/crypto/gc-arcfour-tests: Moved from ../.
106347         * modules/crypto/gc-arctwo: Moved from ../.
106348         * modules/crypto/gc-arctwo-tests: Moved from ../.
106349         * modules/crypto/gc-des: Moved from ../.
106350         * modules/crypto/gc-des-tests: Moved from ../.
106351         * modules/crypto/gc-hmac-md5: Moved from ../.
106352         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
106353         * modules/crypto/gc-hmac-sha1: Moved from ../.
106354         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
106355         * modules/crypto/gc-md2: Moved from ../.
106356         * modules/crypto/gc-md2-tests: Moved from ../.
106357         * modules/crypto/gc-md4: Moved from ../.
106358         * modules/crypto/gc-md4-tests: Moved from ../.
106359         * modules/crypto/gc-md5: Moved from ../.
106360         * modules/crypto/gc-md5-tests: Moved from ../.
106361         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
106362         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
106363         * modules/crypto/gc-random: Moved from ../.
106364         * modules/crypto/gc-rijndael: Moved from ../.
106365         * modules/crypto/gc-rijndael-tests: Moved from ../.
106366         * modules/crypto/gc-sha1: Moved from ../.
106367         * modules/crypto/gc-sha1-tests: Moved from ../.
106368         * modules/crypto/gc-tests: Moved from ../.
106369         * modules/crypto/hmac-md5: Moved from ../.
106370         * modules/crypto/hmac-md5-tests: Moved from ../.
106371         * modules/crypto/hmac-sha1: Moved from ../.
106372         * modules/crypto/hmac-sha1-tests: Moved from ../.
106373         * modules/crypto/md2: Moved from ../.
106374         * modules/crypto/md2-tests: Moved from ../.
106375         * modules/crypto/md4: Moved from ../.
106376         * modules/crypto/md4-tests: Moved from ../.
106377         * modules/crypto/md5: Moved from ../.
106378         * modules/crypto/md5-tests: Moved from ../.
106379         * modules/crypto/memxor: Moved from ../.
106380         * modules/crypto/rijndael: Moved from ../.
106381         * modules/crypto/rijndael-tests: Moved from ../.
106382         * modules/crypto/sha1: Moved from ../.
106384 2007-03-30  James Youngman  <jay@gnu.org>
106386         * tests/test-stat-time.c (prepare_test): use chmod() rather than
106387         rename() to change the ctime of a file (because ctime is unaffected
106388         by rename on jfs2 on AIX 5.1).
106389         (main): Start by doing cleanup, in case a previous run failed leaving
106390         test files behind.
106392 2007-03-31  Bruno Haible  <bruno@clisp.org>
106394         Support old proprietary implementations of iconv.
106395         * modules/iconv_open: New file.
106396         * lib/iconv_.h: New file.
106397         * m4/iconv_h.m4: New file.
106398         * lib/iconv_open.c: New file.
106399         * lib/iconv_open-aix.gperf: New file.
106400         * lib/iconv_open-hpux.gperf: New file.
106401         * lib/iconv_open-irix.gperf: New file.
106402         * lib/iconv_open-osf.gperf: New file.
106403         * m4/iconv_open.m4: New file.
106404         * modules/linebreak (Depends-on): Add iconv_open.
106405         * modules/striconv (Depends-on): Likewise.
106406         * modules/striconveh (Depends-on): Likewise.
106407         * modules/unicodeio (Depends-on): Likewise.
106408         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
106409         (iconv_t)(-1).
106410         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
106411         conversion if cd is (iconv_t)(-1).
106412         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
106413         is not possible.
106415 2007-03-31  Bruno Haible  <bruno@clisp.org>
106417         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106418         work on Solaris either. Protect also second use of "autodetect_jp".
106420 2007-03-31  Bruno Haible  <bruno@clisp.org>
106422         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106423         the function is not present.
106425 2007-03-31  Bruno Haible  <bruno@clisp.org>
106427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106428         the function is not present.
106430 2007-03-31  Bruno Haible  <bruno@clisp.org>
106432         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106433         a bug in HP-UX iconv_open().
106435 2007-03-31  Bruno Haible  <bruno@clisp.org>
106437         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106438         (Mathematics <math.h>): New section, add fpieee.
106439         (Input/output <stdio.h>): Add fseterr.
106440         (Mathematics <math.h>): New section, add printf-frexp.
106441         (Container data structures): Add sublist.
106442         (Core language properties): Add fpucw, inline.
106443         (Functions for greatest-width integer types <inttypes.h>): Add
106444         imaxabs, imaxdiv, inttypes.
106445         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106446         isnanl-nolibm, ldexp.
106447         (Mathematics <math.h>): New section, add printf-frexpl.
106448         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106449         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106450         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106451         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106452         (Unicode string functions): Add unistr/u*-mbtoucr.
106453         (Java): Add javacomp-script, javaexec-script.
106454         (C#): Add csharpcomp-script, csharpexec-script.
106455         (Support for building libraries and executables): Add havelib,
106456         relocatable-*.
106457         (Support for maintaining and releasing projects): Renamed from
106458         'Support for maintaining and release projects'. Add announce-gen.
106460 2007-03-31  Bruno Haible  <bruno@clisp.org>
106462         * README: Talk primarily about git.
106463         (git and CVS): Renamed from CVS.
106464         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106465         gnulib is available through git.
106466         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106468 2007-03-30  Bruno Haible  <bruno@clisp.org>
106470         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106471         * lib/poll_.h: Likewise.
106472         * lib/stat_.h: Likewise.
106473         * lib/sys_time_.h: Likewise.
106474         * lib/sysexit_.h: Likewise.
106475         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106476         * lib/stdbool_.h: Likewise.
106477         * lib/byteswap_.h: Add double-inclusion guard.
106479 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106481         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106483 2007-03-30  Karl Berry  <karl@gnu.org>
106485         * config/srclist-update: double space after USA in the license
106486         substitution, since that's how it's usually (?) written.
106488 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106490         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106491         reported by Bruno Haible.
106493 2007-03-29  Bruno Haible  <bruno@clisp.org>
106495         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106496         a bug in AIX iconv().
106498 2007-03-29  Bruno Haible  <bruno@clisp.org>
106500         * modules/ldexpl-tests: New file.
106501         * tests/test-ldexpl.c: New file.
106503 2007-03-29  Bruno Haible  <bruno@clisp.org>
106505         * lib/ldexpl.c: Include fpucw.h.
106506         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106507         multiplication.
106508         * modules/ldexpl (Depends-on): Add fpucw.
106510 2007-03-29  Bruno Haible  <bruno@clisp.org>
106512         * modules/ldexpl: New file.
106513         * m4/ldexpl.m4: New file.
106514         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106515         set.
106516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106517         REPLACE_LDEXPL.
106518         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106519         REPLACE_LDEXPL.
106520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106521         gl_FUNC_LDEXPL_WORKS.
106522         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106523         * modules/mathl (Files): Remove lib/ldexpl.c.
106524         (Depends-on): Add ldexpl.
106526 2007-03-29  Bruno Haible  <bruno@clisp.org>
106528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106530 2007-03-29  Bruno Haible  <bruno@clisp.org>
106532         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106533         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106534         and possibly also HP-UX.
106535         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106536         work on AIX, IRIX, HP-UX, OSF/1.
106537         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106538         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106539         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106540         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106541         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106542         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106544 2007-03-29  Bruno Haible  <bruno@clisp.org>
106546         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106548 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106550         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106551         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106553 2007-03-29  Eric Blake  <ebb9@byu.net>
106555         * lib/acl-internal.h: Remove redundant include.
106556         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106557         Cygwin when a file is locked.
106559 2007-03-29  Bruno Haible  <bruno@clisp.org>
106561         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106562         file.
106563         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106565 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106567         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106568         try to remove a parent directory if the child couldn't be removed
106569         (except for the first rmdir, which could fail because the child
106570         doesn't exist).  Problem reported by Jeff Blaine in
106571         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106573 2007-03-28  Bruno Haible  <bruno@clisp.org>
106575         * lib/striconveh.c (utf8conv_carefully): New function.
106576         (mem_cd_iconveh_internal): Invoke it.
106578 2007-03-28  Bruno Haible  <bruno@clisp.org>
106580         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106581         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106582         input.
106583         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106584         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106585         unistr/u8-uctomb.
106587 2007-03-28  Bruno Haible  <bruno@clisp.org>
106589         * modules/unistr/u8-mbtoucr: New file.
106590         * lib/unistr/u8-mbtoucr.c: New file.
106591         * modules/unistr/u16-mbtoucr: New file.
106592         * lib/unistr/u16-mbtoucr.c: New file.
106593         * modules/unistr/u16-mbtoucr: New file.
106594         * lib/unistr/u16-mbtoucr.c: New file.
106595         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106597 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106598             Bruno Haible  <bruno@clisp.org>
106600         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106601         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106602         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106604         * m4/stdio_h.m4: Add stubs for vasprintf too.
106606         * modules/stdio: Support vasprintf in sed command.
106608         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106609         vasprintf.h.  Add stdio module indicator.
106611         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106612         vasprintf.h.
106614         * lib/vasprintf.h: File removed.
106616         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106617         * lib/vasprintf.c: Ditto.
106618         * lib/xvasprintf.c: Ditto.
106619         * tests/test-vasprintf-posix.c: Ditto.
106620         * tests/test-vasprintf.c: Ditto.
106622 2007-03-27  Bruno Haible  <bruno@clisp.org>
106624         Make vasnprintf multithread-safe.
106625         * lib/vasnprintf.c (decimal_point_char): New function.
106626         (VASNPRINTF): Use it.
106627         Suggested by Simon Josefsson.
106629 2007-03-27  Eric Blake  <ebb9@byu.net>
106631         Support sub-second birthtime on cygwin.
106632         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106633         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106634         (get_stat_birthtime): Also work with st_birthtim.
106636 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106638         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106639         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106640         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106641         (get_stat_birthtime_ns): Simplify compile-time tests.
106642         (get_stat_birthtime): Change the API to look like
106643         get_stat_mtime etc., except return a negative tv_nsec on error.
106644         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106645         Don't check for "spare" fields.
106646         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106647         or for struct stat.st_birthtime, as these tests aren't used.
106648         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106650 2007-03-27  Bruno Haible  <bruno@clisp.org>
106652         * lib/stat-time.h: Include <sys/stat.h>.
106654 2007-03-27  James Youngman  <jay@gnu.org>
106656         * lib/stat-time.h (get_stat_birthtime): New function for
106657           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106658         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106659           and its variants.
106660         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106661         * modules/stat-time-test: New file.
106662         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106664 2007-03-26  Bruno Haible  <bruno@clisp.org>
106666         Better support of signalling NaNs.
106667         * lib/atanl.c: Include isnanl.h.
106668         (atanl): Perform test for NaN at the beginning of the function and
106669         through a call to isnanl.
106670         * lib/cosl.c: Include isnanl.h.
106671         (cosl): Perform test for NaN at the beginning of the function and
106672         through a call to isnanl.
106673         * lib/ldexpl.c: Include isnanl.h.
106674         (ldexpl): Perform test for NaN through a call to isnanl.
106675         * lib/logl.c: Include isnanl.h.
106676         (logl): Perform test for NaN at the beginning of the function and
106677         through a call to isnanl.
106678         * lib/sinl.c: Include isnanl.h.
106679         (sinl): Perform test for NaN at the beginning of the function and
106680         through a call to isnanl.
106681         * lib/sqrtl.c: Include isnanl.h.
106682         (sqrtl): Perform test for NaN at the beginning of the function and
106683         through a call to isnanl.
106684         * lib/tanl.c: Include isnanl.h.
106685         (tanl): Perform test for NaN at the beginning of the function and
106686         through a call to isnanl.
106687         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106688         * modules/mathl (Depends-on): Add isnanl.
106690 2007-03-26  Eric Blake  <ebb9@byu.net>
106692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106693         regression in logic sense of previous patch.
106695 2007-03-26  Bruno Haible  <bruno@clisp.org>
106697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106698         unportable shell command "if ! ...".
106699         Reported by Ralf Wildenhues.
106701 2007-03-25  Bruno Haible  <bruno@clisp.org>
106703         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106704         <sysexits.h> file, and only add EX_CONFIG.
106705         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106706         absolute file name and whether it is sufficient. Substitute also
106707         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106708         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106709         ABSOLUTE_SYSEXITS_H into sysexits.h.
106711 2007-03-25  Bruno Haible  <bruno@clisp.org>
106713         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106714         hints is NULL.
106716 2007-03-25  Bruno Haible  <bruno@clisp.org>
106718         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106719         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106721 2007-03-25  Bruno Haible  <bruno@clisp.org>
106723         * lib/vasnprintf.c: Include langinfo.h.
106724         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106725         multithread-safe.
106726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106735         Reported by Simon Josefsson.
106737 2007-03-25  Bruno Haible  <bruno@clisp.org>
106739         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106740         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106741         * modules/vasnprintf (Depends-on): Add stdint.
106743 2007-03-25  Bruno Haible  <bruno@clisp.org>
106745         * modules/fpieee: New file.
106746         * m4/fpieee.m4: New file.
106747         * modules/isnan-nolibm (Depends-on): Add fpieee.
106748         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106749         * modules/isnanl (Depends-on): Add fpieee.
106751 2007-03-25  Bruno Haible  <bruno@clisp.org>
106753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106755 2007-03-25  Bruno Haible  <bruno@clisp.org>
106757         Avoid test failures on IRIX 6.5.
106758         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106759         (main): Use it.
106760         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106761         macros.
106762         (main): Use them.
106764 2007-03-25  Bruno Haible  <bruno@clisp.org>
106766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106767         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106768         exists but doesn't work.
106769         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106770         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106772         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106773         math.h.
106775 2007-03-25  Bruno Haible  <bruno@clisp.org>
106777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106778         returns inf. Needed on IRIX 6.5.
106780 2007-03-25  Bruno Haible  <bruno@clisp.org>
106782         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106783         (main): Use isnanl instead of x != x idiom.
106784         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106786         * tests/test-frexp.c: Include isnan.h.
106787         (main): Use isnan instead of x != x idiom.
106788         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106790 2007-03-25  Bruno Haible  <bruno@clisp.org>
106792         * tests/test-frexp.c (NaN): New function/macro.
106793         (main): Use it instead of 0.0 / 0.0.
106794         * tests/test-isnan.c (NaN): New function/macro.
106795         (main): Use it instead of 0.0 / 0.0.
106796         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106797         (test_function): Use it instead of 0.0 / 0.0.
106798         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106799         (test_function): Use it instead of 0.0 / 0.0.
106800         * tests/test-snprintf-posix.h (NaN): New function/macro.
106801         (test_function): Use it instead of 0.0 / 0.0.
106802         * tests/test-sprintf-posix.h (NaN): New function/macro.
106803         (test_function): Use it instead of 0.0 / 0.0.
106804         * tests/test-fprintf-posix.h (NaN): New function/macro.
106805         (test_function): Use it instead of 0.0 / 0.0.
106806         * tests/test-printf-posix.h (NaN): New function/macro.
106807         (test_function): Use it instead of 0.0 / 0.0.
106809         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106811 2007-03-25  Bruno Haible  <bruno@clisp.org>
106813         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106815 2007-03-25  Bruno Haible  <bruno@clisp.org>
106817         * lib/regexec.c (merge_state_with_log): Make static.
106819 2007-03-25  Bruno Haible  <bruno@clisp.org>
106821         * lib/trigl.c (kernel_rem_pio2): Make static.
106823 2007-03-25  Bruno Haible  <bruno@clisp.org>
106825         * lib/sincosl.c (sincosl_table): Make static.
106827 2007-03-25  Bruno Haible  <bruno@clisp.org>
106829         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106830         if the compiler does not support C99.
106832 2007-03-25  Bruno Haible  <bruno@clisp.org>
106834         * modules/time (Makefile.am): Ensure all rule action lines start with a
106835         tab.
106837 2007-03-24  Bruno Haible  <bruno@clisp.org>
106839         * modules/tsearch-tests: New file.
106840         * tests/test-tsearch.sh: New file.
106841         * tests/test-tsearch.c: New file, mostly copied from glibc.
106843         * modules/search-tests: New file.
106844         * tests/test-search.c: New file.
106846         * modules/search: New file.
106847         * lib/search_.h: New file, incorporating lib/tsearch.h.
106848         * m4/search_h.m4: New file.
106849         * lib/tsearch.h: Remove file.
106850         * lib/tsearch.c: Include search.h instead of tsearch.h.
106851         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106852         HAVE_TSEARCH.
106853         * modules/tsearch (Files): Remove lib/tsearch.h.
106854         (Depends-on): Add search.
106855         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106856         (Include): Change tsearch.h into search.h.
106858 2007-03-24  Bruno Haible  <bruno@clisp.org>
106860         * modules/fpucw: New file.
106861         * lib/fpucw.h: New file.
106862         * lib/frexp.c: Include fpucw.h.
106863         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106864         (FUNC): Use them.
106865         * lib/printf-frexp.c: Include fpucw.h.
106866         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106867         (FUNC): Use them.
106868         * lib/vasnprintf.c: Include fpucw.h.
106869         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106870         'long double' calculations.
106871         * tests/test-frexpl.c: Include fpucw.h.
106872         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106873         * tests/test-printf-frexpl.c: Include fpucw.h.
106874         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106875         * modules/frexpl (Depends-on): Add fpucw.
106876         * modules/printf-frexpl (Depends-on): Likewise.
106877         * modules/fprintf-posix (Depends-on): Likewise.
106878         * modules/snprintf-posix (Depends-on): Likewise.
106879         * modules/sprintf-posix (Depends-on): Likewise.
106880         * modules/vasnprintf-posix (Depends-on): Likewise.
106881         * modules/vasprintf-posix (Depends-on): Likewise.
106882         * modules/vfprintf-posix (Depends-on): Likewise.
106883         * modules/vsnprintf-posix (Depends-on): Likewise.
106884         * modules/vsprintf-posix (Depends-on): Likewise.
106885         * modules/frexpl-tests (Depends-on): Likewise.
106886         * modules/printf-frexpl-tests (Depends-on): Likewise.
106888 2007-03-24  Bruno Haible  <bruno@clisp.org>
106890         * lib/float+.h: New file.
106891         * lib/isnan.c: Include float+.h.
106892         (SIZE): New macro.
106893         (FUNC): Compare only SIZE bytes of the value.
106894         * lib/vasnprintf.c: Include float+.h.
106895         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106896         SIZEOF_LDBL or SIZEOF_DBL bytes.
106897         * modules/isnan-nolibm (Files): Add lib/float+.h.
106898         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106899         * modules/isnanl (Files): Add lib/float+.h.
106900         * modules/vasnprintf (Files): Add lib/float+.h.
106902 2007-03-24  Bruno Haible  <bruno@clisp.org>
106904         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106905         include isnanl-nolibm.h.
106907 2007-03-24  Bruno Haible  <bruno@clisp.org>
106909         * tests/test-read-file.c (main): Don't produce spurious output for
106910         expected situations. Make the test fail if it encountered unexpected
106911         results.
106913 2007-03-24  Bruno Haible  <bruno@clisp.org>
106915         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106916         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106918 2007-03-24  Bruno Haible  <bruno@clisp.org>
106920         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106922 2007-03-24  Bruno Haible  <bruno@clisp.org>
106924         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106925         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106927         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106928         * modules/utf8-ucs4: Turn into a symbolic link to module
106929         unistr/u8-mbtouc.
106931         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106932         utf8-ucs4-unsafe.
106933         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106934         unistr/u8-mbtouc-unsafe.
106936         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106937         * modules/utf16-ucs4: Turn into a symbolic link to module
106938         unistr/u16-mbtouc.
106940         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106941         utf16-ucs4-unsafe.
106942         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106943         unistr/u16-mbtouc-unsafe.
106945         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106946         * modules/ucs4-utf8: Turn into a symbolic link to module
106947         unistr/u8-ubtomb.
106949         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106950         * modules/ucs4-utf16: Turn into a symbolic link to module
106951         unistr/u16-ubtomb.
106953 2007-03-24  Bruno Haible  <bruno@clisp.org>
106955         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106956         Enable the function only if HAVE_INLINE.
106957         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106958         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106959         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106960         Enable the function only if HAVE_INLINE.
106961         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106962         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106963         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106964         Enable the function only if HAVE_INLINE.
106965         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106966         Enable the function only if HAVE_INLINE.
106967         * modules/utf8-ucs4: Update.
106968         * modules/utf8-ucs4-unsafe: Update.
106969         * modules/utf16-ucs4: Update.
106970         * modules/utf16-ucs4-unsafe: Update.
106971         * modules/ucs4-utf8: Update.
106972         * modules/ucs4-utf16: Update.
106974 2007-03-24  Bruno Haible  <bruno@clisp.org>
106976         * lib/utf8-ucs4.h: Remove file.
106977         * lib/utf8-ucs4-unsafe.h: Remove file.
106978         * lib/utf16-ucs4.h: Remove file.
106979         * lib/utf16-ucs4-unsafe.h: Remove file.
106980         * lib/ucs4-utf8.h: Remove file.
106981         * lib/ucs4-utf16.h: Remove file.
106982         * lib/unistr.h: Include their previous contents.
106983         * m4/utf-ucs4.m4: Remove file.
106984         * m4/ucs4-utf.m4: Remove file.
106985         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106986         (Depends-on): Add unistr/base.
106987         (configure.ac): Remove gl_UTF_UCS4.
106988         (Makefile.am): Update.
106989         (Include): Change to unistr.h.
106990         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106991         (Depends-on): Add unistr/base.
106992         (configure.ac): Remove gl_UTF_UCS4.
106993         (Makefile.am): Update.
106994         (Include): Change to unistr.h.
106995         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106996         (Depends-on): Add unistr/base.
106997         (configure.ac): Remove gl_UTF_UCS4.
106998         (Makefile.am): Update.
106999         (Include): Change to unistr.h.
107000         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
107001         (Depends-on): Add unistr/base.
107002         (configure.ac): Remove gl_UTF_UCS4.
107003         (Makefile.am): Update.
107004         (Include): Change to unistr.h.
107005         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
107006         (Depends-on): Add unistr/base.
107007         (configure.ac): Remove gl_UCS4_UTF.
107008         (Makefile.am): Update.
107009         (Include): Change to unistr.h.
107010         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
107011         (Depends-on): Add unistr/base.
107012         (configure.ac): Remove gl_UCS4_UTF.
107013         (Makefile.am): Update.
107014         (Include): Change to unistr.h.
107015         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
107016         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
107017         utf8-ucs4-unsafe.h.
107018         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
107019         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
107020         utf16-ucs4-unsafe.h.
107021         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
107022         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
107023         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
107024         * lib/unistr/u8-strchr.c: Likewise.
107025         * lib/unistr/u8-strrchr.c: Likewise.
107026         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
107027         * lib/unistr/u16-strchr.c: Likewise.
107028         * lib/unistr/u16-strrchr.c: Likewise.
107029         * lib/striconveh.c: Update.
107030         * lib/linebreak.c: Update.
107032 2007-03-24  Bruno Haible  <bruno@clisp.org>
107034         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
107035         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
107037 2007-03-22  Bruno Haible  <bruno@clisp.org>
107039         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
107041 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
107043         * MODULES.html.sh (File system functions): New module write-any-file.
107044         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
107045         * m4/write-any-file.m4: New files.
107047 2007-03-23  Eric Blake  <ebb9@byu.net>
107049         * gnulib-tool: Rearrange space-tab sequences, since some editors
107050         like to eat them.
107052 2007-03-23  Eric Blake  <ebb9@byu.net>
107054         * lib/version-etc.c (version_etc_va): Update license wording to
107055         be more concise.  Recommended by Richard Stallman.
107057 2007-03-22  Bruno Haible  <bruno@clisp.org>
107059         * lib/poll.c (MSG_PEEK): New fallback definition.
107061 2007-03-22  Bruno Haible  <bruno@clisp.org>
107063         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
107064         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
107065         (main): Update.
107066         Fixes a compilation error on BeOS.
107068 2007-03-22  Bruno Haible  <bruno@clisp.org>
107070         * modules/frexpl-tests: New file.
107071         * tests/test-frexpl.c: New file.
107073         * modules/frexpl: New file.
107074         * m4/frexpl.m4: New file.
107075         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
107076         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
107077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
107078         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
107079         (Depends-on): Add frexpl. Remove isnanl-nolibm.
107080         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
107082 2007-03-22  Bruno Haible  <bruno@clisp.org>
107084         * lib/frexpl.c: Share code with lib/frexp.c.
107085         * modules/mathl (Files): Add lib/frexp.c.
107086         (Depends-on): Add isnanl-nolibm.
107088 2007-03-22  Bruno Haible  <bruno@clisp.org>
107090         * modules/printf-frexp (Files): Add m4/frexp.m4.
107091         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
107092         only if the found frexp function actually works.
107094 2007-03-22  Bruno Haible  <bruno@clisp.org>
107096         * lib/frexp.c: Remove older implementation that uses divisions.
107098 2007-03-21  Bruno Haible  <bruno@clisp.org>
107100         * modules/frexp-tests: New file.
107101         * tests/test-frexp.c: New file.
107103         * modules/frexp: New file.
107104         * lib/frexp.c: New file.
107105         * m4/frexp.m4: New file.
107106         * lib/math_.h (frexp): New declaration.
107107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
107108         REPLACE_FREXP.
107109         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
107111 2007-03-21  Bruno Haible  <bruno@clisp.org>
107113         * modules/isnanl-tests: New file.
107114         * tests/test-isnanl.c: New file.
107116         * modules/isnanl: New file.
107117         * lib/isnanl.h: New file.
107118         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
107119         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
107120         gl_FUNC_ISNANL_WORKS.
107121         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
107122         New macros.
107124 2007-03-21  Bruno Haible  <bruno@clisp.org>
107126         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
107127         lib/isnanl.h.
107128         (Include): Update.
107129         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
107130         * lib/vasnprintf.c: Update.
107131         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
107132         tests/test-isnanl.h, remove tests/test-isnanl.c.
107133         (Makefile.am): Update.
107134         * tests/test-isnanl-nolibm.c: New file.
107135         * tests/test-isnanl.h: New file.
107136         * tests/test-isnanl.c: Remove file.
107138 2007-03-21  Jim Meyering  <jim@meyering.net>
107140         When trying to open ".", treat ESTALE like EACCES.
107141         * lib/savewd.c (savewd_save): Resort to forking not just upon
107142         failure with EACCES, but also when errno is ESTALE.
107144 2007-03-20  Bruno Haible  <bruno@clisp.org>
107146         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
107147         Needed on AIX 5.1. Reported by Matthew Woehlke.
107149 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107151         Suggestions by Bruno Haible:
107152         * lib/acl-internal.h: Include "gettext.h" rather than rolling
107153         our own.
107154         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
107155         * modules/acl (Depends-on): Add gettext.
107157 2007-03-19  Bruno Haible  <bruno@clisp.org>
107159         * modules/iconvme: Remove file.
107160         * lib/iconvme.h: Remove file.
107161         * lib/iconvme.c: Remove file.
107162         * m4/iconvme.m4: Remove file.
107164 2007-03-19  Bruno Haible  <bruno@clisp.org>
107166         * doc/relocatable-maint.texi: Break long shell script line.
107167         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107169 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107171         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
107172         handle file_has_acl.
107173         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
107174         * lib/acl.c: Move header inclusions and related macro defns into
107175         lib/acl-internal.h.
107176         (S_ISLNK): Remove defn, since that's now done for us.
107177         (file_has_acl): Move to lib/file-has-acl.c.
107178         Call acl_trivial if available.  This is the crucial part of the fix.
107179         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
107180         shared within the library.  Rewrite a bit, partly to make it compatible
107181         with the GNU coding style.
107182         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
107183         Remove unnecessary double-quotes.
107184         Don't test for acl_to_text; the build will catch that.
107185         Replace acl_entries if it doesn't exist and it is needed.
107186         Check for -lsec and acl_trivial (as used on Solaris 10).
107187         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
107188         lib/file-has-acl.c.
107189         (Depends-on): Add sys_stat, for S_ISLNK.
107191 2007-03-19  Ben Pfaff  <blp@gnu.org>
107193         * doc/gnulib.texi: Fix typos.
107194         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107196 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107198         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
107199         If size is zero here, buf must be zero.
107201 2007-03-19  Simon Josefsson  <simon@josefsson.org>
107203         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
107204         <bruno@clisp.org>.
107206 2007-03-18  Bruno Haible  <bruno@clisp.org>
107208         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
107209         Suggested by Eric Blake.
107211 2007-03-18  Ben Pfaff  <blp@gnu.org>
107213         * doc/relocatable.texi: Recommend using as prefix a directory
107214         that does not exist and will never be created.  Based on
107215         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
107216         and others.
107218 2007-03-17  Bruno Haible  <bruno@clisp.org>
107220         * lib/fchownat.c: Include lchown.h.
107222 2007-03-17  Bruno Haible  <bruno@clisp.org>
107224         Fix endless loop when the given allocated size was > INT_MAX.
107225         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
107226         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
107227         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
107228         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
107229         * lib/sprintf.c (sprintf): Likewise.
107231 2007-03-17  Bruno Haible  <bruno@clisp.org>
107233         * tests/test-argp-2.sh (func_compare): Output a context diff.
107235 2007-03-17  Bruno Haible  <bruno@clisp.org>
107237         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
107238         locale's decimal-point character.
107240 2007-03-17  Bruno Haible  <bruno@clisp.org>
107242         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
107243         before comparing it. Needed because on some platforms (e.g. x86) a
107244         'long double' occupies less bytes than sizeof (long double).
107246 2007-03-17  Bruno Haible  <bruno@clisp.org>
107248         * tests/test-crc.c (main): Make printf statements 64-bit clean.
107249         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
107250         * tests/test-getaddrinfo.c (simple): Likewise.
107251         * tests/test-read-file.c (main): Likewise.
107253 2007-03-17  Bruno Haible  <bruno@clisp.org>
107255         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
107257 2007-03-17  Bruno Haible  <bruno@clisp.org>
107259         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
107260         unused variable.
107262 2007-03-17  Bruno Haible  <bruno@clisp.org>
107264         * tests/test-c-strcasecmp.c: Include c-strcase.h.
107265         * tests/test-c-strncasecmp.c: Likewise.
107267 2007-03-17  Bruno Haible  <bruno@clisp.org>
107269         * modules/stdlib (Depends-on): Add unistd.
107270         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
107271         Needed for MacOS X 10.3.
107273 2007-03-17  Bruno Haible  <bruno@clisp.org>
107275         * lib/unistr/u-strdup.h: Include <stdlib.h>.
107277 2007-03-17  Bruno Haible  <bruno@clisp.org>
107279         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
107281 2007-03-17  Bruno Haible  <bruno@clisp.org>
107283         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
107284         to reflect files copied from gnulib (with or without modifications).
107285         Suggested by Jim Meyering.
107287 2007-03-17  Eric Blake  <ebb9@byu.net>
107289         * NEWS: Document stdlib change from 2007-02-18.
107291 2007-03-17  Jim Meyering  <jim@meyering.net>
107293         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
107294         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
107295         someone uses a name containing shell meta-characters.
107296         Reported by Alfred M. Szmidt.
107298         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
107300 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107302         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
107303         and copy gettext configuration files only if configure.ac contains
107304         a use of AM_GNU_GETTEXT_VERSION.
107306 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107308         * build-aux/bootstrap (gnulib_name): New variable.
107309         (gnulib_tool_options): Use it.
107311 2007-03-13  Simon Josefsson  <simon@josefsson.org>
107313         * tests/test-des.c: Use new namespace.
107315 2007-03-15  Bruno Haible  <bruno@clisp.org>
107317         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
107318         Reported by James Youngman <jay@gnu.org>.
107320 2007-03-15  Bruno Haible  <bruno@clisp.org>
107322         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
107323         declared prototype. Needed with cc on OSF/1 5.1.
107325 2007-03-15  Bruno Haible  <bruno@clisp.org>
107327         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
107328         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
107329         (struct gl_list_implementation): Add dispose_fn argument to the
107330         'create_empty', 'create' methods.
107331         (struct gl_list_impl_base): Add field 'dispose_fn'.
107332         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
107333         argument.
107334         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
107335         dispose_fn argument.
107336         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
107337         dispose_fn on the dropped values.
107338         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
107339         dispose_fn argument.
107340         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
107341         dropped values.
107342         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
107343         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107344         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
107345         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107346         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
107347         argument.
107348         (gl_tree_list_free): Call dispose_fn on the dropped values.
107349         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
107350         the dropped values.
107351         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107352         Add dispose_fn argument.
107353         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
107354         Call dispose_fn on the dropped values.
107355         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
107356         Add dispose_fn argument.
107357         (gl_sublist_create): Initialize the 'dispose_fn' field.
107358         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
107359         * tests/test-array_list.c (main): Update.
107360         * tests/test-carray_list.c (main): Update.
107361         * tests/test-avltree_list.c (main): Update.
107362         * tests/test-rbtree_list.c (main): Update.
107363         * tests/test-avltreehash_list.c (main): Update.
107364         * tests/test-rbtreehash_list.c (main): Update.
107365         * tests/test-linked_list.c (main): Update.
107366         * tests/test-linkedhash_list.c (main): Update.
107367         * tests/test-array_oset.c (main): Update.
107369 2007-03-15  Bruno Haible  <bruno@clisp.org>
107371         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
107372         (gl_oset_create_empty): Add dispose_fn argument.
107373         (struct gl_oset_implementation): Add dispose_fn argument to
107374         'create_empty' method.
107375         (struct gl_oset_impl_base): Add dispose_fn field.
107376         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
107377         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
107378         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
107379         values.
107380         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
107381         (gl_tree_oset_free): Call dispose_fn on the dropped values.
107382         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107383         dropped value.
107384         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107385         dropped value.
107386         * tests/test-array_oset.c (main): Update.
107387         * tests/test-avltree_oset.c (main): Update.
107388         * tests/test-rbtree_oset.c (main): Update.
107389         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
107391 2007-03-13  Bruno Haible  <bruno@clisp.org>
107393         * tests/test-stdbool.c (i): Update after last patch.
107395 2007-03-12  Bruno Haible  <bruno@clisp.org>
107397         * lib/quotearg.c: Include <wctype.h> early, before the definition of
107398         the iswprint macro. Needed on Solaris 2.5.1.
107400 2007-03-12  Bruno Haible  <bruno@clisp.org>
107402         * tests/test-printf-frexp.c (main): Declare x as volatile.
107404 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107406         * doc/gnulib.texi (Build robot for gnulib): New section.
107408 2007-03-12  Jim Meyering  <jim@meyering.net>
107410         * build-aux/bootstrap: New file.
107411         * build-aux/bootstrap.conf: New file, from coreutils.
107413 2007-03-11  Bruno Haible  <bruno@clisp.org>
107415         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
107417 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107419         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
107420         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107421         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107423 2007-03-11  Bruno Haible  <bruno@clisp.org>
107425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107426         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107428 2007-03-11  Bruno Haible  <bruno@clisp.org>
107430         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107431         formula. Needed for SunPRO C 5.0.
107433 2007-03-11  Bruno Haible  <bruno@clisp.org>
107435         * modules/long-options (Depends-on): Add getopt.
107437 2007-03-11  Bruno Haible  <bruno@clisp.org>
107439         * modules/modechange (Depends-on): Add stdbool.
107441 2007-03-11  Bruno Haible  <bruno@clisp.org>
107443         * modules/i-ring (Depends-on): Add stdbool.
107445 2007-03-11  Bruno Haible  <bruno@clisp.org>
107447         * modules/gc-des (Depends-on): Add stdbool.
107449 2007-03-11  Bruno Haible  <bruno@clisp.org>
107451         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107453 2007-03-11  Bruno Haible  <bruno@clisp.org>
107455         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107457 2007-03-11  Bruno Haible  <bruno@clisp.org>
107459         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107461 2007-03-11  Bruno Haible  <bruno@clisp.org>
107463         * lib/vasnprintf.c (sprintf): Undefine.
107465 2007-03-11  Bruno Haible  <bruno@clisp.org>
107467         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107468         initializers in SunPRO C and Compaq C compilers.
107470 2007-03-11  Bruno Haible  <bruno@clisp.org>
107472         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107473         decrementing code ANSI C compliant.
107475 2007-03-11  Bruno Haible  <bruno@clisp.org>
107477         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107478         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107480 2007-03-11  Bruno Haible  <bruno@clisp.org>
107482         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107483         <stdbool.h> substitute doesn't pass.
107485 2007-03-11  Bruno Haible  <bruno@clisp.org>
107487         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107489 2007-03-11  Bruno Haible  <bruno@clisp.org>
107491         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107492         script, for submission to autobuild.josefsson.org.
107494 2007-03-10  Bruno Haible  <bruno@clisp.org>
107496         * modules/canonicalize-lgpl-tests: New file.
107497         * tests/test-canonicalize-lgpl.sh: New file.
107498         * tests/test-canonicalize-lgpl.c: New file.
107500         * modules/c-strcase-tests: New file.
107501         * tests/test-c-strcase.sh: New file.
107502         * tests/test-c-strcasecmp.c: New file.
107503         * tests/test-c-strncasecmp.c: New file.
107505         * modules/atexit-tests: New file.
107506         * tests/test-atexit.sh: New file.
107507         * tests/test-atexit.c: New file.
107509 2007-03-10  Bruno Haible  <bruno@clisp.org>
107511         * tests/test-binary-io.sh: Use temporary filenames that are not so
107512         likely to clash with those of other tests (in a parallel make).
107513         * tests/test-binary-io.c: Likewise.
107515 2007-03-10  Bruno Haible  <bruno@clisp.org>
107517         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107518         fallback; use #error instead.
107519         Suggested by Simon Josefsson.
107521 2007-03-10  Bruno Haible  <bruno@clisp.org>
107523         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107524         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107525         first and the last.
107527 2007-03-10  Bruno Haible  <bruno@clisp.org>
107529         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107531 2007-03-10  Bruno Haible  <bruno@clisp.org>
107533         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107534         "make distcheck".
107535         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107536         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107537         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107539 2007-03-10  Bruno Haible  <bruno@clisp.org>
107541         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107542         variable.
107543         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107544         variable.
107546 2007-03-09  Eric Blake  <ebb9@byu.net>
107547         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107549         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107550         types are not being provided by gnulib.
107551         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107552         types are supported.
107554 2007-03-10  Bruno Haible  <bruno@clisp.org>
107556         * lib/stdio_.h (__attribute__): New macro.
107557         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107558         vsprintf): Specify __attribute__ __format__ for GCC.
107559         Suggested by Eric Blake.
107561 2007-03-09  Bruno Haible  <bruno@clisp.org>
107563         * modules/printf-posix-tests: New file.
107564         * tests/test-printf-posix.sh: New file.
107565         * tests/test-printf-posix.c: New file.
107567         * modules/printf-posix: New file.
107568         * lib/printf.c: New file.
107569         * m4/printf-posix-rpl.m4: New file.
107570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107571         REPLACE_PRINTF.
107572         * lib/stdio_.h (printf): New declaration.
107573         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107574         ____strfmon____): New macros.
107575         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107576         REPLACE_PRINTF.
107578 2007-03-09  Bruno Haible  <bruno@clisp.org>
107580         * tests/test-vasnprintf-posix2.sh: New file.
107581         * tests/test-vasnprintf-posix2.c: New file.
107582         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107583         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107584         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107586         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107587         a locale dependent decimal point, rather than always '.'.
107589 2007-03-09  Eric Blake  <ebb9@byu.net>
107591         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107592         spite of platforms like Tandem/NSK that define it to -1.
107594 2007-03-08  Bruno Haible  <bruno@clisp.org>
107596         * modules/vprintf-posix-tests: New file.
107597         * tests/test-vprintf-posix.sh: New file.
107598         * tests/test-vprintf-posix.c: New file.
107599         * tests/test-printf-posix.h: New file.
107601         * modules/vprintf-posix: New file.
107602         * lib/vprintf.c: New file.
107603         * m4/vprintf-posix.m4: New file.
107604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107605         REPLACE_VPRINTF.
107606         * lib/stdio_.h (vprintf): New declaration.
107607         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107608         REPLACE_VPRINTF.
107610 2007-03-08  Bruno Haible  <bruno@clisp.org>
107612         * modules/fprintf-posix-tests: New file.
107613         * tests/test-fprintf-posix.sh: New file.
107614         * tests/test-fprintf-posix.c: New file.
107616         * modules/fprintf-posix: New file.
107617         * lib/fprintf.c: New file.
107618         * m4/fprintf-posix.m4: New file.
107619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107620         REPLACE_FPRINTF.
107621         * lib/stdio_.h (fprintf): New declaration.
107622         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107623         REPLACE_FPRINTF.
107625 2007-03-08  Bruno Haible  <bruno@clisp.org>
107627         * modules/vfprintf-posix-tests: New file.
107628         * tests/test-vfprintf-posix.sh: New file.
107629         * tests/test-vfprintf-posix.c: New file.
107630         * tests/test-fprintf-posix.h: New file.
107631         * tests/test-fprintf-posix.out: New file.
107633         * modules/vfprintf-posix: New file.
107634         * lib/vfprintf.c: New file.
107635         * m4/vfprintf-posix.m4: New file.
107636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107637         REPLACE_VFPRINTF.
107638         * lib/stdio_.h (vfprintf): New declaration.
107639         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107640         REPLACE_VFPRINTF.
107642 2007-03-08  Bruno Haible  <bruno@clisp.org>
107644         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107646 2007-03-08  Bruno Haible  <bruno@clisp.org>
107648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107649         instead of 'expr' invocations.
107650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107655         Suggested by Paul Eggert.
107657 2007-03-08  Bruno Haible  <bruno@clisp.org>
107659         * modules/fseterr-tests: New file.
107660         * tests/test-fseterr.c: New file.
107662         * modules/fseterr: New file.
107663         * lib/fseterr.h: New file.
107664         * lib/fseterr.c: New file.
107666 2007-03-08  Bruno Haible  <bruno@clisp.org>
107668         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107669         * lib/getopt_.h: Likewise.
107670         * lib/mbswidth.h: Likewise.
107671         * lib/setenv.h: Likewise.
107672         * lib/vasnprintf.h: Likewise.
107673         * lib/vasprintf.h: Likewise.
107674         * lib/verror.h: Likewise.
107675         * lib/xsetenv.h: Likewise.
107676         * lib/xvasprintf.h: Likewise.
107678 2007-03-08  Jim Meyering  <jim@meyering.net>
107680         * users.txt: Add parted.
107682         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107684 2007-03-07  Bruno Haible  <bruno@clisp.org>
107686         * m4/printf.m4: Make the shell script snippets copy&pastable.
107688 2007-03-02  Bruno Haible  <bruno@clisp.org>
107690         * lib/netinet_in_.h: New file.
107691         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107692         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107693         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107694         (Depends-on): Add absolute-header.
107695         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107696         into netinet/in.h.
107698 2007-03-03  Bruno Haible  <bruno@clisp.org>
107700         * lib/sys_select_.h: New file.
107701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107702         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107703         * modules/sys_select (Files): Add lib/sys_select_.h.
107704         (Depends-on): Add absolute-header.
107705         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107706         into sys/select.h.
107708 2007-03-02  Bruno Haible  <bruno@clisp.org>
107710         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107711         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107712         values.
107713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107714         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107715         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107716         * modules/sys_socket (Depends-on): Add absolute-header.
107717         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107718         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107719         (Include): Remove requirement of inclusion of <sys/types.h>.
107721 2007-03-02  Bruno Haible  <bruno@clisp.org>
107723         * lib/byteswap_.h (bswap_32): Fix formula.
107725 2007-03-06  Bruno Haible  <bruno@clisp.org>
107727         * modules/sprintf-posix-tests: New file.
107728         * tests/test-sprintf-posix.c: New file.
107730         * modules/sprintf-posix: New file.
107731         * lib/sprintf.c: New file.
107732         * m4/sprintf-posix.m4: New file.
107733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107734         REPLACE_SPRINTF.
107735         * lib/stdio_.h (sprintf): New declaration.
107736         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107737         REPLACE_SPRINTF.
107739 2007-03-06  Bruno Haible  <bruno@clisp.org>
107741         * modules/vsprintf-posix-tests: New file.
107742         * tests/test-vsprintf-posix.c: New file.
107743         * tests/test-sprintf-posix.h: New file.
107745         * modules/vsprintf-posix: New file.
107746         * lib/vsprintf.c: New file.
107747         * m4/vsprintf-posix.m4: New file.
107748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107749         REPLACE_VSPRINTF.
107750         * lib/stdio_.h (vsprintf): New declaration.
107751         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107752         REPLACE_VSPRINTF.
107754 2007-03-06  Bruno Haible  <bruno@clisp.org>
107756         * modules/vsnprintf (Depend-on): Remove minmax.
107758 2007-03-06  Bruno Haible  <bruno@clisp.org>
107760         * modules/snprintf-posix-tests: New file.
107761         * tests/test-snprintf-posix.c: New file.
107763         * modules/snprintf-posix: New file.
107764         * m4/snprintf-posix.m4: New file.
107765         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107766         gl_FUNC_SNPRINTF.
107767         (gl_FUNC_SNPRINTF): Invoke it.
107768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107769         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107770         is set.
107771         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107773 2007-03-06  Bruno Haible  <bruno@clisp.org>
107775         * modules/vsnprintf-posix-tests: New file.
107776         * tests/test-vsnprintf-posix.c: New file.
107777         * tests/test-snprintf-posix.h: New file.
107779         * modules/vsnprintf-posix: New file.
107780         * m4/vsnprintf-posix.m4: New file.
107781         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107782         gl_FUNC_VSNPRINTF.
107783         (gl_FUNC_VSNPRINTF): Invoke it.
107784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107785         * lib/stdio_.h (vsnprintf): Define as a replacement if
107786         REPLACE_VSNPRINTF is set.
107787         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107789 2007-03-06  Bruno Haible  <bruno@clisp.org>
107791         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107792         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107794 2007-03-06  Bruno Haible  <bruno@clisp.org>
107796         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107797         (asinl): Declare also if HAVE_DECL_ASINL is set.
107798         (atanl): Declare also if HAVE_DECL_ATANL is set.
107799         (ceill): Declare also if HAVE_DECL_CEILL is set.
107800         (cosl): Declare also if HAVE_DECL_COSL is set.
107801         (expl): Declare also if HAVE_DECL_EXPL is set.
107802         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107803         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107804         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107805         (logl): Declare also if HAVE_DECL_LOGL is set.
107806         (sinl): Declare also if HAVE_DECL_SINL is set.
107807         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107808         (tanl): Declare also if HAVE_DECL_TANL is set.
107809         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107811         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107812         declaration of frexpl, ldexpl.
107813         * modules/printf-frexpl (Depends-on): Add math.
107814         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107816 2007-03-05  Bruno Haible  <bruno@clisp.org>
107818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107819         frexpl and ldexpl are declared.
107820         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107822 2007-03-05  Bruno Haible  <bruno@clisp.org>
107824         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107825         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107827 2007-03-05  Bruno Haible  <bruno@clisp.org>
107829         * lib/stdio_.h: Include <stddef.h>.
107831 2007-03-05  Bruno Haible  <bruno@clisp.org>
107833         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107835 2007-03-05  Bruno Haible  <bruno@clisp.org>
107837         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107838         NetBSD 4, from Ralf Wildenhues.
107840 2007-03-04  Bruno Haible  <bruno@clisp.org>
107842         * lib/vasprintf.h: Update #if logic for the case when the functions
107843         exist but are overridden.
107845 2007-03-04  Bruno Haible  <bruno@clisp.org>
107847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107848         implementations: glibc-2.4 and MacOS X 10.3.
107849         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107850         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107851         * tests/test-vasprintf-posix.c (test_function): Likewise.
107853 2007-03-04  Bruno Haible  <bruno@clisp.org>
107855         * modules/vasprintf-posix-tests: New file.
107856         * tests/test-vasprintf-posix.c: New file.
107858         * modules/vasprintf-posix: New file.
107859         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107860         defined.
107861         * m4/vasprintf-posix.m4: New file.
107862         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107863         gl_FUNC_VASPRINTF.
107864         (gl_FUNC_VASPRINTF): Invoke it.
107865         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107866         here.
107867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107869 2007-03-04  Bruno Haible  <bruno@clisp.org>
107871         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107872         REPLACE_GETTIMEOFDAY.
107873         * modules/sys_time (Makefile.am): Likewise.
107874         * m4/sys_time_h.m4: Likewise.
107875         * m4/gettimeofday.m4: Likewise.
107877 2007-03-04  Bruno Haible  <bruno@clisp.org>
107879         * modules/vasnprintf-posix-tests: New file.
107880         * tests/test-vasnprintf-posix.c: New file.
107882         * modules/vasnprintf-posix: New file.
107883         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107884         printf-frexpl.h.
107885         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107886         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107887         REPLACE_VASNPRINTF is defined.
107888         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107889         gl_FUNC_VASNPRINTF.
107890         (gl_FUNC_VASNPRINTF): Invoke it.
107891         * m4/vasnprintf-posix.m4: New file.
107892         * m4/printf.m4: New file.
107894 2007-03-04  Bruno Haible  <bruno@clisp.org>
107896         Compile progreloc.c only if --enable-relocatable is specified.
107897         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107898         if --enable-relocatable was specified.
107899         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107900         lib_SOURCES.
107902 2007-03-04  Jim Meyering  <jim@meyering.net>
107904         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107905         Use it consistently, rather than enumerating errno constants.
107907 2007-03-04  Bruno Haible  <bruno@clisp.org>
107909         * modules/xvasprintf-tests: New file.
107910         * tests/test-xvasprintf.c: New file.
107912         * modules/vasprintf-tests: New file.
107913         * tests/test-vasprintf.c: New file.
107915         * modules/vasnprintf-tests: New file.
107916         * tests/test-vasnprintf.c: New file.
107918         * modules/vsnprintf-tests: New file.
107919         * tests/test-vsnprintf.c: New file.
107921         * modules/snprintf-tests: New file.
107922         * tests/test-snprintf.c: New file.
107924 2007-03-04  Bruno Haible  <bruno@clisp.org>
107926         Compile relocatable.c only if --enable-relocatable is specified.
107927         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107928         gl_RELOCATABLE_LIBRARY.
107929         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107930         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107931         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107932         gl_RELOCATABLE_LIBRARY.
107933         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107934         (Makefile.am): Remove lib_SOURCES.
107935         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107936         gl_RELOCATABLE_LIBRARY.
107937         (Makefile.am): Remove lib_SOURCES.
107938         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107939         always.
107940         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107941         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107943 2007-03-04  Bruno Haible  <bruno@clisp.org>
107945         * modules/argmatch-tests: New file.
107946         * tests/test-argmatch.c: New file.
107948         * tests/test-allocsa.c (main): Halve the number of loop runs.
107950         * modules/alloca-opt-tests: New file.
107951         * tests/test-alloca-opt.c: New file.
107953 2007-03-04  Jim Meyering  <jim@meyering.net>
107955         Work around difference between Linux ACLs and Solaris 10 ZFS.
107956         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107957         for EINVAL.
107959 2007-03-03  Bruno Haible  <bruno@clisp.org>
107961         * modules/relocatable-prog (Depends-on): Add back progreloc's
107962         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107964 2007-03-03  Bruno Haible  <bruno@clisp.org>
107966         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107967         * modules/relocatable-lib: New file.
107969 2007-03-03  Bruno Haible  <bruno@clisp.org>
107971         * modules/relocatable-prog: Renamed from modules/relocatable.
107972         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107974 2007-03-03  Bruno Haible  <bruno@clisp.org>
107976         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107977         m4/relocatable-lib.m4.
107978         (Depends-on): Remove 'relocatable'.
107979         (configure.ac): Add gl_RELOCATABLE_NOP.
107981 2007-03-03  Bruno Haible  <bruno@clisp.org>
107983         * modules/relocatable-prog-wrapper: New file.
107984         * modules/relocatable (Depends-on): Add it. Remove all other
107985         dependencies except progname.
107986         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107988         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107989         (gl_FUNC_STRERROR): Nop.
107990         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107993         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107995         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107996         (gl_FUNC_READLINK): Update.
107998         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
108000 2007-03-03  Bruno Haible  <bruno@clisp.org>
108002         * lib/xreadlink.c: Include <unistd.h> unconditionally.
108003         * modules/xreadlink (Depends-on): Add unistd.
108004         * modules/xreadlink-with-size (Depends-on): Likewise.
108006 2007-03-03  Bruno Haible  <bruno@clisp.org>
108008         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
108009         extracted from gt_FUNC_SETENV.
108010         (gt_FUNC_SETENV): Remove macro.
108011         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
108012         remove gt_FUNC_SETENV.
108014 2007-03-03  Bruno Haible  <bruno@clisp.org>
108016         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
108017         ENABLE_RELOCATABLE here.
108018         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
108020 2007-03-03  Bruno Haible  <bruno@clisp.org>
108022         * modules/rbtreehash-list-tests (Depends-on): Add progname.
108023         * tests/test-rbtreehash_list.c: Include progname.h.
108024         (main): Call set_program_name.
108026         * modules/rbtree-oset-tests (Depends-on): Add progname.
108027         * tests/test-rbtree_oset.c: Include progname.h.
108028         (main): Call set_program_name.
108030         * modules/rbtree-list-tests (Depends-on): Add progname.
108031         * tests/test-rbtree_list.c: Include progname.h.
108032         (main): Call set_program_name.
108034         * modules/linked-list-tests (Depends-on): Add progname.
108035         * tests/test-linked_list.c: Include progname.h.
108036         (main): Call set_program_name.
108038 2007-03-03  Bruno Haible  <bruno@clisp.org>
108040         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
108041         All uses of __restrict changed to _Restrict_.
108042         * lib/glob_.h (__restrict): Remove macro.
108044 2007-03-02  Bruno Haible  <bruno@clisp.org>
108046         * modules/gettext (configure.ac): Require gettext infrastructure
108047         from version 0.16.1.
108049 2007-03-02  Bruno Haible  <bruno@clisp.org>
108051         * modules/linkedhash-list-tests (Depends-on): Add progname.
108052         * tests/test-linkedhash_list.c: Include progname.h.
108053         (main): Call set_program_name.
108055         * modules/carray-list-tests (Depends-on): Add progname.
108056         * tests/test-carray_list.c: Include progname.h.
108057         (main): Call set_program_name.
108059         * modules/avltreehash-list-tests (Depends-on): Add progname.
108060         * tests/test-avltreehash_list.c: Include progname.h.
108061         (main): Call set_program_name.
108063         * modules/avltree-oset-tests (Depends-on): Add progname.
108064         * tests/test-avltree_oset.c: Include progname.h.
108065         (main): Call set_program_name.
108067         * modules/avltree-list-tests (Depends-on): Add progname.
108068         * tests/test-avltree_list.c: Include progname.h.
108069         (main): Call set_program_name.
108071         * modules/array-oset-tests (Depends-on): Add progname.
108072         * tests/test-array_oset.c: Include progname.h.
108073         (main): Call set_program_name.
108075         * modules/array-list-tests (Depends-on): Add progname.
108076         * tests/test-array_list.c: Include progname.h.
108077         (main): Call set_program_name.
108079         * modules/argp-tests (Depends-on): Add progname.
108080         * tests/test-argp.c: Include argp.h first. Include progname.h.
108081         (main): Call set_program_name.
108083 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
108085         * doc/gnulib-tool.texi (Initial import): Reword description of
108086         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
108087         limited effect even if defined after the first system include.
108089 2007-03-01  Bruno Haible  <bruno@clisp.org>
108091         * build-aux/config.libpath: Update to libtool-1.5.22.
108092         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
108094 2007-03-01  Bruno Haible  <bruno@clisp.org>
108096         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
108097         foo_CFLAGS.
108098         Reported by Ralf Wildenhues.
108100 2007-03-01  Bruno Haible  <bruno@clisp.org>
108102         * build-aux/install-reloc: Remove object files left over by some
108103         compilers.
108104         Reported by Ralf Wildenhues.
108106 2007-03-01  Bruno Haible  <bruno@clisp.org>
108108         * build-aux/install-reloc: Break long lines.
108110 2007-03-01  Bruno Haible  <bruno@clisp.org>
108112         * doc/relocatable.texi: Document that it may not work on OpenBSD.
108113         Reported by Ralf Wildenhues.
108115 2007-03-01  Bruno Haible  <bruno@clisp.org>
108117         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
108118         include ordering constraints.
108120 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108122         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
108123         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
108124         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
108125         as another example.
108126         * lib/time_.h: Fix misspelling.
108127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108128         Require gl_HEADER_TIME_H_DEFAULTS.
108129         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
108130         * m4/time_r.m4 (gl_TIME_R): Likewise.
108131         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
108133 2007-03-01  Bruno Haible  <bruno@clisp.org>
108135         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
108136         * m4/utimens.m4 (gl_UTIMENS): Likewise.
108138 2007-03-01  Jim Meyering  <jim@meyering.net>
108140         * modules/xreadlink (Maintainer): Add my name.
108141         * modules/xreadlink-with-size (Depends-on): Alphabetize.
108143 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
108144             Bruno Haible  <bruno@clisp.org>
108146         * build-aux/install-reloc: Compile also c-ctype.c.
108147         * build-aux/relocatable.sh.in: New file.
108148         * doc/relocatable.texi: New file.
108149         * doc/relocatable-maint.texi: New file.
108150         * doc/gnulib.texi: Include relocatable-maint.texi.
108151         * lib/progreloc.c: Include unistd.h unconditionally.
108152         * lib/relocwrapper.c: Include unistd.h unconditionally.
108153         Include c-ctype.h.
108154         (add_dotbin): Use c_tolower.
108155         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
108156         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
108157         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
108158         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
108159         to m4/relocatable-lib.m4.
108160         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
108161         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
108162         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
108163         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
108164         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
108165         * modules/relocatable: New file.
108166         * modules/relocatable-lib: New file.
108167         * modules/relocatable-script: New file.
108169 2007-02-28  Bruno Haible  <bruno@clisp.org>
108171         Import --enable-relocatable infrastructure.
108172         * build-aux/config.libpath: New file, from GNU gettext.
108173         * build-aux/install-reloc: New file, from GNU gettext.
108174         * build-aux/reloc-ldflags: New file, from GNU gettext.
108175         * lib/relocatable.h: New file, from GNU gettext.
108176         * lib/relocatable.c: New file, from GNU gettext.
108177         * lib/relocwrapper.c: New file, from GNU gettext.
108178         * m4/relocatable.m4: New file, from GNU gettext.
108180 2007-02-28  Bruno Haible  <bruno@clisp.org>
108182         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
108184         * modules/xreadlink: New file, from GNU gettext with modifications.
108185         * lib/xreadlink.c: New file, from GNU gettext.
108186         * lib/xreadlink.h: Add comments.
108187         (xreadlink): New declaration.
108189         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
108190         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
108191         lib/xreadlink-with-size.c.
108192         (configure.ac): Remove gl_XREADLINK invocation.
108193         (Makefile.am): Augment lib_SOURCES.
108194         * m4/xreadlink.m4: Remove file.
108195         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
108196         (xreadlink_with_size): Renamed from xreadink.
108197         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
108198         * modules/canonicalize (Depends-on): Replace xreadlink with
108199         xreadlink-with-size.
108200         * lib/canonicalize.c (canonicalize_filename_mode): Update.
108202 2007-02-25  Jim Meyering  <jim@meyering.net>
108204         * build-aux/announce-gen: When complaining about excess arguments,
108205         list them.
108207 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
108209         * README: Document signed integer overflow situation more
108210         accurately.
108212 2007-02-25  Bruno Haible  <bruno@clisp.org>
108214         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
108215         'a' or 'A' conversion.
108217 2007-02-25  Bruno Haible  <bruno@clisp.org>
108219         * modules/filename: Renamed from modules/pathname.
108220         (Files): Replace lib/pathname.h with lib/filename.h. Replace
108221         lib/concatpath.c with lib/concat-filename.c.
108222         (Makefile.am): Update.
108223         (Include): Replace pathname.h with filename.h.
108224         * lib/filename.h: Renamed from lib/pathname.h.
108225         (concatenated_filename): Renamed from concatenated_pathname.
108226         * lib/concat-filename.c: Renamed from lib/concatpath.c.
108227         (concatenated_filename): Renamed from concatenated_pathname.
108228         * lib/findprog.c: Include filename.h instead of pathname.h.
108229         (find_in_path): Update.
108230         * lib/javacomp.c: Include filename.h instead of pathname.h.
108231         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
108232         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
108233         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
108234         is_oldgcj_14_13_usable, is_javac_usable): Update.
108235         * lib/javaexec.c: Include filename.h instead of pathname.h.
108236         (execute_java_class): Update.
108237         * modules/findprog: Update.
108238         * modules/javacomp: Update.
108239         * modules/javaexec: Update.
108240         * MODULES.html.sh (File system functions): Add 'filename', remove
108241         'pathname'.
108243 2007-02-25  Bruno Haible  <bruno@clisp.org>
108245         * modules/printf-frexpl-tests: New file.
108246         * tests/test-printf-frexpl.c: New file.
108248         * modules/printf-frexpl: New file.
108249         * lib/printf-frexpl.h: New file.
108250         * lib/printf-frexpl.c: New file.
108251         * m4/printf-frexpl.m4: New file.
108253 2007-02-25  Bruno Haible  <bruno@clisp.org>
108255         * modules/printf-frexp-tests: New file.
108256         * tests/test-printf-frexp.c: New file.
108258         * modules/printf-frexp: New file.
108259         * lib/printf-frexp.h: New file.
108260         * lib/printf-frexp.c: New file.
108261         * m4/printf-frexp.m4: New file.
108263 2007-02-25  Bruno Haible  <bruno@clisp.org>
108265         Assume automake >= 1.10 for the tests.
108266         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
108267         * modules/arctwo-tests: Likewise.
108268         * modules/argp-tests: Likewise.
108269         * modules/avltree-list-tests: Likewise.
108270         * modules/avltree-oset-tests: Likewise.
108271         * modules/avltreehash-list-tests: Likewise.
108272         * modules/carray-list-tests: Likewise.
108273         * modules/crc-tests: Likewise.
108274         * modules/des-tests: Likewise.
108275         * modules/gc-arcfour-tests: Likewise.
108276         * modules/gc-arctwo-tests: Likewise.
108277         * modules/gc-des-tests: Likewise.
108278         * modules/gc-hmac-md5-tests: Likewise.
108279         * modules/gc-hmac-sha1-tests: Likewise.
108280         * modules/gc-md2-tests: Likewise.
108281         * modules/gc-md4-tests: Likewise.
108282         * modules/gc-md5-tests: Likewise.
108283         * modules/gc-pbkdf2-sha1-tests: Likewise.
108284         * modules/gc-rijndael-tests: Likewise.
108285         * modules/gc-sha1-tests: Likewise.
108286         * modules/gc-tests: Likewise.
108287         * modules/getaddrinfo-tests: Likewise.
108288         * modules/hmac-md5-tests: Likewise.
108289         * modules/hmac-sha1-tests: Likewise.
108290         * modules/linked-list-tests: Likewise.
108291         * modules/linkedhash-list-tests: Likewise.
108292         * modules/lock-tests: Likewise.
108293         * modules/md2-tests: Likewise.
108294         * modules/md4-tests: Likewise.
108295         * modules/md5-tests: Likewise.
108296         * modules/rbtree-list-tests: Likewise.
108297         * modules/rbtree-oset-tests: Likewise.
108298         * modules/rbtreehash-list-tests: Likewise.
108299         * modules/read-file-tests: Likewise.
108300         * modules/rijndael-tests: Likewise.
108301         * modules/stdint-tests: Likewise.
108302         * modules/tls-tests: Likewise.
108304 2007-02-24  Bruno Haible  <bruno@clisp.org>
108306         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
108307         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
108308         function; instead check whether isnan with a double argument links.
108309         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
108310         function; instead check whether isnan with a 'long double' argument
108311         links.
108312         Reported by Eric Blake <ebb9@byu.net>.
108314 2007-02-24  Bruno Haible  <bruno@clisp.org>
108316         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
108317         defined.
108318         * lib/isnanl.c: Remove all code. Just include isnan.c.
108319         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
108321 2007-02-25  Jim Meyering  <jim@meyering.net>
108323         Avoid conflicting types for 'unsetenv' on FreeBSD.
108324         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
108325         conflicting with FreeBSD's (5.0 and 6.1) function declaration
108326         in stdlib.h.
108328 2007-02-24  Bruno Haible  <bruno@clisp.org>
108330         * modules/isnanl-nolibm-tests: New file.
108331         * tests/test-isnanl.c: New file.
108333         * modules/isnanl-nolibm: New file.
108334         * lib/isnanl.h: New file.
108335         * lib/isnanl.c: New file.
108336         * m4/isnanl.m4: New file.
108338 2007-02-24  Bruno Haible  <bruno@clisp.org>
108340         * modules/isnan-nolibm-tests: New file.
108341         * tests/test-isnan.c: New file.
108343         * modules/isnan-nolibm: New file.
108344         * lib/isnan.h: New file.
108345         * lib/isnan.c: New file.
108346         * m4/isnan.m4: New file.
108348 2007-02-24  Bruno Haible  <bruno@clisp.org>
108350         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
108351         assume that an exponent fits in 20 bits.
108353 2007-02-24  Jim Meyering  <jim@meyering.net>
108355         * m4/regex.m4: Update the description of the configure-time option,
108356         --without-included-regex, to state accurately what the defaults are,
108357         and perhaps to give people an idea why using this option is risky.
108359 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
108362         loops on small arguments.  This attempts to avoid the problem
108363         Bruno Haible reported for AIX 4.3.2 in
108364         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
108366 2007-02-23  Bruno Haible  <bruno@clisp.org>
108368         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
108369         Needed for help2man.
108371 2007-02-23  Karl Berry  <karl@gnu.org>
108373         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
108374         exists, foo.h should be cvs-ignored, not committed.
108376 2007-02-23  Eric Blake  <ebb9@byu.net>
108378         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
108379         * lib/stat-time.h (includes): Likewise.
108380         * lib/utimecmp.c (includes): Likewise.
108381         * lib/utimens.h (includes): Likewise.
108382         * lib/getdate.y (includes): Also include "timespec.h" for use
108383         internal to the module.
108384         * modules/utimens (Depends-on): Revert yesterday's patch.
108385         * modules/nanosleep (Depends-on): Add missing dependency.
108387 2007-02-22  Bruno Haible  <bruno@clisp.org>
108389         * lib/glob.c: Don't include getlogin_r.h.
108391 2007-02-22  Jim Meyering  <jim@meyering.net>
108393         * modules/utimens (Depends-on): Add timespec, required for
108394         utimens.h's inclusion of timespec.h.
108396 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
108398         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
108399         long unreadable paths in GNU/Linux.  Problem reported by Andreas
108400         Schwab in
108401         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
108402         I'll try to think of a better way to fix the Solaris problem.
108404         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
108405         like glibc; on Solaris 10, it fails with errno == EINVAL.
108406         POSIX says the behavior is unspecified if the first argument is NULL,
108407         so play it safe and never pass NULL to the system getcwd.
108409 2007-02-21  Jim Meyering  <jim@meyering.net>
108411         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
108412         of gettimeofday.  It would conflict with the one now always
108413         provided via sys_time_.h.  Reported by Matthew Woehlke, as
108414         an IRIX 6.5 build failure.
108416 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108418         Minor fixups to port to Solaris 10 with Sun C 5.8.
108419         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
108420         * modules/getcwd (Depends-on): Add dirfd.
108421         * lib/putenv.c (putenv): #undef it.
108422         (rpl_putenv): New decl.
108423         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108425 2007-02-20  Bruno Haible  <bruno@clisp.org>
108427         * modules/stdio-tests: New file.
108428         * tests/test-stdio.c: New file.
108430         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108431         (Depends-on): Add stdio.
108432         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108433         (Include): Use <stdio.h> instead of vsnprintf.h.
108434         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108435         HAVE_DECL_VSNPRINTF.
108436         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108438         * modules/snprintf (Files): Remove lib/snprintf.h.
108439         (Depends-on): Add stdio.
108440         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108441         (Include): Use <stdio.h> instead of snprintf.h.
108442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108443         HAVE_DECL_SNPRINTF.
108444         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108445         * lib/getaddrinfo.c: Likewise.
108447         * modules/stdio: New file.
108448         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108449         * lib/snprintf.h: Remove file.
108450         * lib/vsnprintf.h: Remove file.
108451         * lib/.cppi-disable: Remove snprintf.h.
108452         * m4/stdio_h.m4: New file.
108453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108455 2007-02-20  Jim Meyering  <jim@meyering.net>
108457         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108458         used by e.g., mingw.  From Bruno Haible.
108460 2007-02-19  Bruno Haible  <bruno@clisp.org>
108462         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108463         warnings.
108464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108466 2007-02-19  Bruno Haible  <bruno@clisp.org>
108468         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108469         from mingw users.
108471 2007-02-19  Bruno Haible  <bruno@clisp.org>
108473         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108474         warnings.
108475         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108477 2007-02-19  Jim Meyering  <jim@meyering.net>
108479         Don't use FD after a successful "fdopendir (fd)".
108480         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108481         Reset it by calling dirfd on the just-obtained DIR*.
108483         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108484         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108486 2007-02-18  Bruno Haible  <bruno@clisp.org>
108488         * lib/readlink.c: Include <unistd.h>.
108489         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108490         HAVE_READLINK.
108491         * modules/readlink (Depends-on): Add unistd.
108492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108493         (Include): Add <unistd.h>.
108495         * lib/getlogin_r.h: Remove file.
108496         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108497         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108498         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108499         HAVE_DECL_GETLOGIN_R.
108500         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108501         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108502         (Include): Use <unistd.h> instead of getlogin_r.h.
108504         * lib/getcwd.h: Remove file.
108505         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108506         * lib/xgetcwd.c: Likewise.
108507         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108508         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108509         * modules/getcwd (Files): Remove lib/getcwd.h.
108510         (Depends-on): Add unistd.
108511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108512         (Include): Use <unistd.h> instad of getcwd.h.
108514         * lib/ftruncate.c: Include <unistd.h> first.
108515         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108516         Set HAVE_FTRUNCATE.
108517         * modules/ftruncate (Depends-on): Add unistd.
108518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108520         * lib/fchdir.c: Include <unistd.h> first.
108521         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108523         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108524         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108525         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108527         * lib/dup2.c: Include <unistd.h> first.
108528         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108529         HAVE_DUP2.
108530         * modules/dup2 (Depends-on): Add unistd.
108531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108533         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108534         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108535         REPLACE_CHOWN. Don't define chown as a macro here.
108536         * modules/chown (Depends-on): Add unistd.
108537         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108539         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108540         Add definition for GL_LINK_WARNING.
108541         (chown, dup2): New declarations.
108542         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108543         link warning.
108544         (ftruncate): New declaration.
108545         (getcwd): New declaration, taken from old getcwd.h.
108546         (getlogin_r): New declaration, taken from old getlogin_r.h.
108547         (readlink): New declaration.
108548         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108549         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108550         (gl_PREREQ_UNISTD): Remove macro.
108551         (gl_UNISTD_MODULE_INDICATOR): New macro.
108552         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108553         many new variables. Don't set UNISTD_H.
108554         * modules/unistd (Description): Change.
108555         (Depends-on): Add link-warning.
108556         (configure.ac): Update.
108557         (Makefile.am): Create unistd.h always. Substitute many new variables
108558         into it.
108560 2007-02-18  Bruno Haible  <bruno@clisp.org>
108562         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108563         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108564         HAVE_GETSUBOPT.
108565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108566         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108567         * lib/getsubopt.h: Remove file.
108568         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108569         (Depends-on): Add stdlib.
108570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108571         (Includes): Use <stdlib.h> instead of getsubopt.h.
108572         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108573         Set HAVE_GETSUBOPT.
108574         * lib/getsubopt.c: Don't include getsubopt.h.
108576 2007-02-18  Bruno Haible  <bruno@clisp.org>
108578         * modules/fchdir (Depends-on): Add dup2.
108580 2007-02-18  Bruno Haible  <bruno@clisp.org>
108582         * lib/stdlib_.h: Handle glibc's special invocation convention
108583         specially.
108585 2007-02-18  Bruno Haible  <bruno@clisp.org>
108587         * modules/stdlib-tests: New file.
108588         * tests/test-stdlib.c: New file.
108590         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108591         (Depends-on): Add stdlib.
108592         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108593         (Includes): Use <stdlib.h> instead of mkstemp.h.
108594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108595         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108596         * lib/mkstemp.c: Don't include mkstemp.h.
108597         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108598         * lib/stdlib--.h: Don't include mkstemp.h.
108600         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108601         (Depends-on): Add stdlib.
108602         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108603         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108604         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108605         HAVE_MKDTEMP.
108606         * lib/mkdtemp.c: Don't include mkdtemp.h.
108607         * lib/clean-temp.c: Don't include mkdtemp.h.
108609         * modules/exit (Files): Remove lib/exit.h.
108610         (Depends-on): Add stdlib.
108611         (Makefile.am): Remove lib_SOURCES.
108612         (Include): Use <stdlib.h> instead of exit.h.
108613         * lib/argmatch.c: Don't include exit.h.
108614         * lib/execute.c: Likewise.
108615         * lib/pagealign_alloc.c: Likewise.
108616         * lib/pipe.c: Likewise.
108617         * lib/wait-process.c: Likewise.
108618         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108619         * lib/exitfail.c: Likewise.
108620         * lib/savewd.c: Likewise.
108621         * lib/xsetenv.c: Likewise.
108623         * modules/stdlib: New file.
108624         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108625         and extra comments about mkstemp().
108626         * lib/exit.h: Remove file.
108627         * lib/mkdtemp.h: Remove file.
108628         * lib/mkstemp.h: Remove file.
108629         * m4/stdlib_h.m4: New file.
108630         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108632 2007-02-18  Bruno Haible  <bruno@clisp.org>
108634         * modules/math-tests: New file.
108635         * tests/test-math.c: New file.
108637         * modules/math: New file.
108638         * modules/mathl (Files): Remove lib/mathl.h.
108639         (Depends-on): Add math.
108640         (Makefile.am): Don't mention mathl.h.
108641         (Include): Use <math.h> instead of mathl.h.
108642         * lib/math_.h: New file.
108643         * lib/mathl.h: Remove file.
108644         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108645         mathl.h.
108646         * lib/asinl.c: Likewise.
108647         * lib/atanl.c: Likewise.
108648         * lib/ceill.c: Likewise.
108649         * lib/cosl.c: Likewise.
108650         * lib/expl.c: Likewise.
108651         * lib/floorl.c: Likewise.
108652         * lib/frexpl.c: Likewise.
108653         * lib/ldexpl.c: Likewise.
108654         * lib/logl.c: Likewise.
108655         * lib/sincosl.c: Likewise.
108656         * lib/sinl.c: Likewise.
108657         * lib/sqrtl.c: Likewise.
108658         * lib/tanl.c: Likewise.
108659         * lib/trigl.c: Likewise.
108660         * m4/math_h.m4: New file.
108661         * MODULES.html.sh (Mathematics): Add math.
108663 2007-02-17  Bruno Haible  <bruno@clisp.org>
108665         * modules/wctype-tests: New file.
108666         * tests/test-wctype.c: New file.
108668         * modules/wchar-tests: New file.
108669         * tests/test-wchar.c: New file.
108671         * modules/unistd-tests: New file.
108672         * tests/test-unistd.c: New file.
108674         * modules/time-tests: New file.
108675         * tests/test-time.c: New file.
108677         * modules/sysexits-tests: New file.
108678         * tests/test-sysexits.c: New file.
108680         * modules/sys_time-tests: New file.
108681         * tests/test-sys_time.c: New file.
108683         * modules/sys_stat-tests: New file.
108684         * tests/test-sys_stat.c: New file.
108686         * modules/sys_socket-tests: New file.
108687         * tests/test-sys_socket.c: New file.
108689         * modules/sys_select-tests: New file.
108690         * tests/test-sys_select.c: New file.
108692         * modules/string-tests: New file.
108693         * tests/test-string.c: New file.
108695         * modules/stdbool-tests: New file.
108696         * tests/test-stdbool.c: New file.
108698         * modules/netinet_in-tests: New file.
108699         * tests/test-netinet_in.c: New file.
108701         * modules/inttypes-tests: New file.
108702         * tests/test-inttypes.c: New file.
108704         * modules/fcntl-tests: New file.
108705         * tests/test-fcntl.c: New file.
108707         * modules/byteswap-tests: New file.
108708         * tests/test-byteswap.c: New file.
108710         * modules/arpa_inet-tests: New file.
108711         * tests/test-arpa_inet.c: New file.
108713 2007-02-17  Bruno Haible  <bruno@clisp.org>
108715         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108716         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108717         if the corresponding module is not enabled. Emit link warnings if
108718         the function is used nevertheless.
108719         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108720         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108721         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108722         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108723         * modules/inttypes (Depends-on): Add link-warning.
108724         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108725         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108726         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108727         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108728         * modules/imaxdiv (configure.ac): Likewise.
108729         * modules/strtoimax (configure.ac): Likewise.
108730         * modules/strtoumax (configure.ac): Likewise.
108732 2007-02-17  Bruno Haible  <bruno@clisp.org>
108734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108735         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108736         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108737         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108739 2007-02-17  Bruno Haible  <bruno@clisp.org>
108741         * modules/link-warning: New file.
108742         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108743         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108744         * modules/string (Depends-on): Add link-warning.
108745         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108746         string.h.
108747         * MODULES.html.sh (Support for building libraries and executables): Add
108748         link-warning.
108750 2007-02-17  Bruno Haible  <bruno@clisp.org>
108752         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108753         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108754         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108755         long lines.
108757 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108758             Bruno Haible  <bruno@clisp.org>
108760         * modules/tmpfile: New file.
108761         * lib/tmpfile.c: New file.
108762         * m4/tmpfile.m4: New file.
108763         * MODULES.html.sh (func_all_modules): New section "Input/output".
108765 2007-02-15  Bruno Haible  <bruno@clisp.org>
108767         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108768         (supports_delete_on_close): New function.
108769         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108771 2007-02-14  Bruno Haible  <bruno@clisp.org>
108773         * modules/mbspcasecmp-tests: New file.
108774         * tests/test-mbspcasecmp.sh: New file.
108775         * tests/test-mbspcasecmp.c: New file.
108777         New module mbspcasecmp.
108778         * modules/mbspcasecmp: New file.
108779         * lib/mbspcasecmp.c: New file.
108780         * lib/string_.h (strncasecmp): Change warning message.
108781         (mbspcasecmp): New declaration.
108782         * m4/mbspcasecmp.m4: New file.
108783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108784         GNULIB_MBSPCASECMP.
108785         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108786         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108788 2007-02-14  Bruno Haible  <bruno@clisp.org>
108790         * modules/mbsncasecmp-tests: New file.
108791         * tests/test-mbsncasecmp.sh: New file.
108792         * tests/test-mbsncasecmp.c: New file.
108794         New module mbsncasecmp.
108795         * modules/mbsncasecmp: New file.
108796         * lib/mbsncasecmp.c: New file.
108797         * lib/string_.h (mbsncasecmp): New declaration.
108798         * m4/mbsncasecmp.m4: New file.
108799         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108800         GNULIB_MBSNCASECMP.
108801         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108802         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108804 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108806         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108807         Verify that it doesn't overlap with our flags.
108808         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108809         do not have the desired effect in multibyte locales; instead, use
108810         mbscasecmp.
108811         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108812         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108813         we don't require GNU fnmatch ourselves (if our users require it, they
108814         should do so explicitly).
108816         Fix regex code so it doesn't rely on strcasecmp.
108817         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108818         Otherwise, include gnulib's langinfo.h.
108819         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108820         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108821         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108822         * modules/regex (FILES): Remove m4/codeset.m4.
108823         (Depends-on): Add localcharset.  Remove strcase.
108825 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108827         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108828         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108830 2007-02-13  Bruno Haible  <bruno@clisp.org>
108832         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108835 2007-02-12  Bruno Haible  <bruno@clisp.org>
108837         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108838         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108839         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108840         time warning rather than a link error.
108842 2007-02-12  Bruno Haible  <bruno@clisp.org>
108844         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108848 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108850         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108851         args, not 2.
108853 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108855         New module 'time', so that apps can include <time.h> as per
108856         POSIX and GNU instead of separate include files like time_r.h
108857         and timegm.h.  This implementation tries out a simpler approach
108858         for replacing decls in standard include files (as compared to
108859         the string module), somewhat as an experiment.
108861         * config/srclist.txt: Comment out mktime.c for now.
108862         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108863         since it doesn't apply any more.  Use generic wording instead.
108864         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108865         'time'.
108866         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108867         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108868         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108869         Don't include <sys/types.h>; no longer needed since we assume C89.
108870         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108871         * lib/strftime.c: Likewise.
108872         * lib/time_r.c: Likewise.
108873         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108874         * lib/nanosleep.c: Include <time.h> first, to check interface.
108875         * lib/strptime.c: Likewise.
108876         * lib/time_r.c: Likewise.
108877         * lib/timegm.c: Likewise.
108878         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108879         needed.
108880         * lib/timegm.c: Don't include timegm.h; no longer needed.
108881         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108882         time.h now handles any problems in that area.
108883         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108884         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108885         that time.h defines struct timespec.
108886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108887         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108888         handles that.
108889         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108890         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108891         needed.  Set REPLACE_LOCALTIME.
108892         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108893         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108894         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108895         nanosleep; time_h.m4 now does that.  Don't require
108896         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108897         module handles this now.
108898         * modules/getdate (Depends-on): Remove timespec.  Add time.
108899         * modules/nanosleep (Depends-on): Likewise.
108900         * modules/stat-time (Depends-on): Likewise.
108901         * modules/nanosleep (Include): Include time.h, not timespec.h.
108902         * modules/strptime (Files): Remove lib/strptime.h.
108903         (Depends-on): Add extensions, time.
108904         (Include): Include time.h, not strptime.h.
108905         * modules/time_r (Files): Remove lib/time_r.h.
108906         (Depends-on): Add time.
108907         (Include): Include time.h, not time_r.h.
108908         * modules/timegm: Likewise.
108909         * modules/timespec (Description): Now does timespec-related decls
108910         of our own, instead of struct timespec itself.
108911         (Depends-on): Add time; remove extensions.
108912         (Maintainer): Add self.
108913         * modules/utimecmp (Depends-on): Add time; remove timespec.
108914         * modules/utimens (Depends-on): Likewise.
108915         * modules/xnanosleep (Depends-on): Likewise.
108917 2007-02-11  Bruno Haible  <bruno@clisp.org>
108919         * lib/c-strstr.c: Include allocsa.h.
108920         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108921         * lib/c-strcasestr.c: Include allocsa.h.
108922         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108923         * lib/strcasestr.c: Include allocsa.h.
108924         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108925         * lib/mbsstr.c: Include allocsa.h.
108926         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108927         allocsa/freesa instead of malloc/free.
108928         * lib/mbscasestr.c: Include allocsa.h.
108929         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108930         allocsa/freesa instead of malloc/free.
108931         * modules/c-strstr (Depends-on): Add allocsa.
108932         * modules/c-strcasestr (Depends-on): Likewise.
108933         * modules/strcasestr (Depends-on): Likewise.
108934         * modules/mbsstr (Depends-on): Likewise.
108935         * modules/mbscasestr (Depends-on): Likewise.
108937 2007-02-11  Bruno Haible  <bruno@clisp.org>
108939         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108941         * modules/mbsspn-tests: New file.
108942         * tests/test-mbsspn.sh: New file.
108943         * tests/test-mbsspn.c: New file.
108945 2007-02-11  Bruno Haible  <bruno@clisp.org>
108947         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108949         * modules/mbspbrk-tests: New file.
108950         * tests/test-mbspbrk.sh: New file.
108951         * tests/test-mbspbrk.c: New file.
108953 2007-02-11  Bruno Haible  <bruno@clisp.org>
108955         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108956         unneeded cast.
108958         * modules/mbscspn-tests: New file.
108959         * tests/test-mbscspn.sh: New file.
108960         * tests/test-mbscspn.c: New file.
108962 2007-02-11  Bruno Haible  <bruno@clisp.org>
108964         * modules/mbscasecmp-tests: New file.
108965         * tests/test-mbscasecmp.sh: New file.
108966         * tests/test-mbscasecmp.c: New file.
108968 2007-02-11  Bruno Haible  <bruno@clisp.org>
108970         Ensure O(n) worst-case complexity of mbscasestr.
108971         * lib/mbscasestr.c: Include stdbool.h.
108972         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108973         functions.
108974         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108975         the bookkeeping indicates that it's worth it.
108976         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108978         * modules/mbscasestr-tests: New file.
108979         * tests/test-mbscasestr1.c: New file.
108980         * tests/test-mbscasestr2.sh: New file.
108981         * tests/test-mbscasestr2.c: New file.
108982         * tests/test-mbscasestr3.sh: New file.
108983         * tests/test-mbscasestr3.c: New file.
108984         * tests/test-mbscasestr4.sh: New file.
108985         * tests/test-mbscasestr4.c: New file.
108986         * m4/locale-tr.m4: New file.
108988 2007-02-11  Bruno Haible  <bruno@clisp.org>
108990         Ensure O(n) worst-case complexity of mbsstr.
108991         * lib/mbsstr.c: Include stdbool.h.
108992         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108993         functions.
108994         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108995         bookkeeping indicates that it's worth it.
108996         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108998         * modules/mbsstr-tests: New file.
108999         * tests/test-mbsstr1.c: New file.
109000         * tests/test-mbsstr2.sh: New file.
109001         * tests/test-mbsstr2.c: New file.
109002         * tests/test-mbsstr3.sh: New file.
109003         * tests/test-mbsstr3.c: New file.
109004         * m4/locale-fr.m4: New file.
109006 2007-02-11  Bruno Haible  <bruno@clisp.org>
109008         * lib/mbsrchr.c (mbsrchr): Fix bug.
109010         * modules/mbsrchr-tests: New file.
109011         * tests/test-mbsrchr.sh: New file.
109012         * tests/test-mbsrchr.c: New file.
109014 2007-02-11  Bruno Haible  <bruno@clisp.org>
109016         * lib/mbschr.c (mbschr): Fix bug.
109018         * modules/mbschr-tests: New file.
109019         * tests/test-mbschr.sh: New file.
109020         * tests/test-mbschr.c: New file.
109021         * m4/locale-zh.m4: New file.
109023 2007-02-11  Bruno Haible  <bruno@clisp.org>
109025         Support for copying multibyte string iterators.
109026         * lib/mbiter.h: Include <string.h>.
109027         (mbiter_multi_copy): New function.
109028         (mbi_copy): New macro.
109029         * lib/mbuiter.h: Include <string.h>.
109030         (mbuiter_multi_copy): New function.
109031         (mbui_copy): New macro.
109033 2007-02-11  Bruno Haible  <bruno@clisp.org>
109035         New module mbslen.
109036         * modules/mbslen: New file.
109037         * lib/mbslen.c: New file.
109038         * lib/string_.h (mbslen): New declaration.
109039         * m4/mbslen.m4: New file.
109040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109041         GNULIB_MBSLEN.
109042         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
109043         * MODULES.html.sh (Internationalization functions): Add mbslen.
109045 2007-02-11  Bruno Haible  <bruno@clisp.org>
109047         Ensure O(n) worst-case complexity of strcasestr substitute.
109048         * lib/strcasestr.c: Include stdbool.h.
109049         (knuth_morris_pratt): New function.
109050         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109051         bookkeeping indicates that it's worth it.
109052         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
109054         * modules/strcasestr-tests: New file.
109055         * tests/test-strcasestr.c: New file.
109057 2007-02-11  Bruno Haible  <bruno@clisp.org>
109059         Ensure O(n) worst-case complexity of c_strcasestr.
109060         * lib/c-strcasestr.c: Include stdbool.h, string.h.
109061         (knuth_morris_pratt): New function.
109062         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
109063         the bookkeeping indicates that it's worth it.
109064         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
109066         * modules/c-strcasestr-tests: New file.
109067         * tests/test-c-strcasestr.c: New file.
109069 2007-02-11  Bruno Haible  <bruno@clisp.org>
109071         Ensure O(n) worst-case complexity of c_strstr.
109072         * lib/c-strstr.c: Include stdbool.h, string.h.
109073         (knuth_morris_pratt): New function.
109074         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109075         bookkeeping indicates that it's worth it.
109076         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
109078         * lib/c-strstr.c: Complete rewrite for maintainability.
109080         * modules/c-strstr-tests: New file.
109081         * tests/test-c-strstr.c: New file.
109083 2007-02-11  Bruno Haible  <bruno@clisp.org>
109085         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
109086         5.2.1 and earlier, whereby \055 was treated just like the range
109087         delimiter '-'.
109088         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
109090 2007-02-08  Bruno Haible  <bruno@clisp.org>
109092         * modules/regex (Depends-on): Add stdbool.
109093         Reported by Dalibor Topic <robilad@kaffe.org>.
109095 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109097         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
109098         Prefer returning from main to exiting from it.
109099         Remove unnecessary parens after sizeof.
109101 2007-02-05  Bruno Haible  <bruno@clisp.org>
109103         New module mbssep.
109104         * modules/mbssep: New file.
109105         * lib/mbssep.c: New file.
109106         * lib/string_.h (strsep): Add a conditional link warning.
109107         (mbssep): New declaration.
109108         * m4/mbssep.m4: New file.
109109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109110         GNULIB_MBSSEP.
109111         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
109112         * MODULES.html.sh (Internationalization functions): Add mbssep.
109114 2007-02-05  Bruno Haible  <bruno@clisp.org>
109116         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
109117         Optimize search in case of 1 delimiter.
109119 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109121         * lib/acl.h: Include sys/types.h before sys/acl.h.
109123 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109125         Merge upstream fix for glibc bugzilla #3957:
109127         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
109129         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
109130         bit for RE_HAT_LISTS_NOT_NEWLINE.
109131         (build_charclass_op): Remove bogus comment.
109133 2007-02-05  Simon Josefsson  <simon@josefsson.org>
109135         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
109137 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109139         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
109140         * lib/memmem.c [!defined _LIBC]: Include config.h.
109142 2007-02-04  Bruno Haible  <bruno@clisp.org>
109144         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
109145         warning message.
109147 2007-02-04  Bruno Haible  <bruno@clisp.org>
109149         New module mbstok_r.
109150         * modules/mbstok_r: New file.
109151         * lib/mbstok_r.c: New file.
109152         * lib/string_.h (strtok_r): Change argument names to match the
109153         comments. Add a conditional link warning.
109154         (mbstok_r): New declaration.
109155         * m4/mbstok_r.m4: New file.
109156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109157         GNULIB_MBSTOK_R.
109158         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
109159         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
109161 2007-02-04  Bruno Haible  <bruno@clisp.org>
109163         New module mbsspn.
109164         * modules/mbsspn: New file.
109165         * lib/mbsspn.c: New file.
109166         * lib/string_.h (strspn): Add a conditional link warning.
109167         (mbsspn): New declaration.
109168         * m4/mbsspn.m4: New file.
109169         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109170         GNULIB_MBSSPN.
109171         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
109172         * MODULES.html.sh (Internationalization functions): Add mbsspn.
109174 2007-02-04  Bruno Haible  <bruno@clisp.org>
109176         New module mbspbrk.
109177         * modules/mbspbrk: New file.
109178         * lib/mbspbrk.c: New file.
109179         * lib/string_.h (strpbrk): Add a conditional link warning.
109180         (mbspbrk): New declaration.
109181         * m4/mbspbrk.m4: New file.
109182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109183         GNULIB_MBSPBRK.
109184         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
109185         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
109187 2007-02-04  Bruno Haible  <bruno@clisp.org>
109189         New module mbscspn.
109190         * modules/mbscspn: New file.
109191         * lib/mbscspn.c: New file.
109192         * lib/string_.h (strcspn): Add a conditional link warning.
109193         (mbscspn): New declaration.
109194         * m4/mbscspn.m4: New file.
109195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109196         GNULIB_MBSCSPN.
109197         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
109198         * MODULES.html.sh (Internationalization functions): Add mbscspn.
109200 2007-02-04  Bruno Haible  <bruno@clisp.org>
109202         New module mbscasestr, reduced goal of strcasestr.
109203         * modules/mbscasestr: New file.
109204         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
109205         (mbscasestr): Renamed from strcasestr.
109206         * lib/strcasestr.c: Don't include mbuiter.h.
109207         (strcasestr): Remove support for multibyte locales.
109208         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
109209         Change the conditional link warning.
109210         (mbscasestr): New declaration.
109211         * m4/mbscasestr.m4: New file.
109212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
109213         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
109214         REPLACE_STRCASESTR.
109215         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
109216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109217         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109218         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
109219         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
109220         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109221         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
109222         (Depends-on): Remove mbuiter.
109223         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
109225 2007-02-04  Bruno Haible  <bruno@clisp.org>
109227         Simplify handling of strncasecmp.
109228         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
109229         the conditional link warning.
109230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109231         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
109232         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
109233         * modules/strcase (configure.ac): Don't invoke
109234         gl_STRING_MODULE_INDICATOR.
109235         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
109237 2007-02-04  Bruno Haible  <bruno@clisp.org>
109239         New module mbscasecmp, reduced goal of strcasecmp.
109240         * modules/mbscasecmp: New file.
109241         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
109242         (mbscasecmp): Renamed from strcasecmp.
109243         * lib/strcasecmp.c: Don't include mbuiter.h.
109244         (strcasecmp): Remove support for multibyte locales.
109245         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
109246         Change the conditional link warning.
109247         (mbscasecmp): New declaration.
109248         * m4/mbscasecmp.m4: New file.
109249         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
109250         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
109251         REPLACE_STRCASECMP.
109252         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
109253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109254         GNULIB_MBSCASECMP.
109255         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
109256         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
109257         * modules/strcase (Files): Remove m4/mbrtowc.m4.
109258         (Depends-on): Remove mbuiter.
109259         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
109261 2007-02-04  Bruno Haible  <bruno@clisp.org>
109263         New module mbsstr. Remove module strstr.
109264         * modules/mbsstr: New file.
109265         * modules/strstr: Remove file.
109266         * lib/mbsstr.c: Renamed from lib/strstr.c.
109267         (mbsstr): Renamed from strstr.
109268         * lib/string_.h (strstr): Remove declaration. Change the conditional
109269         link warning.
109270         (mbsstr): New declaration.
109271         * m4/mbsstr.m4: New file.
109272         * m4/strstr.m4: Remove file.
109273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
109274         REPLACE_STRSTR.
109275         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
109276         Don't initialize GNULIB_STRSTR.
109277         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
109278         substitute GNULIB_STRSTR and REPLACE_STRSTR.
109279         * MODULES.html.sh (Internationalization functions): Add mbsstr.
109280         (Support for systems lacking ANSI C 89): Remove strstr.
109282 2007-02-04  Bruno Haible  <bruno@clisp.org>
109284         New module mbsrchr.
109285         * modules/mbsrchr: New file.
109286         * lib/mbsrchr.c: New file.
109287         * lib/string_.h (strrchr): Add a conditional link warning.
109288         (mbsrchr): New declaration.
109289         * m4/mbsrchr.m4: New file.
109290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109291         GNULIB_MBSRCHR.
109292         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
109293         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
109295 2007-02-04  Bruno Haible  <bruno@clisp.org>
109297         New module mbschr.
109298         * modules/mbschr: New file.
109299         * lib/mbschr.c: New file.
109300         * lib/string_.h (strchr): Add a conditional link warning.
109301         (mbschr): New declaration.
109302         * m4/mbschr.m4: New file.
109303         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109304         GNULIB_MBSCHR.
109305         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
109306         * MODULES.html.sh (Internationalization functions): Add mbschr.
109308 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109310         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
109312         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
109314 2007-02-04  Bruno Haible  <bruno@clisp.org>
109316         New module description section 'configure.ac-early'.
109317         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
109318         (func_get_autoconf_early_snippet): New function.
109319         (func_import, func_create_testdir): Use it. Remove special cases for
109320         modules 'extensions' and 'lock'.
109321         * modules/extensions (configure.ac-early): Require
109322         gl_USE_SYSTEM_EXTENSIONS.
109323         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
109325 2007-02-04  Bruno Haible  <bruno@clisp.org>
109327         Make use of gcj-4.3's -fsource and -ftarget option.
109328         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
109329         and if so try the options -fsource and -ftarget.
109330         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
109331         source_version, ftarget_option, target_version arguments.
109332         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
109333         (is_envjavac_oldgcj_14_14_usable): Renamed from
109334         is_envjavac_gcj_14_14_usable.
109335         (is_envjavac_oldgcj_14_13_usable): Renamed from
109336         is_envjavac_gcj_14_13_usable.
109337         (is_gcj_present): Update.
109338         (is_gcj_43, is_gcj43_usable): New functions.
109339         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
109340         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
109341         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
109342         try the options -fsource and -ftarget.
109344 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109346         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
109347         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
109348         larger value.
109350 2007-02-03  Jim Meyering  <jim@meyering.net>
109352         Give tools a better chance to allocate space for very large buffers.
109353         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
109355         Make pwd and readlink work also when run with an unreadable parent dir
109356         on systems with openat support.
109357         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
109358         provided getcwd function, even when we have openat support.
109359         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
109361 2007-02-02  Bruno Haible  <bruno@clisp.org>
109363         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109364         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
109365         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
109366         portability problems if one of these functions is only used on specific
109367         platforms.
109368         Reported by Paul Eggert.
109370 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
109372         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
109373         is causing more trouble than it's curing.
109374         * lib/regex_internal.h (__mempcpy): Remove.
109375         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
109376         (and make the code a tad smaller to boot).
109377         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
109379 2007-02-02  Jim Meyering  <jim@meyering.net>
109381         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
109382         section, not in the Makefile.am: one.
109384 2007-02-02  Eric Blake  <ebb9@byu.net>
109386         * lib/strchrnul.c: Always include config.h first.
109388         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
109389         gnulib strstr is not necessary here.
109391 2007-02-02  Simon Josefsson  <simon@josefsson.org>
109393         * m4/socklen.m4: Fix typo.
109395 2007-02-02  Eric Blake  <ebb9@byu.net>
109397         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
109398         * modules/netinet_in (Makefile.am): Likewise.
109400 2007-02-01  Bruno Haible  <bruno@clisp.org>
109402         * lib/string_.h (GL_LINK_WARNING): New macro.
109403         (strcasecmp, strstr, strcasestr): If provided by the system,
109404         conditionally define as a macro that leads to a warning instead of to
109405         an error.
109406         (strncasecmp): Conditionally define as a macro that leads to a warning.
109408 2007-02-01  Karl Berry  <karl@gnu.org>
109410         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
109412 2007-02-01  Bruno Haible  <bruno@clisp.org>
109414         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
109415         renamings.
109417 2007-02-01  Eric Blake  <ebb9@byu.net>
109419         * modules/regex (Depends-on): Revert dependence on mempcpy.
109420         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109421         module's definition of mempcpy.
109422         Reported by Paul Eggert.
109424 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109426         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109427         the symbol XYZ before redefining it.  This fixes a problem with
109428         programs that don't use XYZ, when compiled on systems that define
109429         XYZ to something else.
109431 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109433         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109434         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109435         writeable to group or other and (2) is intended to have a special
109436         mode bit that is set or cleared.  In such a case, the directory
109437         should be neither group- nor other-writeable until the special
109438         mode bits are right.
109440 2007-01-31  Eric Blake  <ebb9@byu.net>
109442         * modules/mountlist (Depends-on): Add strstr.
109444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109445         bug.
109446         * modules/string (Makefile.am): Remove redundant replacement.
109447         * modules/regex (Depends-on): Add mempcpy.
109449 2007-01-31  Bruno Haible  <bruno@clisp.org>
109451         New module description field 'Link'.
109452         * gnulib-tool (func_usage): Document --extract-link-directive.
109453         (sed_extract_prog): Recognize 'Link' directive.
109454         (func_get_link_directive): New function.
109455         (func_import): Show summary of link directives.
109456         Handle --extract-link-directive option.
109457         * modules/acl (Link): New section.
109458         * modules/clock-time (Link): New section.
109459         * modules/euidaccess (Link): New section.
109460         * modules/gettext (Link): New section.
109461         * modules/iconv (Link): New section.
109462         * modules/lock (Link): New section.
109463         * modules/nanosleep (Link): New section.
109464         * modules/readline (Link): New section.
109466 2007-01-27  Bruno Haible  <bruno@clisp.org>
109468         Enforce the use of gnulib modules for unportable <string.h> functions.
109469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109470         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109471         (gl_HEADER_STRING_H_BODY): Require it.
109472         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109473         the symbol XYZ to one that gives a link error.
109474         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109475         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109476         * modules/mempcpy (configure.ac): Likewise.
109477         * modules/memrchr (configure.ac): Likewise.
109478         * modules/stpcpy (configure.ac): Likewise.
109479         * modules/stpncpy (configure.ac): Likewise.
109480         * modules/strcase (configure.ac): Likewise.
109481         * modules/strcasestr (configure.ac): Likewise.
109482         * modules/strchrnul (configure.ac): Likewise.
109483         * modules/strdup (configure.ac): Likewise.
109484         * modules/strndup (configure.ac): Likewise.
109485         * modules/strnlen (configure.ac): Likewise.
109486         * modules/strpbrk (configure.ac): Likewise.
109487         * modules/strsep (configure.ac): Likewise.
109488         * modules/strstr (configure.ac): Likewise.
109489         * modules/strtok_r (configure.ac): Likewise.
109491 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109493         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109495 2007-01-30  Jim Meyering  <jim@meyering.net>
109497         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109499 2007-01-29  Bruno Haible  <bruno@clisp.org>
109501         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109502         * lib/execute.c: Likewise.
109503         * lib/pipe.c: Likewise.
109504         * lib/printf-args.h: Likewise.
109505         * lib/printf-args.c: Likewise.
109506         * lib/printf-parse.c: Likewise.
109507         * lib/vasnprintf.c: Likewise.
109509 2007-01-29  Eric Blake  <ebb9@byu.net>
109511         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109512         declaration.
109514 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109516         * lib/strptime.h (strptime): Use 'restrict' for args where
109517         POSIX requires this.
109518         * lib/strptime.c (strptime): Likewise.
109519         Change license notice from LGPL to GPL, since gnulib-tool will
109520         change this as needed.
109521         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109522         defined.
109523         Include "strptime.h" first, to check interface.
109524         Do not #undef _LIBC and _NL_CURRENT.
109525         Do not include <stdlib.h>; no longer needed.
109526         Include "time_r.h" and declare ptime_locale_status
109527         only if _LIBC is not defined.
109528         (__P): Remove unused macro.
109529         (match_string): Bring back glibc version, but use it only if _LIBC
109530         is defined.
109531         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109532         Remove unnecessary assertion and abort() call.
109533         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109534         * m4/strptime.m4: Fix serial number comment.
109535         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109536         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109537         (Depends-on): Add time_r.
109539 2007-01-29  Bruno Haible  <bruno@clisp.org>
109541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109542         strptime.
109543         * modules/strptime (Depends-on): Add stdbool.
109544         * lib/strptime.h: Include <time.h> always. Add comments.
109546 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109548         * modules/strptime: New file.
109549         * lib/strptime.h: New file.
109550         * lib/strptime.c: New file.
109551         * m4/strptime.m4: New file.
109553 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109555         * MODULES.html.sh: New module mpsort.
109556         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109558         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109559         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109560         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109561         All uses changed.
109562         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109563         All uses changed.
109564         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109565         to _Restrict_.
109566         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109567         the parameter matches the prototype.
109569 2007-01-28  Jim Meyering  <jim@meyering.net>
109571         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109572         sys/time.h here, reverting that part of the previous patch:
109573         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109575 2007-01-28  Bruno Haible  <bruno@clisp.org>
109577         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109578         value of $(SYS_TIME_H).
109579         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109580         remove it conditionally, too. [added by Jim Meyering]
109581         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109583         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109584         GETTIMEOFDAY_REPLACEMENT to 1.
109586 2007-01-28  Bruno Haible  <bruno@clisp.org>
109588         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109589         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109591         Set UNISTD_H instead of UNISTD_H2.
109592         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109594 2007-01-28  Bruno Haible  <bruno@clisp.org>
109596         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109597         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109599 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109601         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109602         (func_create_testdir): Ensure C locale for `grep' and `tr'
109603         character ranges.
109604         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109605         ACLOCAL_AMFLAGS parsing state machine.
109607 2007-01-27  Bruno Haible  <bruno@clisp.org>
109609         * modules/unistr/base: Update.
109611 2007-01-27  Bruno Haible  <bruno@clisp.org>
109613         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109614         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109615         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109616         modules/unistr/u32-mbtouc.
109617         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109618         * lib/unistr.h: Update.
109619         * lib/linebreak.c: Update.
109620         * modules/unistr/u32-mbtouc: Renamed from
109621         modules/unistr/u32-mbtouc-safe.
109622         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109623         * lib/unistr.h: Update.
109624         * lib/unistr/u32-to-u8.c: Update.
109625         * lib/unistr/u32-to-u16.c: Update.
109627 2007-01-27  Bruno Haible  <bruno@clisp.org>
109629         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109630         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109631         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109632         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109633         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109634         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109635         modules/unistr/u16-mbtouc.
109636         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109637         * lib/unistr.h: Update.
109638         * lib/linebreak.c: Update.
109639         * modules/linebreak: Update.
109640         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109641         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109642         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109643         * modules/unistr/u16-mbtouc: Renamed from
109644         modules/unistr/u16-mbtouc-safe.
109645         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109646         * lib/unistr.h: Update.
109647         * lib/unistr/u16-to-u8.c: Update.
109648         * modules/unistr/u16-to-u8: Update.
109649         * lib/unistr/u16-to-u32.c: Update.
109650         * modules/unistr/u16-to-u32: Update.
109652 2007-01-27  Bruno Haible  <bruno@clisp.org>
109654         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109655         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109656         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109657         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109658         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109659         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109660         modules/unistr/u8-mbtouc.
109661         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109662         * lib/unistr.h: Update.
109663         * lib/striconveh.c: Update.
109664         * modules/striconveh: Update.
109665         * lib/linebreak.c: Update.
109666         * modules/linebreak: Update.
109667         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109668         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109669         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109670         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109671         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109672         * lib/unistr.h: Update.
109673         * lib/striconveh.c: Update.
109674         * modules/striconveh: Update.
109675         * lib/unistr/u8-to-u16.c: Update.
109676         * modules/unistr/u8-to-u16: Update.
109677         * lib/unistr/u8-to-u32.c: Update.
109678         * modules/unistr/u8-to-u32: Update.
109680 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109682         Sync from Libtool.
109683         * lib/argz.c: Do not include strings.h nor memory.h, include
109684         string.h unconditionally.  Patch by Simon Josefsson.
109686 2007-01-27  Bruno Haible  <bruno@clisp.org>
109688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109689         from gl_HEADER_STRING_H_BODY.
109690         (gl_HEADER_STRING_H_BODY): Require it.
109691         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109692         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109694         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109696         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109698         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109699         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109700         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109702         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109703         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109704         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109705         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109707 2007-01-27  Bruno Haible  <bruno@clisp.org>
109709         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109710         check_PROGRAMS into noinst_PROGRAMS.
109711         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109712         check_PROGRAMS in this case.
109713         (func_import): Set for_test to false.
109714         (func_create_testdir): Set for_test to true.
109716 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109717             Bruno Haible  <bruno@clisp.org>
109719         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109720         (Depends-on): Add string.
109721         (Includes): Use <string.h> instead of strcasestr.h.
109722         * modules/string (Makefile.am): Also substitute the value of
109723         REPLACE_STRCASESTR.
109724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109725         assume strcasestr is declared in <string.h> not <strings.h>. Also
109726         set REPLACE_STRCASESTR.
109727         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109728         REPLACE_STRCASESTR.
109729         * lib/strcasestr.h: Remove file.
109730         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109731         * lib/string_.h (strcasestr): New declaration.
109733 2007-01-27  Bruno Haible  <bruno@clisp.org>
109735         * lib/string_.h: Use 'extern'.
109737 2007-01-27  Jim Meyering  <jim@meyering.net>
109739         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109740         of set-but-not-used local, "q".
109742         * lib/mempcpy.c: Include <config.h> before <string.h>.
109743         This fixes a compilation error on HP-UX, due to the system's
109744         "restrict"-using mempcpy prototype.
109746 2007-01-26  Bruno Haible  <bruno@clisp.org>
109748         Small optimization.
109749         * lib/javacomp.c: Include c-strstr.h.
109750          (is_envjavac_gcj): Use c_strstr instead of strstr.
109751         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109753 2007-01-26  Bruno Haible  <bruno@clisp.org>
109755         * MODULES.html.sh (Unicode string functions): Add the new modules.
109757         * modules/uniconv/u32-strconv-to-locale: New file.
109758         * lib/uniconv/u32-strconv-to-locale.c: New file.
109760         * modules/uniconv/u16-strconv-to-locale: New file.
109761         * lib/uniconv/u16-strconv-to-locale.c: New file.
109763         * modules/uniconv/u8-strconv-to-locale: New file.
109764         * lib/uniconv/u8-strconv-to-locale.c: New file.
109766         * modules/uniconv/u32-strconv-from-locale: New file.
109767         * lib/uniconv/u32-strconv-from-locale.c: New file.
109769         * modules/uniconv/u16-strconv-from-locale: New file.
109770         * lib/uniconv/u16-strconv-from-locale.c: New file.
109772         * modules/uniconv/u8-strconv-from-locale: New file.
109773         * lib/uniconv/u8-strconv-from-locale.c: New file.
109775         * modules/uniconv/u32-strconv-to-enc: New file.
109776         * lib/uniconv/u32-strconv-to-enc.c: New file.
109777         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109778         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109780         * modules/uniconv/u16-strconv-to-enc: New file.
109781         * lib/uniconv/u16-strconv-to-enc.c: New file.
109782         * lib/uniconv/u-strconv-to-enc.h: New file.
109783         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109784         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109786         * modules/uniconv/u8-strconv-to-enc: New file.
109787         * lib/uniconv/u8-strconv-to-enc.c: New file.
109788         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109789         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109791         * modules/uniconv/u32-strconv-from-enc: New file.
109792         * lib/uniconv/u32-strconv-from-enc.c: New file.
109793         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109794         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109796         * modules/uniconv/u16-strconv-from-enc: New file.
109797         * lib/uniconv/u16-strconv-from-enc.c: New file.
109798         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109799         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109801         * modules/uniconv/u8-strconv-from-enc: New file.
109802         * lib/uniconv/u8-strconv-from-enc.c: New file.
109803         * lib/uniconv/u-strconv-from-enc.h: New file.
109804         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109805         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109807         * modules/uniconv/u32-conv-from-enc: New file.
109808         * lib/uniconv/u32-conv-from-enc.c: New file.
109809         * modules/uniconv/u32-conv-from-enc-tests: New file.
109810         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109812         * modules/uniconv/u16-conv-from-enc: New file.
109813         * lib/uniconv/u16-conv-from-enc.c: New file.
109814         * lib/uniconv/u-conv-from-enc.h: New file.
109815         * modules/uniconv/u16-conv-from-enc-tests: New file.
109816         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109818         * modules/uniconv/u8-conv-from-enc: New file.
109819         * lib/uniconv/u8-conv-from-enc.c: New file.
109820         * modules/uniconv/u8-conv-from-enc-tests: New file.
109821         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109823         * modules/uniconv/base: New file.
109824         * lib/uniconv.h: New file.
109826 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109828         * doc/gnulib-tool.texi (Initial import): Update to match current
109829         behavior with strdup module.
109830         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109831         * lib/memmem.h: Remove; all uses removed.  This is now done
109832         by <string.h>.
109833         * lib/mempcpy.h: Likewise.
109834         * lib/memrchr.h: Likewise.
109835         * lib/stpcpy.h: Likewise.
109836         * lib/stpncpy.h: Likewise.
109837         * lib/strcase.h: Likewise.
109838         * lib/strchrnul.h: Likewise.
109839         * lib/strdup.h: Likewise.
109840         * lib/strndup.h: Likewise.
109841         * lib/strnlen.h: Likewise.
109842         * lib/strpbrk.h: Likewise.
109843         * lib/strsep.h: Likewise.
109844         * lib/strstr.h: Likewise.
109845         * lib/strtok_r.h: Likewise.
109846         * lib/string_.h: New file.
109847         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109848         Rely on <string.h> instead.
109849         * lib/canon-host.c: Likewise.
109850         * lib/chdir-long.c: Likewise.
109851         * lib/concatpath.c: Likewise.
109852         * lib/exclude.c: Likewise.
109853         * lib/fchdir.c: Likewise.
109854         * lib/getaddrinfo.c: Likewise.
109855         * lib/getcwd.c: Likewise.
109856         * lib/getsubopt.c: Likewise.
109857         * lib/glob.c: Likewise.
109858         * lib/hard-locale.c: Likewise.
109859         * lib/iconvme.c: Likewise.
109860         * lib/javacomp.c: Likewise.
109861         * lib/mempcpy.c: Likewise.
109862         * lib/memrchr.c: Likewise.
109863         * lib/regex_internal.h: Likewise.
109864         * lib/stpncpy.c: Likewise.
109865         * lib/strcasecmp.c: Likewise.
109866         * lib/strchrnul.c: Likewise.
109867         * lib/strdup.c: Likewise.
109868         * lib/striconv.c: Likewise.
109869         * lib/striconveh.c: Likewise.
109870         * lib/striconveha.c: Likewise.
109871         * lib/strncasecmp.c: Likewise.
109872         * lib/strndup.c: Likewise.
109873         * lib/strnlen.c: Likewise.
109874         * lib/strsep.c: Likewise.
109875         * lib/strstr.c: Likewise.
109876         * lib/strtok_r.c: Likewise.
109877         * lib/userspec.c: Likewise.
109878         * lib/w32spawn.h: Likewise.
109879         * lib/xstrndup.c: Likewise.
109880         * lib/mountlist.c (strstr): Remove decl.
109881         * m4/string_h.m4: New file.
109882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109885         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109886         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109887         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109888         Set REPLACE_STRCASECMP if necessary.
109889         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109890         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109891         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109892         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109893         HAVE_DECL_STRDUP if necessary.
109894         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109895         since gl_FUNC_STRNDUP does that now.
109896         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109897         Check for decl here...
109898         (gl_PREREQ_STRNLEN): ... not here.
109899         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109900         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109901         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109902         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109903         necessary.
109904         * modules/string: New file.
109905         * modules/memmem (Files): Remove special-purpose include file.
109906         (Depends-on): Add string.
109907         (Include): Include <string.h>, not the removed file.
109908         * modules/mempcpy: Likewise.
109909         * modules/memrchr: Likewise.
109910         * modules/stpcpy: Likewise.
109911         * modules/stpncpy: Likewise.
109912         * modules/strcase: Likewise.
109913         * modules/strchrnul: Likewise.
109914         * modules/strdup: Likewise.
109915         * modules/strndup: Likewise.
109916         * modules/strnlen: Likewise.
109917         * modules/strpbrk: Likewise.
109918         * modules/strsep: Likewise.
109919         * modules/strstr: Likewise.
109920         * modules/strtok_r: Likewise.
109921         * tests/test-dirname.c: Don't include "strdup.h", since
109922         <string.h> now suffices.
109923         * tests/test-memmem.c: Don't include "memmem.h", since
109924         <string.h> now suffices.
109926 2007-01-25  Bruno Haible  <bruno@clisp.org>
109928         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109929         *resultp is 0.
109931         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109932         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109933         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109934         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109936         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109937         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109938         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109939         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109940         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109941         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109943 2007-01-24  Bruno Haible  <bruno@clisp.org>
109945         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109946         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109947         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109948         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109949         gl_FUNC_FTS_CORE.
109950         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109951         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109952         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109953         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109954         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109955         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109956         gl_FUNC_FCHOWNAT.
109957         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109958         gl_FUNC_STRFTIME.
109959         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109960         Reported by Ralf Wildenhues.
109962 2007-01-24  Bruno Haible  <bruno@clisp.org>
109964         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109965         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109966         gl_GETADDRINFO.
109967         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109968         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109969         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109971 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109974         Don't use 'exit'; just return from 'main'.
109975         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109977         * lib/fnmatch_.h: Readjust white space and comments to match
109978         glibc, to avoid spurious diffs.
109980 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109982         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109983         2004-12-01 change by Jakub Jelinek, since this code won't compile
109984         if !LIBC.  Problem reported by Bob Proulx.
109986 2007-01-23  Bruno Haible  <bruno@clisp.org>
109988         * lib/striconveh.c: Include c-strcaseeq.h.
109989         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109990         * modules/striconveh (Depends-on): Add c-strcaseeq.
109992 2007-01-23  Bruno Haible  <bruno@clisp.org>
109994         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109996         * modules/c-strcaseeq: New file.
109997         * lib/c-strcaseeq.h: New file.
109999         * modules/streq: New file.
110000         * lib/streq.h: New file.
110002 2007-01-23  Bruno Haible  <bruno@clisp.org>
110004         * modules/striconveha-tests: New file.
110005         * tests/test-striconveha.c: New file.
110007         * lib/striconveha.h: Include <stdbool.h>.
110008         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
110009         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
110010         (mem_iconveha_notranslit): Renamed from mem_iconveha.
110011         (mem_iconveha): New function.
110012         (str_iconveha_notranslit): Renamed from str_iconveha.
110013         (str_iconveha): New function.
110014         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
110015         c-strcase.
110017 2007-01-23  Bruno Haible  <bruno@clisp.org>
110019         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
110020         encodings without forgiving before trying any encoding with handler.
110021         (str_iconveha): Try all encodings without forgiving before trying any
110022         encoding with handler.
110024 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
110026         Import the following changes from libc.
110028         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
110030         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
110032         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
110034         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
110035         normal_bracket label.
110037         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
110039         [BZ #361]
110040         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
110041         to normal_bracket after fetching the next character.
110043 2007-01-22  Bruno Haible  <bruno@clisp.org>
110045         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
110046         argument.
110047         * lib/striconveh.c (iconv_carefully_1): New function.
110048         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
110049         argument.
110050         (str_cd_iconveh): Update.
110051         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
110052         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
110053         * tests/test-striconveh.c (MAGIC): New macro.
110054         (new_offsets): New function.
110055         (main): Test call with and without offsets.
110057 2007-01-22  Bruno Haible  <bruno@clisp.org>
110059         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
110060         * modules/sys_select (Makefile.am): Likewise.
110061         * modules/sys_socket (Makefile.am): Likewise.
110062         * modules/sys_time (Makefile.am): Likewise.
110064 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
110066         * modules/gettimeofday (License): Change from GPL to LGPL, since
110067         gettimeofday is a library function.
110069 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110071         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
110073 2007-01-21  Bruno Haible  <bruno@clisp.org>
110075         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
110077 2007-01-21  Bruno Haible  <bruno@clisp.org>
110079         * modules/striconveha: New file.
110080         * lib/striconveha.h: New file.
110081         * lib/striconveha.c: New file.
110082         * MODULES.html.sh (Internationalization functions): Add striconveha.
110083         * lib/striconv.c (str_iconv): Optimize the case of an empty input
110084         string.
110085         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
110087 2007-01-21  Bruno Haible  <bruno@clisp.org>
110089         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
110090         * lib/striconveh.c (str_iconveh): Likewise.
110092 2007-01-21  Bruno Haible  <bruno@clisp.org>
110094         * lib/striconveh.h (mem_iconveh): New declaration.
110095         * lib/striconveh.c (mem_iconveh): New function.
110096         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
110098 2007-01-21  Bruno Haible  <bruno@clisp.org>
110100         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
110102         * lib/striconveh.h (mem_cd_iconveh): Change specification.
110103         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
110104         original result buffer.
110105         (str_cd_iconveh): Update.
110106         * tests/test-striconveh.c (main): Update.
110108         * lib/striconv.h (mem_cd_iconv): Change specification.
110109         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
110110         result buffer.
110111         (str_cd_iconv): Update.
110112         * tests/test-striconv.c (main): Update.
110114 2007-01-21  Bruno Haible  <bruno@clisp.org>
110116         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
110118 2007-01-20  Jim Meyering  <jim@meyering.net>
110120         * lib/userspec.c (parse_with_separator): If a user or group string
110121         starts with "+", skip the corresponding name-to-ID look-up, since
110122         such a look-up must fail: user and group names may not include "+".
110124 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
110126         * lib/poll.c: Include sys/time.h and time.h unconditionally,
110127         since we now assume the sys_time module.
110128         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
110129         check for sys/time.h; no longer needed.
110130         * modules/poll (Depends-on): Depend on sys_time.
110132 2007-01-18  Bruno Haible  <bruno@clisp.org>
110134         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
110135         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110137         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
110138         gettimeofday.
110140         * tests/test-gettimeofday.c: Include <time.h>.
110141         (dummy): Remove variable.
110143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
110144         gl_HEADER_SYS_TIME_H.
110145         (gl_HEADER_SYS_TIME_H): New macro.
110147         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
110148         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
110150         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
110151         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110152         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
110153         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
110154         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110155         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
110156         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
110157         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110159         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
110160         last change; it caused a compilation error when cross-compiling to
110161         Cygwin.
110163 2007-01-18  Jim Meyering  <jim@meyering.net>
110165         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
110166         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
110167         than the race-prone "test -d sys || mkdir sys".
110168         (configure.ac): Use AC_PROG_MKDIR_P.
110169         * modules/sys_select: Likewise.
110170         * modules/sys_socket: Likewise.
110171         * modules/sys_time: Likewise.
110173 2007-01-18  Eric Blake  <ebb9@byu.net>
110175         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
110176         replace gettimeofday.
110177         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
110178         name, to avoid infinite recursion.
110180 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
110182         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
110183         module sys_time.
110184         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
110185         assume timespec.h defines struct timeval.
110186         * lib/settime.c: Likewise.
110187         * lib/utimens.c: Likewise.
110188         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
110189         since we now assume the gettimeofday module.
110190         * lib/tempname.c (__gen_tempname): Likewise.
110191         * lib/gettimeofday.h: Remove.
110192         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
110193         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
110194         Include <time.h>, for 'time()'.
110195         (localtime_buffer_addr): Also use this workaround if
110196         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
110197         to simplify the uses.  All uses changed.
110198         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
110199         that #undef is inside {}, and 'const' follows type name consistently.
110200         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
110201         (gettimeofday): Do not use the maximum possible value for
110202         tv->tv_usec, since that might break usages other than ls.c.
110203         Instead, we'll leave ls.c alone.  This undoes today's patch
110204         by Bruno.  Add a compile-time warning for 1s-clock resolution;
110205         we've never observed the problem but might as well keep the
110206         canary.
110207         * lib/nanosleep.c: Include timespec.h first, for interface check.
110208         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
110209         now assume the sys_time module.
110210         * lib/tempname.c: Likewise.
110211         * lib/timespec.h: Likewise.
110212         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
110213         needed.
110214         * lib/strftime.c: Likewise.
110215         * lib/timespec.h: Likewise.
110216         * lib/posixtm.c: Include posixtm.h first, for interface check.
110217         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
110218         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
110219         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
110220         * lib/sys_time_.h: New file.
110221         * lib/timespec.h (struct timespec): Use long int, not long.
110222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
110223         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
110224         Remove obsolescent call to AC_HEADER_TIME.
110225         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
110226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
110227         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110228         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
110229         Likewise.
110230         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
110231         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
110232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
110233         into the sys_time module.  Check for gettimeofday just once.
110234         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
110235         for gettimeofday signature to just check the signature.  Merely
110236         compile it, since linking doesn't test signature.  Improve test for
110237         whether gettimeofday.o is actually needed.
110238         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
110239         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
110240         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
110241         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110242         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
110243         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
110244         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
110245         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
110246         than worrying about sys/time.h.
110247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110248         Don't bother worrying about TIME_WITH_SYS_TIME.
110249         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
110250         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
110251         * m4/sys_time_h.m4: New file.
110252         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
110253         Don't include sys/time.h.  Return from main rather than exiting.
110254         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
110255         all uses changed.
110256         * modules/gethrxtime (Depends-on): Add sys_time.
110257         * modules/gettime (Depends-on): Likewise.
110258         * modules/gettimeofday (Depends-on): Likewise.
110259         * modules/nanosleep (Depends-on): Likewise.
110260         * modules/settime (Depends-on): Likewise.
110261         * modules/tempname (Depends-on): Likewise.
110262         * modules/utimens (Depends-on): Likewise.
110263         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
110264         (Include): Change back to <sys/time.h>.
110265         (Maintainer): Add self.
110266         * modules/sys_time: New file.
110267         * modules/tempname (Depends-on): Add gettimeofday.
110268         * tests/test-gettimeofday.c: Include <sys/time.h>
110269         rather than gettimeofday.h.
110271 2007-01-17  Bruno Haible  <bruno@clisp.org>
110273         * gnulib-tool (func_get_license): Revert last patch. Instead, let
110274         the license default to GPL.
110275         (func_create_testdir): Don't complain if a module is LGPL and its
110276         tests module depends on GPLed modules.
110278 2007-01-17  Bruno Haible  <bruno@clisp.org>
110280         * lib/gettimeofday.c (gettimeofday): Add code for the case
110281         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
110282         maximum possible value for tv->tv_usec, rather than the minimum one.
110284 2005-10-08  Martin Lambers  <marlam@marlam.de>
110285 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110286 2007-01-16  Bruno Haible  <bruno@clisp.org>
110288         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
110289         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
110290         gl_FUNC_GETTIMEOFDAY.
110291         (Include): Add gettimeofday.h.
110292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
110293         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
110294         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
110295         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
110296         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
110297         * lib/gettimeofday.h: New file.
110298         * lib/gettimeofday.c: Include <sys/timeb.h>.
110299         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
110300         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110301         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
110302         fall back on time().
110304         * tests/test-gettimeofday.c: New file.
110305         * modules/gettimeofday-tests: New file.
110307 2007-01-16  Eric Blake  <ebb9@byu.net>
110309         * modules/fnmatch (Depends-on): Depend on wchar.
110310         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
110311         * m4/fnmatch.m4: Likewise.
110312         * modules/mbchar (Makefile.am): Assume <wchar.h>.
110313         * m4/mbchar.m4: Likewise.
110314         * modules/mbswidth (Depends-on): Depend on wchar.
110315         * lib/mbswidth.c: Assume <wchar.h>.
110316         * m4/mbswidth.m4: Likewise.
110317         * modules/quotearg (Depends-on): Depend on wchar.
110318         * lib/quotearg.c: Assume <wchar.h>.
110319         * m4/quotearg.m4: Likewise.
110320         * modules/regex (Depends-on): Depend on wchar.
110321         * lib/regex_internal.h: Assume <wchar.h>.
110322         * m4/regex.m4: Likewise.
110323         * modules/stdint (Depends-on): Depend on wchar.
110324         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
110325         * m4/stdint.m4: Likewise.
110326         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
110327         * modules/strftime (Depends-on): Depend on wchar.
110328         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
110329         * modules/strtol (Depends-on): Depend on wchar.
110330         * lib/strtol.c: Assume <wchar.h>.
110331         * modules/wcwidth (Depends-on): Depend on wchar.
110332         * lib/wcwidth.h: Assume <wchar.h>.
110333         * m4/wcwidth.m4: Likewise.
110335 2007-01-16  Bruno Haible  <bruno@clisp.org>
110337         * modules/csharpexec-script: New, created from...
110338         * modules/csharpexec: ... this.
110340 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
110342         * modules/javaexec-script: New, created from...
110343         * modules/javaexec: ... this.
110345 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110347         * modules/poll (Dependencies): Add sys_select.
110349 2007-01-15  Jim Meyering  <jim@meyering.net>
110351         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
110352         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
110353         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
110354         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
110356 2007-01-15  Bruno Haible  <bruno@clisp.org>
110358         * modules/striconveh: New file.
110359         * lib/striconveh.h: New file.
110360         * lib/striconveh.c: New file.
110361         * MODULES.html.sh (Internationalization functions): Add striconveh.
110363         * modules/striconveh-tests: New file.
110364         * tests/test-striconveh.c: New file.
110366 2007-01-15  Bruno Haible  <bruno@clisp.org>
110368         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
110369         not from GNU libiconv or GNU libc.
110371 2007-01-15  Bruno Haible  <bruno@clisp.org>
110373         * doc/gnulib-intro.texi (Copyright): Explain the different license
110374         terms for module descriptions, autoconf macros, tests, documentation.
110376 2007-01-14  Bruno Haible  <bruno@clisp.org>
110378         * modules/striconv-tests: New file.
110379         * tests/test-striconv.c: New file.
110381 2007-01-14  Bruno Haible  <bruno@clisp.org>
110383         * modules/iconv-tests: New file.
110384         * tests/test-iconv.c: New file.
110386 2007-01-14  Bruno Haible  <bruno@clisp.org>
110388         * gnulib-tool (func_get_license): For test modules, use the license of
110389         the main module.
110391 2007-01-14  Bruno Haible  <bruno@clisp.org>
110393         * modules/iconv (Include): Clarify that <iconv.h> can only be included
110394         if iconv is found to exist.
110396 2007-01-14  Bruno Haible  <bruno@clisp.org>
110398         * modules/c-ctype-tests: New file.
110399         * tests/test-c-ctype.c: New file.
110401 2007-01-14  Bruno Haible  <bruno@clisp.org>
110403         * modules/binary-io-tests: New file.
110404         * tests/test-binary-io.sh: New file.
110405         * tests/test-binary-io.c: New file.
110407 2007-01-14  Bruno Haible  <bruno@clisp.org>
110409         * modules/array-oset-tests: New file.
110410         * tests/test-array_oset.c: New file.
110412 2007-01-14  Bruno Haible  <bruno@clisp.org>
110414         * modules/array-list-tests: New file.
110415         * tests/test-array_list.c: New file.
110417 2007-01-14  Bruno Haible  <bruno@clisp.org>
110419         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
110420         and make.
110421         Reported by Simon Josefsson in
110422         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110424 2007-01-14  Bruno Haible  <bruno@clisp.org>
110426         * modules/allocsa-tests: New file.
110427         * tests/test-allocsa.c: New file.
110429 2007-01-14  Bruno Haible  <bruno@clisp.org>
110431         * modules/fchdir (Depends-on): Add absolute-header.
110432         * modules/unistd (Depends-on): Likewise.
110434 2006-12-30  Bruno Haible  <bruno@clisp.org>
110436         * modules/fchdir: New file.
110437         * modules/unistd (Files): Add lib/unistd_.h.
110438         (Makefile.am): Generate unistd.h from unistd_.h.
110439         * lib/fchdir.c: New file.
110440         * lib/dirent_.h: New file.
110441         * lib/unistd_.h: New file.
110442         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110443         * m4/fchdir.m4: New file.
110444         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110445         (gl_HEADER_UNISTD): Invoke it.
110446         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110447         function.
110448         * lib/backupfile.c (opendir, closedir): Undefine.
110449         * lib/chown.c (open, close): Undefine.
110450         * lib/clean-temp.c (open, close): Undefine.
110451         * lib/copy-file.c (open, close): Undefine.
110452         * lib/execute.c (open, close): Undefine.
110453         * lib/fsusage.c (open, close): Undefine.
110454         * lib/gc-gnulib.c (open, close): Undefine.
110455         * lib/getcwd.c (opendir, closedir): Undefine.
110456         * lib/glob.c (opendir, closedir): Undefine.
110457         * lib/javacomp.c (open, close): Undefine.
110458         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110459         * lib/openat-proc.c (open, close): Undefine.
110460         * lib/pagealign_alloc.c (open, close): Undefine.
110461         * lib/pipe.c (open, close): Undefine.
110462         * lib/progreloc.c (open, close): Undefine.
110463         * lib/savedir.c (opendir, closedir): Undefine.
110464         * lib/utime.c (open, close): Undefine.
110465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110467 2007-01-10  Bruno Haible  <bruno@clisp.org>
110469         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110471 2007-01-12  Eric Blake  <ebb9@byu.net>
110473         Provide a robust <wchar.h>.  Further simplifications are now
110474         possible in other modules, but not included here.
110475         * modules/wchar: New module.
110476         * m4/wchar.m4: New file.
110477         * lib/wchar_.h: Likewise.
110478         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110479         of the new module.
110480         * MODULES.html.sh (Extended multibyte and wide character utilities):
110481         New section.
110483 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110485         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110486         to a reasonable default for memory allocation.
110487         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110488         file system that reports garbage st_size values for symlinks.
110489         Problem reported by Liyang Hu.
110491 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110493         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110494         Emacs .#* auto-save files).
110496 2007-01-11  Bruno Haible  <bruno@clisp.org>
110498         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110499         directory.
110501 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110503         Use @...@ consistently in lib/wctype_.h.
110504         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110505         on it being set to 1 or 0.
110506         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110507         go back to AC_SUBSTing it.
110508         * modules/wctype (Makefile.am): Undo previous change.
110510 2007-01-10  Eric Blake  <ebb9@byu.net>
110512         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110513         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110514         * modules/wctype (Makefile.am): Likewise.
110515         Reported by Chris McGuire.
110517 2007-01-10  Jim Meyering  <jim@meyering.net>
110519         fts.c: a small readability/maintainability improvement
110520         * lib/fts.c (fts_read): Make this code slightly more readable and
110521         maintainable by hoisting the "sp->fts_cur = p" assignments to
110522         immediately follow the statements that set P.  Derived from
110523         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110525 2007-01-10  Eric Blake  <ebb9@byu.net>
110527         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110528         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110529         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110530         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110531         Reported by Chris McGuire.
110533 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110535         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110536         in sed script.
110538 2007-01-09  Bruno Haible  <bruno@clisp.org>
110540         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110541         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110542         variables.
110543         (func_module): Use them.
110545 2007-01-09  Bruno Haible  <bruno@clisp.org>
110547         * modules/unistr/base: New file.
110548         * lib/unistr.h: New file.
110550         * modules/unistr/u8-to-u16: New file.
110551         * lib/unistr/u8-to-u16.c: New file.
110553         * modules/unistr/u8-to-u32: New file.
110554         * lib/unistr/u8-to-u32.c: New file.
110556         * modules/unistr/u16-to-u8: New file.
110557         * lib/unistr/u16-to-u8.c: New file.
110559         * modules/unistr/u16-to-u32: New file.
110560         * lib/unistr/u16-to-u32.c: New file.
110562         * modules/unistr/u32-to-u8: New file.
110563         * lib/unistr/u32-to-u8.c: New file.
110565         * modules/unistr/u32-to-u16: New file.
110566         * lib/unistr/u32-to-u16.c: New file.
110568         * modules/unistr/u8-check: New file.
110569         * modules/unistr/u16-check: New file.
110570         * modules/unistr/u32-check: New file.
110571         * lib/unistr/u8-check.c: New file.
110572         * lib/unistr/u16-check.c: New file.
110573         * lib/unistr/u32-check.c: New file.
110575         * modules/unistr/u8-chr: New file.
110576         * modules/unistr/u16-chr: New file.
110577         * modules/unistr/u32-chr: New file.
110578         * lib/unistr/u8-chr.c: New file.
110579         * lib/unistr/u16-chr.c: New file.
110580         * lib/unistr/u32-chr.c: New file.
110582         * modules/unistr/u8-cmp: New file.
110583         * modules/unistr/u16-cmp: New file.
110584         * modules/unistr/u32-cmp: New file.
110585         * lib/unistr/u8-cmp.c: New file.
110586         * lib/unistr/u16-cmp.c: New file.
110587         * lib/unistr/u32-cmp.c: New file.
110589         * modules/unistr/u8-cpy: New file.
110590         * modules/unistr/u16-cpy: New file.
110591         * modules/unistr/u32-cpy: New file.
110592         * lib/unistr/u8-cpy.c: New file.
110593         * lib/unistr/u16-cpy.c: New file.
110594         * lib/unistr/u32-cpy.c: New file.
110595         * lib/unistr/u-cpy.h: New file.
110597         * modules/unistr/u8-cpy-alloc: New file.
110598         * modules/unistr/u16-cpy-alloc: New file.
110599         * modules/unistr/u32-cpy-alloc: New file.
110600         * lib/unistr/u8-cpy-alloc.c: New file.
110601         * lib/unistr/u16-cpy-alloc.c: New file.
110602         * lib/unistr/u32-cpy-alloc.c: New file.
110603         * lib/unistr/u-cpy-alloc.h: New file.
110605         * modules/unistr/u8-endswith: New file.
110606         * modules/unistr/u16-endswith: New file.
110607         * modules/unistr/u32-endswith: New file.
110608         * lib/unistr/u8-endswith.c: New file.
110609         * lib/unistr/u16-endswith.c: New file.
110610         * lib/unistr/u32-endswith.c: New file.
110611         * lib/unistr/u-endswith.h: New file.
110613         * modules/unistr/u8-mblen: New file.
110614         * modules/unistr/u16-mblen: New file.
110615         * modules/unistr/u32-mblen: New file.
110616         * lib/unistr/u8-mblen.c: New file.
110617         * lib/unistr/u16-mblen.c: New file.
110618         * lib/unistr/u32-mblen.c: New file.
110620         * modules/unistr/u8-mbtouc: New file.
110621         * modules/unistr/u16-mbtouc: New file.
110622         * modules/unistr/u32-mbtouc: New file.
110623         * lib/unistr/u8-mbtouc.c: New file.
110624         * lib/unistr/u16-mbtouc.c: New file.
110625         * lib/unistr/u32-mbtouc.c: New file.
110627         * modules/unistr/u8-mbtouc-safe: New file.
110628         * modules/unistr/u16-mbtouc-safe: New file.
110629         * modules/unistr/u32-mbtouc-safe: New file.
110630         * lib/unistr/u8-mbtouc-safe.c: New file.
110631         * lib/unistr/u16-mbtouc-safe.c: New file.
110632         * lib/unistr/u32-mbtouc-safe.c: New file.
110634         * modules/unistr/u8-move: New file.
110635         * modules/unistr/u16-move: New file.
110636         * modules/unistr/u32-move: New file.
110637         * lib/unistr/u8-move.c: New file.
110638         * lib/unistr/u16-move.c: New file.
110639         * lib/unistr/u32-move.c: New file.
110640         * lib/unistr/u-move.h: New file.
110642         * modules/unistr/u8-next: New file.
110643         * modules/unistr/u16-next: New file.
110644         * modules/unistr/u32-next: New file.
110645         * lib/unistr/u8-next.c: New file.
110646         * lib/unistr/u16-next.c: New file.
110647         * lib/unistr/u32-next.c: New file.
110649         * modules/unistr/u8-prev: New file.
110650         * modules/unistr/u16-prev: New file.
110651         * modules/unistr/u32-prev: New file.
110652         * lib/unistr/u8-prev.c: New file.
110653         * lib/unistr/u16-prev.c: New file.
110654         * lib/unistr/u32-prev.c: New file.
110656         * modules/unistr/u8-set: New file.
110657         * modules/unistr/u16-set: New file.
110658         * modules/unistr/u32-set: New file.
110659         * lib/unistr/u8-set.c: New file.
110660         * lib/unistr/u16-set.c: New file.
110661         * lib/unistr/u32-set.c: New file.
110662         * lib/unistr/u-set.h: New file.
110664         * modules/unistr/u8-startswith: New file.
110665         * modules/unistr/u16-startswith: New file.
110666         * modules/unistr/u32-startswith: New file.
110667         * lib/unistr/u8-startswith.c: New file.
110668         * lib/unistr/u16-startswith.c: New file.
110669         * lib/unistr/u32-startswith.c: New file.
110670         * lib/unistr/u-startswith.h: New file.
110672         * modules/unistr/u8-stpcpy: New file.
110673         * modules/unistr/u16-stpcpy: New file.
110674         * modules/unistr/u32-stpcpy: New file.
110675         * lib/unistr/u8-stpcpy.c: New file.
110676         * lib/unistr/u16-stpcpy.c: New file.
110677         * lib/unistr/u32-stpcpy.c: New file.
110678         * lib/unistr/u-stpcpy.h: New file.
110680         * modules/unistr/u8-stpncpy: New file.
110681         * modules/unistr/u16-stpncpy: New file.
110682         * modules/unistr/u32-stpncpy: New file.
110683         * lib/unistr/u8-stpncpy.c: New file.
110684         * lib/unistr/u16-stpncpy.c: New file.
110685         * lib/unistr/u32-stpncpy.c: New file.
110686         * lib/unistr/u-stpncpy.h: New file.
110688         * modules/unistr/u8-strcat: New file.
110689         * modules/unistr/u16-strcat: New file.
110690         * modules/unistr/u32-strcat: New file.
110691         * lib/unistr/u8-strcat.c: New file.
110692         * lib/unistr/u16-strcat.c: New file.
110693         * lib/unistr/u32-strcat.c: New file.
110694         * lib/unistr/u-strcat.h: New file.
110696         * modules/unistr/u8-strchr: New file.
110697         * modules/unistr/u16-strchr: New file.
110698         * modules/unistr/u32-strchr: New file.
110699         * lib/unistr/u8-strchr.c: New file.
110700         * lib/unistr/u16-strchr.c: New file.
110701         * lib/unistr/u32-strchr.c: New file.
110703         * modules/unistr/u8-strcmp: New file.
110704         * modules/unistr/u16-strcmp: New file.
110705         * modules/unistr/u32-strcmp: New file.
110706         * lib/unistr/u8-strcmp.c: New file.
110707         * lib/unistr/u16-strcmp.c: New file.
110708         * lib/unistr/u32-strcmp.c: New file.
110710         * modules/unistr/u8-strcpy: New file.
110711         * modules/unistr/u16-strcpy: New file.
110712         * modules/unistr/u32-strcpy: New file.
110713         * lib/unistr/u8-strcpy.c: New file.
110714         * lib/unistr/u16-strcpy.c: New file.
110715         * lib/unistr/u32-strcpy.c: New file.
110716         * lib/unistr/u-strcpy.h: New file.
110718         * modules/unistr/u8-strcspn: New file.
110719         * modules/unistr/u16-strcspn: New file.
110720         * modules/unistr/u32-strcspn: New file.
110721         * lib/unistr/u8-strcspn.c: New file.
110722         * lib/unistr/u16-strcspn.c: New file.
110723         * lib/unistr/u32-strcspn.c: New file.
110724         * lib/unistr/u-strcspn.h: New file.
110726         * modules/unistr/u8-strdup: New file.
110727         * modules/unistr/u16-strdup: New file.
110728         * modules/unistr/u32-strdup: New file.
110729         * lib/unistr/u8-strdup.c: New file.
110730         * lib/unistr/u16-strdup.c: New file.
110731         * lib/unistr/u32-strdup.c: New file.
110732         * lib/unistr/u-strdup.h: New file.
110734         * modules/unistr/u8-strlen: New file.
110735         * modules/unistr/u16-strlen: New file.
110736         * modules/unistr/u32-strlen: New file.
110737         * lib/unistr/u8-strlen.c: New file.
110738         * lib/unistr/u16-strlen.c: New file.
110739         * lib/unistr/u32-strlen.c: New file.
110740         * lib/unistr/u-strlen.h: New file.
110742         * modules/unistr/u8-strmblen: New file.
110743         * modules/unistr/u16-strmblen: New file.
110744         * modules/unistr/u32-strmblen: New file.
110745         * lib/unistr/u8-strmblen.c: New file.
110746         * lib/unistr/u16-strmblen.c: New file.
110747         * lib/unistr/u32-strmblen.c: New file.
110749         * modules/unistr/u8-strmbtouc: New file.
110750         * modules/unistr/u16-strmbtouc: New file.
110751         * modules/unistr/u32-strmbtouc: New file.
110752         * lib/unistr/u8-strmbtouc.c: New file.
110753         * lib/unistr/u16-strmbtouc.c: New file.
110754         * lib/unistr/u32-strmbtouc.c: New file.
110756         * modules/unistr/u8-strncat: New file.
110757         * modules/unistr/u16-strncat: New file.
110758         * modules/unistr/u32-strncat: New file.
110759         * lib/unistr/u8-strncat.c: New file.
110760         * lib/unistr/u16-strncat.c: New file.
110761         * lib/unistr/u32-strncat.c: New file.
110762         * lib/unistr/u-strncat.h: New file.
110764         * modules/unistr/u8-strncmp: New file.
110765         * modules/unistr/u16-strncmp: New file.
110766         * modules/unistr/u32-strncmp: New file.
110767         * lib/unistr/u8-strncmp.c: New file.
110768         * lib/unistr/u16-strncmp.c: New file.
110769         * lib/unistr/u32-strncmp.c: New file.
110771         * modules/unistr/u8-strncpy: New file.
110772         * modules/unistr/u16-strncpy: New file.
110773         * modules/unistr/u32-strncpy: New file.
110774         * lib/unistr/u8-strncpy.c: New file.
110775         * lib/unistr/u16-strncpy.c: New file.
110776         * lib/unistr/u32-strncpy.c: New file.
110777         * lib/unistr/u-strncpy.h: New file.
110779         * modules/unistr/u8-strnlen: New file.
110780         * modules/unistr/u16-strnlen: New file.
110781         * modules/unistr/u32-strnlen: New file.
110782         * lib/unistr/u8-strnlen.c: New file.
110783         * lib/unistr/u16-strnlen.c: New file.
110784         * lib/unistr/u32-strnlen.c: New file.
110785         * lib/unistr/u-strnlen.h: New file.
110787         * modules/unistr/u8-strpbrk: New file.
110788         * modules/unistr/u16-strpbrk: New file.
110789         * modules/unistr/u32-strpbrk: New file.
110790         * lib/unistr/u8-strpbrk.c: New file.
110791         * lib/unistr/u16-strpbrk.c: New file.
110792         * lib/unistr/u32-strpbrk.c: New file.
110793         * lib/unistr/u-strpbrk.h: New file.
110795         * modules/unistr/u8-strrchr: New file.
110796         * modules/unistr/u16-strrchr: New file.
110797         * modules/unistr/u32-strrchr: New file.
110798         * lib/unistr/u8-strrchr.c: New file.
110799         * lib/unistr/u16-strrchr.c: New file.
110800         * lib/unistr/u32-strrchr.c: New file.
110802         * modules/unistr/u8-strspn: New file.
110803         * modules/unistr/u16-strspn: New file.
110804         * modules/unistr/u32-strspn: New file.
110805         * lib/unistr/u8-strspn.c: New file.
110806         * lib/unistr/u16-strspn.c: New file.
110807         * lib/unistr/u32-strspn.c: New file.
110808         * lib/unistr/u-strspn.h: New file.
110810         * modules/unistr/u8-strstr: New file.
110811         * modules/unistr/u16-strstr: New file.
110812         * modules/unistr/u32-strstr: New file.
110813         * lib/unistr/u8-strstr.c: New file.
110814         * lib/unistr/u16-strstr.c: New file.
110815         * lib/unistr/u32-strstr.c: New file.
110816         * lib/unistr/u-strstr.h: New file.
110818         * modules/unistr/u8-strtok: New file.
110819         * modules/unistr/u16-strtok: New file.
110820         * modules/unistr/u32-strtok: New file.
110821         * lib/unistr/u8-strtok.c: New file.
110822         * lib/unistr/u16-strtok.c: New file.
110823         * lib/unistr/u32-strtok.c: New file.
110824         * lib/unistr/u-strtok.h: New file.
110826         * modules/unistr/u8-uctomb: New file.
110827         * modules/unistr/u16-uctomb: New file.
110828         * modules/unistr/u32-uctomb: New file.
110829         * lib/unistr/u8-uctomb.c: New file.
110830         * lib/unistr/u16-uctomb.c: New file.
110831         * lib/unistr/u32-uctomb.c: New file.
110833         * MODULES.html.sh (Unicode string functions): Add the new modules.
110835 2007-01-08  Bruno Haible  <bruno@clisp.org>
110837         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110838         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110839         subdirectories.
110841 2007-01-08  Karl Berry  <karl@gnu.org>
110843         * doc/error.texi: mention that main() fns must set program_name
110844         when progname is used.
110846 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110848         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110849         WCTYPE_H is empty, for the benefit of builds from non-distclean
110850         directories.  Problem reported by Eric Blake in
110851         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110853 2007-01-08  Bruno Haible  <bruno@clisp.org>
110855         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110856         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110857         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110858         PROVIDE_CANONICALIZE_FILENAME_MODE.
110859         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110861 2007-01-08  Bruno Haible  <bruno@clisp.org>
110863         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110864         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110865         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110866         * lib/fts.c: Likewise.
110867         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110869 2006-12-25  Bruno Haible  <bruno@clisp.org>
110871         * modules/utf8-ucs4-safe: New file.
110872         * lib/utf8-ucs4-safe.h: New file.
110873         * lib/unistr/utf8-ucs4-safe.c: New file.
110875         * modules/utf16-ucs4-safe: New file.
110876         * lib/utf16-ucs4-safe.h: New file.
110877         * lib/unistr/utf16-ucs4-safe.c: New file.
110879         * MODULES.html.sh (Unicode string functions): Add the new modules.
110881 2007-01-08  Bruno Haible  <bruno@clisp.org>
110883         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110884         (Depends-on): Add unitypes.
110885         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110886         (u8_mbtouc_aux): Move out to separate file.
110887         (u8_mbtouc): Use ucs4_t, uint8_t types.
110888         * lib/unistr/utf8-ucs4.c: New file.
110890         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110891         (Depends-on): Add unitypes.
110892         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110893         (u16_mbtouc_aux): Move out to separate file.
110894         (u16_mbtouc): Use ucs4_t, uint16_t types.
110895         * lib/unistr/utf16-ucs4.c: New file.
110897         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110898         (Depends-on): Add unitypes.
110899         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110900         (u8_uctomb_aux): Move out to separate file.
110901         (u8_uctomb): Use ucs4_t, uint8_t types.
110902         * lib/unistr/ucs4-utf8.c: New file.
110904         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110905         (Depends-on): Add unitypes.
110906         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110907         (u16_uctomb_aux): Move out to separate file.
110908         (u16_uctomb): Use ucs4_t, uint16_t types.
110909         * lib/unistr/ucs4-utf16.c: New file.
110911 2006-12-25  Bruno Haible  <bruno@clisp.org>
110913         * modules/unitypes: New file.
110914         * lib/unitypes.h: New file.
110915         * MODULES.html.sh (func_all_modules): New section "Unicode string
110916         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110917         this section. Add unitypes.
110919 2007-01-08  Bruno Haible  <bruno@clisp.org>
110921         Avoid variable names that conflict with those from libtool.
110922         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110923         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110924         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110925         library_names_spec to acl_library_names_spec, hardcode_* to
110926         acl_hardcode_*.
110927         Reported by Ralf Wildenhues.
110929 2007-01-08  Bruno Haible  <bruno@clisp.org>
110931         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110932         definition.
110933         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110934         definition.
110935         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110936         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110937         definition.
110938         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110939         definition.
110940         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110941         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110942         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110943         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110944         definition.
110945         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110946         definition.
110947         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110948         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110949         GC_USE_<algorithm>.
110950         * lib/gc-libgcrypt.c: Likewise.
110951         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110952         * modules/gc-arctwo (configure.ac): Likewise.
110953         * modules/gc-des (configure.ac): Likewise.
110954         * modules/gc-hmac-md5 (configure.ac): Likewise.
110955         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110956         * modules/gc-md2 (configure.ac): Likewise.
110957         * modules/gc-md4 (configure.ac): Likewise.
110958         * modules/gc-md5 (configure.ac): Likewise.
110959         * modules/gc-random (configure.ac): Likewise.
110960         * modules/gc-rijndael (configure.ac): Likewise.
110961         * modules/gc-sha1 (configure.ac): Likewise.
110963 2007-01-08  Bruno Haible  <bruno@clisp.org>
110965         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110966         macro definition.
110967         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110968         definition.
110969         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110970         definition.
110971         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110972         * modules/fcntl-safer (configure.ac): Likewise.
110973         * modules/fopen-safer (configure.ac): Likewise.
110974         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110975         GNULIB_FWRITEERROR macro definition.
110977 2007-01-08  Bruno Haible  <bruno@clisp.org>
110979         * m4/gnulib-common.m4: New file.
110980         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110981         (func_get_filelist): Add m4/gnulib-common.m4.
110983 2007-01-08  Bruno Haible  <bruno@clisp.org>
110985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110986         command.
110988 2007-01-08  Jim Meyering  <jim@meyering.net>
110990         Use a more robust test for a "can't happen" condition.
110991         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110992         narrowed the st_size value.  Presuming the "can't happen" condition
110993         is true, that narrowing could conceivably convert an invalid st_size
110994         value into a valid one.  Instead, use a change based on Matthew
110995         Woehlke's original patch.
110997         Slight readability improvement: use an assert-like macro
110998         in place of literal "abort ()" uses.
110999         * lib/fts.c (fts_assert): Define.
111000         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
111001         Use this macro instead of a bare 'abort'.
111003 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
111005         Don't worry about using IRIX 5.3's wctype.h broken definitions;
111006         simply work around them.
111007         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
111008         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
111009         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
111010         declaring.
111011         Don't bother to define as macros, since the standard doesn't require it.
111012         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
111013         longer worry about IRIX 5.3.
111014         (HAVE_WCTYPE_CTMP_BUG): Remove.
111016 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
111018         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
111019         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
111020         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
111021         Problems reported by Georg Schwarz for IRIX 5.3.
111023         * gnulib-tool (autoconf_minversion): Take the maximum version number
111024         found, not the minimum.  Problem reported by James Youngman.
111026 2007-01-03  Karl Berry  <karl@gnu.org>
111028         * doc/error.texi: new file, explaining interaction with progname.
111029         * doc/gnulib.texi: include it.  Update copyright.
111031 2007-01-03  Simon Josefsson  <simon@josefsson.org>
111033         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
111034         AC_CANONICAL_HOST, to improve autobuild outputs.
111036 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
111037             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
111039         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
111040         sockets, server sockets, and other file descriptors.  Count errors
111041         to compute the return value.  Reorder the code a bit to be easier
111042         to follow.  Don't set event bits that were not requested (except
111043         POLLERR and POLLHUP).
111045 2007-01-01  Bruno Haible  <bruno@clisp.org>
111047         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
111049 2007-01-03  Jim Meyering  <jim@meyering.net>
111051         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
111053 2007-01-02  Bruno Haible  <bruno@clisp.org>
111055         * modules/settime (Include): Require timespec.h.
111056         * modules/nanosleep (Include): Likewise.
111058 2007-01-01  Bruno Haible  <bruno@clisp.org>
111060         * gnulib-tool (func_emit_copyright_notice): Bump year.
111061         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
111063 2007-01-01  Bruno Haible  <bruno@clisp.org>
111065         Improve support for OpenBSD.
111066         * build-aux/config.rpath (libname_spec): Export.
111067         (library_names_spec): New variable. Export.
111068         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
111069         library_names_spec from the config.rpath output. Locate shared library
111070         through the name pattern in library_names_spec.
111072 2007-01-01  Eric Blake  <ebb9@byu.net>
111074         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
111076 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
111078         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
111079         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
111080         assume the C locale, and avoid an "eval" that could cause trouble.
111081         Problem with SORT reported by Bob Proulx.
111083         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
111084         Define.  Trivial patch from Henning Nielsen Lund, originally
111085         sent to bug-grep@gnu.org today.
111087 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
111089         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
111090         struct stat.  Problem reported by Henning Nielsen Lund.
111091         * lib/acl.c: Include acl.h first, to check interface.  Don't
111092         bother to include sys/types.h and sys/stat.h again.
111094 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
111096         Import the following change from libc; problem reported by
111097         Sven Verdoolaege.
111099         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
111101         [BZ #1373]
111102         * lib/argp.h: Remove __NTH for __argp_usage inline function.
111104 2006-12-28  Jim Meyering  <jim@meyering.net>
111106         * build-aux/announce-gen: Do not assume that the package
111107         builds any of tar.gz, tar.bz2, and .xdelta files.
111108         Suggestion from Simon Josefsson.
111110 2006-12-28  Simon Josefsson  <simon@josefsson.org>
111112         * modules/announce-gen: New file.
111114 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
111116         * lib/mbchar.h: Just include <wctype.h>; the wctype module
111117         handles its gotchas now.
111118         * lib/mbswidth.c: Likewise.
111119         * lib/wcwidth.h: Likewise.
111120         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
111121         and iswcntrl; the wctype module does this stuff now.
111122         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
111124         * modules/mbchar (Depends-on): Add wctype.
111125         * modules/mbswidth (Depends-on): Likewise.
111126         * modules/wcwidth (Depends-on): Likewise.
111128 2006-12-27  Eric Blake  <ebb9@byu.net>
111130         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
111131         module uses more than what <wctype.h> is required to provide.
111133 2006-12-26  Eric Blake  <ebb9@byu.net>
111135         * gnulib-tool (sed_extract_prog): Avoid space-tab.
111137 2006-12-26  Eric Blake  <ebb9@byu.net>
111139         * modules/absolute-header: New module.
111140         * modules/fcntl (Depends-on): Depend on it.
111141         * modules/inttypes (Depends-on): Likewise.
111142         * modules/stdint (Depends-on): Likewise.
111143         * modules/sys_stat (Depends-on): Likewise.
111144         * modules/wctype (Depends-on): Likewise.
111145         * MODULES.html.sh (Support for building libraries and
111146         executables): Document it.
111148 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
111150         * gnulib-tool (SED): Remove, undoing previous change.
111151         The problem was that it broke coreutils on Solaris, because
111152         "sed --posix" leaked into a makefile.
111153         (sed): New alias, if 'alias' and GNU sed.
111155 2006-12-24  Jim Meyering  <jim@meyering.net>
111157         Work around an fchownat bug in glibc-2.4:
111158         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
111159         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
111160         in spite of the -P option.
111161         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
111162         New macros.
111163         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
111164         * modules/openat (Files): Add lib/fchownat.c.
111165         * lib/openat.c (fchownat): Don't define here.  Move to...
111166         * lib/fchownat.c: ...this new file.
111168 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
111170         Fix bug reported by Bruno Haible in
111171         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
111172         where quotearg.c didn't compile on Mac OS X 10.2 because it
111173         lacks <wchar.h> and wint_t.
111174         * lib/wctype_.h (__wctype_wint_t): New type.
111175         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
111176         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
111177         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
111178         Arg is now of type __wctype_wint_t, not wint_t.
111179         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
111180         substitute HAVE_WINT_T.
111181         * modules/wctype (Files): Add m4/wint_t.m4.
111182         (wctype.h): Substitute HAVE_WINT_T.
111184 2006-12-23  Bruno Haible  <bruno@clisp.org>
111186         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
111188 2006-12-23  Bruno Haible  <bruno@clisp.org>
111190         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
111191         S_ISLNK.
111192         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
111193         mingw.
111195 2006-12-22  Bruno Haible  <bruno@clisp.org>
111197         * lib/copy-file.c: Include acl.h.
111198         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
111199         Close the file descriptors only after being done with copy_acl.
111200         * modules/copy-file (Depends-on): Add acl.
111202 2006-12-22  Bruno Haible  <bruno@clisp.org>
111204         * gnulib-tool (SED): New variable.
111205         Use $SED instead of sed everywhere.
111207 2006-12-22  Bruno Haible  <bruno@clisp.org>
111209         * modules/no-c++: New file.
111210         * m4/no-c++.m4: New file.
111211         * MODULES.html.sh (Support for building libraries and executables):
111212         Add no-c++.
111214 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
111216         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111217         Include <limits.h>, and use its INT_MAX to rewrite the
111218         j loop so that it does not overflow 'int'.  Problem reported by
111219         Ralf Wildenhues in
111220         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
111221         Play it safe by shifting left by 1 rather than multiplying by 2,
111222         as GCC is less likely to optimize this away when the value
111223         is signed (when it assumes overflow leads to undefined behavior).
111224         Also, don't assume time_t uses two's complement.
111226 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
111228         * MODULES.html.sh: New module wctype.
111229         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
111230         * lib/fnmatch.c: Don't bother to include <wchar.h> before
111231         <wctype.h>, since the new wctype module should fix this.
111232         * lib/quotearg.c: Include <wctype.h> unconditionally, since
111233         the wctype module should arrange for it.
111234         * lib/regex_internal.h: Likewise.
111235         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
111236         since the wctype module should handle this now.
111237         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
111238         * modules/fnmatch (Depends-on): Add wctype.
111239         * modules/quotearg (Depends-on): Likewise.
111240         * modules/regex (Depends-on): Likewise.
111242 2006-12-19  Bruno Haible  <bruno@clisp.org>
111244         * lib/strdup.h [C++]: Wrap definitions in extern "C".
111245         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
111247 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111249         * modules/savewd (Depends-on): Fix dependency on fcntl.
111251 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111253         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
111254         conforms to C99, rather than relying on the user's environment
111255         setting of STDINT_H.
111257 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111258         and Eric Blake  <ebb9@byu.net>
111260         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
111261         This is more consistent with the other defines here.
111262         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
111263         Port to z/OS.  Problem reported by Paul Gilmartin.
111264         Change local vars to use gl_ prefix rather than ac_.
111265         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
111266         with other defines.
111267         * modules/double-slash-root: New module.
111268         * modules/dirname (Files): Remove m4/double-slash-root.m4.
111269         (Depends-on): Add double-slash-root.
111270         * MODULES.html.sh (File system functions): Mention new module.
111272 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
111274         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
111275         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
111276         This is for the benefit of gzip, which doesn't do i18n.
111278 2006-12-12  Jim Meyering  <jim@meyering.net>
111280         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
111281         Reported by Andreas Schwab <schwab@suse.de>.
111283 2006-12-12  Bruno Haible  <bruno@clisp.org>
111285         Merge these changes.
111286         2006-09-05  Bruno Haible  <bruno@clisp.org>
111287         * lib/iconvme.c (iconv_string): No need to save and restore errno when
111288         iconv_alloc succeeded.
111289         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
111290         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
111291         test for " && dest " at the end - dest is always != NULL there. Call
111292         iconv with 4xNULL arguments initially, to reset the state. Call iconv
111293         with 2xNULL arguments, also to flush the state storage. Handle the
111294         IRIX iconv behaviour. Realloc the final result, to throw away unused
111295         memory.
111297 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
111299         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
111300         and fchmodat unconditionally, since glibc 2.4 has them.
111301         Problem reported by Arkadiusz Miskiewicz.
111303 2006-12-10  Bruno Haible  <bruno@clisp.org>
111305         * gnulib-tool (func_import): Show the include files only for those
111306         modules that are copied and specified.
111307         Reported by Karl Berry.
111309 2006-12-08  Jim Meyering  <jim@meyering.net>
111311         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
111312         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
111314         * build-aux/announce-gen: Add two new options, both optional:
111315         --bootstrap-tools=TOOL_LIST
111316               a comma-separated list of tools, e.g.,
111317               autoconf,automake,bison,gnulib
111318         --gnulib-snapshot-date=DATE
111319               if gnulib is in the bootstrap tool list,
111320               then report this as the snapshot date.
111321               If not specified, use the current date/time.
111322               If you specify a date here, be sure it's UTC.
111324 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111326         * tests/test-argp-2.sh: Fix test to match actual output.
111327         (func_compare): Fix sed script to be portable.
111329 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111331         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
111332         workaround for this case.  It is not autoconfigured now; offhand
111333         it's hard to see how to autoconfigure it.
111335 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
111337         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
111338         a directory that is about to be chowned.  Such a directory's
111339         initial file permissions should permit the owner only and this
111340         should not be changed until after the chown, since the group and
111341         other bits would be incorrect if they granted permission before
111342         the chown.
111344         Fix porting problem for iswctype reported by Georg Schwarz in:
111345         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
111346         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
111347         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
111348         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
111349         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
111351 2006-12-03  Jim Meyering  <jim@meyering.net>
111353         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
111354         p->fts_statp may not yet be defined.
111355         (fts_read): Instead, set it in the caller, once p->fts_statp is
111356         sure to be defined, and corresponds to a top-level directory.
111357         This bug made du -x fail.  Here's the coreutils test case:
111358         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
111359         Reported by Mike Frysinger.
111361 2006-12-01  Jim Meyering  <jim@meyering.net>
111363         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
111364         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
111365         Reported by Simon Josefsson.
111367 2006-11-30  Jim Meyering  <jim@meyering.net>
111369         * m4/warning.m4: Use the all-permissive copyright notice
111370         recommended by RMS (rather than LGPL).
111371         * m4/vararrays.m4: Likewise.
111372         * m4/flexmember.m4: Likewise.
111374 2006-11-29  Bruno Haible  <bruno@clisp.org>
111376         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111377         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
111378         using +=.
111379         Reported by Simon Josefsson <simon@josefsson.org>.
111381 2006-11-28  James Youngman  <jay@gnu.org>
111383         * README: Advise users that they might find the bug-gnulib@gnu.org
111384         and autotools-announce@gnu.org mailing lists useful.
111386 2006-11-28  Bruno Haible  <bruno@clisp.org>
111388         * m4/ptrdiff_max.m4: Remove file.
111390 2006-11-21  Bruno Haible  <bruno@clisp.org>
111392         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
111393         _AC_COMPUTE_INT.
111394         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111395         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
111396         _AC_COMPUTE_INT.
111397         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111398         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
111399         _AC_COMPUTE_INT.
111400         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111402 2006-11-28  Jim Meyering  <jim@meyering.net>
111404         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
111405         warning from "gcc -Wshadow" about shadowing the builtin.
111407 2006-11-27  Bruno Haible  <bruno@clisp.org>
111409         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
111410         _AC_COMPUTE_INT.
111411         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111413 2006-11-27  Bruno Haible  <bruno@clisp.org>
111414             Paul Eggert  <eggert@cs.ucla.edu>
111416         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
111418 2006-11-26  Bruno Haible  <bruno@clisp.org>
111420         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111421         noinst_LTLIBRARIES.
111423 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111424             Bruno Haible  <bruno@clisp.org>
111426         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111427         if compiling with "gcc -ansi".
111429 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111431         Fix some incompatibilities with gcc -ansi -pedantic.
111432         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111433         if compiling pedantically with GCC, unless it's C99 or later.
111434         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111435         it mishandles gcc -ansi -pedantic as well.
111436         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111437         if gcc -pedantic.
111438         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111439         initializers for struct if -pedantic, unless it's C99 or later.
111441 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111443         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111444         Don't close an fd more than once. Identical atimes indicate
111445         success, not failure.
111447 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111449         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111451 2006-11-23  Jim Meyering  <jim@meyering.net>
111453         * build-aux/announce-gen: New file.  From coreutils.
111455 2006-11-22  Jim Meyering  <jim@meyering.net>
111457         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111458         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111459         (fts_read): Use a temporary to narrow the overused st_size member
111460         before using it in a switch statement.  Reported by Matthew Woehlke.
111462         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111463         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111465 2006-11-20  Bruno Haible  <bruno@clisp.org>
111467         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111468         changequote instead of pairs of brackets.
111469         Reported by Andreas Schwab <schwab@suse.de>.
111471 2006-11-21  Jim Meyering  <jim@meyering.net>
111473         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111474         so as to remain compatible with older compilers.
111475         Patch from Michael Deutschmann.
111477 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111479         * MODULES.html.sh (File system functions): Add openat.
111481         * lib/openat.h (rpl_fstatat): New macro, if
111482         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111483         (fstatat): Define to rpl_fstatat under the same conditions,
111484         unless COMPILING_FSTATAT.
111485         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111486         seems to have the bug.
111487         * lib/fstatat.c: New file.
111488         * modules/openat (Files): Add it.
111490 2006-11-20  Bruno Haible  <bruno@clisp.org>
111492         * Makefile: New file.
111494 2006-11-20  Jim Meyering  <jim@meyering.net>
111496         The beginnings of syntax-related checks for gnulib.
111497         * lib/Makefile: New file.
111498         * lib/t-idcache: New script.  Ensure that the two halves of
111499         idcache.c stay in sync.
111501         * lib/idcache.c: Adjust comments in user- and group- portions to
111502         be more accurate, and to be consistent with one another.
111504 2006-11-20  Jim Meyering  <jim@meyering.net>
111506         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111507         continue using the flexible array member (thus, this module performs
111508         half as many malloc calls), with the addition that...
111509         (getgroup, getuser): Consistently record a non-match via an empty
111510         "name" string, and map an empty string match to a NULL return value.
111511         * modules/idcache (Depends-on): Re-add flexmember.
111513         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111514         (getuidbyname, getgroup, getgidbyname): Likewise.
111516         Use cleaner syntax: NULL rather than 0.
111517         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111519 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111521         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111522         It mishandled the case where the group was missing.
111523         Problem reported by Greg Schafer.
111524         * modules/idcache: Likewise.
111526 2006-11-18  Jim Meyering  <jim@meyering.net>
111528         * check-module (%exempt_header): Add exception for some
111529         conditionally-included headers.
111531         * modules/i-ring (Depends-on): Add verify.
111532         (License): Change to LGPL.
111534 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111536         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111537         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111538         and inttostr.h.  Use snprintf rather than uinttostr, so that
111539         LGPLed code doesn't depend on GPLed.
111541 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111543         * modules/inline (License): Change from GPL to LGPL.
111545 2006-11-17  Jim Meyering  <jim@meyering.net>
111547         * modules/d-type (License): Switch to LGPL.
111549 2006-11-15  Bruno Haible  <bruno@clisp.org>
111551         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111553 2006-11-15  Eric Blake  <ebb9@byu.net>
111555         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111556         the module dependency.
111558 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111559             Bruno Haible  <bruno@clisp.org>
111561         * gnulib-tool (func_create_testdir): Add license consistency check.
111563 2006-11-15  Eric Blake  <ebb9@byu.net>
111565         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111566         random "(cached)" in configure output.
111568 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111570         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111571         test for conforming inttypes.h is both announced and cached.
111573         * MODULES.html.sh (seen_modules, seen_files): New variables.
111574         (func_module): Rewrite to use a few less gnulib-tool and sed
111575         invocations.  Avoid a couple of quadratic algorithms for ...
111576         (missed_modules, missed_files): ... these, with ...
111577         (func_append, func_tmpdir): ... these new functions, from
111578         gnulib-tool.  Analogously, install traps for cleanup.
111580         * tests/test-gc.c (main): Remove unused variables.
111581         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111583 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111585         * modules/inttostr (License): Change to LGPL.
111587 2006-11-14  Eric Blake  <ebb9@byu.net>
111589         * modules/tempname (License): Change to LGPL.
111591 2006-11-14  Eric Blake  <ebb9@byu.net>
111593         * doc/functions.texi (Function Portability): *printf functions on
111594         Cygwin now understand all POSIX size specifiers.
111596 2006-11-14  Bruno Haible  <bruno@clisp.org>
111598         * modules/c-ctype (License): Change to LGPL.
111600 2006-11-12  Bruno Haible  <bruno@clisp.org>
111602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111603         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111604         for GNOME libraries, for which the include files are installed in
111605         subdirectories of $prefix/include.
111607 2006-11-12  Bruno Haible  <bruno@clisp.org>
111609         * m4/lib-link.m4: Require at least autoconf-2.54.
111610         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111611         name to underscores for the --with option.
111613 2006-11-13  Bruno Haible  <bruno@clisp.org>
111615         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111616         the tests directory.
111617         Reported by Ralf Wildenhues.
111619 2006-11-13  Bruno Haible  <bruno@clisp.org>
111621         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111622         (func_emit_initmacro_end): Undo the override here.
111623         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111624         Works around the famous automake error in coreutils.
111626 2006-11-13  Eric Blake  <ebb9@byu.net>
111628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111629         element, not its node.
111631 2006-11-12  Bruno Haible  <bruno@clisp.org>
111633         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111634         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111636 2006-11-12  Bruno Haible  <bruno@clisp.org>
111638         * gnulib-tool: New option --local-symlink.
111639         (func_usage): Document it.
111640         (lsymbolic): New variable.
111641         (func_import, func_create_testdir): If --symlink was not specified,
111642         test whether --local-symlink was specified and the file comes from
111643         the local_gnulib_dir.
111645 2006-11-12  Bruno Haible  <bruno@clisp.org>
111647         * gnulib-tool (func_ln): New function.
111648         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111650 2006-11-12  Bruno Haible  <bruno@clisp.org>
111652         Finish support for source files in subdirectories.
111653         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111654         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111655         AUTOMAKE_OPTIONS.
111656         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111658 2006-11-12  Bruno Haible  <bruno@clisp.org>
111660         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111661         EXTRA_lib_SOURCES augmentation.
111662         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111664 2006-11-12  Jim Meyering  <jim@meyering.net>
111666         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111667         file descriptors.  This also averts a failure on systems with
111668         native openat support when a traversed directory lacks "x" access.
111669         * lib/fts_.h: Include "i-ring.h"
111670         (struct FTS) [fts_fd_ring]: New member.
111671         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111672         (FCHDIR): Add parentheses.
111673         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111674         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111675         When descending, rather than simply closing the previous
111676         fts_cwd_fd value, push that file descriptor onto the ring.
111677         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111678         (fts_open): Initialize the new fd_ring member.
111679         (fts_close): Clear the ring.
111680         (fts_safe_changedir): When possible, use our new fd_ring to skip
111681         the diropen and fstat and dev/ino comparison that would normally
111682         accompany a virtual `chdir ("..")'.
111684         * modules/fts (Depends-on): Add i-ring.
111685         * modules/i-ring: New module.
111686         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111687         * m4/i-ring.m4: New file.
111689 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111691         * gnulib-tool (func_create_testdir): Fix replacement of
111692         `build-aux' in configure.ac.  Run autotools in gltests
111693         subdirectory.
111694         (func_create_testdir, func_create_megatestdir, test): There is
111695         no need for '--force' in most autotool invocations in a new
111696         tree.  Actually fail the whole test if any of the tools, or the
111697         configure or make stages fail.
111699         Sync from Automake.
111700         * build-aux/gnupload: Revert last change.  Add pointer to upload
111701         instructions of the GNU Maintenance Instructions.
111702         Suggestion by Karl Berry.
111704 2006-11-10  Jim Meyering  <jim@meyering.net>
111706         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111708 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111710         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111711         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111712         (bind_textdomain_codeset) [! ENABLE_NLS]:
111713         Evaluate all the arguments.  That way, callers get compatible behavior
111714         if the arguments have side effects.  Also, it avoids some GCC
111715         diagnostics in some cases; Joel E. Denny reported problems when Bison
111716         was configured with --enable-gcc-warnigs.
111718 2006-11-10  Jim Meyering  <jim@meyering.net>
111720         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111721         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111722         account.
111724 2006-11-10  Jim Meyering  <jim@meyering.net>
111726         * modules/inline: New file/module.
111727         * modules/xalloc (Files): Remove m4/inline.m4.
111728         (Depends-on): Add inline, instead.
111729         * modules/oset: Likewise.
111730         * modules/list: Likewise.
111732 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111734         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111735         Problem reported by Matthew Woehlke.
111737 2006-11-09  Bruno Haible  <bruno@clisp.org>
111739         * lib/tempname.c (gen_tempname): Remove variant that invokes
111740         __gen_tempname.
111741         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111742         __gen_tempname.
111744 2006-11-08  Bruno Haible  <bruno@clisp.org>
111746         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111747         to 'yes' instead of 'cross-compiling'.
111749 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111751         * lib/quotearg.h (quotearg_free): New decl.
111752         * lib/quotearg.c (quotearg_free): New function.
111753         (slot0, nslots, slotvec0, slotvec):
111754         Now file-scope so that quotearg_free can get at them.
111756 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111758         Sync from Automake.
111759         * build-aux/gnupload: Add missing 'gnu' to example URL.
111760         Report by Karl Berry.
111762 2006-11-08  Bruno Haible  <bruno@clisp.org>
111764         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111765         Suggested by Paul Eggert.
111767 2006-11-08  Jim Meyering  <jim@meyering.net>
111769         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111770         It's already included if !_LIBC.
111771         (fts_safe_changedir): Add a comment.
111773 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111775         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111776         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111777         Matthew Woehlke.
111779         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111780         definitions up, to avoid colliding with change below.
111781         (static_inline) [HAVE_INLINE]: New macro.
111782         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111783         Provide extern decls when !HAVE_INLINE.  Do not define unless
111784         static_inline is defined, either by us or by xmalloc.c.  Use
111785         static_inline rather than static inline.
111786         (XCALLOC): Optimize sizeof(T) = 1 case.
111787         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111789 2006-11-07  Bruno Haible  <bruno@clisp.org>
111791         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111792         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111793         AC_C_INLINE.
111794         * modules/xalloc (Files): Add m4/inline.m4.
111796 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111798         * README: Fix typo.
111799         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111800         (Miscellanous Notes): ...from this.
111802 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111804         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111805         Mention that offsetof should be used instead of sizeof.
111806         From Bruno Haible.
111808 2006-11-07  Bruno Haible  <bruno@clisp.org>
111810         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111812 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111814         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111815         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111816         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111817         (gl_tree_add_before, gl_tree_add_after):
111818         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111819         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111820         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111821         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111822         (gl_linked_add_after, gl_linked_add_at): Likewise.
111823         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111824         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111825         (gl_tree_add_before, gl_tree_add_after): Likewise.
111826         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111827         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111828         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111830 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111832         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111834 2006-11-06  Bruno Haible  <bruno@clisp.org>
111836         * m4/inline.m4: New file.
111837         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111838         * modules/list (Files): Add m4/inline.m4.
111839         * modules/oset (Files): Likewise.
111841 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111843         * lib/idcache.c: Include <stddef.h>, for offsetof.
111844         (struct userid.name): Change from char * to a flexible array member.
111845         All uses changed.
111846         * modules/idcache (Depends-on): Add flexmember.
111848         * MODULES.html.sh (Core language properties): New module flexmember.
111849         * modules/flexmember, m4/flexmember.m4: New files.
111851         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111852         inline functions that are identical with the old xnmalloc_inline,
111853         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111854         that we can avoid some unnecessary integer multiplications and
111855         divisions in the common case where the element size is known at
111856         compile time.
111857         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111858         needed.
111859         (xnboundedmalloc): Remove.
111860         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111861         arguments, for consistency with rest of this header.
111862         (xcharalloc): Rewrite using XNMALLOC.
111863         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111864         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111865         versions have been moved to lib/xalloc.h and renamed to be the
111866         non-*_inline versions.
111867         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111868         and xnrealloc functions, since those functions are now inline and
111869         now call us.
111870         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111871         renaming described above.
111872         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111873         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111874         captures the dependency in AC_C_INLINE.
111876         New module canonicalize-lgpl, proposed by Charles Wilson in
111877         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111878         with a few small changes afterwards.
111879         * MODULES.html.sh (File system functions): New module
111880         canonicalize-lgpl.
111881         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111882         and canonicalize_file_name.
111883         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111884         * modules/canonicalize-lgpl: New files.
111886 2006-11-05  Bruno Haible  <bruno@clisp.org>
111888         * gnulib-tool (func_import, func_create_testdir): Create directories
111889         also for files in subdirectories of lib/.
111891 2006-11-05  Bruno Haible  <bruno@clisp.org>
111893         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111894         ANSI C compliant.
111896 2006-11-03  Bruno Haible  <bruno@clisp.org>
111898         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111899         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111900         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111901         (xnboundedmalloc): New inline function.
111902         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111903         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111904         xmalloc.
111905         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111906         xmalloc.
111907         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111908         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111909         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111910         xmalloc.
111911         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111912         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111913         xmalloc.
111914         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111915         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111916         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111917         xmalloc.
111918         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111919         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111920         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111921         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111922         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111923         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111924         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111926 2006-11-03  Bruno Haible  <bruno@clisp.org>
111928         * lib/c-ctype.h [C++]: Define functions without name mangling.
111929         * lib/fwriteerror.h [C++]: Likewise.
111930         * lib/gcd.h [C++]: Likewise.
111931         * lib/linebreak.h [C++]: Likewise.
111933 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111935         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111936         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111937         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111938         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111939         Check for functions and headers just once.
111940         Check for declaration of canonicalize_file_name.
111941         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111943 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111945         * gnulib-tool (func_import): Fix typo in actioncmd.
111947 2006-11-02  Bruno Haible  <bruno@clisp.org>
111949         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111950         newline sequence in the Makefile.am snippet as a space, like "make"
111951         does.
111952         Reported by Roger Persson <perrog@gmail.com>.
111954 2006-11-01  Bruno Haible  <bruno@clisp.org>
111956         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111957         already declared in <string.h>.
111958         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111960 2006-11-01  Bruno Haible  <bruno@clisp.org>
111962         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111963         * lib/strcase.h: Include <string.h>.
111964         (strcasecmp): Define to rpl_strcasecmp here.
111966 2006-11-01  Bruno Haible  <bruno@clisp.org>
111968         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111970 2006-11-01  Eric Blake  <ebb9@byu.net>
111972         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111976 2006-10-29  Bruno Haible  <bruno@clisp.org>
111978         Make it compile in C++ mode.
111979         * lib/full-write.c (full_rw): Add a cast.
111981 2006-11-01  Bruno Haible  <bruno@clisp.org>
111983         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111984         be POSIX compliant.
111985         Reported by Roger Persson <perrog@gmail.com>.
111987 2006-11-01  Eric Blake  <ebb9@byu.net>
111989         * lib/getopt_.h: Fix comments.
111991 2006-10-31  Eric Blake  <ebb9@byu.net>
111993         * modules/tmpdir (Depends-on): Add sys_stat.
111994         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111995         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111996         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111997         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111998         tempname.
112000 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
112002         Avoid some C++ diagnostics reported by Bruno Haible.
112003         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
112004         xmalloc.
112005         (quotearg_alloc): Use xcharalloc rather than xmalloc.
112006         (struct slotvec): Move to top level.
112007         (quotearg_n_options): Rewrite to avoid xmalloc.
112008         * lib/xalloc.h (xcharalloc): New function.
112009         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
112010         [defined __cplusplus]: Add function template that provides result
112011         type propagation.  This part of the change is from Bruno Haible.
112013 2006-10-29  Bruno Haible  <bruno@clisp.org>
112015         Make it compile in C++ mode.
112016         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
112017         * lib/strnlen1.c (strnlen1): Cast memchr result.
112018         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
112019         * lib/clean-temp.c (string_equals, string_hash): Add casts.
112020         (create_temp_dir): Rename local variable 'template'.
112021         (compile_csharp_using_sscli): Add cast.
112022         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
112023         * lib/findprog.c (find_in_path): Likewise.
112024         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
112025         * lib/wait-process.c (register_slave_subprocess): Likewise.
112027 2006-10-22  Bruno Haible  <bruno@clisp.org>
112029         * modules/tsearch: New file.
112030         * lib/tsearch.h: New file.
112031         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
112032         * m4/tsearch.m4: New file.
112033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
112035 2006-10-29  Eric Blake  <ebb9@byu.net>
112037         * lib/arcfour.c: Assume config.h.
112038         * lib/arctwo.c: Likewise.
112039         * lib/base64.c: Likewise.
112040         * lib/check-version.c: Likewise.
112041         * lib/crc.c: Likewise.
112042         * lib/des.c: Likewise.
112043         * lib/gc-gnulib.c: Likewise.
112044         * lib/gc-libgcrypt.c: Likewise.
112045         * lib/gc-pbkdf2-sha1.c: Likewise.
112046         * lib/getaddrinfo.c: Likewise.
112047         * lib/getdelim.c: Likewise.
112048         * lib/getline.c: Likewise.
112049         * lib/hmac-md5.c: Likewise.
112050         * lib/hmac-sha1.c: Likewise.
112051         * lib/iconvme.c: Likewise.
112052         * lib/md2.c: Likewise.
112053         * lib/md4.c: Likewise.
112054         * lib/memxor.c: Likewise.
112055         * lib/read-file.c: Likewise.
112056         * lib/readline.c: Likewise.
112057         * lib/rijndael-alg-fst.c: Likewise.
112058         * lib/rijndael-api-fst.c: Likewise.
112059         * lib/xgetdomainname.c: Likewise.
112061 2006-10-28  Eric Blake  <ebb9@byu.net>
112063         * lib/xstrndup.c: Assume config.h.
112065 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
112067         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
112068         stat-macros.h is now for our own macros, whereas stat_h is for
112069         macros in the <sys/stat.h> name space.
112070         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
112071         (STAT_MACROS_H): Remove.
112072         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
112073         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
112074         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
112075         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
112076         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
112077         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
112078         Move these macros to ...
112079         * lib/stat_.h: here.  Don't include stat-macros.h.
112080         * lib/canonicalize.c: Don't include stat-macros.h.
112081         * lib/chown.c: Likewise.
112082         * lib/euidaccess.c: Likewise.
112083         * lib/file-type.c: Likewise.
112084         * lib/filemode.c: Likewise.
112085         * lib/glob.c: Likewise.
112086         * lib/isapipe.c: Likewise.
112087         * lib/lchown.c: Likewise.
112088         * lib/lstat.c: Likewise.
112089         * lib/mkdir-p.c: Likewise.
112090         * lib/rmdir.c: Likewise.
112091         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
112092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
112093         unless mkdir isn't declared, to speed up 'configure'.
112094         Always create sys/stat.h, since it's unlikely any real sys/stat.h
112095         would define all the S_* symbols.
112096         * modules/canonicalize (Depends-on):
112097         Depend on sys_stat, not stat-macros.
112098         * modules/chown: Likewise.
112099         * modules/euidaccess: Likewise.
112100         * modules/filemode: Likewise.
112101         * modules/file-type: Likewise.
112102         * modules/glob: Likewise.
112103         * modules/isapipe: Likewise.
112104         * modules/lchown: Likewise.
112105         * modules/lstat: Likewise.
112106         * modules/mkancesdirs: Likewise.
112107         * modules/rmdir: Likewise.
112108         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
112109         * modules/modechange: Likewise.
112110         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
112111         (configure.ac): Remove gl_STAT_MACROS.
112112         * modules/sys_stat (Depends-on): Remove stat-macros.
112114 2006-10-27  Bruno Haible  <bruno@clisp.org>
112116         * m4/signed.m4: Remove file.
112117         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
112118         invocation.
112119         * modules/vasnprintf (Files): Remove m4/signed.m4.
112121 2006-10-27  Bruno Haible  <bruno@clisp.org>
112123         Update to GNU gettext 0.16.
112124         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
112125         m4/inttypes-h.m4, m4/signed.m4.
112126         * m4/gettext.m4: Update to GNU gettext 0.16.
112127         * m4/intl.m4: New file, from GNU gettext.
112128         * m4/intldir.m4: New file, from GNU gettext.
112129         * config/srclist.txt: Update
112131 2006-10-27  Eric Blake  <ebb9@byu.net>
112133         * MODULES.html.sh: Document tempname.
112134         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
112135         dependencies.
112136         (Files): Move lib/tempname.c...
112137         * modules/tempname: ...to this new module.
112138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
112139         (gl_PREREQ_TEMPNAME): Move...
112140         * m4/tempname.m4: ...to this new file.
112141         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
112142         * modules/sys_stat (Depends-on): Add stat-macros.
112143         * lib/stat_.h (includes): Pick up stat macros.
112144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
112145         if stat macros are broken.
112146         * lib/tempname.c (includes): No need to include "stat-macros.h".
112147         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
112148         (direxists, __path_search) [!_LIBC]: Don't compile these in
112149         gnulib; the tmpdir module covers that.
112150         * lib/tempname.h: New file.
112152 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
112154         * COPYING: Explain how gnulib-tool converts licence headers.
112155         Almost all wording by Eric Blake.
112157 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
112159         * lib/mbchar.h (is_basic_table): Make read-only.
112160         * lib/mbchar.c (is_basic_table): Likewise.
112161         Reported by John Darrington.
112163 2006-10-25  Bruno Haible  <bruno@clisp.org>
112165         * lib/progname.h (set_program_name): Undefine before defining.
112167 2006-10-25  Bruno Haible  <bruno@clisp.org>
112169         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
112170         false for non-gcc C++ compilers.
112171         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
112173 2006-10-24  Bruno Haible  <bruno@clisp.org>
112175         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
112176         iconv implementations like Irix iconv.
112178 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112180         * modules/vararrays: New file.
112181         * m4/vararrays.m4: New file, taken from diffutils.
112182         * MODULES.html.sh: New module vararrays.
112184 2006-10-24  Karl Berry  <karl@gnu.org>
112186         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
112187         Don't call GNU Unix.
112189 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112191         * users.txt: Add Libtool.
112193         Sync from Libtool:
112195         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112197         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
112198         to gnulib's policy of including config.h unconditionally.
112200 2006-10-24  Bruno Haible  <bruno@clisp.org>
112202         * modules/wcwidth (Files): Add m4/wint_t.m4.
112203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
112204         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
112206 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112208         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
112209         to pacify GCC with some -W flags enabled.  Problem reported by
112210         Bruno Haible.
112212 2006-10-24  Jim Meyering  <jim@meyering.net>
112214         * MODULES.html.sh: Remove uinttostr.  It's not a module.
112215         Reported by Karl Berry.
112217 2006-10-23  Bruno Haible  <bruno@clisp.org>
112219         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
112221 2006-10-24  Bruno Haible  <bruno@clisp.org>
112223         * lib/gl_list.h: Use C comment style, not C++ comment style.
112225 2006-10-23  Eric Blake  <ebb9@byu.net>
112227         * lib/getaddrinfo.c (includes): Add missing include.
112229 2006-10-23  Bruno Haible  <bruno@clisp.org>
112230             Paul Eggert  <eggert@cs.ucla.edu>
112232         Ability to rename obstack_free.
112233         * lib/obstack.h (__obstack_free): New macro. Declare instead of
112234         obstack_free.
112235         (obstack_free): Invoke the __obstack_free macro.
112236         * lib/obstack.c (obstack_free): Use __obstack_free macro.
112238 2006-10-23  Bruno Haible  <bruno@clisp.org>
112239             Paul Eggert  <eggert@cs.ucla.edu>
112241         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
112242         __argc, __argv from the declaration. (They are defined as macros on
112243         mingw.)
112245 2006-10-22  Bruno Haible  <bruno@clisp.org>
112247         * doc/gnulib-intro.texi: New file.
112248         * doc/gnulib.texi: Include it.
112250 2006-10-21  Bruno Haible  <bruno@clisp.org>
112252         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
112253         "Introduction", "Miscellanous Notes", "Particular Modules".
112255 2006-10-21  Bruno Haible  <bruno@clisp.org>
112257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112258         Change mostlyclean-local rule to avoid sh syntax error from bash
112259         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
112261 2006-10-23  Jim Meyering  <jim@meyering.net>
112263         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
112264         in place of snprintf.
112266         * modules/inttostr (Files): Add lib/uinttostr.c.
112267         * lib/uinttostr.c (inttostr): New file/function.
112268         * lib/inttostr.h (uinttostr): Declare.
112269         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
112270         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
112271         Add uinttostr.
112272         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
112274 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112276         * lib/canonicalize.c (ELOOP): Define if not already defined.
112277         Problem reported by Bruno Haible in
112278         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
112280 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112282         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
112283         Problem reported by Perry Smith and Ville Laurikari.
112285         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
112286         uses.
112288 2006-10-19  Bruno Haible  <bruno@clisp.org>
112290         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
112291         for mingw.
112293 2006-10-19  Bruno Haible  <bruno@clisp.org>
112295         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
112296         Needed for mingw.
112298 2006-10-19  Bruno Haible  <bruno@clisp.org>
112300         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
112302 2006-10-19  Bruno Haible  <bruno@clisp.org>
112304         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
112305         it.
112307 2006-10-19  Bruno Haible  <bruno@clisp.org>
112309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
112310         invocation.
112312 2006-10-19  Bruno Haible  <bruno@clisp.org>
112314         * gnulib-tool (func_create_testdir): Don't include ftruncate and
112315         mountlist by default.
112317 2006-10-16  Bruno Haible  <bruno@clisp.org>
112319         * lib/c-strstr.c: Include c-strstr.h.
112321 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112323         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
112324         in a slash.
112326 2006-10-18  Bruno Haible  <bruno@clisp.org>
112328         * lib/lock.h [C++]: Wrap definitions in extern "C".
112330 2006-10-18  Bruno Haible  <bruno@clisp.org>
112332         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
112333         gl_LIBOBJS list.
112335 2006-10-18  Bruno Haible  <bruno@clisp.org>
112337         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
112339 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
112341         * lib/xstrtol.h: Include gettext.h.
112342         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
112343         Problem reported by Eric Blake.
112344         * modules/xstrtol (Depends-on): Add gettext-h.
112346 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
112348         * lib/strftime.c (advance): New macro.
112349         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
112350         incomplete type, so you can't add 0 to it.  Problem and patch
112351         reported by Eelco Dolstra for dietlibc.
112353 2006-10-18  Jim Meyering  <jim@meyering.net>
112355         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
112356         type for a local, and rename it: s/up/user_proc/.
112358 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
112360         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
112361         READ_UTMP_USER_PROCESS.
112362         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
112364 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
112366         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
112367         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
112369 2006-10-17  Eric Blake  <ebb9@byu.net>
112371         * lib/sigprocmask.c (sigprocmask): Fix typo.
112373         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
112375         * modules/clean-temp (Makefile.am): Don't add to make output...
112376         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
112377         config.h.
112379 2006-10-17  Bruno Haible  <bruno@clisp.org>
112381         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
112382         differently if DEFAULT_TEXT_DOMAIN is set.
112384 2006-10-16  Bruno Haible  <bruno@clisp.org>
112386         * lib/clean-temp.c: Include fwriteerror.h.
112388 2006-10-16  Bruno Haible  <bruno@clisp.org>
112390         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
112392 2006-10-16  Bruno Haible  <bruno@clisp.org>
112394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
112395         * lib/sigprocmask.h: Include <sys/types.h>.
112396         (sigset_t): Use the system's definition if present.
112398 2006-10-17  Eric Blake  <ebb9@byu.net>
112400         * lib/xvasprintf.c (includes): Assume config.h.
112401         * lib/xasprintf.c (includes): Likewise.
112403 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
112405         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
112406         at least as wide as intmax_t.
112408 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
112410         (Imported from Automake.)
112411         * build-aux/gnupload: Update to version 1.1 of directive file.
112413 2006-10-16  Eric Blake  <ebb9@byu.net>
112415         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
112416         match Automake 1.10a.
112418 2006-10-14  Bruno Haible  <bruno@clisp.org>
112420         * modules/sigprocmask: New file.
112421         * lib/sigprocmask.h: New file.
112422         * lib/sigprocmask.c: New file.
112423         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112424         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112425         request sigprocmask.o.
112426         (gl_PREREQ_SIGPROCMASK): New macro.
112427         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112428         (Depends-on): Add sigprocmask.
112429         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112430         gt_SIGNALBLOCKING. Test for 'raise' only once.
112431         * lib/fatal-signal.c: Include sigprocmask.h.
112432         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112433         unblock_fatal_signals): Define always.
112434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112435         sigprocmask.
112437 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112439         Sync from Automake.
112440         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112441         which incorrectly sets the mode of an existing destination
112442         directory.  In some cases the unpatched install-sh could do the
112443         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112444         system.  We hope this is rare in practice, but it's clearly worth
112445         fixing.  Problem reported by Alex Unleashed in
112446         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112447         Also, don't bother to check for -m bugs unless we're using -m;
112448         suggested by Stepan Kasal.
112450 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112452         Sync from Automake.
112453         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112454         `-c' flag, so they appear at the same position as in %FASTDEP%
112455         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112456         which ignores unknown options only after the first non-option.
112457         Bug report against M4 by Nelson H. F. Beebe.
112459 2006-10-13  Jim Meyering  <jim@meyering.net>
112461         Fix a bug in yesterday's change.
112462         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112463         p->fts_statp->st_dev would be used uninitialized.
112464         Ensures that we always call fts_stat on the very first entry.
112465         Miklos Szeredi reported that find -xdev stopped working.
112467 2006-10-12  Bruno Haible  <bruno@clisp.org>
112469         * gnulib-tool (func_get_automake_snippet): Append an automatically
112470         computed EXTRA_DIST augmentation.
112471         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112472         * modules/alloca-opt (Makefile.am): Likewise.
112473         * modules/allocsa (Makefile.am): Likewise.
112474         * modules/arcfour (Makefile.am): Likewise.
112475         * modules/arctwo (Makefile.am): Likewise.
112476         * modules/argmatch (Makefile.am): Likewise.
112477         * modules/argz (Makefile.am): Likewise.
112478         * modules/atexit (Makefile.am): Likewise.
112479         * modules/backupfile (Makefile.am): Likewise.
112480         * modules/byteswap (Makefile.am): Likewise.
112481         * modules/c-strtod (Makefile.am): Likewise.
112482         * modules/c-strtold (Makefile.am): Likewise.
112483         * modules/calloc (Makefile.am): Likewise.
112484         * modules/canon-host (Makefile.am): Likewise.
112485         * modules/canonicalize (Makefile.am): Likewise.
112486         * modules/chdir-long (Makefile.am): Likewise.
112487         * modules/chdir-safer (Makefile.am): Likewise.
112488         * modules/check-version (Makefile.am): Likewise.
112489         * modules/chown (Makefile.am): Likewise.
112490         * modules/cloexec (Makefile.am): Likewise.
112491         * modules/close-stream (Makefile.am): Likewise.
112492         * modules/closeout (Makefile.am): Likewise.
112493         * modules/crc (Makefile.am): Likewise.
112494         * modules/csharpexec (Makefile.am): Likewise.
112495         * modules/cycle-check (Makefile.am): Likewise.
112496         * modules/des (Makefile.am): Likewise.
112497         * modules/dev-ino (Makefile.am): Likewise.
112498         * modules/dirfd (Makefile.am): Likewise.
112499         * modules/dirname (Makefile.am): Likewise.
112500         * modules/dup2 (Makefile.am): Likewise.
112501         * modules/eealloc (Makefile.am): Likewise.
112502         * modules/error (Makefile.am): Likewise.
112503         * modules/euidaccess (Makefile.am): Likewise.
112504         * modules/exclude (Makefile.am): Likewise.
112505         * modules/exitfail (Makefile.am): Likewise.
112506         * modules/fcntl-safer (Makefile.am): Likewise.
112507         * modules/fcntl (Makefile.am): Likewise.
112508         * modules/file-type (Makefile.am): Likewise.
112509         * modules/fileblocks (Makefile.am): Likewise.
112510         * modules/filemode (Makefile.am): Likewise.
112511         * modules/filenamecat (Makefile.am): Likewise.
112512         * modules/fnmatch (Makefile.am): Likewise.
112513         * modules/fopen-safer (Makefile.am): Likewise.
112514         * modules/fpending (Makefile.am): Likewise.
112515         * modules/fprintftime (Makefile.am): Likewise.
112516         * modules/free (Makefile.am): Likewise.
112517         * modules/fsusage (Makefile.am): Likewise.
112518         * modules/ftruncate (Makefile.am): Likewise.
112519         * modules/fts (Makefile.am): Likewise.
112520         * modules/gc-arcfour (Makefile.am): Likewise.
112521         * modules/gc-des (Makefile.am): Likewise.
112522         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112523         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112524         * modules/gc-md4 (Makefile.am): Likewise.
112525         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112526         * modules/gc-sha1 (Makefile.am): Likewise.
112527         * modules/gc (Makefile.am): Likewise.
112528         * modules/getaddrinfo (Makefile.am): Likewise.
112529         * modules/getcwd (Makefile.am): Likewise.
112530         * modules/getdelim (Makefile.am): Likewise.
112531         * modules/getdomainname (Makefile.am): Likewise.
112532         * modules/getgroups (Makefile.am): Likewise.
112533         * modules/gethostname (Makefile.am): Likewise.
112534         * modules/gethrxtime (Makefile.am): Likewise.
112535         * modules/getline (Makefile.am): Likewise.
112536         * modules/getloadavg (Makefile.am): Likewise.
112537         * modules/getlogin_r (Makefile.am): Likewise.
112538         * modules/getndelim2 (Makefile.am): Likewise.
112539         * modules/getopt (Makefile.am): Likewise.
112540         * modules/getpagesize (Makefile.am): Likewise.
112541         * modules/getpass-gnu (Makefile.am): Likewise.
112542         * modules/getpass (Makefile.am): Likewise.
112543         * modules/getsubopt (Makefile.am): Likewise.
112544         * modules/gettime (Makefile.am): Likewise.
112545         * modules/gettimeofday (Makefile.am): Likewise.
112546         * modules/getugroups (Makefile.am): Likewise.
112547         * modules/getusershell (Makefile.am): Likewise.
112548         * modules/glob (Makefile.am): Likewise.
112549         * modules/group-member (Makefile.am): Likewise.
112550         * modules/hard-locale (Makefile.am): Likewise.
112551         * modules/hash (Makefile.am): Likewise.
112552         * modules/hmac-md5 (Makefile.am): Likewise.
112553         * modules/hmac-sha1 (Makefile.am): Likewise.
112554         * modules/human (Makefile.am): Likewise.
112555         * modules/idcache (Makefile.am): Likewise.
112556         * modules/imaxabs (Makefile.am): Likewise.
112557         * modules/imaxdiv (Makefile.am): Likewise.
112558         * modules/inet_ntop (Makefile.am): Likewise.
112559         * modules/inet_pton (Makefile.am): Likewise.
112560         * modules/intprops (Makefile.am): Likewise.
112561         * modules/inttostr (Makefile.am): Likewise.
112562         * modules/inttypes (Makefile.am): Likewise.
112563         * modules/isapipe (Makefile.am): Likewise.
112564         * modules/javaversion (Makefile.am): Likewise.
112565         * modules/lchmod (Makefile.am): Likewise.
112566         * modules/lchown (Makefile.am): Likewise.
112567         * modules/localcharset (Makefile.am): Likewise.
112568         * modules/long-options (Makefile.am): Likewise.
112569         * modules/lstat (Makefile.am): Likewise.
112570         * modules/malloc (Makefile.am): Likewise.
112571         * modules/mathl (Makefile.am): Likewise.
112572         * modules/mbchar (Makefile.am): Likewise.
112573         * modules/md2 (Makefile.am): Likewise.
112574         * modules/md4 (Makefile.am): Likewise.
112575         * modules/md5 (Makefile.am): Likewise.
112576         * modules/memcasecmp (Makefile.am): Likewise.
112577         * modules/memchr (Makefile.am): Likewise.
112578         * modules/memcmp (Makefile.am): Likewise.
112579         * modules/memcoll (Makefile.am): Likewise.
112580         * modules/memcpy (Makefile.am): Likewise.
112581         * modules/memmem (Makefile.am): Likewise.
112582         * modules/memmove (Makefile.am): Likewise.
112583         * modules/mempcpy (Makefile.am): Likewise.
112584         * modules/memrchr (Makefile.am): Likewise.
112585         * modules/memset (Makefile.am): Likewise.
112586         * modules/memxor (Makefile.am): Likewise.
112587         * modules/mkancesdirs (Makefile.am): Likewise.
112588         * modules/mkdir-p (Makefile.am): Likewise.
112589         * modules/mkdir (Makefile.am): Likewise.
112590         * modules/mkdtemp (Makefile.am): Likewise.
112591         * modules/mkstemp (Makefile.am): Likewise.
112592         * modules/mktime (Makefile.am): Likewise.
112593         * modules/modechange (Makefile.am): Likewise.
112594         * modules/mountlist (Makefile.am): Likewise.
112595         * modules/nanosleep (Makefile.am): Likewise.
112596         * modules/obstack (Makefile.am): Likewise.
112597         * modules/openat (Makefile.am): Likewise.
112598         * modules/pagealign_alloc (Makefile.am): Likewise.
112599         * modules/pathmax (Makefile.am): Likewise.
112600         * modules/physmem (Makefile.am): Likewise.
112601         * modules/poll (Makefile.am): Likewise.
112602         * modules/posixtm (Makefile.am): Likewise.
112603         * modules/posixver (Makefile.am): Likewise.
112604         * modules/putenv (Makefile.am): Likewise.
112605         * modules/quote (Makefile.am): Likewise.
112606         * modules/quotearg (Makefile.am): Likewise.
112607         * modules/raise (Makefile.am): Likewise.
112608         * modules/read-file (Makefile.am): Likewise.
112609         * modules/readline (Makefile.am): Likewise.
112610         * modules/readlink (Makefile.am): Likewise.
112611         * modules/readtokens (Makefile.am): Likewise.
112612         * modules/readutmp (Makefile.am): Likewise.
112613         * modules/realloc (Makefile.am): Likewise.
112614         * modules/regex (Makefile.am): Likewise.
112615         * modules/rename-dest-slash (Makefile.am): Likewise.
112616         * modules/rename (Makefile.am): Likewise.
112617         * modules/rijndael (Makefile.am): Likewise.
112618         * modules/rmdir (Makefile.am): Likewise.
112619         * modules/rpmatch (Makefile.am): Likewise.
112620         * modules/safe-read (Makefile.am): Likewise.
112621         * modules/safe-write (Makefile.am): Likewise.
112622         * modules/same-inode (Makefile.am): Likewise.
112623         * modules/same (Makefile.am): Likewise.
112624         * modules/save-cwd (Makefile.am): Likewise.
112625         * modules/savedir (Makefile.am): Likewise.
112626         * modules/setenv (Makefile.am): Likewise.
112627         * modules/settime (Makefile.am): Likewise.
112628         * modules/sha1 (Makefile.am): Likewise.
112629         * modules/sig2str (Makefile.am): Likewise.
112630         * modules/snprintf (Makefile.am): Likewise.
112631         * modules/stat-macros (Makefile.am): Likewise.
112632         * modules/stat-time (Makefile.am): Likewise.
112633         * modules/stdbool (Makefile.am): Likewise.
112634         * modules/stdint (Makefile.am): Likewise.
112635         * modules/stdlib-safer (Makefile.am): Likewise.
112636         * modules/stpcpy (Makefile.am): Likewise.
112637         * modules/stpncpy (Makefile.am): Likewise.
112638         * modules/strcase (Makefile.am): Likewise.
112639         * modules/strcasestr (Makefile.am): Likewise.
112640         * modules/strchrnul (Makefile.am): Likewise.
112641         * modules/strcspn (Makefile.am): Likewise.
112642         * modules/strdup (Makefile.am): Likewise.
112643         * modules/strerror (Makefile.am): Likewise.
112644         * modules/strftime (Makefile.am): Likewise.
112645         * modules/strndup (Makefile.am): Likewise.
112646         * modules/strnlen (Makefile.am): Likewise.
112647         * modules/strpbrk (Makefile.am): Likewise.
112648         * modules/strsep (Makefile.am): Likewise.
112649         * modules/strstr (Makefile.am): Likewise.
112650         * modules/strtod (Makefile.am): Likewise.
112651         * modules/strtoimax (Makefile.am): Likewise.
112652         * modules/strtok_r (Makefile.am): Likewise.
112653         * modules/strtol (Makefile.am): Likewise.
112654         * modules/strtoll (Makefile.am): Likewise.
112655         * modules/strtoul (Makefile.am): Likewise.
112656         * modules/strtoull (Makefile.am): Likewise.
112657         * modules/strtoumax (Makefile.am): Likewise.
112658         * modules/strverscmp (Makefile.am): Likewise.
112659         * modules/sys_socket (Makefile.am): Likewise.
112660         * modules/sys_stat (Makefile.am): Likewise.
112661         * modules/sysexits (Makefile.am): Likewise.
112662         * modules/time_r (Makefile.am): Likewise.
112663         * modules/timegm (Makefile.am): Likewise.
112664         * modules/timespec (Makefile.am): Likewise.
112665         * modules/tmpfile-safer (Makefile.am): Likewise.
112666         * modules/trim (Makefile.am): Likewise.
112667         * modules/unistd-safer (Makefile.am): Likewise.
112668         * modules/unlinkdir (Makefile.am): Likewise.
112669         * modules/unlocked-io (Makefile.am): Likewise.
112670         * modules/userspec (Makefile.am): Likewise.
112671         * modules/utime (Makefile.am): Likewise.
112672         * modules/utimecmp (Makefile.am): Likewise.
112673         * modules/utimens (Makefile.am): Likewise.
112674         * modules/vasnprintf (Makefile.am): Likewise.
112675         * modules/vasprintf (Makefile.am): Likewise.
112676         * modules/vsnprintf (Makefile.am): Likewise.
112677         * modules/xalloc (Makefile.am): Likewise.
112678         * modules/xgetcwd (Makefile.am): Likewise.
112679         * modules/xnanosleep (Makefile.am): Likewise.
112680         * modules/xreadlink (Makefile.am): Likewise.
112681         * modules/xstrtod (Makefile.am): Likewise.
112682         * modules/xstrtol (Makefile.am): Likewise.
112683         * modules/xstrtold (Makefile.am): Likewise.
112684         * modules/yesno (Makefile.am): Likewise.
112685         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112687 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112689         * modules/error (Makefile.am): Distribute files through
112690         EXTRA_DIST, not lib_SOURCES.
112692 2006-10-12  Eric Blake  <ebb9@byu.net>
112694         * modules/error (Makefile.am): Distribute files in /lib.
112695         * modules/obstack (Makefile.am): Likewise.
112697 2006-10-12  Bruno Haible  <bruno@clisp.org>
112699         * modules/acl (Makefile.am): Distribute all files in lib/ through
112700         EXTRA_DIST.
112701         * modules/arcfour (Makefile.am): Likewise.
112702         * modules/arctwo (Makefile.am): Likewise.
112703         * modules/argmatch (Makefile.am): Likewise.
112704         * modules/argz (Makefile.am): Likewise.
112705         * modules/atexit (Makefile.am): Likewise.
112706         * modules/backupfile (Makefile.am): Likewise.
112707         * modules/c-strtod (Makefile.am): Likewise.
112708         * modules/c-strtold (Makefile.am): Likewise.
112709         * modules/calloc (Makefile.am): Likewise.
112710         * modules/canon-host (Makefile.am): Likewise.
112711         * modules/canonicalize (Makefile.am): Likewise.
112712         * modules/chdir-long (Makefile.am): Likewise.
112713         * modules/chdir-safer (Makefile.am): Likewise.
112714         * modules/check-version (Makefile.am): Likewise.
112715         * modules/chown (Makefile.am): Likewise.
112716         * modules/cloexec (Makefile.am): Likewise.
112717         * modules/close-stream (Makefile.am): Likewise.
112718         * modules/closeout (Makefile.am): Likewise.
112719         * modules/crc (Makefile.am): Likewise.
112720         * modules/cycle-check (Makefile.am): Likewise.
112721         * modules/des (Makefile.am): Likewise.
112722         * modules/dirfd (Makefile.am): Likewise.
112723         * modules/dirname (Makefile.am): Likewise.
112724         * modules/dup2 (Makefile.am): Likewise.
112725         * modules/euidaccess (Makefile.am): Likewise.
112726         * modules/exclude (Makefile.am): Likewise.
112727         * modules/exitfail (Makefile.am): Likewise.
112728         * modules/fcntl-safer (Makefile.am): Likewise.
112729         * modules/file-type (Makefile.am): Likewise.
112730         * modules/fileblocks (Makefile.am): Likewise.
112731         * modules/filemode (Makefile.am): Likewise.
112732         * modules/filenamecat (Makefile.am): Likewise.
112733         * modules/fnmatch (Makefile.am): Likewise.
112734         * modules/fopen-safer (Makefile.am): Likewise.
112735         * modules/fpending (Makefile.am): Likewise.
112736         * modules/fprintftime (Makefile.am): Likewise.
112737         * modules/free (Makefile.am): Likewise.
112738         * modules/fsusage (Makefile.am): Likewise.
112739         * modules/ftruncate (Makefile.am): Likewise.
112740         * modules/fts (Makefile.am): Likewise.
112741         * modules/gc (Makefile.am): Likewise.
112742         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112743         * modules/getaddrinfo (Makefile.am): Likewise.
112744         * modules/getcwd (Makefile.am): Likewise.
112745         * modules/getdelim (Makefile.am): Likewise.
112746         * modules/getdomainname (Makefile.am): Likewise.
112747         * modules/getgroups (Makefile.am): Likewise.
112748         * modules/gethostname (Makefile.am): Likewise.
112749         * modules/gethrxtime (Makefile.am): Likewise.
112750         * modules/getline (Makefile.am): Likewise.
112751         * modules/getloadavg (Makefile.am): Likewise.
112752         * modules/getlogin_r (Makefile.am): Likewise.
112753         * modules/getopt (Makefile.am): Likewise.
112754         * modules/getpass (Makefile.am): Likewise.
112755         * modules/getpass-gnu (Makefile.am): Likewise.
112756         * modules/getsubopt (Makefile.am): Likewise.
112757         * modules/gettime (Makefile.am): Likewise.
112758         * modules/gettimeofday (Makefile.am): Likewise.
112759         * modules/getugroups (Makefile.am): Likewise.
112760         * modules/getusershell (Makefile.am): Likewise.
112761         * modules/glob (Makefile.am): Likewise.
112762         * modules/group-member (Makefile.am): Likewise.
112763         * modules/hard-locale (Makefile.am): Likewise.
112764         * modules/hash (Makefile.am): Likewise.
112765         * modules/hmac-md5 (Makefile.am): Likewise.
112766         * modules/hmac-sha1 (Makefile.am): Likewise.
112767         * modules/human (Makefile.am): Likewise.
112768         * modules/idcache (Makefile.am): Likewise.
112769         * modules/imaxabs (Makefile.am): Likewise.
112770         * modules/imaxdiv (Makefile.am): Likewise.
112771         * modules/inet_ntop (Makefile.am): Likewise.
112772         * modules/inet_pton (Makefile.am): Likewise.
112773         * modules/inttostr (Makefile.am): Likewise.
112774         * modules/isapipe (Makefile.am): Likewise.
112775         * modules/lchown (Makefile.am): Likewise.
112776         * modules/long-options (Makefile.am): Likewise.
112777         * modules/lstat (Makefile.am): Likewise.
112778         * modules/malloc (Makefile.am): Likewise.
112779         * modules/mathl (Makefile.am): Likewise.
112780         * modules/mbchar (Makefile.am): Likewise.
112781         * modules/md2 (Makefile.am): Likewise.
112782         * modules/md4 (Makefile.am): Likewise.
112783         * modules/md5 (Makefile.am): Likewise.
112784         * modules/memcasecmp (Makefile.am): Likewise.
112785         * modules/memchr (Makefile.am): Likewise.
112786         * modules/memcmp (Makefile.am): Likewise.
112787         * modules/memcoll (Makefile.am): Likewise.
112788         * modules/memcpy (Makefile.am): Likewise.
112789         * modules/memmem (Makefile.am): Likewise.
112790         * modules/memmove (Makefile.am): Likewise.
112791         * modules/mempcpy (Makefile.am): Likewise.
112792         * modules/memrchr (Makefile.am): Likewise.
112793         * modules/memset (Makefile.am): Likewise.
112794         * modules/memxor (Makefile.am): Likewise.
112795         * modules/mkancesdirs (Makefile.am): Likewise.
112796         * modules/mkdir (Makefile.am): Likewise.
112797         * modules/mkdir-p (Makefile.am): Likewise.
112798         * modules/mkdtemp (Makefile.am): Likewise.
112799         * modules/mkstemp (Makefile.am): Likewise.
112800         * modules/mktime (Makefile.am): Likewise.
112801         * modules/modechange (Makefile.am): Likewise.
112802         * modules/mountlist (Makefile.am): Likewise.
112803         * modules/nanosleep (Makefile.am): Likewise.
112804         * modules/openat (Makefile.am): Likewise.
112805         * modules/pagealign_alloc (Makefile.am): Likewise.
112806         * modules/physmem (Makefile.am): Likewise.
112807         * modules/poll (Makefile.am): Likewise.
112808         * modules/posixtm (Makefile.am): Likewise.
112809         * modules/posixver (Makefile.am): Likewise.
112810         * modules/putenv (Makefile.am): Likewise.
112811         * modules/quote (Makefile.am): Likewise.
112812         * modules/quotearg (Makefile.am): Likewise.
112813         * modules/raise (Makefile.am): Likewise.
112814         * modules/read-file (Makefile.am): Likewise.
112815         * modules/readline (Makefile.am): Likewise.
112816         * modules/readlink (Makefile.am): Likewise.
112817         * modules/readtokens (Makefile.am): Likewise.
112818         * modules/readutmp (Makefile.am): Likewise.
112819         * modules/realloc (Makefile.am): Likewise.
112820         * modules/regex (Makefile.am): Likewise.
112821         * modules/rename (Makefile.am): Likewise.
112822         * modules/rename-dest-slash (Makefile.am): Likewise.
112823         * modules/rijndael (Makefile.am): Likewise.
112824         * modules/rmdir (Makefile.am): Likewise.
112825         * modules/rpmatch (Makefile.am): Likewise.
112826         * modules/safe-read (Makefile.am): Likewise.
112827         * modules/safe-write (Makefile.am): Likewise.
112828         * modules/same (Makefile.am): Likewise.
112829         * modules/save-cwd (Makefile.am): Likewise.
112830         * modules/savedir (Makefile.am): Likewise.
112831         * modules/setenv (Makefile.am): Likewise.
112832         * modules/settime (Makefile.am): Likewise.
112833         * modules/sha1 (Makefile.am): Likewise.
112834         * modules/sig2str (Makefile.am): Likewise.
112835         * modules/snprintf (Makefile.am): Likewise.
112836         * modules/stdlib-safer (Makefile.am): Likewise.
112837         * modules/stpcpy (Makefile.am): Likewise.
112838         * modules/stpncpy (Makefile.am): Likewise.
112839         * modules/strcase (Makefile.am): Likewise.
112840         * modules/strcasestr (Makefile.am): Likewise.
112841         * modules/strchrnul (Makefile.am): Likewise.
112842         * modules/strcspn (Makefile.am): Likewise.
112843         * modules/strdup (Makefile.am): Likewise.
112844         * modules/strerror (Makefile.am): Likewise.
112845         * modules/strftime (Makefile.am): Likewise.
112846         * modules/strndup (Makefile.am): Likewise.
112847         * modules/strnlen (Makefile.am): Likewise.
112848         * modules/strpbrk (Makefile.am): Likewise.
112849         * modules/strsep (Makefile.am): Likewise.
112850         * modules/strstr (Makefile.am): Likewise.
112851         * modules/strtod (Makefile.am): Likewise.
112852         * modules/strtoimax (Makefile.am): Likewise.
112853         * modules/strtok_r (Makefile.am): Likewise.
112854         * modules/strtol (Makefile.am): Likewise.
112855         * modules/strtoll (Makefile.am): Likewise.
112856         * modules/strtoul (Makefile.am): Likewise.
112857         * modules/strtoull (Makefile.am): Likewise.
112858         * modules/strtoumax (Makefile.am): Likewise.
112859         * modules/strverscmp (Makefile.am): Likewise.
112860         * modules/time_r (Makefile.am): Likewise.
112861         * modules/timegm (Makefile.am): Likewise.
112862         * modules/tmpfile-safer (Makefile.am): Likewise.
112863         * modules/unistd-safer (Makefile.am): Likewise.
112864         * modules/unlinkdir (Makefile.am): Likewise.
112865         * modules/userspec (Makefile.am): Likewise.
112866         * modules/utime (Makefile.am): Likewise.
112867         * modules/utimecmp (Makefile.am): Likewise.
112868         * modules/utimens (Makefile.am): Likewise.
112869         * modules/vasnprintf (Makefile.am): Likewise.
112870         * modules/vasprintf (Makefile.am): Likewise.
112871         * modules/vsnprintf (Makefile.am): Likewise.
112872         * modules/xalloc (Makefile.am): Likewise.
112873         * modules/xgetcwd (Makefile.am): Likewise.
112874         * modules/xnanosleep (Makefile.am): Likewise.
112875         * modules/xreadlink (Makefile.am): Likewise.
112876         * modules/xstrtod (Makefile.am): Likewise.
112877         * modules/xstrtol (Makefile.am): Likewise.
112878         * modules/xstrtold (Makefile.am): Likewise.
112879         * modules/yesno (Makefile.am): Likewise.
112881 2006-10-12  Jim Meyering  <jim@meyering.net>
112883         * m4/getloadavg.m4: Revert the change below.
112885         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112886         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112887         fail with a symlink, which is what coreutils' ./bootstrap now
112888         creates by default.
112890 2006-10-12  Bruno Haible  <bruno@clisp.org>
112892         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112893         mingw.
112894         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112895         MSVC and mingw explicitly.
112897 2006-10-11  Simon Josefsson  <jas@extundo.com>
112898             Bruno Haible  <bruno@clisp.org>
112900         Add support for multiple gnulib-tool invocations in the scope of a
112901         single configure.ac file.
112902         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112903         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112904         with the same contents as the _LIBADD variable.
112905         (func_emit_initmacro_start, func_emit_initmacro_end,
112906         func_emit_initmacro_done): New functions.
112907         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112908         gl_LIBOBJS and gl_LTLIBOBJS.
112910 2006-10-11  Bruno Haible  <bruno@clisp.org>
112912         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112913         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112914         autoreconf. Instead, invoke autopoint explicitly but move back the
112915         *.m4 files from gnulib.
112917 2006-10-11  Bruno Haible  <bruno@clisp.org>
112919         * gnulib-tool (func_usage): Make module names after --create-testdir
112920         optional.
112921         (func_create_testdir): If no module was specified, use nearly all
112922         modules.
112924 2006-10-12  Jim Meyering  <jim@meyering.net>
112926         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112927         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112928         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112929         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112930         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112931         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112932         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112933         (fts_set_stat_required): New function.
112934         (fts_open): Defer the calls to fts_stat, if possible or requested.
112935         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112936         into fts_stat itself.
112937         (fts_read): Perform any required (deferred) fts_stat call.
112938         (fts_build): Likewise, for the directory we're about to open and read.
112939         In the readdir loop, carefully decide whether each entry will require
112940         an eventual call to fts_stat, using dirent.d_type info if available.
112941         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112942         a command line argument into this function.  Update all callers.
112943         Map a return value of FTS_DOT to FTS_D for a command line argument.
112944         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112945         Thanks to Miklos Szeredi for his tenacity and for the initial
112946         bug report about "find" failing on a FUSE-based file system.
112948         * lib/fts.c (fts_open): Use consistent indentation.
112950 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112953         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112954         reported by Jim Meyering.  All uses of cache variables renamed
112955         to match Autoconf's.
112956         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112957         the other one.
112959         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112960         Fix misspelling in diagnostic.
112962 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112964         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112965         defined.  Problem reported by Matthew Woehlke.
112967         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112968         Add support for Tandem NonStop R series.
112969         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112970         Use new macro.
112972         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112973         (has_trailing_slash): Omit size arg; all callers changed.
112974         Omit 'inline', since it doesn't help performance and we'd
112975         need to configure it.
112976         Don't count //, ///, etc. as having a trailing slash.
112977         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112978         (rpl_rename_dest_slash): On failure, use rename's errno rather
112979         than (in some cases) an incorrect or junk errno.
112980         Simplify code by removing need to compute length; this does
112981         cause it to make two passes instead of one over the file name,
112982         but it's worth it.
112984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112985         change, since Autoconf's version may no longer be appropriate now
112986         that we are using CVS Autoconf's version.  Add support for Tandem.
112988 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112989             Bruno Haible  <bruno@clisp.org>
112991         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112992         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112993         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112994         gl_AC_TYPE_LONG_LONG.
112996         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112997         instead of HAVE_LONG_LONG.
112998         * lib/printf-args.c (printf_fetchargs): Likewise.
112999         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
113000         * lib/vasnprintf.c (VASNPRINTF): Likewise.
113001         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
113002         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
113003         gl_AC_TYPE_LONG_LONG.
113005 2006-10-11  Bruno Haible  <bruno@clisp.org>
113007         * m4/longlong.m4: Add comments.
113008         * m4/ulonglong.m4: Likewise.
113010 2006-10-10  Bruno Haible  <bruno@clisp.org>
113012         Make it possible to #define stpcpy, strdup to aliases.
113013         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
113014         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
113016 2006-10-10  Bruno Haible  <bruno@clisp.org>
113018         Make it possible to #define gcd to an alias.
113019         * lib/gcd.c: Include config.h.
113021 2006-10-10  Bruno Haible  <bruno@clisp.org>
113023         Make it possible to #define c_isascii to an alias.
113024         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
113025         defined. Undefine the macros before defining them, to avoid gcc
113026         warnings.
113027         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
113028         define NO_C_CTYPE_MACROS early.
113030 2006-10-10  Bruno Haible  <bruno@clisp.org>
113032         Make it possible to #define set_program_name to an alias.
113033         * lib/progname.c: Don't undefine set_program_name; instead, undefine
113034         ENABLE_RELOCATABLE early.
113036 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113038         Port to Tandem NSK OSS, which has 64-bit signed int but at most
113039         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
113040         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
113041         More generally, don't assume that 64-bit signed int is available
113042         if unsigned int is, and vice versa.
113043         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
113044         unsigned symbols, not on their signed counterparts.
113045         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
113046         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
113047         (UINT64_C, UINTMAX_C):
113048         Likewise.
113049         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
113050         unsigned counterparts.
113051         (Have_long_long, Unsigned): New macros.
113052         (Int): Renamed from INT.
113053         (strtoimax): Use the new macros.
113054         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
113055         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
113056         * modules/inttypes (inttypes.h): Substitute
113057         HAVE_UNSIGNED_LONG_LONG_INT.
113058         * modules/stdint (stdint.h): Likewise.
113059         (Files): Add m4/ulonglong.m4.
113061 2006-10-10  Bruno Haible  <bruno@clisp.org>
113063         Fix a gcc -Wshadow warning.
113064         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
113065         to 'bucket'.
113066         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
113067         gl_linked_indexof_from_to): Likewise.
113068         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
113069         Likewise.
113070         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
113071         Likewise.
113072         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
113073         Reported by Eric Blake.
113075 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
113077         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
113078         for NetBSD.  Problem reported by Bruno Haible.
113080 2006-10-09  Jim Meyering  <jim@meyering.net>
113082         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
113083         Patch from Bruno Haible.
113085 2006-10-09  Jim Meyering  <jim@meyering.net>
113087         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
113088         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
113089         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
113091 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
113093         Don't include <config.h> twice; this doesn't work in some cases,
113094         e.g., when config.h has "#define intmax_t long long int" and
113095         we include <config.h>, <inttypes.h>, <config.h> in that order.
113096         Problem reported by Matthew Woehlke in:
113097         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
113098         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
113099         * lib/fts-cycle.c: Don't include config.h.
113100         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
113101         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
113102         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
113103         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
113104         inttypes.h.
113105         * lib/xstrtoumax.c: Likewise.
113106         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
113107         __strtol and the like, so that this module is more like its siblings.
113108         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
113109         Remove; no longer needed now that we assume gnulib inttypes.h.
113111 2006-10-08  Bruno Haible  <bruno@clisp.org>
113113         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
113114         option.
113116 2006-10-07  Jim Meyering  <jim@meyering.net>
113118         * modules/inttypes (inttypes.h): Revert what seems to have been
113119         an inadvertent part of today's change: use "|", not "/" in the
113120         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
113122 2006-10-07  Bruno Haible  <bruno@clisp.org>
113124         * modules/sublist: New file.
113126 2006-10-07  Bruno Haible  <bruno@clisp.org>
113128         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
113129         * modules/argz (argz.h): Likewise.
113130         * modules/arpa_inet (arpa/inet.h): Likewise.
113131         * modules/byteswap (byteswap.h): Likewise.
113132         * modules/configmake (configmake.h): Likewise.
113133         * modules/fcntl (fcntl.h): Likewise.
113134         * modules/fnmatch (fnmatch.h): Likewise.
113135         * modules/getopt (getopt.h): Likewise.
113136         * modules/glob (glob.h): Likewise.
113137         * modules/inttypes (inttypes.h): Likewise.
113138         * modules/netinet_in (netinet/in.h): Likewise.
113139         * modules/poll (poll.h): Likewise.
113140         * modules/stdbool (stdbool.h): Likewise.
113141         * modules/stdint (stdint.h): Likewise.
113142         * modules/sys_select (sys/select.h): Likewise.
113143         * modules/sys_socket (sys/socket.h): Likewise.
113144         * modules/sys_stat (sys/stat.h): Likewise.
113145         * modules/sysexits (sysexits.h): Likewise.
113146         * modules/unistd (unistd.h): Likewise.
113147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113148         Add a "DO NOT EDIT" comment to the generated file.
113149         (func_import): Likewise for gnulib-comp.m4.
113151 2006-10-07  Bruno Haible  <bruno@clisp.org>
113153         * lib/gl_sublist.h: New file.
113154         * lib/gl_sublist.c: New file.
113156 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113158         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
113159         name (relative to the original working directory) and the file
113160         name component (relative to the temporary working directory).  All
113161         callers changed.
113162         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
113163         * lib/mkdir-p.c (make_dir_parents): Likewise.
113164         * lib/mkdir-p.h (make_dir_parents): Likewise.
113166 2006-10-06  Eric Blake  <ebb9@byu.net>
113168         Define several macros for use by the clean-temp module.
113169         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
113170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
113171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
113173         * lib/clean-temp.h (close_stream_temp): New declaration.
113174         * lib/clean-temp.c (includes): Pull in headers according to what
113175         other modules are in use.
113176         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
113178 2006-10-06  Bruno Haible  <bruno@clisp.org>
113180         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
113181         instead of fopen, fwriteerror.
113183 2006-10-06  Bruno Haible  <bruno@clisp.org>
113185         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
113186         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
113187         int.
113188         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
113189         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
113190         Return an error indicator.
113191         Suggested by Eric Blake.
113193 2006-10-06  Bruno Haible  <bruno@clisp.org>
113195         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
113196         Reported by Eric Blake.
113198 2006-10-06  Bruno Haible  <bruno@clisp.org>
113200         * modules/closeout (Description): Mention stderr too.
113202 2006-10-06  Bruno Haible  <bruno@clisp.org>
113203         and Paul Eggert  <eggert@cs.ucla.edu>
113205         * lib/closeout.c (close_stdout): Also close stderr.
113206         * lib/closeout.h: Update comment.
113208 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113210         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
113211         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
113212         * lib/dirchownmod.c: Include lchown.h.
113213         * lib/lchown.c: Don't include files that lchown.h now includes.
113214         Don't declare chown, since lchown.h now does that.
113215         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
113216         (lchown): Define to rpl_chown if lchown is declared but
113217         does not exist.  Declare using a prototype if lchown is not
113218         declared.  Add a copyright notice.
113219         * lib/mkstemp.h: Include <unistd.h>.
113220         * lib/openat.c: Include lchown.h.
113222         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
113223         we now test for that separately.
113224         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
113225         rather than O_NOFOLLOW, when testing whether it's possible to
113226         avoid a race condition reliably.
113227         * lib/savewd.c (savewd_chdir): Likewise.
113229         Remove macros that are no longer needed now that stdint.h is
113230         reliable.
113231         * lib/fsusage.c (UINTMAX_MAX): Remove.
113232         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
113233         * lib/utimecmp.c (SIZE_MAX): Remove.
113235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
113237         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
113238         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
113239         O_NOATIME works.
113241 2006-10-05  Bruno Haible  <bruno@clisp.org>
113243         * lib/gl_list.h (gl_sortedlist_search_from_to,
113244         gl_sortedlist_indexof_from_to): New declarations.
113245         (gl_list_implementation): New fields sortedlist_search_from_to,
113246         sortedlist_indexof_from_to.
113247         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
113248         inline functions.
113249         * lib/gl_list.c (gl_sortedlist_search_from_to,
113250         gl_sortedlist_indexof_from_to): New functions.
113251         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
113252         function.
113253         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
113254         (gl_array_sortedlist_search_from_to): New function.
113255         (gl_array_list_implementation): Update.
113256         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
113257         function.
113258         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
113259         (gl_carray_sortedlist_search_from_to): New function.
113260         (gl_carray_list_implementation): Update.
113261         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
113262         gl_linked_sortedlist_indexof_from_to): New functions.
113263         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113264         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113265         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
113266         gl_tree_sortedlist_indexof_from_to): New functions.
113267         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113268         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113269         Update.
113270         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113271         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
113272         Update.
113274 2006-10-05  Bruno Haible  <bruno@clisp.org>
113276         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
113277         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
113278         (struct gl_list_implementation): Add fields search_from_to,
113279         indexof_from_to. Remove fields search, indexof.
113280         (gl_list_search): Use the search_from_to method.
113281         (gl_list_search_from, gl_list_search_from_to): New functions.
113282         (gl_list_indexof): Use the indexof_from_to method.
113283         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113284         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
113285         (gl_list_search_from, gl_list_search_from_to): New functions.
113286         (gl_list_indexof): Use the indexof_from_to method.
113287         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113288         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
113289         gl_array_indexof. Add start_index, end_index arguments.
113290         (gl_array_search_from_to): Renamed from gl_array_search. Add
113291         start_index, end_index arguments.
113292         (gl_array_remove, gl_array_list_implementation): Update.
113293         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
113294         gl_carray_indexof. Add start_index, end_index arguments.
113295         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
113296         start_index, end_index arguments.
113297         (gl_carray_remove, gl_carray_list_implementation): Update.
113298         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
113299         gl_linked_search. Add start_index, end_index arguments.
113300         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
113301         start_index, end_index arguments.
113302         (gl_linked_remove): Update.
113303         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113304         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113305         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
113306         field to 'size_t'.
113307         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
113308         gl_tree_search. Add start_index, end_index arguments.
113309         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113310         start_index, end_index arguments.
113311         (gl_tree_remove): Update.
113312         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113313         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113314         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
113315         function.
113316         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
113317         gl_tree_search. Add start_index, end_index arguments.
113318         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113319         start_index, end_index arguments.
113320         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113321         Update.
113322         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
113324 2006-10-05  Bruno Haible  <bruno@clisp.org>
113326         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
113328         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
113329         fwriteerror_temp): New declarations.
113330         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
113331         (descriptors): New variable.
113332         (cleanup): First, close the descriptors.
113333         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
113334         fclose_temp, fwriteerror_temp): New functions.
113336 2006-10-04  Jim Meyering  <jim@meyering.net>
113338         * lib/fts.c (fts_open): Tiny comment change.
113340 2006-10-04  Bruno Haible  <bruno@clisp.org>
113342         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
113343         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
113344         gl_LOCK_BODY.
113345         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
113346         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
113347         gl_LOCK_EARLY_BODY.
113348         (gl_LOCK): Require gl_LOCK_BODY.
113350 2006-10-04  Bruno Haible  <bruno@clisp.org>
113352         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
113353         (gl_oset_search_atleast): New declaration.
113354         (struct gl_oset_implementation): Add field 'search_atleast'.
113355         (gl_oset_search_atleast): New inline function.
113356         * lib/gl_oset.c (gl_oset_search_atleast): New function.
113357         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
113358         (gl_array_oset_implementation): Update.
113359         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
113360         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
113361         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
113363 2006-10-04  Bruno Haible  <bruno@clisp.org>
113365         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
113367 2006-10-03  Bruno Haible  <bruno@clisp.org>
113369         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
113370         from gl_avltreehash_list_implementation.
113372 2006-10-03  Bruno Haible  <bruno@clisp.org>
113374         * lib/gl_oset.c (gl_oset_add): Fix return type.
113376 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
113378         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
113380 2006-10-02  Eric Blake  <ebb9@byu.net>
113382         * modules/strnlen (Depends-on): Add extensions.
113384 2006-10-02  Eric Blake  <ebb9@byu.net>
113386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
113387         definition in 2.60+.
113389 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
113391         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
113392         checks.
113394 2006-10-02  Bruno Haible  <bruno@clisp.org>
113396         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
113397         to the AUTOMAKE_OPTIONS.
113398         Reported by Jim Meyering.
113400 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113402         Work around bug in Solaris 10 /proc file system:
113403         /proc/self/fd/NNN/.. isn't the parent directory of
113404         the directory whose file descriptor is NNN.  This needs to
113405         be worked around at run time, not compile time, since a
113406         program might be built on Solaris 8, where things work, and
113407         run on Solaris 10.
113408         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
113409         to use the following interface instead:
113410         (OPENAT_BUFFER_SIZE): New macro.
113411         (openat_proc_name): New function.
113412         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
113413         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
113414         Likewise.
113415         * lib/openat-proc.c: New file.
113416         * modules/openat (Files): Add lib/openat-proc.c.
113417         (Depends-on): Add same-inode, stdbool.
113418         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
113420 2006-09-29  Bruno Haible  <bruno@clisp.org>
113422         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113423         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113424         argument. Set stdout_closed before testing for ferror, not after.
113425         (fwriteerror, fwriteerror_no_ebadf): New functions.
113427 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113429         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113431 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113433         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113434         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113436 2006-09-28  Jim Meyering  <jim@meyering.net>
113438         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113439         Include <unistd.h>.
113441 2006-09-28  Bruno Haible  <bruno@clisp.org>
113443         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113444         * modules/linkedhash-list (Depends-on): Likewise.
113445         * modules/rbtreehash-list (Depends-on): Likewise.
113447 2006-09-28  Bruno Haible  <bruno@clisp.org>
113449         * lib/strndup.h: Simplify the redefinition of strndup.
113450         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113453 2006-09-28  Bruno Haible  <bruno@clisp.org>
113455         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113456         * lib/gl_linkedhash_list.c: Likewise.
113457         * lib/gl_rbtreehash_list.c: Likewise.
113459 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113461         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113462         getaddrinfo.
113464         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113465         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113466         it causes <stdio_ext.h> to cause a compile-time error.
113467         Problem reported by Nelson H. F. Beebe.
113468         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113469         of HAVE_DECL___PENDING.
113471         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113472         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113473         declaration.
113475 2006-09-27  Jim Meyering  <jim@meyering.net>
113477         This file could end up with a definition for a function
113478         named __strndup, rather than rpl_strndup on a system with
113479         incomplete weak_alias support.
113480         * lib/strndup.c (strndup): Rename from __strndup.
113481         Remove #defines that used to map __strndup to strndup.
113482         Don't use K&R prototypes.
113483         Remove LIBC-related code, since this file is not sync'd with glibc.
113484         * lib/strndup.h: Revamp, accordingly.
113485         * m4/strndup.m4: Modernize.
113487 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113489         * modules/savewd (Depends-on): Add 'raise'.
113490         * lib/savewd.c: Include <signal.h>, for 'raise'.
113492 2006-09-26  Jim Meyering  <jim@meyering.net>
113494         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113495         when we detect Darwin 8.7.0's acl_get_file bug.
113496         Rearrange to perform the new (below) run-test while $LIBS
113497         contains any acl-related library.  Set USE_ACL at the end.
113498         (gl_ACL_GET_FILE): New function.
113500 2006-09-26  Eric Blake  <ebb9@byu.net>
113502         * lib/verror.c: Include <config.h> unconditionally.
113504 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113506         * modules/clock-time (Maintainer): Add self.
113507         * modules/getlogin_r (Depends-on): Add extensions.
113509 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113511         * modules/clock-time: New module.
113512         * modules/nanosleep (Depends-on): Add clock-time.
113513         * modules/gethrxtime (Depends-on): Likewise.
113514         * modules/gettime (Depends-on): Likewise.
113515         * modules/settime (Depends-on): Likewise.
113517         * modules/fts-lgpl: Depend on openat.
113518         * modules/mkancesdirs: Depend on savewd.
113519         * modules/mkdir-p: Likewise.
113521 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113523         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113526         `gl_have_arbitrary_file_name_length_limit' to
113527         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113528         actually works between configure runs.
113530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113531             Bruno Haible  <bruno@clisp.org>
113533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113535 2006-09-25  Jim Meyering  <jim@meyering.net>
113537         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113538         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113540 2006-09-25  Eric Blake  <ebb9@byu.net>
113542         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113543         exec's in 2006-09-18 patch when shuffling fds.
113545 2006-09-25  Bruno Haible  <bruno@clisp.org>
113547         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113548         Reported by Jim Meyering.
113550 2006-09-24  Jim Meyering  <jim@meyering.net>
113552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113553         compare a pointer against a literal "0".  That caused failures with
113554         at least HP-UX's hpcc.
113556 2006-09-22  Simon Josefsson  <jas@extundo.com>
113558         * modules/gc-sha1:
113559         * modules/gc-md4:
113560         * modules/gc-hmac-sha1:
113561         * modules/gc-hmac-md5:
113562         * modules/gc-des:
113563         * modules/gc-arcfour: Distribute more files.
113565 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113567         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113568         (gl_linked_iterator_from_to): Initialize struct completely.
113569         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113570         (gl_tree_iterator_from_to): Likewise
113571         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113572         * lib/gl_array_list.c [lint] (gl_array_iterator)
113573         (gl_array_iterator_from_to): Likewise.
113574         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113575         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113576         (gl_carray_iterator_from_to): Likewise.
113578         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113579         * lib/md4.c (md4_process_block): Remove unused variable.
113580         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113581         parentheses for clarity.
113583 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113585         * modules/bison-i18n (Depends-on): Add gettext.
113587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113589         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113590         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113591         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113592         also add missing comma that caused broken test.
113593         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113594         stdlib.h, for `abort'.
113595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113596         variables.
113597         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113598         include unistd.h if present, for `rmdir'.
113599         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113600         variables.
113601         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113602         in the process include standard headers for prototypes.
113603         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113604         gets declared on GNU/Linux.
113605         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113606         unistd.h, for `rmdir'.
113607         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113610         always true.
113611         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113613         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113615 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113617         * gnulib-tool (func_version): Create output all at once.  This
113618         may help avoid triggering unnecessary SIGPIPEs, and at any
113619         rate it doesn't hurt.
113621 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113622             Bruno Haible  <bruno@clisp.org>
113624         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113625         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113626         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113628         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113629         (gl_FUNC_VASPRINTF): Invoke it.
113631 2006-09-22  Bruno Haible  <bruno@clisp.org>
113633         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113634         getloadavg.c as first argument.
113636 2006-09-22  Bruno Haible  <bruno@clisp.org>
113638         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113639         at the beginning of the gl_INIT macro.
113640         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113641         gl_GETLOADAVG.
113643 2006-09-22  Bruno Haible  <bruno@clisp.org>
113645         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113646         module.
113647         Suggested by Ralf Wildenhues.
113649 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113651         Import this patch from libc:
113653         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113655         * lib/regex_internal.c (re_string_reconstruct): Handle
113656         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113657         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113658         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113659         re_string_context_at.
113661         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113662         now requires it.
113663         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113664         gl_REGEX now does it for us.
113665         (gl_REGEX): Add test taken from
113666         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113669         Check that large offsets work.  Modernize Autoconf usages.
113670         Prefer "yes" to mean a good thing rather than a bad.
113671         Don't put "#define mkstemp" in config.h, as this might interfere
113672         with standard system headers that "#define mkstemp mkstemp64".
113674         * modules/mkstemp (Depends-on): Add extensions, so that
113675         mkstemp is visible on some platforms.
113676         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113677         (Include): Change to "mkstemp.h" from <stdlib.h>.
113678         (Files): Add mkstemp.h.
113680         * lib/mkstemp.h: New file, since some standard headers
113681         #define mkstemp.
113682         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113683         Include "mkstemp.h".
113684         Make the _LIBC code resemble glibc original more,
113685         e.g., use K&R style.
113686         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113687         (mkstemp): Remove, since mkstemp.h does this for us.
113688         * lib/stdlib--.h: Include mkstemp.h.
113690         Import this patch from libc:
113692         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113694         * lib/tempname.c (__gen_tempname): Change attempts_min
113695         into a macro.  Use preprocessor to decide how to initialize
113696         attempts [Coverity CID 67].
113698 2006-09-20  Bruno Haible  <bruno@clisp.org>
113700         * lib/mkdtemp.c: Import from libc.
113701         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113702                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113703                 attempts_min into a macro.  Use preprocessor to decide how to
113704                 initialize attempts [Coverity CID 67].
113705         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113706                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113707                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113709 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113711         * gnulib-tool (func_exit): New function, to allow to pass the
113712         exit status portably through the trap.  Use everywhere.
113713         (--help, --version): Signal a write error.
113714         (trap): catch SIGPIPE, for write errors.
113715         Exit at the end of the trap, with the correct exit status.
113717 2006-09-19  Karl Berry  <karl@gnu.org>
113719         * doc/gnulib.texi: note about the license texinfo files.
113721 2006-09-19  Eric Blake  <ebb9@byu.net>
113723         * gnulib-tool: Avoid space-tab.
113725 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113727         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113728         that prevented coreutils 6.1 from building.  Problem reported
113729         by Petter Reinholdtsen.
113731 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113733         * gnulib-tool (avoidlist): Fix typo that broke options like
113734         --avoid=lock that are used by coreutils bootstrap.
113736 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113738         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113739         more systematically.
113741 2006-09-18  Jim Meyering  <jim@meyering.net>
113743         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113745 2006-09-18  Bruno Haible  <bruno@clisp.org>
113747         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113749 2006-09-18  Bruno Haible  <bruno@clisp.org>
113751         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113752         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113753         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113754         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113755         * m4/gettext.m4: Require autoconf >= 2.52.
113756         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113757         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113758         of gl_cv_header_inttypes_h.
113760 2006-09-18  Bruno Haible  <bruno@clisp.org>
113762         * lib/javaversion.c: Include configmake.h.
113764 2006-09-18  Bruno Haible  <bruno@clisp.org>
113766         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113767         avoid that the while loops be executed in a subshell.
113769 2006-09-18  Bruno Haible  <bruno@clisp.org>
113771         * MODULES.html.sh (func_module): Break long lines.
113772         Suggested by Bruce Korb <bkorb@gnu.org>.
113774 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113776         Speed up by a factor of 1.12.
113777         * gnulib-tool (nl): New variable.
113778         (func_import): Rewrite include directive extraction to only read each
113779         directive once.
113781 2006-09-17  Bruno Haible  <bruno@clisp.org>
113783         * modules/javaversion (Makefile.am): Remove DEFS setting.
113784         (Depends-on): Add configmake, for PKGDATADIR definition.
113786 2006-09-17  Bruno Haible  <bruno@clisp.org>
113788         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113790 2006-09-17  Bruno Haible  <bruno@clisp.org>
113792         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113793         (func_modules_transitive_closure, func_modules_add_dummy,
113794         func_modules_to_filelist, func_import, func_create_testdir,
113795         func_create_megatestdir, ...): Use it wherever possible.
113796         Suggested by Ralf Wildenhues.
113798 2006-09-16  Karl Berry  <karl@gnu.org>
113800         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113801         to avoid sectioning errors.
113802         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113803         [ifinfo]: blank line after @center-ed titles.
113804         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113805         Spell FSF address consistently with others.
113806         (These changes approved by rms.)
113808 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113810         Speed up by a factor of 1.61.
113811         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113812         already checked module names again.
113814 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113816         Speed up by a factor of 1.13.
113817         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113818         for new_files, and the input to func_add_or_update.
113820 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113822         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113823         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113825 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113827         * modules/mkancesdirs (Depends-on): Add fcntl.
113828         * modules/savewd: New file.
113829         * MODULES.html.sh (File system functions): Add savewd.
113831         * modules/configmake (Makefile.am): Add support for the
113832         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113834 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113836         * m4/savewd.m4: New file.
113838 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113840         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113841         (dirchownmod): New arg FD.  All callers changed.
113842         Use FD rather than opening the directory ourself, as opening is
113843         now the caller's responsibility.
113844         * lib/dirchownmod.h: Likewise.
113845         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113846         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113847         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113848         (test_dir): Remove.
113849         (mkancesdirs): Return length of prefix of FILE that has already
113850         been made, or -2 if there is a child doing the work.  Redo
113851         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113852         ".", and treat ".." specially since it might stray back into
113853         already-created areas.  Use a subprocess if necessary.  New arg
113854         WD; all users changed.  MAKE_DIR function should now return 1
113855         if it creates a directory that is not readable.  Return -2 if
113856         a child process is spun off.
113857         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113858         Adjust signature to match code.
113859         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113860         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113861         all users changed.
113862         * lib/savewd.c, lib/savewd.h: New files.
113864 2006-09-15  Jim Meyering  <jim@meyering.net>
113866         * modules/rename-dest-slash: New module.
113867         * MODULES.html.sh (posix_compat): Add it here.
113869         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113871 2006-09-15  Jim Meyering  <jim@meyering.net>
113873         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113874         file.
113876         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113878 2006-09-15  Jim Meyering  <jim@meyering.net>
113880         * lib/rename-dest-slash.c (has_trailing_slash): Use
113881         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113882         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113883         test before testing whether SRC is a directory.
113884         Suggestions from Bruno Haible.
113886         Avoid a warning about an unused variable.
113887         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113888         into the #ifdef block where it's used.
113890         * lib/rename-dest-slash.c: New file.
113892 2006-09-14  Bruno Haible  <bruno@clisp.org>
113894         * lib/allocsa.c: Include <config.h> unconditionally.
113895         * lib/asnprintf.c: Likewise.
113896         * lib/asprintf.c: Likewise.
113897         * lib/c-strcasecmp.c: Likewise.
113898         * lib/c-strcasestr.c: Likewise.
113899         * lib/c-strncasecmp.c: Likewise.
113900         * lib/c-strstr.c: Likewise.
113901         * lib/classpath.c: Likewise.
113902         * lib/clean-temp.c: Likewise.
113903         * lib/concatpath.c: Likewise.
113904         * lib/copy-file.c: Likewise.
113905         * lib/csharpcomp.c: Likewise.
113906         * lib/csharpexec.c: Likewise.
113907         * lib/execute.c: Likewise.
113908         * lib/fatal-signal.c: Likewise.
113909         * lib/findprog.c: Likewise.
113910         * lib/fwriteerror.c: Likewise.
113911         * lib/gl_array_list.c: Likewise.
113912         * lib/gl_array_oset.c: Likewise.
113913         * lib/gl_avltree_list.c: Likewise.
113914         * lib/gl_avltree_oset.c: Likewise.
113915         * lib/gl_avltreehash_list.c: Likewise.
113916         * lib/gl_carray_list.c: Likewise.
113917         * lib/gl_linked_list.c: Likewise.
113918         * lib/gl_linkedhash_list.c: Likewise.
113919         * lib/gl_list.c: Likewise.
113920         * lib/gl_oset.c: Likewise.
113921         * lib/gl_rbtree_list.c: Likewise.
113922         * lib/gl_rbtree_oset.c: Likewise.
113923         * lib/gl_rbtreehash_list.c: Likewise.
113924         * lib/imaxabs.c: Likewise.
113925         * lib/imaxdiv.c: Likewise.
113926         * lib/javacomp.c: Likewise.
113927         * lib/javaexec.c: Likewise.
113928         * lib/javaversion.c: Likewise.
113929         * lib/linebreak.c: Likewise.
113930         * lib/localcharset.c: Likewise.
113931         * lib/lock.c: Likewise.
113932         * lib/mbchar.c: Likewise.
113933         * lib/mbswidth.c: Likewise.
113934         * lib/mkdtemp.c: Likewise.
113935         * lib/pipe.c: Likewise.
113936         * lib/printf-args.c: Likewise.
113937         * lib/printf-parse.c: Likewise.
113938         * lib/progname.c: Likewise.
113939         * lib/progreloc.c: Likewise.
113940         * lib/readlink.c: Likewise.
113941         * lib/sh-quote.c: Likewise.
113942         * lib/stpcpy.c: Likewise.
113943         * lib/stpncpy.c: Likewise.
113944         * lib/strcasecmp.c: Likewise.
113945         * lib/strcasestr.c: Likewise.
113946         * lib/strcspn.c: Likewise.
113947         * lib/striconv.c: Likewise.
113948         * lib/strncasecmp.c: Likewise.
113949         * lib/strnlen1.c: Likewise.
113950         * lib/strstr.c: Likewise.
113951         * lib/strtok_r.c: Likewise.
113952         * lib/tls.c: Likewise.
113953         * lib/tmpdir.c: Likewise.
113954         * lib/unicodeio.c: Likewise.
113955         * lib/unsetenv.c: Likewise.
113956         * lib/vasnprintf.c: Likewise.
113957         * lib/vasprintf.c: Likewise.
113958         * lib/wait-process.c: Likewise.
113959         * lib/xallocsa.c: Likewise.
113960         * lib/xsetenv.c: Likewise.
113961         * lib/xstriconv.c: Likewise.
113963 2006-09-13  Simon Josefsson  <jas@extundo.com>
113965         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113966         that internally, suggested by Ralf Wildenhues
113967         <Ralf.Wildenhues@gmx.de>.
113969 2006-09-13  Simon Josefsson  <jas@extundo.com>
113971         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113972         @LIBOBJS@.
113973         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113975 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113977         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113978         longer worry about uses that don't define HAVE_CONFIG_H.
113979         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113980         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113981         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113982         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113983         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113984         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113985         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113986         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113987         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113988         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113989         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113990         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113991         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113992         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113993         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113994         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113995         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113996         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113997         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113998         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113999         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
114000         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
114001         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
114002         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
114003         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
114004         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
114005         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
114006         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
114007         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
114008         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
114009         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
114010         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
114011         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
114012         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
114013         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
114014         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
114015         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
114016         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
114017         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
114018         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
114019         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
114020         Likewise.
114022 2006-09-13  Eric Blake  <ebb9@byu.net>
114024         * lib/getopt.c: Fix typo in last commit.
114026 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
114028         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
114029         dgettext.
114031 2006-09-12  Jim Meyering  <jim@meyering.net>
114033         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
114034         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
114035         Reported by Nelson H. F. Beebe.
114037 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114039         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
114040         program_invocation_name and program_invocation_short_name are
114041         initialized.
114042         * lib/argp-namefrob.h: Move declarations of program_invocation_name
114043         and program_invocation_short_name to argp.h, so they are visible
114044         to user programs.
114045         * lib/argp.h: Likewise
114047 2006-09-10  Bruno Haible  <bruno@clisp.org>
114049         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114050         m4/inttypes_h.m4, m4/uintmax_t.m4.
114052 2006-09-10  Bruno Haible  <bruno@clisp.org>
114054         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
114055         gl_AC_TYPE_UINTMAX_T.
114057 2006-09-10  Bruno Haible  <bruno@clisp.org>
114059         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
114061 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114063         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
114064         convention.  Text proposed by Bruno Haible.
114065         (struct argp_option): Document the use of N_() wrappers.
114067         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
114068         '\v', and translate the two parts separately, instead of feeding
114069         the whole string to gettext.  This allows to exclude
114070         '\v' from the strings visible to the translator by writing doc
114071         strings as N_("..") "\v" N_("..").
114073 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
114075         * config/srclist.txt: Undo latest change; the bug was fixed.
114077 2006-09-09  Bruno Haible  <bruno@clisp.org>
114079         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
114080         assignments if building a library without libtool.
114081         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
114082         in func_emit_lib_Makefile_am.
114083         (func_import): When building a static library libfoo.a, arrange to
114084         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
114085         (func_create_testdir): Likewise.
114086         * modules/gc (configure.ac, Makefile.am): If building statically,
114087         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
114088         * modules/iconvme (configure.ac, Makefile.am): Likewise.
114089         * modules/striconv (configure.ac, Makefile.am): Likewise.
114090         Based on a suggestion by Ralf Wildenhues.
114092 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114094         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
114095         Check for unistd.h too, since Autoconf doesn't assume POSIX.
114096         Also:
114098         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114099         Add year_2050_test to catch glibc bug 2821
114100         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114102         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114103         Prefer #ifdef to #if.
114105         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
114106         Return from 'main' instead of calling 'exit'.
114108 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114110         * lib/mktime.c (guess_time_tm): Fix bug where mktime
114111         returned the maximum time_t value rather than (time_t) -1.
114112         Problem originally reported by William Bardwell
114113         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114115         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114116         Moved to here ...
114117         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114118         ... from here.
114120 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114122         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
114123         2821 is fixed.
114125 2006-09-08  Jim Meyering  <jim@meyering.net>
114127         Don't make generated files read-only.  That would bother too many
114128         people.  However, do retain the ability to work when targets are
114129         read-only: remove the destination and temporary files before writing
114130         them (when generated via sed or echo), or by using the -f option for
114131         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
114132         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114133         * modules/byteswap, modules/configmake, modules/fcntl:
114134         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114135         * modules/localcharset, modules/netinet_in, modules/poll:
114136         * modules/stdbool, modules/stdint, modules/sys_select:
114137         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114139 2006-09-08  Jim Meyering  <jim@meyering.net>
114141         Avoid new build failure on FreeBSD 6.0.
114142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
114143         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
114144         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
114146 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
114150 2006-09-07  Jim Meyering  <jim@meyering.net>
114152         Fix global typo in last change: use chmod u-w, not chmod u-x.
114153         Spotted by Paul Eggert and Bruce Korb.
114154         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114155         * modules/byteswap, modules/configmake, modules/fcntl:
114156         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114157         * modules/localcharset, modules/netinet_in, modules/poll:
114158         * modules/stdbool, modules/stdint, modules/sys_select:
114159         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114161 2006-09-06  Jim Meyering  <jim@meyering.net>
114163         Make generated files be read-only.
114164         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
114165         Ensure that each generated file is now read-only.
114166         * modules/argz: Likewise.
114167         * modules/arpa_inet: Likewise.
114168         * modules/byteswap: Likewise.
114169         * modules/configmake: Likewise.
114170         * modules/fcntl: Likewise.
114171         * modules/fnmatch: Likewise.
114172         * modules/getopt: Likewise.
114173         * modules/glob: Likewise.
114174         * modules/inttypes: Likewise.
114175         * modules/netinet_in: Likewise.
114176         * modules/poll: Likewise.
114177         * modules/stdbool: Likewise.
114178         * modules/stdint: Likewise.
114179         * modules/sys_select: Likewise.
114180         * modules/sys_socket: Likewise.
114181         * modules/sys_stat: Likewise.
114182         * modules/sysexits: Likewise.
114183         * modules/localcharset: Same as above, but continue using temporary
114184         file named "t-$@" (why different?) rather than the "$@-t" used
114185         everywhere else.
114187         * modules/sysexits (Makefile.am): Replace literal occurrences
114188         of "sysexit.h" more readable, and more consistent, "$@".
114190 2006-09-06  Bruno Haible  <bruno@clisp.org>
114192         * modules/striconv: New file.
114193         * modules/xstriconv: New file.
114194         * MODULES.html.sh (Internationalization functions): Add striconv,
114195         xstriconv.
114197 2006-09-06  Bruno Haible  <bruno@clisp.org>
114199         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
114200         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
114201         not using libtool correctly.
114203 2006-09-06  Bruno Haible  <bruno@clisp.org>
114205         * lib/striconv.h: New file.
114206         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
114207         iconvstring.c.
114208         * lib/xstriconv.h: New file.
114209         * lib/xstriconv.c: New file.
114211 2006-09-06  Bruno Haible  <bruno@clisp.org>
114213         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
114214         lib_..._LDFLAGS.
114216 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114218         * lib/argz_.h: Sync from Libtool.
114220         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
114221                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114223         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
114225 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114227         * modules/trim: New file.
114229 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114231         * lib/trim.h: New file.
114232         * lib/trim.c: New file.
114234 2006-09-05  Bruno Haible  <bruno@clisp.org>
114236         * MODULES.html.sh (String handling): Add trim.
114238 2006-09-04  Karl Berry  <karl@gnu.org>
114240         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
114241         until next release.
114243 2006-09-03  Bruno Haible  <bruno@clisp.org>
114245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
114246         correctly.
114248 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114250         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
114251         not gl_GETLOADAVG.  Omit unneeded semicolons.
114252         Problems reported by Ralf Wildenhues in
114253         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114254         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
114255         at the end, which is the usual gnulib style.
114257         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
114258         of doing all the work ourselves.
114259         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
114260         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
114262 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114264         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
114265         Problem reported by Ralf Wildenhues in
114266         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114268         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
114269         HAVE_STRUCT_STATFS_F_FSTYPENAME.
114271 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114273         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
114274         yesterday's patch by changing test -n to test -z.
114276 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114278         * modules/getloadavg (Files): Add m4/getloadavg.m4.
114279         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
114280         the former is now obsolescent.
114282         * modules/chdir-long (Depends-on): Add fcntl.
114284 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114286         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
114287         obsolescent, and programs should use gnulib instead.
114288         * m4/getloadavg.m4: New file, with contents taken from Autoconf
114289         but with prefixes changed.
114291 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114293         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
114294         or stdbool.h, because they might not exist while configuring.
114296         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
114297         Don't include unistd.h or limits.h; not needed, since chdir-long.h
114298         does that for us.
114299         (O_DIRECTORY): Remove.
114301 2006-08-31  Eric Blake  <ebb9@byu.net>
114303         * gnulib-tool: Don't let emacs change spaces to TAB.
114305 2006-08-31  Bruno Haible  <bruno@clisp.org>
114307         * gnulib-tool: When calling func_import more than once, do it in a
114308         subshell.
114309         Reported by Eric Blake <ebb9@byu.net>.
114311 2006-08-31  Bruno Haible  <bruno@clisp.org>
114313         * gnulib-tool (nl): Remove variable.
114314         (sed_transform_lib_file): Use more robust test for config-h module.
114315         (func_import): Fix typo in 2006-08-25 patch.
114317 2006-08-31  Bruno Haible  <bruno@clisp.org>
114319         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
114320         specified, augment Makefile.am variables instead of assigning them.
114322 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114324         Work around a bug in both the Linux and SunOS 64-bit kernels:
114325         nanosleep mishandles sleeps for longer than 2**31 seconds.
114326         Problem reported by Frank v Waveren in
114327         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
114329         Check for nanosleep bug.
114330         (LIB_NANOSLEEP): Append clock_gettime library if needed.
114332 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114334         Work around a bug in both the Linux and SunOS 64-bit kernels:
114335         nanosleep mishandles sleeps for longer than 2**31 seconds.
114336         Problem reported by Frank v Waveren in
114337         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114338         * lib/nanosleep.c (BILLION): New constant.
114339         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
114340         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
114341         implementation.
114343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114345         * modules/nanosleep (Depends-on): Add gettime.
114347 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114348         and Simon Josefsson  <jas@extundo.com>
114349         and Oskar Liljeblad  <oskar@osk.mine.nu>
114351         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
114352         * gnulib-tool (func_import): New license type 'unmodifiable license
114353         text'.
114354         * modules/fdl: Use it.  Longer description.
114355         * module/gpl, module/lgpl: New files.
114357 2006-08-30  Jim Meyering  <jim@meyering.net>
114359         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
114360         shadowing the parameter.
114362 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114364         Sync from Libtool:
114366         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114368         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
114369         sharing with gnulib.  Report by Eric Blake.
114371 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114373         * modules/isapipe: New file.
114374         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
114376 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114378         * modules/configmake (Makefile.am): Add a comment, and omit
114379         the CONFIGMAKE_ prefix from generated macro names.  Suggested
114380         by Bruno Haible.
114382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114384         * m4/isapipe.m4: New file.
114386 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114388         * lib/isapipe.c, lib/isapipe.h: New files.
114390 2006-08-29  Jim Meyering  <jim@meyering.net>
114392         * modules/configmake (Makefile.am): Make configmake.h depend on
114393         Makefile.  Otherwise, a stale configmake.h could hang around.
114395 2006-08-29  Eric Blake  <ebb9@byu.net>
114397         * lib/error.c (error_at_line, print_errno_message): Match libc, after
114398         resolution of upstream bug 3044.
114400 2006-08-29  Bruno Haible  <bruno@clisp.org>
114402         * modules/localcharset (Depends-on): Add configmake.
114403         (Makefile.am): Remove setting of LIBDIR through DEFS.
114405 2006-08-29  Bruno Haible  <bruno@clisp.org>
114407         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
114408         defined.
114410 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114412         * modules/fcntl: New file.
114413         * modules/chdir-safer (Depends-on): Add fcntl.
114414         * modules/fts: Likewise.
114415         * modules/mkdir-p: Likewise.
114417         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
114418         This undoes the most recent change, since we're now addressing the
114419         problem in a different way.
114421         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114422         into output, since the output might be called Makefile.am even
114423         if $makefile_name is something different.
114424         (func_import): Use $makefile_am rather than
114425         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114426         empty.
114428         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114430 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114432         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114433         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114434         recent change to stdint.m4, since we're now addressing the problem in a
114435         different way.
114437 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114439         * m4/fcntl_h.m4: New file.
114441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114443         * lib/fcntl_.h: New file.
114444         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114445         the fcntl module.
114446         * lib/dirchownmod.c: Likewise.
114447         * lib/fts.c: Likewise.
114449         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114450         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114451         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114452         just before including <inttypes.h>, to avoid circular inclusion.
114454 2006-08-28  Jim Meyering  <jim@meyering.net>
114456         * doc/visibility.texi: Actually read and correct the grammar of the
114457         sentence affected by yesterday's change.
114459 2006-08-28  Eric Blake  <ebb9@byu.net>
114461         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114462         needs wrapper.
114464 2006-08-28  Eric Blake  <ebb9@byu.net>
114466         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114468 2006-08-28  Eric Blake  <ebb9@byu.net>
114470         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114472 2006-08-28  Bruno Haible  <bruno@clisp.org>
114474         * modules/c-strstr: New file, from GNU gettext.
114475         * MODULES.html.sh (String handling): Add c-strstr.
114477 2006-08-28  Bruno Haible  <bruno@clisp.org>
114479         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114480         macros.
114481         Reported by Eric Blake.
114483 2006-08-28  Bruno Haible  <bruno@clisp.org>
114485         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114486         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114487         * lib/vasprintf.c: Include errno.h, limits.h.
114488         (EOVERFLOW): New fallback definition.
114489         (vasprintf): Test here whether the string length is > INT_MAX.
114490         * lib/vsnprintf.c: Include errno.h, limits.h.
114491         (EOVERFLOW): New fallback definition.
114492         (vsnprintf): Fix bug when generated string was too long for the buffer.
114493         Test here whether the string length is > INT_MAX.
114495 2006-08-28  Bruno Haible  <bruno@clisp.org>
114497         * lib/inttypes_.h (SCNX*): Remove definitions.
114498         Reported by Eric Blake.
114500 2006-08-28  Bruno Haible  <bruno@clisp.org>
114502         * lib/c-strstr.h: New file, from GNU gettext.
114503         * lib/c-strstr.c: New file, from GNU gettext.
114505 2006-08-28  Bruno Haible  <bruno@clisp.org>
114507         * gnulib-tool: Reorder some statements.
114509 2006-08-28  Bruno Haible  <bruno@clisp.org>
114511         * gnulib-tool: New option --makefile-name.
114512         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114513         $makefile_name.
114514         (func_import): Write $makefile_name to the cache file, and read it from
114515         there unless explicitly specified. Use $makefile_name as file name
114516         instead of Makefile.am. Adjust the recommendations accordingly.
114518 2006-08-28  Bruno Haible  <bruno@clisp.org>
114520         * gnulib-tool (func_verify_module): Check against misapplying patch.
114522 2006-08-28  Bruno Haible  <bruno@clisp.org>
114524         * gnulib-tool (func_relativize, func_relconcat): New functions.
114525         Give an error if --local-dir is given with --update.
114526         Remove trailing slashes from $local_gnulib_dir.
114527         (func_import): Store the relativized $local_gnulib_dir in
114528         gnulib-cache.m4, and read it from there if not specified explicitly.
114530 2006-08-28  Bruno Haible  <bruno@clisp.org>
114532         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114533         is the current directory. Respect also $local_gnulib_dir.
114535 2006-08-28  Bruno Haible  <bruno@clisp.org>
114536             Simon Josefsson  <jas@extundo.com>
114538         BeOS portability.
114539         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114541 2006-08-27  Jim Meyering  <jim@meyering.net>
114543         * doc/visibility.texi: Remove duplicate word: "pointer".
114545 2006-08-26  Bruno Haible  <bruno@clisp.org>
114547         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114548         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114549         (Makefile.am): Create inttypes.h from inttypes_.h.
114550         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114552         * modules/imaxabs: New file.
114554         * modules/imaxdiv: New file.
114556 2006-08-26  Bruno Haible  <bruno@clisp.org>
114558         * m4/inttypes.m4: New file.
114559         * m4/_inttypes_h.m4: Remove file.
114560         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114561         PRI_MACROS_BROKEN.
114562         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114564         * m4/imaxabs.m4: New file.
114566         * m4/imaxdiv.m4: New file.
114568 2006-08-26  Bruno Haible  <bruno@clisp.org>
114570         * lib/inttypes_.h: New file.
114571         * lib/inttypes.h: Remove file.
114572         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114574         * lib/imaxabs.c: New file.
114576         * lib/imaxdiv.c: New file.
114578 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114580         New config-h module, so that "make" output needn't be cluttered
114581         by -DHAVE_CONFIG_H.
114582         * MODULES.html.sh (Support for building libraries and executables):
114583         Add config-h.
114584         * modules/config-h: New file.
114585         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114586         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114587         the config-h module is used.
114589         New configmake module, so that "make" output needn't be cluttered
114590         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114591         * MODULES.html.sh (Support for building libraries and executables):
114592         Add configmake.
114593         * modules/configmake: New file.
114595 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114597         * m4/config-h.m4: New file.
114599 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114601         * config/srclist.txt: Add elisp-comp.
114603 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114605         * MODULES.html.sh (Support for building libraries and executables):
114606         Add elisp-comp.
114607         * build-aux/elisp-comp: New file.
114608         * modules/elisp-comp: New file.
114610 2006-08-24  Bruno Haible  <bruno@clisp.org>
114612         * gnulib-tool (func_create_testdir): Use non-default values of
114613         sourcebase and m4base.
114615 2006-08-24  Bruno Haible  <bruno@clisp.org>
114617         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114618         HTML structure.
114620 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114622         * modules/openat (Depends-on): Add lchown.
114624 2006-08-23  Bruno Haible  <bruno@clisp.org>
114626         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114627         of gl_LOCK_EARLY instead of gl_LOCK.
114629 2006-08-23  Bruno Haible  <bruno@clisp.org>
114631         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114632         on OSF/1 to no.
114633         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114635 2006-08-23  Bruno Haible  <bruno@clisp.org>
114637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114638         as unusable.
114640         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114641         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114642         (gl_LOCK): New macro.
114644 2006-08-22  Simon Josefsson  <jas@extundo.com>
114646         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114647         to md5 module.
114649 2006-08-22  Simon Josefsson  <jas@extundo.com>
114651         * MODULES.html.sh: Add "Support for maintaining and release
114652         projects".
114654         * build-aux/gnupload: New file, from coreutils.
114656 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114658         Avoid the need for AC_LIBSOURCES in m4 macros.
114659         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114660         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114661         * modules/check-version (EXTRA_DIST): Add check-version.h.
114662         * modules/crc (EXTRA_DIST): Add crc.h.
114663         * modules/des (EXTRA_DIST): Add des.h.
114664         * modules/gc (EXTRA_DIST): Add gc.h.
114665         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114666         * modules/getline (EXTRA_DIST): Add getline.h.
114667         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114668         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114669         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114670         * modules/md2 (EXTRA_DIST): Add md2.h.
114671         * modules/md4 (EXTRA_DIST): Add md4.h.
114672         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114673         * modules/read-file (EXTRA_DIST): Add read-file.h.
114674         * modules/readline (EXTRA_DIST): Add readline.h.
114675         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114676         rijndael-api-fst.h.
114678 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114680         * m4/rijndael.m4 (gl_ARCFOUR):
114681         * m4/arctwo.m4 (gl_ARCTWO):
114682         * m4/check-version.m4 (gl_CHECK_VERSION):
114683         * m4/crc.m4 (gl_CRC):
114684         * m4/des.m4 (gl_DES):
114685         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114686         * m4/gc.m4 (gl_GC):
114687         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114688         * m4/getline.m4 (gl_FUNC_GETLINE):
114689         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114690         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114691         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114692         * m4/md2.m4 (gl_MD2):
114693         * m4/md4.m4 (gl_MD4):
114694         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114695         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114696         * m4/readline.m4 (gl_FUNC_READLINE):
114697         * m4/rijndael.m4 (gl_RIJNDAEL):
114698         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114699         to get the necessary .h files and whatnot.
114701 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114703         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114704         gnulib rather than the other way around.
114705         * config/srclistvars.sh (COREUTILS): Remove.
114707 2006-08-22  Jim Meyering  <jim@meyering.net>
114709         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114711         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114713 2006-08-22  Eric Blake  <ebb9@byu.net>
114715         * modules/regexprops-generic: New file.
114716         * MODULES.html.sh (Support for building documentation): List it.
114718 2006-08-22  Eric Blake  <ebb9@byu.net>
114720         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114721         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114722         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114723         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114725 2006-08-22  Bruno Haible  <bruno@clisp.org>
114727         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114728         and lib_LTLIBRARIES like the other lib_* variables.
114730 2006-08-22  Bruno Haible  <bruno@clisp.org>
114732         * build-aux/x-to-1.in: New file, from GNU gettext.
114734 2006-08-22  Bruno Haible  <bruno@clisp.org>
114736         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114737         <utmpx.h> exists.
114739 2006-08-22  Bruno Haible  <bruno@clisp.org>
114741         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114742         <utmpx.h> exists.
114744 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114746         BeOS portability.
114747         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114748         exist.
114749         Problem reported by Bruno Haible.
114751 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114753         Avoid the need for AC_LIBSOURCES in m4 macros.
114754         * modules/acl (EXTRA_DIST): Add acl.h.
114755         * modules/argmatch (Files): Add m4/argmatch.m4.
114756         (configure.ac): Add gl_ARGMATCH.
114757         (EXTRA_DIST): Renamed from lib_SOURCES, for
114758         consistency with the other modules.  Remove argmatch.c.
114759         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114760         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114761         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114762         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114763         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114764         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114765         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114766         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114767         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114768         * modules/closeout (EXTRA_DIST): Add closeout.h.
114769         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114770         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114771         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114772         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114773         dirname.h; remove basename.c and stripslash.c.
114774         * modules/exclude (EXTRA_DIST): Add exclude.h.
114775         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114776         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114777         * modules/file-type (EXTRA_DIST): Add file-type.h.
114778         * modules/filemode (EXTRA_DIST): Add filemode.h.
114779         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114780         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114781         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114782         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114783         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114784         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114785         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114786         * modules/getdate (EXTRA_DIST): Add getdate.c.
114787         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114788         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114789         * modules/getpass (EXTRA_DIST): Add getpass.h.
114790         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114791         * modules/group-member (EXTRA_DIST): Add group-member.h.
114792         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114793         * modules/hash (EXTRA_DIST): Add hash.h.
114794         * modules/human (EXTRA_DIST): Add human.h.
114795         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114796         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114797         * modules/lchown (EXTRA_DIST): Add lchown.h.
114798         * modules/long-options (EXTRA_DIST): Add long-options.h.
114799         * modules/lstat (EXTRA_DIST): Add lstat.h.
114800         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114801         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114802         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114803         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114804         * modules/memxor (EXTRA_DIST): Add memxor.h.
114805         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114806         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114807         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114808         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114809         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114810         * modules/physmem (EXTRA_DIST): Add physmem.h.
114811         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114812         * modules/posixver (EXTRA_DIST): Add posixver.h.
114813         * modules/quote (EXTRA_DIST): Add quote.h.
114814         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114815         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114816         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114817         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114818         regex_internal.h regexec.c.
114819         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114820         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114821         * modules/same (EXTRA_DIST): Add same.h.
114822         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114823         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114824         * modules/savedir (EXTRA_DIST): Add savedir.h.
114825         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114826         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114827         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114828         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114829         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114830         * modules/strdup (EXTRA_DIST): Add strdup.h.
114831         * modules/strftime (EXTRA_DIST): Add strftime.h.
114832         * modules/strndup (EXTRA_DIST): Add strndup.h.
114833         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114834         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114835         * modules/time_r (EXTRA_DIST): Add time_r.h.
114836         * modules/timespec (EXTRA_DIST): Add timespec.h.
114837         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114838         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114839         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114840         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114841         * modules/userspec (EXTRA_DIST): Add userspec.h.
114842         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114843         * modules/utimens (EXTRA_DIST): Add utimens.h.
114844         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114845         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114846         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114847         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114848         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114849         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114850         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114851         * modules/yesno (EXTRA_DIST): Add yesno.h.
114853 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114855         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114857         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114858         * m4/dev-ino.m4, same-inode.m4: Remove.
114860         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114861         * m4/acl.m4 (AC_FUNC_ACL):
114862         * m4/backupfile.m4 (gl_BACKUPFILE):
114863         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114864         * m4/canon-host.m4 (gl_CANON_HOST):
114865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114866         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114867         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114868         * m4/cloexec.m4 (gl_CLOEXEC):
114869         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114870         * m4/closeout.m4 (gl_CLOSEOUT):
114871         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114872         * m4/dirname.m4 (gl_DIRNAME):
114873         * m4/exclude.m4 (gl_EXCLUDE):
114874         * m4/exitfail.m4 (gl_EXITFAIL):
114875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114876         * m4/file-type.m4 (gl_FILE_TYPE):
114877         * m4/filemode.m4 (gl_FILEMODE):
114878         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114879         * m4/fpending.m4 (gl_FUNC_FPENDING):
114880         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114881         * m4/fts.m4 (gl_FUNC_FTS):
114882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114883         * m4/getdate.m4 (gl_GETDATE):
114884         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114885         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114886         * m4/getpass.m4 (gl_FUNC_GETPASS):
114887         * m4/gettime.m4 (gl_GETTIME):
114888         * m4/getugroups.m4 (gl_GETUGROUPS):
114889         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114890         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114891         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114892         * m4/hash.m4 (gl_HASH):
114893         * m4/idcache.m4 (gl_IDCACHE):
114894         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114895         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114896         * m4/long-options.m4 (gl_LONG_OPTIONS):
114897         * m4/lstat.m4 (gl_FUNC_LSTAT):
114898         * m4/md5.m4 (gl_MD5):
114899         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114900         * m4/memcoll.m4 (gl_MEMCOLL):
114901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114902         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114903         * m4/memxor.m4 (gl_MEMXOR):
114904         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114905         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114906         * m4/modechange.m4 (gl_MODECHANGE):
114907         * m4/mountlist.m4 (gl_MOUNTLIST):
114908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114909         * m4/openat.m4 (gl_FUNC_OPENAT):
114910         * m4/pathmax.m4 (gl_PATHMAX):
114911         * m4/physmem.m4 (gl_PHYSMEM):
114912         * m4/posixtm.m4 (gl_POSIXTM):
114913         * m4/posixver.m4 (gl_POSIXVER):
114914         * m4/quote.m4 (gl_QUOTE):
114915         * m4/quotearg.m4 (gl_QUOTEARG):
114916         * m4/readtokens.m4 (gl_READTOKENS):
114917         * m4/readutmp.m4 (gl_READUTMP):
114918         * m4/regex.m4 (gl_REGEX):
114919         * m4/safe-read.m4 (gl_SAFE_READ):
114920         * m4/safe-write.m4 (gl_SAFE_WRITE):
114921         * m4/same.m4 (gl_SAME):
114922         * m4/save-cwd.m4 (gl_SAVE_CWD):
114923         * m4/savedir.m4 (gl_SAVEDIR):
114924         * m4/settime.m4 (gl_SETTIME):
114925         * m4/sha1.m4 (gl_SHA1):
114926         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114927         * m4/stat-macros.m4 (gl_STAT_MACROS):
114928         * m4/stat-time.m4 (gl_STAT_TIME):
114929         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114930         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114931         * m4/strdup.m4 (gl_FUNC_STRDUP):
114932         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114933         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114934         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114935         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114936         * m4/time_r.m4 (gl_TIME_R):
114937         * m4/timespec.m4 (gl_TIMESPEC):
114938         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114939         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114940         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114941         * m4/userspec.m4 (gl_USERSPEC):
114942         * m4/utimecmp.m4 (gl_UTIMECMP):
114943         * m4/utimens.m4 (gl_UTIMENS):
114944         * m4/xalloc.m4 (gl_XALLOC):
114945         * m4/xgetcwd.m4 (gl_XGETCWD):
114946         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114947         * m4/xreadlink.m4 (gl_XREADLINK):
114948         * m4/xstrtod.m4 (gl_XSTRTOD):
114949         * m4/yesno.m4 (gl_YESNO):
114950         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114951         to get the necessary .h files and whatnot.
114953 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114954             Bruno Haible  <bruno@clisp.org>
114956         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114957         /bin/sh understanding of '!' conditional negation.
114959 2006-08-21  Jim Meyering  <jim@meyering.net>
114961         * modules/openat (Depends-on): Really alphabetize.
114963         * modules/acl (Depends-on): Add error and quote.
114965         * check-module (find_included_lib_files): Add at-func.c to the
114966         ok-to-include-more-than-once white list.
114968         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114970 2006-08-21  Bruno Haible  <bruno@clisp.org>
114972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114973         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114974         Reported by Martin Lambers <marlam@marlam.de>.
114976 2006-08-21  Bruno Haible  <bruno@clisp.org>
114978         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114979         specify an installation location, don't emit a noinst_LIBRARIES or
114980         noinst_LTLIBRARIES assignment.
114982 2006-08-21  Bruno Haible  <bruno@clisp.org>
114984         BeOS portability.
114985         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114986         BeOS has mbrtowc() but no <wctype.h>.
114988 2006-08-21  Bruno Haible  <bruno@clisp.org>
114990         BeOS portability.
114991         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114992         exist.
114994 2006-08-21  Bruno Haible  <bruno@clisp.org>
114996         BeOS portability.
114997         * lib/mbchar.h: Include <wctype.h> only if it exists.
114999 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115001         Remove files that are no longer needed by their respective modules.
115002         * m4/obstack.m4: Remove.
115003         * m4/strerror_r.m4: Remove.
115004         * m4/uint32_t.m4: Remove.
115005         * m4/uintptr_t.m4: Remove.
115006         * m4/ullong_max.m4: Remove.
115007         * m4/xstrtoimax.m4: Remove.
115008         * m4/xstrtoumax.m4: Remove.
115010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
115011         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
115012         dependencies now capture this.
115014         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
115015         Do not use AC_LIBSOURCES, since gnulib modules now do this.
115016         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
115017         * m4/human.m4 (gl_HUMAN): Likewise.
115018         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
115019         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
115021         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
115023         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
115024         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
115025         stdint.
115026         * m4/human.m4 (gl_HUMAN): Likewise.
115027         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
115028         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
115029         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115030         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115031         * m4/xstrtol (gl_XSTRTOL): Likewise.
115033         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
115034         AC_TYPE_LONG_LONG_INT.
115035         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115036         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
115037         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
115038         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115040         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
115041         on stdbool.
115043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
115044         (gl_PREREQ_XSTRTOUL): Remove.
115046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
115048         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
115049         mode.
115051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115053         Add and change modules to make it easier for coreutils to use
115054         gnulib-tool.
115055         * modules/backupfile (Files): Remove m4/d-ino.m4.
115056         (Depends-on): Add d-ino.
115057         * modules/cycle-check (Depends-on): Add stdint.
115058         (lib_SOURCES): Add cycle-check.h.
115059         * modules/d-ino: New module.
115060         * modules/d-type: New module.
115061         * modules/error (Files): Remove m4/strerror_r.m4.
115062         * modules/filemode (Files): Add m4/st_dm_mode.m4.
115063         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
115064         m4/inttypes_h.m4, m4/uintmax_t.m4.
115065         (Depends-on): Add stdint.
115066         (lib_SOURCES): Add fsusage.h.
115067         * modules/getcwd (Files): Remove d-ino.m4.
115068         (Depends-on): Add d-ino.
115069         * modules/getndelim2 (Depends-on): Add stdint.
115070         * modules/glob (Files): Remove m4/d-type.m4.
115071         (Depends-on): Add d-type.
115072         * modules/host-os: New module.
115073         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
115074         m4/inttypes_h.m4, m4/uintmax_t.m4.
115075         * Depends-on: Add stdint.
115076         (lib_SOURCES): Add human.h.
115077         * modules/inttostr (Files): Remove m4/intmax_t.m4,
115078         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
115079         m4/uintmax_t.m4, m4/ulonglong.m4.
115080         (Depends-on): Add stdint.
115081         (EXTRA_DIST): Add inttostr.h.
115082         * modules/lchmod: New module.
115083         * modules/link-follow: New module.
115084         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
115085         (Depends-on): Add lchmod.
115086         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
115087         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
115088         (Depends-on): Add stdint.
115089         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
115090         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
115091         (Depends-on): Add stdint.
115092         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
115093         * modules/perl: New module.
115094         * modules/regex (Depends-on): Add stdint.
115095         * modules/rmdir-errno: New module.
115096         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115097         m4/intmax_t.m4.
115098         (Depends-on): Add stdint.
115099         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115100         m4/uintmax_t.m4.
115101         (Depends-on): Add stdint.
115102         * modules/unlink-busy: New module.
115103         * modules/utimecmp (Depends-on): Add stdint.
115104         * modules/uptime: New module.
115105         * modules/winsz-ioctl: New module.
115106         * modules/winsz-termios: New module.
115107         * modules/xnanosleep (Depends-on): Add nanosleep.
115108         * modules/ullong_max: Remove.
115109         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
115110         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
115111         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
115112         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
115113         (Depends-on): Add inttypes.
115114         (lib_SOURCES): Add xstrtol.h.
115115         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
115116         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
115117         * MODULES.html.sh: Move 'assert' into the assert section.
115118         Move 'dummy' into the linking section.
115119         Remove ullong_max.
115120         Add section for compatibility checks for POSIX:2001 functions,
115121         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
115122         winsz-ioctl, and winsz-termios into it.
115123         Add lchmod.
115124         Add top-level Misc section and put host-os, perl, and uptime
115125         into it.
115127 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115129         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
115130         now assume the stdint module.  Do not include inttypes.h.
115131         * lib/fsusage.h: Likewise.
115132         * lib/getndelim2.c: Likewise.
115133         * lib/human.h: Likewise.
115134         * lib/inttostr.h: Likewise.
115135         * lib/obstack.c: Likewise.
115136         * lib/regex_internal.h: Likewise.
115137         * lib/tempname.c: Likewise.
115138         * lib/utimecmp.c: Likewise.
115139         * lib/xstrtol.h: Likewise.
115141         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
115143         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
115144         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
115145         * lib/xtime.h: Likewise.
115147 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115149         * modules/openat (Files): Add lib/fchmodat.c.
115150         Fixes problem reported by Jay Youngman.
115152 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115154         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
115155         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
115157 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
115158             Bruno Haible  <bruno@clisp.org>
115160         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
115161         and is a script that invokes bison. Tighten the code. Add comments.
115163 2006-08-18  Jim Meyering  <jim@meyering.net>
115165         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
115166         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
115167         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
115168         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
115170 2006-08-18  Bruno Haible  <bruno@clisp.org>
115172         * modules/bison-i18n: New file.
115173         * MODULES.html.sh (Internationalization functions): Add it.
115175 2006-08-18  Bruno Haible  <bruno@clisp.org>
115177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
115178         sys/statvfs.h. When getmntinfo was found, check its declaration and
115179         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
115181 2006-08-18  Bruno Haible  <bruno@clisp.org>
115183         * m4/bison-i18n.m4: New file, from bison.
115185 2006-08-18  Bruno Haible  <bruno@clisp.org>
115187         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
115188         (ME_DUMMY): Treat "kernfs" as a dummy.
115189         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
115191 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115193         Update from coreutils.
115195         2006-08-15  Jim Meyering  <jim@meyering.net>
115197         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
115199         2006-01-17  Jim Meyering  <jim@meyering.net>
115201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
115203         2006-01-11  Jim Meyering  <jim@meyering.net>
115205         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
115206         Check for the lchmod function.
115208 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115210         Update from coreutils.
115212         * lib/__fpending.h: Add copyright notice.
115213         * lib/fprintftime.h: Likewise.
115214         * lib/savedir.c: Use (C) in copyright notice.
115215         * lib/savedir.h: Likewise.
115217         2006-08-15  Jim Meyering  <jim@meyering.net>
115219         * lib/at-func.c: New file, with the logic of all emulated at-functions.
115220         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
115221         in support of the EXPECTED_ERRNO macro.
115222         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
115223         definitions.  Instead, define the appropriate symbols and include
115224         "at-func.c".
115225         * lib/mkdirat.c (mkdirat): Likewise.
115226         * lib/fchmodat.c (fchmodat): Likewise.
115227         (ENOSYS): Remove definition.
115228         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
115229         it.  Don't include "unistd--.h" -- it wasn't ever used.
115231         2006-01-17  Jim Meyering  <jim@meyering.net>
115233         Rewrite fts.c not to change the current working directory,
115234         by using openat, fstatat, fdopendir, etc..
115236         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
115237         (HAVE_OPENAT_SUPPORT): Define.
115238         [_LIBC] (fchdir): Don't undef or define; no longer used.
115239         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
115240         Now, this `function' always succeeds, and consumes its file descriptor
115241         parameter -- so callers must not close such FDs.  Update callers.
115242         (diropen_fd, opendirat, cwd_advance_fd): New functions.
115243         (diropen): Add parameter, SP.  Adjust all callers.
115244         Implement using diropen_fd, rather than open.
115245         (fts_open): Initialize new member, fts_cwd_fd.
115246         Remove fts_rft-setting code.
115247         (fts_close): Close fts_cwd_fd, if necessary.
115248         (__opendir2): Define in terms of opendir or opendirat,
115249         depending on whether the FST_NOCHDIR flag is set.
115250         (fts_build): Since fts_safe_changedir consumes its FD, and since
115251         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
115252         and close the dup'd file descriptor upon failure.
115253         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
115254         (fts_safe_changedir): Tweak semantics to reflect that this function
115255         now calls cwd_advance_fd and hence consumes its FD argument.
115256         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
115257         [struct FTS] (fts_rft): Remove now-unused member.
115258         [struct FTS] (fts_cycle.state): Improve comment.
115260         * lib/openat.c (openat_needs_fchdir): New function.
115261         * lib/openat.h (openat_needs_fchdir): Declare it.
115263 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115265         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
115266         Problem and fix reported by Pádraig Brady in
115267         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
115269 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115271         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
115273 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115275         * lib/memcoll.c (memcoll): Optimize for the common case where the
115276         arguments are bytewise equal.
115278 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115280         * doc/regexprops-generic.texi: Add a copyright notice.
115282 2006-08-15  Bruno Haible  <bruno@clisp.org>
115284         * modules/tmpdir (License): Change to LGPL.
115286 2006-08-15  Bruno Haible  <bruno@clisp.org>
115288         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
115289         module.
115291 2006-08-14  Simon Josefsson  <jas@extundo.com>
115293         * config/srclist.txt: Add gnupload.
115295 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115297         Change copyright notice from LGPL 2 to GPL 2, since that's the
115298         standard form used in the gnulib repository.
115299         * tests/test-lock.c: Likewise.
115300         * tests/test-stdint.c: Likewise.
115301         * tests/test-tls.c: Likewise.
115303         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
115304         prelude-manager.  User shorter URLs for GNU projects, without '?'.
115305         Add copyright notice.
115307         * check-module: Add copyright notice.  Output a copyright
115308         notice if "--version" is specified.
115309         * modules/COPYING: New file.
115310         * tests/test-getaddrinfo.c: Add copyright notice.
115311         * tests/test-verify.c: Likewise.
115313 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115315         Change copyright notice from LGPL 2 to GPL 2, since that's the
115316         standard form used in the gnulib repository.
115317         * lib/lock.c: LGPL -> GPL.
115318         * lib/lock.h: Likewise.
115319         * lib/strnlen1.c: Likewise.
115320         * lib/strnlen1.h: Likewise.
115321         * lib/tls.c: Likewise.
115322         * lib/tls.h: Likewise.
115323         * lib/tmpdir.c: Likewise.
115325         * lib/TODO: Remove; this belongs only in coreutils.
115327 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115329         Add copyright notices to long-enough files that lack them, since
115330         otherwise the files aren't clearly free.  Use the same notice that
115331         getdate.texi already uses.
115332         * doc/alloca-opt.texi: Add copyright notice.
115333         * doc/alloca.texi: Likewise.
115334         * doc/ctime.texi: Likewise.
115335         * doc/functions.texi: Likewise.
115336         * doc/gcd.texi: Likewise.
115337         * doc/gnulib-tool.texi: Likewise.
115338         * doc/inet_ntoa.texi: Likewise.
115339         * doc/visibility.texi: Likewise.
115341         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
115342         * doc/quote.texi: Add copyright notice.
115344         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
115345         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
115346         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
115347         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
115348         is now obsolete, and give a pointer to the Sun list.
115349         Add copyright notice.
115351 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115353         * config/srclistvars.sh: Add copyright notice.
115355 2006-08-14  Eric Blake  <ebb9@byu.net>
115357         Import the following change from libc:
115359         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
115361         Upstream bug 2997.
115362         * lib/misc/error.c: Add space between program name and message if file
115363         name is missing.
115365 2006-08-12  Karl Berry  <karl@gnu.org>
115367         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
115368         remove, these originate in gnulib now.
115370 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115372         * doc/Makefile (standards.info standards.html standards.dvi):
115373         Also depend on make-stds.texi.
115375 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
115377         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
115378         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
115380         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
115381         in wchar_t.  Problem reported by Eric Blake.
115383         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
115384         LEN is smaller than SIZE.  Suggested by Bruno Haible.
115385         Also, help the compiler to keep LEN in a register.
115387 2006-08-11  Eric Blake  <ebb9@byu.net>
115389         * users.txt: Sort.  Add tar.
115391 2006-08-11  Bruno Haible  <bruno@clisp.org>
115393         * users.txt: New file.
115395 2006-08-11  Bruno Haible  <bruno@clisp.org>
115397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
115398         before <wchar.h>. Needed for OSF/1 and BSD/OS.
115400 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115402         * modules/snprintf (Depends-on): Remove minmax.
115403         (Maintainer): Add self and Bruno.
115405 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115407         * lib/.cppi-disable: Add snprintf.h, socket_.h.
115408         * lib/snprintf.c: Include <errno.h> and <limits.h>.
115409         (EOVERFLOW): Define if the system does not.
115410         Do not include "minmax.h"; it wasn't used.
115411         (snprintf): Don't assume size_t promotes to an unsigned type.
115412         Fix bug when generated string was too long for the buffer: the
115413         buffer's contents are supposed to be the initial prefix of the
115414         output.  Don't assume vasnprintf returns EOVERFLOW if the size
115415         exceeds INT_MAX; do the check ourselves.
115417         Import the following changes from libc:
115419         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115421         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115422         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115423         set wc to the byte which couldn't be converted.
115424         (re_string_reconstruct): Don't clear valid_raw_len before calling
115425         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115426         tip_context using re_string_context_at.
115428         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115430         * lib/posix/regex.h: g++ still cannot handled [restrict].
115432         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115434         * lib/posix/regex.h: Remove special handling for VMS.
115436 2006-08-10  Jim Meyering  <jim@meyering.net>
115438         * modules/same-inode: New module.
115439         * modules/dev-ino: New module.
115440         * modules/cycle-check: Depend on these modules, rather than simply
115441         including their .h files.
115442         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115443         required via m4/cycle-check.m4.
115444         * modules/same: Depend on new same-inode module, rather than
115445         including same-inode.h.
115446         * modules/chdir-safer: New file.
115448         * modules/chown (Depends-on): Add stat-macros.
115450 2006-08-10  Jim Meyering  <jim@meyering.net>
115452         * m4/cycle-check.m4: New file.
115453         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115454         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115456 2006-08-10  Eric Blake  <ebb9@byu.net>
115458         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115459         in from original proposal.
115461 2006-08-10  Eric Blake  <ebb9@byu.net>
115462         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115464         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115465         namespace.
115467 2006-08-10  Bruno Haible  <bruno@clisp.org>
115469         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115470         as well.
115472 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115474         Sync from coreutils.
115476         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115478         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115479         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115481 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115483         * modules/restrict: Remove; no longer needed now that we assume
115484         Autoconf 2.59 or later.
115485         * MODULES.html.sh: Remove 'restrict'.
115486         * modules/argp (Depends-on): Remove 'restrict'.
115487         * modules/base64 (Depends-on): Likewise.
115488         * modules/gc (Depends-on): Likewise.
115489         * modules/getaddrinfo (Depends-on): Likewise.
115490         * modules/glob (Depends-on): Likewise.
115491         * modules/inet_ntop (Depends-on): Likewise.
115492         * modules/inet_pton (Depends-on): Likewise.
115493         * modules/memxor (Depends-on): Likewise.
115494         * modules/regex (Depends-on): Likewise.
115495         * modules/strtok_r (Depends-on): Likewise.
115496         * modules/time_r (Depends-on): Likewise.
115498 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115500         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115501         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115502         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115503         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115504         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115505         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115506         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115507         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115509         Merge from coreutils.
115510         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115511         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115512         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115513         * m4/time_r.m4 (gl_TIME_R): Likewise.
115515 2006-08-09  Karl Berry  <karl@gnu.org>
115517         * config/srclist.txt: no more gettext-tools, per Bruno.
115519 2006-08-08  Eric Blake  <ebb9@byu.net>
115521         * modules/verror: New module.
115522         * MODULES.html.sh: Document it.
115524 2006-08-08  Eric Blake  <ebb9@byu.net>
115526         * lib/verror.h, lib/verror.c: New files.
115528 2006-08-08  Eric Blake  <ebb9@byu.net>
115530         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115531         verror_at_line output complies with GNU Coding Standards even when
115532         file is NULL.
115534 2006-08-07  Bruno Haible  <bruno@clisp.org>
115536         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115537         versions of AIX.
115538         Reported by Ralf Wildenhues.
115540 2006-08-07  Bruno Haible  <bruno@clisp.org>
115542         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115543         in an AC_DEFUN. Needed so that the autoconf snippets can use
115544         AC_REQUIRE.
115546 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115548         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115549         Initialize pkgdata_DATA.
115550         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115551         overriding it.
115553 2006-08-06  Eric Blake  <ebb9@byu.net>
115555         * lib/error.h: Fold in some upstream changes from glibc.
115556         * lib/error.c: Likewise.
115558 2006-08-04  Bruno Haible  <bruno@clisp.org>
115560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115561         Make the mostlyclean-local rule depend on mostlyclean-generic.
115562         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115564 2006-07-31  Bruno Haible  <bruno@clisp.org>
115566         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115567         <stdlib.h>, <string.h>.
115569 2006-07-30  Bruno Haible  <bruno@clisp.org>
115571         * modules/readlink (License): Change to LGPL.
115573 2006-07-30  Bruno Haible  <bruno@clisp.org>
115575         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115576         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115577         set PKGDATADIR to point to it.
115579 2006-07-30  Bruno Haible  <bruno@clisp.org>
115581         * modules/csharpexec (configure.ac): Comment out macro invocation.
115582         * modules/javaexec (configure.ac): Likewise.
115583         * modules/javacomp-script (configure.ac): Likewise.
115585         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115587 2006-07-30  Bruno Haible  <bruno@clisp.org>
115589         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115590         linked-list.
115592 2006-07-30  Bruno Haible  <bruno@clisp.org>
115594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115596 2006-07-30  Bruno Haible  <bruno@clisp.org>
115598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115599         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115600         get removed.
115602 2006-07-29  Bruno Haible  <bruno@clisp.org>
115604         Make it possible for gnulib-tool to work with locally modified or
115605         augmented gnulib repositories.
115606         * gnulib-tool (func_usage): Document --local-dir option.
115607         (local_gnulib_dir): New variable.
115608         Handle --local-dir option.
115609         (func_lookup_file): New function.
115610         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115611         (func_get_description, func_get_filelist, func_get_description,
115612         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115613         func_get_automake_snippet, func_get_include_directive,
115614         func_get_license, func_get_maintainer): Use func_lookup_file.
115615         (func_import, func_create_testdir): Use func_lookup_file.
115617 2006-07-29  Bruno Haible  <bruno@clisp.org>
115619         * modules/setenv (Depends-on): Add unistd.
115621 2006-07-29  Bruno Haible  <bruno@clisp.org>
115623         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115625 2006-07-29  Bruno Haible  <bruno@clisp.org>
115627         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115629 2006-07-29  Bruno Haible  <bruno@clisp.org>
115631         * gnulib-tool (import, update): If there is no Makefile.am, look at
115632         aclocal.m4, instead of bailing out.
115634 2006-07-29  Bruno Haible  <bruno@clisp.org>
115636         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115637         Categorize the options by when they are useful.
115639 2006-07-29  Bruno Haible  <bruno@clisp.org>
115641         * gnulib-tool (func_usage): Document option --no-libtool.
115642         Handle option --no-libtool.
115643         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115644         for changed semantics of $libtool variable.
115645         (func_import): Likewise. If libtool is not used, show this through
115646         an option --no-libtool.
115647         (func_create_testdir): Update.
115649 2006-07-29  Bruno Haible  <bruno@clisp.org>
115651         * gnulib-tool (func_import): Extend error message about missing
115652         --doc-base.
115654 2006-07-29  Bruno Haible  <bruno@clisp.org>
115656         * gnulib-tool (func_import): Don't create the $docbase directory if
115657         there is no file to store there.
115659 2006-07-29  Bruno Haible  <bruno@clisp.org>
115661         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115662         relevant, look for configure.ac there, not in the current directory.
115663         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115665 2006-07-29  Bruno Haible  <bruno@clisp.org>
115667         * gnulib-tool (SORT): New variable.
115668         (func_usage): Undocument --assume-autoconf option.
115669         Remove --assume-autoconf option handling.
115670         (autoconf_minversion): Determine from the contents of configure.ac.
115671         (func_import): Remove autoconf_minversion handling.
115672         Suggested by Eric Blake.
115674 2006-07-29  Bruno Haible  <bruno@clisp.org>
115676         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115678 2006-07-29  Bruno Haible  <bruno@clisp.org>
115680         * config/srclist.txt (*setenv.[ch]): Remove rules.
115682 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115684         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115686 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115688         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115689         arpa/inet.h.
115691 2006-07-28  Simon Josefsson  <jas@extundo.com>
115693         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115694         * modules/inet_pton (Depends-on): Likewise.
115696 2006-07-28  Simon Josefsson  <jas@extundo.com>
115698         * m4/netinet_in_h.m4: New file.
115700 2006-07-28  Simon Josefsson  <jas@extundo.com>
115702         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115703         #include's.
115705 2006-07-28  Simon Josefsson  <jas@extundo.com>
115707         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115708         #include's.
115710 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115712         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115713         setgid on directories only if they set these bits.
115714         * lib/modechange.h: Remove obsolete comment about masks.
115716 2006-07-28  Eric Blake  <ebb9@byu.net>
115718         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115719         macro expansion.
115721 2006-07-28  Bruno Haible  <bruno@clisp.org>
115723         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115725 2006-07-28  Bruno Haible  <bruno@clisp.org>
115727         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115729 2006-07-28  Bruno Haible  <bruno@clisp.org>
115731         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115732         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115733         Define fallbacks.
115734         Avoids link error on FreeBSD 4.x.
115735         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115737         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115738         encoding.
115739         * lib/mbswidth.c (iswcntrl): Likewise.
115741 2006-07-27  Bruno Haible  <bruno@clisp.org>
115743         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115744         test.
115746 2006-07-27  Bruno Haible  <bruno@clisp.org>
115748         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115749         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115750         defined.
115752 2006-07-26  Eric Blake  <ebb9@byu.net>
115754         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115756 2006-07-26  Eric Blake  <ebb9@byu.net>
115758         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115759         like mingw that lack mkstemp.
115760         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115761         avoid compilation warning on mingw.
115763 2006-07-26  Bruno Haible  <bruno@clisp.org>
115765         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115766         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115767         INT_FAST*_MIN, INTPTR_MIN.
115769 2006-07-25  Bruno Haible  <bruno@clisp.org>
115771         * modules/version-etc (Depends-on): Add stdarg.
115773 2006-07-25  Bruno Haible  <bruno@clisp.org>
115775         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115776         complex commands.
115778 2006-07-25  Bruno Haible  <bruno@clisp.org>
115780         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115781         defined in <stdarg.h> or config.h.
115783 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115785         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115786         (gl_STDIO_SAFER): Remove.
115788 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115790         * MODULES.html.sh (File stream based Input/Output):
115791         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115792         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115793         * modules/fopen-safer, modules/tmpfile-safer: New files.
115794         * modules/stdio-safer: Remove.
115796 2006-07-24  Bruno Haible  <bruno@clisp.org>
115798         * modules/tmpdir: New file.
115799         * MODULES.html.sh (File system functions): Add it.
115801 2006-07-24  Bruno Haible  <bruno@clisp.org>
115803         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115804         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115806 2006-07-24  Bruno Haible  <bruno@clisp.org>
115808         * modules/clean-temp: New file.
115810 2006-07-24  Bruno Haible  <bruno@clisp.org>
115812         * m4/tmpdir.m4: New file, from GNU gettext.
115814 2006-07-24  Bruno Haible  <bruno@clisp.org>
115816         * lib/tmpdir.h: New file, from GNU gettext.
115817         * lib/tmpdir.c: New file, from GNU gettext.
115819 2006-07-24  Bruno Haible  <bruno@clisp.org>
115821         * lib/clean-temp.h: New file, from GNU gettext.
115822         * lib/clean-temp.c: New file, from GNU gettext.
115824 2006-07-23  Eric Blake  <ebb9@byu.net>
115826         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115827         (Depends-on): Add binary-io.
115829 2006-07-23  Eric Blake  <ebb9@byu.net>
115831         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115833 2006-07-23  Eric Blake  <ebb9@byu.net>
115835         * lib/tmpfile-safer.c: New file.
115836         * lib/stdio-safer.h (fopen_safer): Add prototype.
115837         * lib/stdio--.h (tmpfile): Make safer.
115839 2006-07-23  Bruno Haible  <bruno@clisp.org>
115841         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115843         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115844         gl_linked_remove_at): Use it.
115846 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115847         and Simon Josefsson <jas@extundo.com>
115849         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115851         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115853 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115855         * modules/close-stream: New file.
115856         * modules/closeout (Description): Make it clear that it exits
115857         with a diagnostic on error.
115858         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115859         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115861 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115863         * m4/close-stream.m4: New file.
115865 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115867         * lib/close-stream.c, lib/close-stream.h: New files.
115869 2006-07-22  Bruno Haible  <bruno@clisp.org>
115871         Merge from GNU gettext 0.15.
115873         2006-05-01  Bruno Haible  <bruno@clisp.org>
115875                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115877         2006-07-22  Bruno Haible  <bruno@clisp.org>
115879                 * modules/javaversion: New file.
115880                 * MODULES.html.sh (Java): Add javaversion.
115882         2006-03-12  Bruno Haible  <bruno@clisp.org>
115884                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115886         2005-12-04  Bruno Haible  <bruno@clisp.org>
115888                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115889                 (untested).
115891         2006-06-21  Bruno Haible  <bruno@clisp.org>
115893                 Avoid warnings from recent versions of mcs.
115894                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115895                 -o, -L, -r any more. Use options documented since mcs-1.0
115896                 instead. Similarly for -g.
115898         2005-12-04  Bruno Haible  <bruno@clisp.org>
115900                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115901                 .resources, not .resource.
115903         2005-07-09  Bruno Haible  <bruno@clisp.org>
115905                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115906                 add a .dll suffix.
115907                 Reported by Mark Junker <mjscod@gmx.de>.
115909         2006-07-22  Bruno Haible  <bruno@clisp.org>
115911                 * modules/gettext: Upgrade to gettext-0.15.
115912                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115913                 m4/visibility.m4.
115914                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115916 2006-07-22  Bruno Haible  <bruno@clisp.org>
115918         Merge from GNU gettext 0.15.
115920         2006-03-25  Bruno Haible  <bruno@clisp.org>
115922                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115924         2006-07-21  Bruno Haible  <bruno@clisp.org>
115926                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115927                 "1.1".
115929         2006-05-09  Bruno Haible  <bruno@clisp.org>
115931                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115932                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115933                 for the conftestver execution.
115935         2006-05-01  Bruno Haible  <bruno@clisp.org>
115937                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115938                 optional target-version argument. Verify that the compiler
115939                 groks source of the specified source-version, or add -source
115940                 option as necessary. Verify that the compiler produces
115941                 bytecode in the specified target-version, or add -target and
115942                 -source options as necessary. Make the result of the test
115943                 available as variable CONF_JAVAC. Also log error output in
115944                 config.log.
115946         2006-03-11  Bruno Haible  <bruno@clisp.org>
115948                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115950         2006-05-09  Bruno Haible  <bruno@clisp.org>
115952                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115953                 CLASSPATH_SEPARATOR to a semicolon.
115955         2006-03-12  Bruno Haible  <bruno@clisp.org>
115957                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115958                 available as variable CONF_JAVA, for subsequent autoconf
115959                 tests. Also log error output in config.log.
115961         2006-07-19  Bruno Haible  <bruno@clisp.org>
115963                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115964                 that getline works on glibc2 systems. Needed to avoid trouble
115965                 in relocatable.c.
115966                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115968         2005-12-04  Bruno Haible  <bruno@clisp.org>
115970                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115971                 launcher (untested).
115973         2005-12-04  Bruno Haible  <bruno@clisp.org>
115975                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115977         2006-07-22  Bruno Haible  <bruno@clisp.org>
115979                 * gettext.m4: Update from GNU gettext-0.15.
115980                 * nls.m4: Likewise.
115981                 * po.m4: Likewise.
115982                 * inttypes-pri.m4: Likewise.
115983                 * inttypes-h.m4: Renamed from inttypes.m4.
115984                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115986 2006-07-22  Bruno Haible  <bruno@clisp.org>
115988         Merge from GNU gettext 0.15.
115990         2005-07-05  Bruno Haible  <bruno@clisp.org>
115992                 * printf-args.c (printf_fetchargs): Work around broken
115993                 definition of wint_t on mingw.
115995         2005-02-12  Bruno Haible  <bruno@clisp.org>
115997                 * xallocsa.h: Add extern "C" for C++.
115999         2006-05-17  Bruno Haible  <bruno@clisp.org>
116001                 Cygwin portability.
116002                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
116004         2006-04-30  Bruno Haible  <bruno@clisp.org>
116006                 * progreloc.c: Include <mach-o/dyld.h> if available.
116007                 (find_executable): Use _NSGetExecutablePath when possible.
116009         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
116011                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
116012                 function.
116014         2005-12-29  Bruno Haible  <bruno@clisp.org>
116016                 * progreloc.c (set_program_name_and_installdir): Fix
116017                 compilation error.
116019         2005-12-04  Bruno Haible  <bruno@clisp.org>
116021                 Cygwin portability.
116022                 * progreloc.c: Include <windows.h> also on Cygwin.
116023                 (find_executable): Add support for Cygwin.
116024                 (set_program_name_and_installdir): Handle also platforms with
116025                 nonempty EXEEXT.
116027         2006-07-11  Bruno Haible  <bruno@clisp.org>
116029                 * javacomp.c: Fix a comment.
116030                 Reported by Jim Meyering.
116032         2006-04-30  Bruno Haible  <bruno@clisp.org>
116034                 * javacomp.h (compile_java_class): Add source_version,
116035                 target_version arguments.
116036                 * javacomp.c: Rewritten to choose only a compiler that
116037                 respects the specified source_version and target_version.
116039         2006-06-27  Bruno Haible  <bruno@clisp.org>
116041                 Assume correct S_ISDIR macro.
116042                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
116044         2006-07-22  Bruno Haible  <bruno@clisp.org>
116046                 * javaversion.h: New file, from GNU gettext.
116047                 * javaversion.c: New file, from GNU gettext.
116048                 * javaversion.java: New file, from GNU gettext.
116049                 * javaversion.class: New file, from GNU gettext.
116051         2006-05-17  Bruno Haible  <bruno@clisp.org>
116053                 Cygwin portability.
116054                 * javaexec.c (execute_java_class): Test for jview program
116055                 also on Cygwin.
116057         2006-04-09  Bruno Haible  <bruno@clisp.org>
116059                 * fatal-signal.c: Don't include string.h.
116060                 (at_fatal_signal): Use a copying loop instead of memcpy.
116062         2005-12-04  Bruno Haible  <bruno@clisp.org>
116064                 * csharpexec.c: Add support for 'clix' launcher (untested).
116065                 (execute_csharp_using_sscli): New function.
116066                 (execute_csharp_program): Call it.
116068         2006-06-21  Bruno Haible  <bruno@clisp.org>
116070                 Avoid warnings from recent versions of mcs.
116071                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
116072                 -o, -L, -r any more. Use options documented since mcs-1.0
116073                 instead. Similarly for -g.
116075         2005-07-09  Bruno Haible  <bruno@clisp.org>
116077                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
116078                 add a .dll suffix.
116079                 Reported by Mark Junker <mjscod@gmx.de>.
116081         2006-06-17  Bruno Haible  <bruno@clisp.org>
116083                 * config.charset: Update for NetBSD 3.0.
116085         2006-05-17  Bruno Haible  <bruno@clisp.org>
116087                 Cygwin portability.
116088                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
116090         2006-05-16  Bruno Haible  <bruno@clisp.org>
116092                 * localcharset.c [CYGWIN]: Include <windows.h>.
116093                 (get_charset_aliases): For Cygwin, return the same CPxxx
116094                 aliases list as under WIN32.
116095                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
116096                 the environment variables. Fall back to GetACP().
116098         2006-04-05  Bruno Haible  <bruno@clisp.org>
116100                 * config.charset: Update Juan Manuel Guerrero's address.
116102         2005-02-12  Bruno Haible  <bruno@clisp.org>
116104                 * allocsa.h: Add extern "C" for C++.
116106         2005-02-10  Bruno Haible  <bruno@clisp.org>
116108                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
116109                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
116111         2006-07-22  Bruno Haible  <bruno@clisp.org>
116113                 * gettext.h: Update to GNU gettext-0.15.
116115 2006-07-22  Bruno Haible  <bruno@clisp.org>
116117         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
116118         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
116119         lib-prefix.m4, longdouble.m4, ssize_t.m4.
116121 2006-07-21  Eric Blake  <ebb9@byu.net>
116123         * modules/stdlib-safer: New file.
116124         * MODULES.html.sh (File stream based Input/Output): Add
116125         stdlib-safer.
116127 2006-07-21  Eric Blake  <ebb9@byu.net>
116129         * lib/stdlib-safer.h: New file from coreutils, required by
116130         stdlib--.h.
116132 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
116134         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
116136 2006-07-20  Bruno Haible  <bruno@clisp.org>
116138         * gnulib-tool: Recognize new option --assume-autoconf.
116139         (autoconf_minversion): New variable.
116140         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
116142 2006-07-20  Bruno Haible  <bruno@clisp.org>
116144         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
116146 2006-07-19  Derek R. Price  <derek@ximbiot.com>
116148         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
116149         Reindent and repaginate.
116151 2006-07-19  Derek Price  <derek@ximbiot.com>
116153         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
116154         Correct grammar.
116156 2006-07-17  Bruno Haible  <bruno@clisp.org>
116158         * modules/list: New file.
116159         * modules/array-list: New file.
116160         * modules/carray-list, modules/carray-list-tests: New files.
116161         * modules/linked-list, modules/linked-list-tests: New files.
116162         * modules/avltree-list, modules/avltree-list-tests: New files.
116163         * modules/rbtree-list, modules/rbtree-list-tests: New files.
116164         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
116165         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
116166         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
116167         * modules/oset: New file.
116168         * modules/array-oset: New file.
116169         * modules/avltree-oset, modules/avltree-oset-tests: New files.
116170         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
116171         * tests/test-carray_list.c: New file.
116172         * tests/test-linked_list.c: New file.
116173         * tests/test-avltree_list.c: New file.
116174         * tests/test-rbtree_list.c: New file.
116175         * tests/test-linkedhash_list.c: New file.
116176         * tests/test-avltreehash_list.c: New file.
116177         * tests/test-rbtreehash_list.c: New file.
116178         * tests/test-avltree_oset.c: New file.
116179         * tests/test-rbtree_oset.c: New file.
116180         * MODULES.html.sh (Container data structures): New section.
116182 2006-07-17  Bruno Haible  <bruno@clisp.org>
116184         * m4/gl_list.m4: New file.
116186 2006-07-17  Bruno Haible  <bruno@clisp.org>
116188         * lib/gl_list.h: New file.
116189         * lib/gl_list.c: New file.
116190         * lib/gl_array_list.h: New file.
116191         * lib/gl_array_list.c: New file.
116192         * lib/gl_carray_list.h: New file.
116193         * lib/gl_carray_list.c: New file.
116194         * lib/gl_linked_list.h: New file.
116195         * lib/gl_linked_list.c: New file.
116196         * lib/gl_anylinked_list1.h: New file.
116197         * lib/gl_anylinked_list2.h: New file.
116198         * lib/gl_avltree_list.h: New file.
116199         * lib/gl_avltree_list.c: New file.
116200         * lib/gl_anyavltree_list1.h: New file.
116201         * lib/gl_anyavltree_list2.h: New file.
116202         * lib/gl_rbtree_list.h: New file.
116203         * lib/gl_rbtree_list.c: New file.
116204         * lib/gl_anyrbtree_list1.h: New file.
116205         * lib/gl_anyrbtree_list2.h: New file.
116206         * lib/gl_anytree_list1.h: New file.
116207         * lib/gl_anytree_list2.h: New file.
116208         * lib/gl_linkedhash_list.h: New file.
116209         * lib/gl_linkedhash_list.c: New file.
116210         * lib/gl_anyhash_list1.h: New file.
116211         * lib/gl_anyhash_list2.h: New file.
116212         * lib/gl_avltreehash_list.h: New file.
116213         * lib/gl_avltreehash_list.c: New file.
116214         * lib/gl_rbtreehash_list.h: New file.
116215         * lib/gl_rbtreehash_list.c: New file.
116216         * lib/gl_anytreehash_list1.h: New file.
116217         * lib/gl_anytreehash_list2.h: New file.
116219         * lib/gl_oset.h: New file.
116220         * lib/gl_oset.c: New file.
116221         * lib/gl_array_oset.h: New file.
116222         * lib/gl_array_oset.c: New file.
116223         * lib/gl_avltree_oset.h: New file.
116224         * lib/gl_avltree_oset.c: New file.
116225         * lib/gl_rbtree_oset.h: New file.
116226         * lib/gl_rbtree_oset.c: New file.
116227         * lib/gl_anytree_oset.h: New file.
116229 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116231         * m4/mkancesdirs.m4: New file.
116232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
116233         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
116234         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
116235         it.
116237 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116239         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
116240         * lib/mkancesdirs.h: New files.
116241         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
116242         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
116243         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
116244         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
116245         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
116246         callers changed.  Revamp internals significantly, by not
116247         attempting to create directories that are temporarily more
116248         permissive than the final results.  Do not attempt to use
116249         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
116250         This removes some race conditions, fixes some bugs, and simplifies
116251         things.  Use new dirchownmod function to do owner and mode changes.
116252         * lib/mkdir-p.h: Likewise.
116253         * lib/modechange.c (octal_to_mode): New function.
116254         (struct mode_change): New member mentioned.
116255         (make_node_op_equals): New arg mentioned.  All callers changed.
116256         (mode_compile): Keep track of which mode bits the user has explicitly
116257         mentioned.
116258         (mode_adjust): New arg DIR, so that we implement the X op correctly.
116259         New arg PMODE_BITS, to keep track of which mode bits the user
116260         mentioned; it treats S_ISUID and S_ISGID speciall.
116261         All callers changed.
116262         * lib/modechange.h: Likewise.
116264 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116266         * MODULES.html.sh: Add mkancestors.
116267         * modules/mkancesdirs: New module.
116268         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
116269         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
116270         The chdir-safer and afs files are now orphans; I'll remove them
116271         unless someone speaks up.
116272         Add lib/dirchownmod.c, lib/dirchownmod.h.
116273         (Depends-on): Remove alloca, chown, save-cwd, dirname.
116274         Add lchown, mkancesdirs.
116275         (Maintainer): Add self.
116277 2006-07-15  Karl Berry  <karl@gnu.org>
116279         * gnulib-tool: help message wording/arrangement.
116281 2006-07-14  Simon Josefsson  <jas@extundo.com>
116283         * doc/gnulib.texi (Libtool and Windows): New section.
116285 2006-07-12  Simon Josefsson  <jas@extundo.com>
116287         * modules/gendocs (License): Fix license, approved by Karl.
116289 2006-07-12  Eric Blake  <ebb9@byu.net>
116291         * MODULES.html.sh: Add gendocs.
116293 2006-07-11  Eric Blake  <ebb9@byu.net>
116295         * modules/fdl: New module, to install doc/fdl.texi.
116296         * MODULES.html.sh: Add new section for documentation modules.
116297         * gnulib-tool: Avoid space-tab.
116298         (--doc-base): New option, to manage files from doc.
116300 2006-07-11  Eric Blake  <ebb9@byu.net>
116302         * m4/absolute-header.m4: Fix comments to match recent change.
116304 2006-07-11  Eric Blake  <ebb9@byu.net>
116306         * gnulib-tool: List --doc-base before --tests-base.
116308 2006-07-11  Derek R. Price  <derek@ximbiot.com>
116310         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
116312 2006-07-11  Bruno Haible  <bruno@clisp.org>
116314         * README: Mention where to put documentation.
116316 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116318         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
116320 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
116323         to stdint.m4.
116325 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116327         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
116328         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
116329         "no/such/file/stdint.h" when there is no such file, so that
116330         the resulting C code can be parsed by dodgy compilers.
116331         Problems reported by Bob Proulx.
116333 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116335         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
116336         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116337         macros into the GNU _D_EXACT_NAMLEN.
116338         * lib/savedir.c:  Likewise.
116339         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
116341 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116342         and Paul Eggert  <eggert@cs.ucla.edu>
116344         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
116345         * m4/savedir.m4:
116346         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116347         macros into the GNU _D_EXACT_NAMLEN.
116349 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
116352         around the absolute name, to work around a problem with the HP-UX
116353         11.23 native C compiler, reported by Bob Proulx.
116355 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116357         * doc/maintain.texi, make-stds.texi: Sync from
116358         <http://savannah.gnu.org/projects/gnustandards>.
116360 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116362         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
116364 2006-07-09  Jim Meyering  <jim@meyering.net>
116366         * m4/glob.m4: Remove a doubled word in a comment.
116368 2006-07-09  Jim Meyering  <jim@meyering.net>
116370         * lib/argp-pv.c: Remove a doubled word in a comment.
116371         * lib/check-version.c (check_version): Likewise.
116372         * lib/javacomp.c (compile_java_class): Likewise.
116374 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
116376         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
116377         for the benefit of people using Autoconf 2.60.  If you want to
116378         support older Autoconf versions you can copy m4/onceonly_2_57.m4
116379         (or m4/onceonly.m4, if pre-2.57) manually.
116381 2006-07-08  Jim Meyering  <jim@meyering.net>
116383         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
116384         comment.
116385         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
116386         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
116387         comment.
116389 2006-07-08  Jim Meyering  <jim@meyering.net>
116391         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
116393 2006-07-07  Simon Josefsson  <jas@extundo.com>
116395         * tests/test-crc.c: Change expected crc value, the test vector
116396         were probably computed using the old broken crc.c?
116398 2006-07-06  Simon Josefsson  <jas@extundo.com>
116400         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
116401         now the canonical place for the M4 file).
116403         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
116404         from the sys_socket dependency now.
116406         * modules/inet_pton (Files): Ditto.
116408         * modules/inet_ntop (Files): Ditto.
116410 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116412         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
116413         not gl_PREREQ_GETUSERSHELL.
116415 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116417         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
116418         with only one argument, for Autoconf 2.60.
116419         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
116420         expand to nothing, so add a shell command to avoid syntax error.
116421         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116423 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116425         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116427 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116430         no longer needed.  Check for isblank decl.
116431         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116432         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116433         of existence.
116435 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116437         * lib/getloadavg.c: Use __VMS, not VMS.
116438         * lib/getopt.c: Likewise.
116439         * lib/getpagesize.h: Likewise.
116440         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116441         and probably does not work.
116443 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116445         * lib/.cppi-disable: Add wcwidth.
116446         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116447         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116448         (ISGRAPH): Remove.  All uses changed to isgraph.
116449         (FOLD) [!defined _LIBC]: Remove special case.
116450         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116451         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116452         HAVE_ISBLANK.
116453         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116454         case.
116456 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116458         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116459         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116460         brackets.  Other minor changes to suppress some compiler
116461         warnings.
116463 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116464         and Paul Eggert  <eggert@cs.ucla.edu>
116466         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116467         of invoking obsolescent AC_HEADER_DIRENT macro.
116468         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116469         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116470         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116472         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116473         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116474         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116475         * m4/readdir.m4: Remove; no longer needed.
116477 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116478         and Paul Eggert  <eggert@cs.ucla.edu>
116480         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116481         Don't worry about this obsolete case any more.
116482         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116483         directories.
116484         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116485         worry about this obsolete case any more.
116486         * lib/fts.c: Likewise.
116487         * lib/getcwd.c: Likewise.
116488         * lib/glob.h: Likewise.
116489         * lib/savedir.c: Likewise.
116491 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116494         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116495         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116496         needed.
116497         All uses removed.
116498         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116499         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116500         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116501         needed.
116502         * m4/getdate.m4 (gl_GETDATE): Likewise.
116503         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116504         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116505         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116506         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116507         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116508         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116509         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116510         needed.
116512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116514         * lib/memcasecmp.c: Include <limits.h>.
116515         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116516         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116517         Don't assume isdigit succeeds only on '0' through '9'.
116519 2006-07-05  Eric Blake  <ebb9@byu.net>
116521         * modules/getaddrinfo (Depends-on): Add snprintf.
116523 2006-07-05  Eric Blake  <ebb9@byu.net>
116525         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116526         to avoid 'header present but could not be compiled' on cygwin.
116528 2006-07-05  Eric Blake  <ebb9@byu.net>
116530         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116531         missing from netdb.h.
116532         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116534 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116536         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116537         no longer needed.
116538         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116539         * m4/getdate.m4 (gl_GETDATE): Likewise.
116540         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116541         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116542         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116543         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116544         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116546 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116548         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116549         All uses of is_space replaced by isspace.
116550         * lib/exit.h: Don't talk about STDC_HEADERS.
116551         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116552         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116553         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116554         replaced by isprint etc.
116555         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116556         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116557         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116558         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116559         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116560         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116562 2006-07-05  Bruno Haible  <bruno@clisp.org>
116564         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116565         the function exists, before testing against AIX.
116566         Reported by Martin Lambers <marlam@marlam.de>.
116568 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116570         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116571         From Mark D. Baushke.
116573 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116576         to the absolute name, not just one, to bypass Sun C 5.8's
116577         "warning: #include of /usr/include/... may be non-portable".
116579 2006-07-04  Eric Blake  <ebb9@byu.net>
116581         * modules/dirname-tests: New test module.
116582         * tests/test-dirname.c: New file, replacing dirname.c
116583         TEST_DIRNAME section that was recently deleted.
116585 2006-07-04  Bruno Haible  <bruno@clisp.org>
116587         Assume ANSI C header files and <ctype.h> functions.
116588         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116589         (mbsnwidth): Use isprint, iscntrl instead.
116591 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116593         Merge from coreutils.
116594         * MODULES.html.sh: Add xstrtold.
116595         * modules/xstrtold: New file.
116596         * modules/cycle-check (Files): Add lib/same-inode.h.
116597         * modules/dirname (Files): Add m4/double-slash-root.m4.
116598         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116599         * modules/mkdir-p (Files): Add lib/same-inode.h.
116600         * modules/same (Files): Add lib/same-inode.h.
116602 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116604         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116605         This is to keep the terminology clean; POSIX talks about
116606         "absolute pathnames", not "full pathnames", but the GNU
116607         Coding Standards say to use "path" for something else;
116608         so use "absolute" to keep both sides happy.
116609         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116610         Set gl_absolute_header, not gl_full_header_path.
116611         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116612         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116613         All uses changed.
116615         Merge from coreutils.
116617         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116619         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116620         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116621         want to require the building of c-strtod.o.
116622         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116623         needs -lm directly.
116624         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116626         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116628         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116629         --as-needed option if available.  Problem reported by Albert Chin in
116630         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116631         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116632         cc merely issues a bunch of annoying warnings for --as-needed
116633         (this problem was reported by Bob Proulx).  Also, try linking with
116634         -lm to detect a bug in binutils 2.16 (this problem was reported
116635         by Ralf Wildenhues).
116637         2006-06-18  Jim Meyering  <jim@meyering.net>
116639         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116640         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116641         macro.
116642         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116643         also check for glibc-2.4's abort-inducing bug.
116645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116646         Low-probability clean-up should be to use rmdir to get rid of
116647         the just-created directory, not unlink.
116649         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116650         configure fail, and request a bug report to inform us about it.
116651         Add a comment that, barring reports to the contrary, in 2007 we'll
116652         assume ftruncate is universally available.
116654         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116656         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116658         2006-03-12  Jim Meyering  <jim@meyering.net>
116660         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116661         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116662         * m4/same.m4 (gl_SAME): Likewise.
116663         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116665         2006-03-11  Eric Blake  <ebb9@byu.net>
116667         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116668         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116669         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116670         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116672 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116674         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116675         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116676         reported by Mark D. Baushke, one in
116677         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116679         Merge from coreutils.
116681         * lib/.cppi-disable: Add stdint_.h.
116682         * lib/.cvsignore: Add stdint.h.
116684         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116686         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116687         both double and long double versions.
116688         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116689         * lib/xstrtold.c: New file.
116690         * lib/xstrtod.h (xstrtold): New decl.
116692         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116694         * lib/filemode.c (setst): Remove.
116695         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116696         (arguably) clearer, and the generated code is a bit smaller on my
116697         Debian GNU/Linux stable x86 host.
116699         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116701         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116702         Assume that filemode.h includes sys/types.h and sys/stat.h.
116703         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116704         (ftypelet): Reorder to put common cases first, for efficiency.
116705         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116706         to do 'M'.
116707         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116708         of 10, for compatibility with FreeBSD.  All callers changed.
116709         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116710         types that can't be deduced solely from st_mode.  First arg is now a
116711         const pointer.
116712         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116713         (strmode): Renamed from mode_string.
116714         (filemodestring): New decl.
116715         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116716         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116717         needed.
116718         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116720         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116722         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116723         fsusage.h now does that.  Include fsusage.h first, to test interface.
116724         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116725         at most one method (the old code could have generated decls that
116726         didn't conform to C89, not that this was ever exercised).
116727         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116729         2006-03-19  Jim Meyering  <jim@meyering.net>
116731         Work even in a chroot where d_ino values for entries in "/"
116732         don't match the stat.st_ino values for the same names.
116733         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116734         number, iterate through all entries again, using lstat instead.
116735         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116736         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116738         * lib/getcwd.c (__getcwd): Clarify a comment.
116739         Use memcpy in place of a call to strcpy.
116741         2006-03-12  Jim Meyering  <jim@meyering.net>
116743         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116744         matches that of the current directory (which we're about to chdir ".."
116745         out of), then save the dev-ino of the parent, instead.
116747         * lib/same-inode.h (SAME_INODE): New file/macro.
116748         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116749         Include "same-inode.h", instead.
116750         * lib/same.c: Likewise.
116751         * lib/cycle-check.h: Include "same-inode.h".
116752         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116753         * lib/cycle-check.c (SAME_INODE): Remove definition.
116754         * lib/root-dev-ino.h: Include "same-inode.h".
116756         2006-03-11  Eric Blake  <ebb9@byu.net>
116758         * lib/same.c (same_name): s/base_name/last_component/
116759         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116760         * lib/filenamecat.c (file_name_concat): Likewise.
116762         2006-03-11  Eric Blake  <ebb9@byu.net>,
116763                     Paul Eggert  <eggert@cs.ucla.edu>
116765         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116766         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116767         drive prefix.
116768         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116769         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116770         (last_component): New method.
116771         * lib/dirname.c (dir_len): Determine when drive letters need a
116772         subsequent slash.  Preserve // when it is special.
116773         (dir_name): Don't append dot when drive letter is absolute.
116774         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116775         * lib/basename.c (base_name): New semantics - malloc the result.
116776         Preserve // when it is special.  Preserve relative files that look
116777         like drive letters.
116778         (base_len): Preserve // when it is special.
116779         (last_component): New method, similar to old base_name semantics.
116780         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116781         base_name.  Strip redundant slashes from ///.
116783 2006-07-03  Jim Meyering  <jim@meyering.net>
116785         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116786         macro is used before the first cycle_check call.
116788 2006-07-03  Eric Blake  <ebb9@byu.net>
116790         * modules/dirname (Depends-on): Add xstrndup.
116792 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116794         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116795         test cases, so that config.log is a bit easier to follow.
116797 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116799         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116800         both are 64 bits, since this seems to be the tradition, and this
116801         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116802         we ever run into a host that prefers long long to long in this
116803         case, we'll need another configure-time test.  Problem reported by
116804         Jim Meyering.
116806 2006-07-02  Eric Blake  <ebb9@byu.net>
116808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116810 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116812         * modules/inttypes (Depends-on): No longer depends on stdint.
116813         * modules/stdint (Description): Say more about assumptions.
116814         Say that the fast types might differ.  Say macros are used.
116815         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116816         (Makefile.am): Revise list of substituted symbols to match
116817         new stdint.m4.
116818         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116819         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116820         * tests/test-stdint.c (verify_same_types)
116821         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116822         the code conforms to C99/C89.
116823         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116824         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116826 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116829         but fix a bug, by requiring at least 64 bits.
116830         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116831         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116832         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116833         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116835         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116836         changes.  Make 2.59 a prerequisite.  Check and substitute for
116837         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116838         inttypes.h.  Do not use special include files; just use the
116839         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116840         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116841         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116842         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116843         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116844         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116845         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116846         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116847         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116848         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116849         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116850         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116851         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116852         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116853         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116854         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116855         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116856         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116857         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116858         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116859         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116860         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116861         not check for things that C99 does not require, e.g., int8_t.  If
116862         a test isn't needed unless <stdint.h> isn't working, and is
116863         unlikely to be needed for any other reason, then don't do it
116864         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116865         size_t, since we assume C89 freestanding at least.  Do not check
116866         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116867         the right thing even if the types are not defined.  Instead use:
116868         (gl_STDINT_TYPE_PROPERTIES): New macro.
116869         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116870         testing whether <sys/types.h> clashes, as Autoconf does this for
116871         us now.  All uses removed.
116872         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116873         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116874         (gl_CHECK_TYPE_SAME):
116875         Remove; no longer needed.
116876         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116877         exists, since we'll return 0 anyway in that case.
116878         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116880 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116882         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116883         possible collision with system files.
116884         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116885         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116886         WCHAR_MIN and WCHAR_MAX in this case.
116887         (<stddef.h>): Do not include; no longer needed.
116888         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116889         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116890         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116891         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116892         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116893         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116894         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116895         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116896         !defined(__c99))]: Include in this case too, since it's harmless
116897         now.
116898         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116899         dangerous to do so.
116900         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116901         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116902         (_STDINT_MIN, _STDINT_MAX): New macros.
116903         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116904         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116905         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116906         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116907         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116908         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116909         macros, not typedefs; this simplifies things quite a bit.
116910         Use long int for all types narrower than int64_t.
116911         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116912         Define in terms of long long int or int64_t or long int,
116913         not int64_t or int32_t.  This saves some compile-time testing.
116914         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116915         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116916         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116917         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116918         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116919         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116920         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116921         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116922         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116923         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116924         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116925         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116926         undef any previous version and define our own version, for
116927         simplicity and consistency with the new macros for types.
116928         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116929         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116930         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116931         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116932         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116933         @WINT_T_SUFFIX@ to keep things simple here.
116934         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116935         Simplify by assuming typical 8/16/32/64 host, since we're
116936         already doing that elsewhere anyway.
116937         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116938         and assume long long int is 64 bits if available.  This
116939         speeds up 'configure'.
116941 2006-07-01  Eric Blake  <ebb9@byu.net>
116943         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116944         Reported by Andreas Buening.
116946 2006-07-01  Eric Blake  <ebb9@byu.net>
116948         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116950 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116952         * lib/getaddrinfo.c: fixed typo
116954 2006-06-29  Jim Meyering  <jim@meyering.net>
116956         * modules/strftime (Maintainer): Add my name, since with the
116957         FPRINTFTIME changes strftime.c has forked from glibc.
116959 2006-06-29  Eric Blake  <ebb9@byu.net>
116961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116963 2006-06-29  Eric Blake  <ebb9@byu.net>
116965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116967 2006-06-29  Eric Blake  <ebb9@byu.net>
116969         * lib/stat_.h: New file.
116971 2006-06-29  Eric Blake  <ebb9@byu.net>
116973         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116974         unused static function.
116976 2006-06-29  Eric Blake  <ebb9@byu.net>
116978         * doc/functions.texi (Function Portability): Document missing lstat
116979         on mingw.
116981 2006-06-29  Eric Blake  <ebb9@byu.net>
116983         * MODULES.html.sh: Add sys_stat.
116984         * modules/sys_stat: New module.
116985         * modules/mkstemp (Depends-on): Add sys_stat.
116987 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116989         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116991 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116993         * m4/c-bs-a.m4: Removed.
116995 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116997         * lib/strftime.c: Assume strftime() exists.
116999 2006-06-29  Derek Price  <derek@ximbiot.com>
117001         * modules/c-bs-a: Removed - \a is C89.
117002         * MODULES.html.sh: Remove c-bs-a.
117004 2006-06-29  Bruno Haible  <bruno@clisp.org>
117006         * modules/wcwidth (License): Change to LGPL.
117008 2006-06-28  Simon Josefsson  <jas@extundo.com>
117010         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
117011         on _WIN32.
117013         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
117014         getnameinfo.
117016 2006-06-28  Simon Josefsson  <jas@extundo.com>
117018         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
117020 2006-06-28  Simon Josefsson  <jas@extundo.com>
117022         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
117023         functions there.  It will succeed on Windows XP, but on Windows
117024         2000 and (presumably) earlier, it will fail, and use the internal
117025         re-implementation.
117026         (use_win32_p): New function.
117027         (getaddrinfo): Use strtoul on servname, to support numeric ports.
117028         Support AI_NUMERICSERV to disable getservbyname.
117029         (getnameinfo): New function, only supports
117030         NI_NUMERICHOST|NI_NUMERICSERV for now.
117032         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
117033         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
117034         getnameinfo.
117036 2006-06-28  Eric Blake  <ebb9@byu.net>
117038         * modules/wcwidth: New file.
117039         * modules/mbchar (Depends-on): Add wcwidth.
117040         * modules/mbswidth (Depends-on): Add wcwidth.
117041         * MODULES.html.sh: Add wcwidth.
117043 2006-06-28  Eric Blake  <ebb9@byu.net>
117045         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
117046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
117048 2006-06-28  Eric Blake  <ebb9@byu.net>
117050         * lib/xvasprintf.h: Fix comments.
117052 2006-06-28  Eric Blake  <ebb9@byu.net>
117054         * lib/mbchar.h (wcwidth): Include wcwidth.h.
117055         * lib/mbswidth.c (wcwidth): Move from here...
117056         * lib/wcwidth.h: ...to this new file.
117058 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117060         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
117062         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
117063         it's obsolete.
117064         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
117066 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117068         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
117069         Autoconf 2.60 says this stuff was obsolete.
117071 2006-06-28  Bruno Haible  <bruno@clisp.org>
117073         * modules/wcwidth (Files): Add m4/wchar_t.m4.
117075 2006-06-28  Bruno Haible  <bruno@clisp.org>
117077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
117078         gt_TYPE_WCHAR_T.
117080 2006-06-28  Bruno Haible  <bruno@clisp.org>
117082         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
117083         declaration for wcwidth.
117084         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
117086 2006-06-28  Bruno Haible  <bruno@clisp.org>
117088         * lib/mkdtemp.c [MINGW]: Include <io.h>.
117089         (mkdir): Define using _mkdir.
117091 2006-06-28  Bruno Haible  <bruno@clisp.org>
117093         * lib/getaddrinfo.h: Fix POSIX URL.
117094         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
117095         _WIN32.
117096         (use_win32_p): Make static.
117097         (getaddrinfo): Reject service name if it is empty or does not consist
117098         solely of decimal digits, or if its value is > 65535.
117099         (getnameinfo): Remove useless casts.
117101 2006-06-27  Simon Josefsson  <jas@extundo.com>
117103         * modules/sys_select: New file, suggested by Bruno Haible, Paul
117104         Eggert and Martin Lambers.
117106 2006-06-27  Simon Josefsson  <jas@extundo.com>
117108         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
117109         Eggert and Martin Lambers.
117111 2006-06-27  Bruno Haible  <bruno@clisp.org>
117113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
117114         result to 0, not to empty.
117115         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
117117 2006-06-27  Bruno Haible  <bruno@clisp.org>
117119         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
117121 2006-06-26  Simon Josefsson  <jas@extundo.com>
117123         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
117124         present.
117126 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
117128         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
117129         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
117130         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
117132 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
117134         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
117136 2006-06-26  Bruno Haible  <bruno@clisp.org>
117138         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
117140 2006-06-26  Bruno Haible  <bruno@clisp.org>
117142         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
117144 2006-06-26  Bruno Haible  <bruno@clisp.org>
117146         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
117147         SGI C compiler in pre-C99 mode.
117148         Suggested by Mark D. Baushke and Larry Jones.
117150 2006-06-26  Bruno Haible  <bruno@clisp.org>
117152         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
117153         WCHAR_MAX.
117154         Reported by Mark D. Baushke and Larry Jones.
117156 2006-06-26  Bruno Haible  <bruno@clisp.org>
117158         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
117159         in pre-C99 mode.
117160         Suggested by Mark D. Baushke and Larry Jones.
117162 2006-06-23  Simon Josefsson  <jas@extundo.com>
117163             Bruno Haible  <bruno@clisp.org>
117165         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
117166         Emit mostlyclean-local rule.
117167         (func_emit_tests_Makefile_am): Likewise.
117168         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
117170 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
117172         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
117174 2006-06-23  Bruno Haible  <bruno@clisp.org>
117176         * tests/test-stdint.c: Update to match ISO C 99 Technical
117177         Corrigendum 1.
117179 2006-06-23  Bruno Haible  <bruno@clisp.org>
117181         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
117183 2006-06-23  Bruno Haible  <bruno@clisp.org>
117185         * lib/stdint_.h: Treat IRIX like OpenBSD.
117187 2006-06-23  Bruno Haible  <bruno@clisp.org>
117189         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
117190         ISO C 99 Technical Corrigendum 1.
117192 2006-06-22  Simon Josefsson  <jas@extundo.com>
117194         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
117195         MinGW.
117197 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117199         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
117200         needed.  Some compiler complained about some of them.  Problem reported
117201         by Larry Jones in
117202         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
117204 2006-06-21  Simon Josefsson  <jas@extundo.com>
117206         * tests/test-getaddrinfo.c: New file.
117208         * modules/getaddrinfo-tests: New file.
117210         * MODULES.html.sh: Add inet_pton.
117212         * modules/inet_pton: New file.
117214 2006-06-21  Simon Josefsson  <jas@extundo.com>
117216         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
117217         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
117218         of using the (limited) gnulib implementation on Windows XP.
117220         * m4/inet_pton.m4: New file.
117222 2006-06-21  Simon Josefsson  <jas@extundo.com>
117224         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
117225         variable.
117227         * lib/socket_.h: Don't define WINVER.
117229         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
117230         slightly modified to work in gnulib.
117232 2006-06-21  Simon Josefsson  <jas@extundo.com>
117234         * doc/gnulib.texi (Windows sockets): Add.
117236 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
117238         * lib/read-file.c (fread_file): Start with buffer allocation of
117239         0 bytes rather than 1 byte; this simplifies the code.
117240         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
117241         code to free buffer and save/restore errno.
117242         (internal_read_file): Remove unused local.
117244 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
117246         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
117247         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
117248         Problem reported by Denis Excoffier in
117249         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
117251 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117253         * modules/sys_socket, modules/socklen: Include sys/types since
117254         FreeBSD 4.x's sys/socket.h needs it.
117256 2006-06-19  Simon Josefsson  <jas@extundo.com>
117258         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
117260 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
117262         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
117264 2006-06-19  Bruno Haible  <bruno@clisp.org>
117266         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
117267         and FULL_PATH_INTTYPES_H in angle brackets.
117268         Reported by Mark D. Baushke <mdb@gnu.org>.
117270 2006-06-17  Eric Blake  <ebb9@byu.net>
117272         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
117273         errno.
117275 2006-06-17  Bruno Haible  <bruno@clisp.org>
117277         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
117278         <sys/inttypes.h>.
117280 2006-06-17  Bruno Haible  <bruno@clisp.org>
117282         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
117283         whether errno is declared. Assume <errno.h> declares errno.
117285 2006-06-17  Bruno Haible  <bruno@clisp.org>
117287         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
117289 2006-06-17  Bruno Haible  <bruno@clisp.org>
117291         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
117292         problem on Solaris 2.5.1.
117294 2006-06-16  Eric Blake  <ebb9@byu.net>
117296         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
117297         * lib/unicodeio.c [!defined errno]: Likewise.
117298         * lib/strtol.c [!defined errno]: Likewise.
117299         * lib/strtod.c [!defined errno]: Likewise.
117301 2006-06-15  Eric Blake  <ebb9@byu.net>
117303         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
117305 2006-06-15  Eric Blake  <ebb9@byu.net>
117307         * config/srclist.txt (ssize_t.m4): Lose sync.
117309 2006-06-15  Bruno Haible  <bruno@clisp.org>
117311         * modules/stdint (Files): Include m4/full-header-path.m4,
117312         m4/size_max.m4, m4/wchar_t.m4.
117313         (Makefile.am): Many more substitutions.
117314         * modules/stdint-tests: New file.
117315         * tests/test-stdint.c: New file.
117317 2006-06-15  Bruno Haible  <bruno@clisp.org>
117319         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
117320         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
117321         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
117322         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
117323         gl_CHECK_TYPE_SAME): New macros.
117325 2006-06-15  Bruno Haible  <bruno@clisp.org>
117327         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
117329 2006-06-15  Bruno Haible  <bruno@clisp.org>
117331         * lib/stdint_.h: Rewritten to be fully auto-configured.
117332         Fixes bug on HP-UX/IA64.
117334 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
117336         * lib/getdate.y (__attribute__): Don't define if already defined.
117337         Problem reported by Larry Jones.
117338         * lib/utimens.c (__attribute__): Likewise.
117340 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
117342         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
117343         reported by Andreas Schwab.
117345 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117346             Bruno Haible  <bruno@clisp.org>
117348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
117349         check for the declaration of strnlen and a run test that exposes the
117350         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
117351         rpl_strndup.
117353 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117354             Bruno Haible  <bruno@clisp.org>
117356         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
117358 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117360         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
117361         compile test, for Tru64 4.0D.
117363 2006-05-28  Karl Berry  <karl@gnu.org>
117365         * config/srclist.txt (printf-args.c): lose sync.
117367 2006-05-26  Martin Lambers  <marlam@marlam.de>
117369         * lib/getpass.c: Updates the test for the native W32 API, and adds
117370         missing includes, thus fixing compilation warnings.
117372 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117374         * lib/exclude.c (exclude_fnmatch): New function.
117375         (excluded_file_name): Call exclude_fnmatch.
117376         * lib/exclude.h (excluded_file_name): New prototype
117378 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
117380         * lib/tempname.c (small_open, large_open): New macros.
117381         (__open, __open64) [!_LIBC]: Remove.
117382         (__gen_tempname): Use small_open and large_open instead of __open
117383         and __open64.  This fixes a portability bug on HP-UX 11.11i
117384         reported by Simon Wing-Tang in
117385         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
117387 2006-05-24  Bruno Haible  <bruno@clisp.org>
117389         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
117390         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
117391         Reported by Thorsten Maerz <torte@netztorte.de> via
117392         Aaron Stone <aaron@serendipity.cx>.
117394 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
117397         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
117398         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
117399         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
117400         not really conditional on the cache.
117401         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
117403 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117405         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
117406         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
117407         (my_usleep): Don't mishandle maximum value.
117409 2006-05-19  Jim Meyering  <jim@meyering.net>
117411         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
117413 2006-05-17  Bruno Haible  <bruno@clisp.org>
117415         Cygwin portability.
117416         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
117418 2006-05-17  Bruno Haible  <bruno@clisp.org>
117420         * lib/stdint_.h: Fix recognition of Cygwin.
117422 2006-05-15  Bruno Haible  <bruno@clisp.org>
117424         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117425         on libtool patch by Ralf Wildenhues.
117427 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117429         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117430         test for C99 conformance; (bool) 0.5 is an integer constant
117431         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117432         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117434 2006-05-11  Simon Josefsson  <jas@extundo.com>
117436         * m4/xvasprintf.m4: Fix obvious typo.
117438 2006-05-11  Jim Meyering  <jim@meyering.net>
117440         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117441         James Lemley.
117443 2006-05-10  Simon Josefsson  <jas@extundo.com>
117445         * lib/md4.c: Typo fix, update copyright years.
117446         (K1, K2): Don't use L because it turn computations into 64-bit on
117447         64-bit platforms.
117449 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117451         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117452         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117453         unwanted sign propagation, e.g., on hosts with 64-bit int.
117454         There still are some problems with reeelly weird theoretical hosts
117455         (e.g., 33-bit int) but it's not worth worrying about now.
117456         * lib/sha1.c (rol): Likewise.
117457         (K1, K2, K3, K4): Remove unnecessary L suffix.
117459 2006-05-10  Bruno Haible  <bruno@clisp.org>
117461         * lib/des.c: Cast to avoid warnings.
117463 2006-05-09  Bruno Haible  <bruno@clisp.org>
117465         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117466         (Depends-on): Depend also on xsize, stdarg.
117467         (configure.ac): Add gl_XVASPRINTF.
117469 2006-05-09  Bruno Haible  <bruno@clisp.org>
117471         * m4/xvasprintf.m4: New file.
117473 2006-05-09  Bruno Haible  <bruno@clisp.org>
117475         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117476         (EOVERFLOW): Define fallback value.
117477         (xstrcat): New function.
117478         (xvasprintf): Recognize the special case of a string concatenation.
117480 2006-05-08  Eric Blake  <ebb9@byu.net>
117482         * gnulib-tool (func_version): Base copyright year on CVS date.
117483         (func_emit_copyright_notice): New function.
117484         (func_emit_lib_Makefile_am): Use it.
117485         (func_emit_tests_Makefile_am): Likewise.
117486         (func_import): Likewise.
117488 2006-05-08  Bruno Haible  <bruno@clisp.org>
117490         * modules/stdarg: New file.
117491         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117493 2006-05-08  Bruno Haible  <bruno@clisp.org>
117495         * m4/stdarg.m4: New file, from GNU gettext.
117497 2006-05-08  Bruno Haible  <bruno@clisp.org>
117499         * config/srclist.txt (build-aux/config.rpath): different from latest
117500         release.
117502 2006-05-08  Bruno Haible  <bruno@clisp.org>
117504         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117506 2006-05-05  Jim Meyering  <jim@meyering.net>
117508         * m4/warning.m4: New file, derived from bison's file by the same name.
117510 2006-05-03  Bruno Haible  <bruno@clisp.org>
117512         * lib/stdint_.h: Shorter URL.
117513         * lib/inttypes.h: Likewise.
117515 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117517         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117519 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117521         * lib/verify.h: Document the internals better.  Most of this change
117522         was written by Bruno Haible.
117524 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117526         * doc/verify.texi: New file, partly based on a proposal by
117527         Bruno Haible.
117529 2006-05-02  Bruno Haible  <bruno@clisp.org>
117531         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117532         test from here...
117533         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117535 2006-04-29  Bruno Haible  <bruno@clisp.org>
117537         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117538         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117540 2006-04-29  Bruno Haible  <bruno@clisp.org>
117542         * gnulib-tool: Make --update option actually work.
117544 2006-04-29  Bruno Haible  <bruno@clisp.org>
117546         * doc/gcd.texi: New file.
117547         * doc/gnulib.texi: Include it.
117549 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117551         * lib/getdate.y (get_date): When adding relative date, start with the
117552         initial time, not with the result of the first mktime call.
117554 2006-04-25  Bruno Haible  <bruno@clisp.org>
117556         * gnulib-tool (func_import): Output the include directives in three
117557         blocks, sorted separately.
117558         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117560 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117562         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117563         to define main with arguments, for C++.  Reported by Eric Blake.
117564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117565         Prefer 'int main ()' to 'int main (void)', for C++.
117566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117568         for 'main', for C99 and C++.
117570 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117573         Don't assume that exit status -1 is valid.
117574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117575         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117576         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117577         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117578         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117579         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117580         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117581         functions can be used without declaring them, or that you can
117582         exit with status -1.
117583         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117585 2006-04-24  Karl Berry  <karl@gnu.org>
117587         * config/srclist.txt (longdouble.m4): sync lost.
117589 2006-04-24  Eric Blake  <ebb9@byu.net>
117591         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117593 2006-04-24  Bruno Haible  <bruno@clisp.org>
117595         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117596         poll() implementation in AIX.
117597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117599 2006-04-24  Bruno Haible  <bruno@clisp.org>
117601         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117602         assigned exactly once.
117604 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117605             Bruno Haible  <bruno@clisp.org>
117607         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117608         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117609         for AM_CPPFLAGS.
117611 2006-04-23  Bruno Haible  <bruno@clisp.org>
117613         * modules/copy-file: Depend on unistd.
117614         * modules/execute: Likewise.
117615         * modules/fatal-signal: Likewise.
117616         * modules/findprog: Likewise.
117617         * modules/mkdtemp : Likewise.
117618         * modules/pipe: Likewise.
117619         * modules/wait-process: Likewise.
117621 2006-04-23  Bruno Haible  <bruno@clisp.org>
117623         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117624         condition was already detected.
117625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117627 2006-04-23  Bruno Haible  <bruno@clisp.org>
117629         * lib/copy-file.c: Include <unistd.h> unconditionally.
117630         * lib/execute.c: Likewise.
117631         * lib/fatal-signal.c: Likewise.
117632         * lib/findprog.c: Likewise.
117633         * lib/mkdtemp.c: Likewise.
117634         * lib/pipe.h: Likewise.
117635         * lib/pipe.c: Likewise.
117636         * lib/wait-process.h: Likewise.
117638 2006-04-23  Bruno Haible  <bruno@clisp.org>
117640         * gnulib-tool (func_usage): Fix --import description. Document
117641         --update.
117642         (func_import): Create temporary file in a temporary directory, if
117643         --dry-run is specified. Silence errors from 'grep' when there are no
117644         m4 files in $m4dir.
117645         (func_create_testdir): Silence errors from 'grep' when there are no
117646         m4 files in $m4dir.
117647         Reported by Karl Berry <karl@freefriends.org>.
117649 2006-04-20  Bruno Haible  <bruno@clisp.org>
117651         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117652         one argument, so that the code will be portable to Autoconf 2.60.
117653         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117654         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117655         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117657 2006-04-19  Derek Price  <derek@ximbiot.com>
117658             Eric Blake  <ebb9@byu.net>
117660         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117661         rather than "/full/path.h".  Update comment to match.  Shorten &
117662         generalize m4_translit call via AS_TR_CPP.
117664 2006-04-19  Derek Price  <derek@ximbiot.com>
117665             Eric Blake  <ebb9@byu.net>
117667         * lib/inttypes.h: Correct grammar in comment.
117669 2006-04-18  Derek Price  <derek@ximbiot.com>
117670             Paul Eggert  <eggert@cs.ucla.edu>
117672         * modules/inttypes: New file.
117673         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117675 2006-04-18  Derek Price  <derek@ximbiot.com>
117676             Paul Eggert  <eggert@cs.ucla.edu>
117678         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117679         New files.
117681 2006-04-18  Derek Price  <derek@ximbiot.com>
117682             Paul Eggert  <eggert@cs.ucla.edu>
117684         * lib/inttypes.h: New file.
117685         * lib/strtoimax.c: Assume <inttypes.h>.
117687 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117689         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117690         isn't mounted.  Problem reported by Kir Kolyshkin.
117692 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117694         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117695         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117696         Derek R. Price.
117697         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117698         implementation.
117700 2006-04-12  Eric Blake  <ebb9@byu.net>
117702         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117703         is now done automatically by the corresponding Autoconf macro.
117705 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117707         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117708         time_r.h.
117710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117712         Merge regex changes from libc, removing some of our
117713         POSIX-conformance changes that were rejected and redoing them in a
117714         less-intrusive way.
117716         * lib/regcomp.c (re_compile_internal, init_dfa):
117717         Length arg is now size_t, not Idx.  All uses changed.
117718         (peek_token): Forward decl now says internal_function.
117719         (__re_error_msgid, __re_error_msgid_idx):
117720         Now static rather than extern with attribute_hidden.
117721         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117722         For some reason libc prefers K&R style defns for external functions.
117723         (regerror) [!defined _LIBC]: Likewise.
117724         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117725         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117726         (build_range_exp, build_collating_symbol):
117727         Use K&R-style defn.
117728         (re_compile_fastmap): Use '\0' to memset, not 0.
117729         (utf8_sb_map): Make the calculations more obvious.
117730         (init_dfa, parse_bracket_exp, build_charclass_op):
117731         Call calloc and cast result, as glibc does.
117732         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117733         (build_range_exp, build_collating_symbol):
117734         Now internal functions.
117736         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117738         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117739         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117740         Don't depend on VMS; depend on __VMS instead, for POSIX
117741         namespace cleanness.
117742         (regoff_t): Define to ssize_t, not long int.
117744         Remove the REG_ macros named below.  Instead, make the old names
117745         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117746         __USE_GNU_REGEX.
117747         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117748         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117749         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117750         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117751         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117752         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117753         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117754         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117755         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117756         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117757         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117758         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117759         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117760         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117761         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117762         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117763         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117764         (REG_NREGS):
117765         Remove.  All uses replaced by the old RE_* names.
117766         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117767         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117768         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117769         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117770         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117771         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117772         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117773         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117774         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117775         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117776         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117777         Don't bother having these macros be independent of each others'
117778         values, since they no longer exist in the POSIX name space.
117780         Rename the following member names back to their old names,
117781         unless !__USE_GNU_REGEX.  All uses changed back.
117782         (buffer): Renamed from re_buffer.
117783         (allocated): Renamed from re_allocated.
117784         (used): Renamed from re_used.
117785         (syntax): Renamed from re_syntax.
117786         (fastmap): Renamed from re_fastmap.
117787         (translate): Renamed from re_translate.
117788         (can_be_null): Renamed from re_can_be_null.
117789         (regs_allocated): Renamed from re_regs_allocated.
117790         (fastmap_accurate): Renamed from re_fastmap_accurate.
117791         (no_sub): Renamed from re_no_sub.
117792         (not_bol): Renamed from re_not_bol.
117793         (not_eol): Renamed from re_not_eol.
117794         (newline_anchor): Renamed from re_newline_anchor.
117795         (num_regs): Renamed from rm_num_regs.
117796         (start): Renamed from rm_start.
117797         (end): Renamed from rm_end.
117799         (free_state): Move up a bit.
117801         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117802         #define to be empty.
117803         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117804         when that is what is intended.
117805         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117806         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117807         (MAX): New macro.
117808         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117809         All uses changed back to re_malloc, etc.  It's now the caller's
117810         responsibility to check for overflow; all callers changed.
117811         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117812         (re_x2nrealloc): Remove.
117813         (free_state): Remove decl.
117815         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117816         (re_set_registers, re_exec):
117817         Use K&R-style defn.
117819         2006-01-31  Roland McGrath  <roland@redhat.com>
117821         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117822         Reported by Mike Frysinger <vapier@gentoo.org>.
117824         2006-01-15  Andreas Jaeger  <aj@suse.de>
117826         [BZ #1950]
117827         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117828         build_wcs_upper_buffer change.
117829         (build_wcs_upper_buffer): Change return type.
117831         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117833         * lib/regex_internal.h: Include <stdint.h> if available.
117835         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117837         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117839         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117841         * lib/regcomp.c: Adjust for changed secondary hash function.
117843         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117845         * lib/regex.h: Pretty printing.
117846         Clean up namespace a bit.
117848         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117850         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117851         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117853         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117854                     Ulrich Drepper  <drepper@redhat.com>
117856         [BZ #1302]
117857         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117858         changed.
117859         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117861         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117863         [BZ #281]
117864         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117865         * lib/regcomp.c: Remove unnecessary uses of
117866         unsigned RE_TRANSLATE_TYPE.
117867         * lib/regex_internal.h: Likewise.
117868         * lib/regex_internal.c: Likewise.
117869         * lib/regexec.c: Likewise.
117870         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117872         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117874         * lib/regexec.c (find_recover_state): Remove unnecessary
117875         initialization.
117876         (transit_state_bkref): Make DFA a const pointer.
117877         (get_subexp): Likewise.
117878         (check_arrival): Likewise.
117879         (update_cur_sifted_state): Likewise.
117880         (re_search_internal): Likewise.
117881         (prune_impossible_nodes): Likewise.
117882         (acquire_init_state_context): Likewise.
117883         (proceed_next_node): Likewise.
117884         (set_regs): Likewise.
117885         (free_fail_stack_return): Likewise.
117886         (check_arrival_expand_ecl): Mark DFA parameter as const.
117887         (check_arrival_expand_ecl_sub): Likewise.
117888         (check_subexp_limits): Likewise.
117889         (sub_epsilon_src_nodes):  Likewise.
117890         (add_epsilon_src_nodes):  Likewise.
117891         (merge_state_array): Likewise.
117892         (update_regs): Likewise.
117893         (build_trtable): Likewise.
117894         (sift_states_backward): Mark MCTX parameter as const.
117895         (build_sifted_states): Likewise.
117896         (update_cur_sifted_state): Likewise.
117897         (sift_states_mkref): Likewise.
117898         (check_arrival_expand_ecl): Mark eclosure as const.
117899         (check_dst_limits_calc_pos_1): Likewise.
117900         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117901         pointer.
117903         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117905         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117906         (transit_state_sb): Likewise.
117907         (transit_state_mb): Likewise.
117908         (sift_states_iter_mb): Likewise.
117909         (check_arrival_add_next_nodes): Likewise.
117910         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117911         [_LIBC] (re_search_2_stub): Use mempcpy.
117913         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117914         mbrtowc for very simple UTF-8 case.
117916         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117917         a pointer-to-const.
117918         (re_acquire_state_context): Likewise.
117919         * lib/regex_internal.h: Adjust prototypes.
117921         * lib/regex.c: Prevent using C++ compilers.
117923         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117924         (re_acquire_state_context): Likewise.
117926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117928         * modules/regex (Depends-on): Add ssize_t.
117930 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117932         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117933         translation table.
117935 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117937         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117939 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117940             Bruno Haible  <bruno@clisp.org>
117942         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117943         <sys/types.h> and <inttypes.h>.
117945 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117947         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117948         `__error_t_defined', so argp.h will not typedef the former.
117950 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117952         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117953         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117954         glibc names.  Even if glibc is changed to conform to POSIX, the
117955         traditional names will be available anyway, since regex depends on
117956         the extensions module.  Also, fix a longstanding typo in the
117957         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117958         reported by Emanuele Giaquinta.  Also, change sense of cached
117959         variable, so that the message makes sense.
117961 2006-03-24  Simon Josefsson  <jas@extundo.com>
117963         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117964         including some doc fixes.
117965         (base64_encode_alloc): Fix +1 bug on allocation failures.
117967 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117969         * lib/base64.c (base64_encode): Do not read past end of array with
117970         unsanitized input on systems with CHAR_BIT > 8.
117972 2006-03-24  Eric Blake  <ebb9@byu.net>
117974         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117976 2006-03-22  Karl Berry  <karl@gnu.org>
117978         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117979         * config/srclistvars.sh (COREUTILS): new var.
117981 2006-03-17  Jim Meyering  <jim@meyering.net>
117983         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117984         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117986 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117988         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117989         no longer needs it.  Instead, check that regoff_t is as least
117990         as wide as ptrdiff_t.
117992         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117993         so that our regex.h stays compatible with the installed regex.
117994         This is helpful for installers who configure --without-included-regex.
117995         Problem reported by Emanuele Giaquinta.
117997 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117999         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
118000         Typedef to long int, not to off_, as POSIX will likely change
118001         in that direction.
118003 2006-03-15  Eric Blake  <ebb9@byu.net>
118005         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
118007 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118009         * lib/argp-help.c (validate_uparams): Fix typo
118010         * lib/argp-parse.c (argp_default_options): Consistently begin help
118011         messages with a lowercase letter.
118013 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
118015         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
118016         overrun buffers and shouldn't be used (much as gets shouldn't be
118017         used).
118018         * lib/time_r.c (asctime_r, ctime_r): Likewise.
118020 2006-03-08  Simon Josefsson  <jas@extundo.com>
118022         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
118023         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118025 2006-03-08  Simon Josefsson  <jas@extundo.com>
118027         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
118028         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118030 2006-03-08  Simon Josefsson  <jas@extundo.com>
118032         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
118033         signal that configure disabled the device.
118035 2006-03-08  Simon Josefsson  <jas@extundo.com>
118037         * build-aux/maint.mk: Fix refresh-po, to handle no translated
118038         languages.
118040 2006-03-07  Simon Josefsson  <jas@extundo.com>
118042         * modules/getopt (Depends-on): Add unistd.
118044         * modules/unistd: New file.
118046 2006-03-07  Simon Josefsson  <jas@extundo.com>
118048         * modules/gc-random: New file.
118050 2006-03-07  Simon Josefsson  <jas@extundo.com>
118052         * m4/unistd_h.m4: New file.
118054 2006-03-07  Simon Josefsson  <jas@extundo.com>
118056         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
118057         test to be side-effect free by storing the result in the cache
118058         variable gl_cv_lib_readline, and moving the assignment of
118059         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
118060         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118062 2006-03-07  Simon Josefsson  <jas@extundo.com>
118064         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
118065         error on missing devices (the functions will return an error).
118067         * m4/gc.m4: Move random stuff to gc-random.m4
118069 2006-03-07  Simon Josefsson  <jas@extundo.com>
118071         * lib/unistd_.h: New file.
118073 2006-03-07  Simon Josefsson  <jas@extundo.com>
118075         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
118077 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118079         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
118080         Problem reported by Juan Manuel Guerrero.
118082 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118084         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
118085         the unistd module.
118086         * lib/getlogin_r.c: Likewise.
118087         * lib/getlogin_r.h: Likewise.
118088         * lib/glob.c: Likewise.
118089         * lib/pagealign_alloc.c: Likewise.
118090         * lib/unistd_.h: Remove; no longer needed.
118092 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118094         * MODULES.html.sh (Support for systems lacking POSIX:2001):
118095         Add unistd.
118096         * modules/c-stack (Depends-on): Add unistd.
118097         * modules/getlogin_r: Likewise.
118098         * modules/glob: Likewise.
118099         * modules/pagealign_alloc: Likewise.
118100         * modules/unistd (Files): Remove lib/unistd_.h.
118101         (EXTRA_DIST): Remove.
118102         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
118103         need unistd_.h.
118104         (MOSTLYCLEANFILES): Remove unistd.h-t.
118106 2006-03-03  Simon Josefsson  <jas@extundo.com>
118108         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
118110 2006-03-03  Simon Josefsson  <jas@extundo.com>
118112         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
118113         libidn and bison.
118115 2006-03-03  Simon Josefsson  <jas@extundo.com>
118117         * build-aux/maint.mk: Add indent target.
118119 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
118121         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
118122         our replacement poll.h in any case, to avoid a differing
118123         declaration from a system header.  Seen on AIX.
118125 2006-03-01  Simon Josefsson  <jas@extundo.com>
118127         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
118128         <kasal@ucw.cz>.
118130 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118132         * modules/gettime (Depends-on): Add extensions module.
118133         * modules/nanosleep (Depends-on): Likewise.
118134         * modules/settime (Depends-on): Likewise.
118136 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118138         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
118139         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
118140         pedantically.
118141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
118142         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
118144         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
118145         not "==".  Reported by Ralf Wildenhues.
118147 2006-03-01  Karl Berry  <karl@gnu.org>
118149         * doc/Copyright/request-*: new files, synced from gnuorg.
118151 2006-03-01  Karl Berry  <karl@gnu.org>
118153         * config/srclist.txt (Copyright/*): new entries.
118155 2006-02-28  Simon Josefsson  <jas@extundo.com>
118157         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
118159 2006-02-27  Simon Josefsson  <jas@extundo.com>
118161         * lib/base64.h: Indent #define's.  From Jim Meyering
118162         <jim@meyering.net>.
118164 2006-02-27  Jim Meyering  <jim@meyering.net>
118166         Revert the change of 2006-02-24, so these files can continue
118167         to be sync'd from gettext.
118168         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
118169         of `config.h'.
118171 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118173         * modules/intprops: New file.
118174         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
118175         Add intprops.
118176         * modules/getloadavg (Files): Remove lib/intprops.h.
118177         (Depends-on): Add intprops.
118178         * modules/human: Likewise.
118179         * modules/inttostr: Likewise.
118180         * modules/openat: Likewise.
118181         * modules/sig2str: Likewise.
118182         * modules/userspec: Likewise.
118183         * modules/utimecmp: Likewise.
118184         * modules/xnanosleep: Likewise.
118185         * modules/xstrtol: Likewise.
118187 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
118189         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
118190         * modules/lock-tests (TESTS): Use $(EXEEXT).
118191         * modules/tls-tests: Likewise.
118192         * modules/argp-tests: Likewise.
118193         (check_PROGRAMS): New var, replacing...
118194         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
118196 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118198         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
118199         `config.h'.
118201 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
118203         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
118205 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118207         Sync from coreutils.
118208         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
118209         gl_CHDIR_SAFER.
118211 2006-02-22  Jim Meyering  <jim@meyering.net>
118213         Sync from coreutils.
118214         * m4/chdir-safer.m4: New file.
118216 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
118218         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
118219         AT_FDCWD exceeds INT_MAX.
118220         * lib/openat.h (AT_FDCWD): Likewise.
118222 2006-02-17  Eric Blake  <address@hidden>
118224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
118226 2006-02-16  Simon Josefsson  <jas@extundo.com>
118228         * modules/getaddrinfo (Depends-on): Add sys_socket.
118230 2006-02-15  Simon Josefsson  <jas@extundo.com>
118232         * build-aux/maint.mk: Add dsyntax-check rule.
118234 2006-02-15  Eric Blake  <ebb9@byu.net>
118236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
118237         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
118238         'present but cannot compile' warnings on cygwin.
118239         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
118240         use ws2tcpip.h if sys/socket.h works.
118241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
118242         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
118244 2006-02-14  Simon Josefsson  <jas@extundo.com>
118246         * modules/maintainer-makefile (Files): Rename.
118248         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
118249         and (the local) Makefile.cfg to maint-cfg.mk.
118251         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
118252         to the latter.
118254         * modules/maintainer-makefile: New module.
118256         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
118257         severaly stripped to make it possible to build it up from scratch
118258         with reliable tests.
118260         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
118261         fixes to permit overriding the default actions when configure and
118262         makefile are not available.
118264 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
118266         Sync from coreutils.
118267         * modules/lstat (Depends-on): Don't depend on xalloc.
118268         (License): Change from GPL to LGPL, since this is now simply a
118269         replacement for a libc function.
118271 2006-02-14  Jim Meyering  <jim@meyering.net>
118273         Sync from coreutils.
118275         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
118276         failure on deficient systems, and simplify gnulib lgpl dependencies.
118277         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
118278         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
118280         * lib/xalloc-die.c: Remove unused definition of N_.
118282 2006-02-14  Jim Meyering  <jim@meyering.net>
118284         Sync from coreutils.
118285         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
118286         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
118287         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
118288         double-quote uses of that variable, to accommodate the rare case in
118289         which getmntent is available in none of the libraries checked.  This
118290         happens at least on FreeBSD 5.0.
118292 2006-02-13  Simon Josefsson  <jas@extundo.com>
118294         * gnulib-tool (Usage): Fix --import, from
118295         karl@freefriends.org (Karl Berry).
118297 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118299         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
118301 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
118303         * lib/argp-namefrob.h: Restore changes accidentally lost during the
118304         "autoupdate" on 2005-12-12.
118306 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118308         * modules/closeout (Depends-on): Remove atexit.
118310 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118312         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
118313         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
118315 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
118317         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
118318         __EXTENSIONS__ if this causes compilation to fail.  Problem
118319         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
118320         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
118322 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
118324         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
118325         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
118326         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
118327         All uses changed.
118329 2006-01-26  Simon Josefsson  <jas@extundo.com>
118331         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
118332         prototype is visible on mingw32.
118334         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
118335         for mingw32.
118337         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
118338         mingw32).
118340 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
118342         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
118343         attempt to open for write; this always fails, at least on POSIX
118344         hosts.  This reinstates the 2006-01-09 change, which was
118345         inadvertently removed.
118347 2006-01-26  Bruno Haible  <bruno@clisp.org>
118349         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
118350         Reported by Paul Eggert.
118352 2006-01-26  Bruno Haible  <bruno@clisp.org>
118353             Paul Eggert  <eggert@cs.ucla.edu>
118355         * lib/stdbool_.h (_Bool)
118356         [(! (defined __cplusplus || defined __BEOS__)
118357           && !defined __GNUC__
118358           && !(defined __HP_cc || defined __xlc__
118359                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
118360                || defined __sgi))]:
118361         #define to signed char in these cases too; this simplifies
118362         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
118363         etc., separately) and makes it more conservative.
118365 2006-01-25  Simon Josefsson  <jas@extundo.com>
118367         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
118368         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
118369         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
118371 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
118373         * lib/argp-namefrob.h: Bugfix. Remove stray #
118375 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
118377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
118378         so that we test the test.
118379         Check for yet another HP-UX cc bug involving *bool |= bool.
118381 2006-01-25  Karl Berry  <karl@gnu.org>
118383         * config/srclist.txt (vasnprintf.c): sync lost.
118385 2006-01-25  Jim Meyering  <jim@meyering.net>
118387         Sync from the stable (b5) branch of coreutils:
118389         * lib/fts.c (fts_children): Don't let close() clobber errno from
118390         failed fchdir().
118392         * lib/fts.c (fts_stat): When following a symlink-to-directory,
118393         don't necessarily interpret stat-fails+lstat-succeeds as indicating
118394         a dangling symlink.  That can also happen at least for ELOOP.
118395         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
118396         FYI, this bug predates the inclusion of fts.c in coreutils.
118398         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
118399         in their own block, so pre-c99 compilers don't object.
118401         Avoid the double-free (first in fts_read, second in fts_close) that
118402         would occur when an `active' directory is made inaccessible (e.g.,
118403         via chmod a-x) during a traversal.
118404         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118405         before returning.  Reproduce this failure by
118406         mkdir -p a/b; cd a; chmod a-x . b
118407         Reported by Stavros Passas.
118409 2006-01-25  Jim Meyering  <jim@meyering.net>
118411         * lib/fileblocks.c: Remove more useless parentheses.
118412         * lib/readutmp.h: Likewise.
118414 2006-01-25  Bruno Haible  <bruno@clisp.org>
118416         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
118417         warnings.
118418         Reported by Paul Eggert.
118420 2006-01-25  Bruno Haible  <bruno@clisp.org>
118422         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118423         rid of a trap command. For Solaris sh.
118424         Reported by Mark D. Baushke <mdb@gnu.org>.
118426 2006-01-24  Simon Josefsson  <jas@extundo.com>
118428         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118429         Bruno.
118431 2006-01-24  Karl Berry  <karl@gnu.org>
118433         * config/srclist.txt (argp-namefrob.h): sync lost.
118435 2006-01-24  Jim Meyering  <jim@meyering.net>
118437         * modules/openat (Files): Add lib/intprops.h.
118438         From Mark D. Baushke.
118440 2006-01-24  Jim Meyering  <jim@meyering.net>
118442         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118443         Reported by Mark D. Baushke.
118445 2006-01-24  Jim Meyering  <jim@meyering.net>
118447         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118449 2006-01-24  Bruno Haible  <bruno@clisp.org>
118451         * modules/strnlen (Maintainer): Change from glibc to all.
118453 2006-01-24  Bruno Haible  <bruno@clisp.org>
118455         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118456         Patch by Paul Eggert.
118458 2006-01-24  Bruno Haible  <bruno@clisp.org>
118460         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118461         already has it.
118462         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118463         2005-11-26.
118465         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118466         'signed char' to avoid problems with the built-in _Bool type.
118467         Reported by Paul Eggert on 2005-11-26.
118469 2006-01-24  Bruno Haible  <bruno@clisp.org>
118471         * gnulib-tool (func_import): Avoid constructing complicated sed
118472         expressions inside backquote.
118473         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118475 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118477         These changes imported from libc.
118478         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118479         test and two separate function calls.
118480         * lib/strndup.c (__strndup): Add libc_hidden_def.
118482 2006-01-23  Simon Josefsson  <jas@extundo.com>
118484         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118485         Remove the test_*_SOURCES variable: automake infers it by default.
118486         * modules/tls-tests: Likewise.
118488 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118490         Work around porting bugs reported by Dieter in
118491         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118492         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118493         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118494         Include "getopt.h" first, to check interface.
118495         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118496         !HAVE_DECL_GETENV.
118497         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118498         (__strndup): Revert to K&R-style function dfns, the glibc style.
118499         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118500         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118501         Include strnlen.h first, to get prototype properly.
118502         (strnlen): Renamed from __strnlen.
118503         Remove weak alias.
118505 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118507         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118511         * config/srclist.txt: Adjust to reflect glibc reorganization.
118512         This affects only comments.
118514 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118516          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118517          Reported by Bruce Korb <bkorb@gnu.org>.
118519 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118521         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118522         to pacify gcc -Wswitch-default.
118524 2006-01-22  Bruno Haible  <bruno@clisp.org>
118526         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118527         temporary buffer for sprintf, take into account the precision also
118528         for 'd', 'i', 'u', 'o', 'x', 'X'.
118530 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118532         * modules/argp-tests: New module
118533         * tests/test-argp.c: New file
118534         * tests/test-argp-2.sh: New file
118536 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118538         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118539         (__argp_base_name): Removed
118540         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118541         typo.
118542         (__argp_base_name): Provide macro definition or extern declaration
118543         depending on the configuration
118545 2006-01-20  Simon Josefsson  <jas@extundo.com>
118547         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118549 2006-01-20  Simon Josefsson  <jas@extundo.com>
118551         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118553 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118555         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118556         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118557         Suggested by Bruno Haible.
118559 2006-01-20  Karl Berry  <karl@gnu.org>
118561         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118562         until changes propagate, I guess.
118564 2006-01-19  Simon Josefsson  <jas@extundo.com>
118566         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118568 2006-01-19  Simon Josefsson  <jas@extundo.com>
118570         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118572 2006-01-19  Simon Josefsson  <jas@extundo.com>
118574         * gnulib-tool: Set check_PROGRAMS.
118576         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118577         modules/des-tests, modules/gc-arcfour-tests,
118578         modules/gc-arctwo-tests, modules/gc-des-tests,
118579         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118580         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118581         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118582         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118583         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118584         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118585         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118586         test_*_SOURCES.
118588 2006-01-18  Simon Josefsson  <jas@extundo.com>
118590         * modules/socklen (Depends-on): Depend on sys_socket.
118592 2006-01-18  Simon Josefsson  <jas@extundo.com>
118594         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118595         modules/des-tests, modules/gc-arcfour-tests,
118596         modules/gc-arctwo-tests, modules/gc-des-tests,
118597         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118598         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118599         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118600         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118601         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118602         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118603         $(EXEEXT) to automake TESTS variable, for mingw32.
118605 2006-01-17  Simon Josefsson  <jas@extundo.com>
118607         * modules/socklen (Include): Need sys/socket.h.
118609 2006-01-17  Bruno Haible  <bruno@clisp.org>
118611         * modules/ssize_t (Include): Add <sys/types.h>.
118613 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118615         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118616         it's not portable and it doesn't work with cross-compiles.
118617         Problem reported by Bruno Haible.  Fix missing-$ typo in
118618         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118619         -zignore from being used with Sun's C compiler.
118621 2006-01-12  Simon Josefsson  <jas@extundo.com>
118623         * lib/base64.c: Fix warning, reported by Bruno Haible
118624         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118626 2006-01-12  Bruno Haible  <bruno@clisp.org>
118628         * modules/ldd: New file.
118629         * build-aux/ldd.sh.in: New file.
118630         * MODULES.html.sh (Support for building libraries and executables): Add
118631         ldd.
118633 2006-01-12  Bruno Haible  <bruno@clisp.org>
118635         * m4/ldd.m4: New file.
118637 2006-01-12  Bruno Haible  <bruno@clisp.org>
118639         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118640         endless loop while replacing $auxdir with build-aux.
118642 2006-01-11  Simon Josefsson  <jas@extundo.com>
118644         * lib/stdint_.h (SIZE_MAX): Add missing (.
118646 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118648         Sync from coreutils.
118649         * lib/md5.c: Fix commentary typos.
118650         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118651         * lib/md5.h (__attribute__): Remove; unused.
118652         * lib/sha1.c: Fix commentary to match md5 better.
118653         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118654         so that we don't need to worry about alignment.  All uses changed.
118655         This merges the 2005-10-28 md5 change into sha1.
118657 2006-01-11  Jim Meyering  <jim@meyering.net>
118659         Sync from coreutils.
118660         * lib/md5.c (OP): Fix spacing.
118662 2006-01-11  Bruno Haible  <bruno@clisp.org>
118664         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118665         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118666         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118668 2006-01-11  Bruno Haible  <bruno@clisp.org>
118670         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118671         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118672         the "early" section as well.
118674 2006-01-11  Bruno Haible  <bruno@clisp.org>
118676         Avoid "ar: no archive members specified" error on MacOS X.
118677         * gnulib-tool (func_modules_add_dummy): New function.
118678         (func_import, func_create_testdir): Invoke it.
118680 2006-01-11  Bruno Haible  <bruno@clisp.org>
118682         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118683         with $auxdir in AC_CONFIG_FILES statements.
118685 2006-01-11  Bruno Haible  <bruno@clisp.org>
118687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118688         Initialize also noinst_HEADERS to empty.
118690 2006-01-11  Bruno Haible  <bruno@clisp.org>
118692         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118693         variables.
118694         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118695         autoreconf.
118697 2006-01-11  Bruno Haible  <bruno@clisp.org>
118699         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118700         overridable by the user.
118701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118703 2006-01-10  Simon Josefsson  <jas@extundo.com>
118705         * modules/sys_socket: New file.
118707 2006-01-10  Simon Josefsson  <jas@extundo.com>
118709         * m4/sys_socket_h.m4: New file.
118711 2006-01-10  Simon Josefsson  <jas@extundo.com>
118713         * lib/socket_.h: New file.
118715 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118717         * modules/readutmp (Maintainer): Add myself.
118719 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118721         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118722         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118723         People who are still concerned with buggy memcmp implementations
118724         can invoke gl_FUNC_MEMCMP themselves.
118726 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118728         * lib/regex_internal.h (BITSET_WORD_BITS):
118729         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118730         preprocessor mishandles large unsigned values as if they were signed.
118731         Problem reported by Claudio Fontana in
118732         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118734 2006-01-10  Jim Meyering  <jim@meyering.net>
118736         Avoid the double-free (first in fts_read, second in fts_close) that
118737         would occur when an `active' directory is made inaccessible (e.g.,
118738         via chmod a-x) during a traversal.
118739         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118740         before returning.  Reproduce this failure by
118741         mkdir -p a/b; cd a; chmod a-x . b
118742         Reported by Stavros Passas.
118744         Sync from coreutils.
118745         * lib/sha1.c: Tweak grammar in a comment.
118747 2006-01-10  Jim Meyering  <jim@meyering.net>
118749         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118750         Patch by Joerg Sonnenberger.
118752 2006-01-10  Bruno Haible  <bruno@clisp.org>
118754         * modules/readutmp: Depend on module free.
118755         * modules/strtok_r: Depend on module restrict.
118757 2006-01-10  Bruno Haible  <bruno@clisp.org>
118759         * modules/gettext (configure.ac): Add an invocation of
118760         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118762 2006-01-10  Bruno Haible  <bruno@clisp.org>
118764         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118765         Reported by Werner Lemberg <wl@gnu.org>.
118767 2006-01-10  Bruno Haible  <bruno@clisp.org>
118769         * lib/localcharset.c: Update from GNU gettext.
118771 2006-01-10  Bruno Haible  <bruno@clisp.org>
118773         * lib/argp.h (__const): Remove macro. Use const instead.
118774         * lib/argp-fmtstream.h (__const): Likewise.
118775         * lib/glob_.h (__const): Remove macro.
118776         * lib/glob-libc.h: Use const instead of __const.
118778 2006-01-10  Bruno Haible  <bruno@clisp.org>
118780         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118781         variable.
118782         Needed to avoid an automake error regarding the 'gettext' module.
118784 2006-01-09  Simon Josefsson  <jas@extundo.com>
118786         * modules/inet_ntop (Depends-on): Add restrict.
118788 2006-01-09  Simon Josefsson  <jas@extundo.com>
118790         * modules/gc-rijndael-tests (License): Put under LGPL.
118792         * modules/gc-des-tests (License): Likewise.
118794         * modules/gc-arcfour-tests (License): Likewise.
118796         * modules/gc-arctwo-tests (License): Likewise.
118798         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118800         * modules/gc-hmac-sha1-tests (Files): Likewise.
118802         * modules/gc-hmac-md5-tests (License): Likewise.
118804         * modules/gc-sha1-tests (License): Likewise.
118806         * modules/gc-md5-tests (License): Likewise.
118808         * modules/gc-md4-tests (License): Likewise.
118810         * modules/gc-md2-tests (License): Likewise.
118812         * modules/gc-tests (License): Likewise.
118814         * modules/des-tests (License): Likewise.
118816         * modules/md4-tests (License): Likewise.
118818         * modules/md2-tests (License): Likewise.
118820 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118822         Sync from coreutils:
118824         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118825         * modules/lib-ignore: New file.
118826         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118827         chdir-safer.m4, lchmod.m4.
118828         * modules/openat: Add mkdirat.c, openat-priv.h.
118830 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118832         Sync from coreutils.
118833         * m4/lib-ignore.m4: New file.
118834         * m4/lchmod.m4: New file.
118836 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118838         Sync from coreutils.
118839         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118840         for write access: POSIX says that must fail.
118841         * lib/fts.c (diropen): Likewise.
118842         * lib/save-cwd.c (save_cwd): Likewise.
118843         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118844         well, for minor improvements on hosts that lack O_DIRECTORY.
118845         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118846         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118847         Fall back on chown if open failed with EACCES.
118849         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118850         Report an error at compile-time if only a 1-second nominal clock
118851         resolution is found.
118853         * lib/lchmod.h: New file.
118854         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118855         (make_dir_parents): Use lchown rather than chown, and
118856         lchmod rather than chmod.
118858         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118859         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118860         "proc" reported by n0dalus.
118862         * lib/mountlist.c: Include <limits.h>.
118863         (dev_from_mount_options)
118864         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118865         New function.  It no longer assumes "dev=" has the System V meaning
118866         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118867         (read_file_system_list)
118868         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118869         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118870         dev= in that case.
118872         * lib/posixtm.h (PDS_PRE_2000): New macro.
118873         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118874         allow_century.  All usages changed.  Reject dates outside the range
118875         1969-1999 if PDS_PRE_2000 is used.
118877 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118879         Sync from coreutils.
118880         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118881         (Time of day items): Mention the possibility of leap seconds.
118882         Problem reported by Dr. David Alan Gilbert.
118884 2006-01-09  Jim Meyering  <jim@meyering.net>
118886         Sync from coreutils.
118888         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118890         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118892         * lib/modechange.c (mode_compile): Reject an invalid mode string
118893         that starts with an octal digit.  From Andreas Gruenbacher.
118895         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118896         and dup to open_safer and dup_safer, respectively.
118897         (openat_permissive): Fix typo in comment.
118899         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118900         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118901         (_): Remove; no longer needed.
118902         (openat): Renamed from rpl_openat; no need for rpl_openat
118903         since openat.h renames openat for us.
118904         Replace most of the body with a call to openat_permissive,
118905         to avoid duplicate code.
118906         Port to (probably hypothetical) environments were mode_t is
118907         wider than int.
118908         (openat_permissive): Require mode arg, so that we can check
118909         types better.  Put it just after flags.  Change cwd failure
118910         indicator from pointer-to-bool to pointer-to-errno-value.
118911         All callers changed.
118912         Invoke openat_save_fail and/or openat_restore_fail if
118913         cwd_errno is null, so that openat can call us.
118914         (openat_permissive, fdopendir, fstatat, unlinkat):
118915         Simplify errno handling to avoid some duplicate code,
118916         as it's OK to set errno on success.
118917         * lib/openat.h: Revamp code so that function macros depend on
118918         __OPENAT_PREFIX only, not also on AT_FDCWD.
118919         (openat_ro): Remove.  Caller changed to use openat_permissive.
118920         (openat_permissive): Now a macro, if not a function.
118921         (openat_restore_fail, openat_save_fail): Now always functions,
118922         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118924         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118925         and openat.c.
118926         * lib/mkdirat.c: Include openat-priv.h.
118927         Remove definitions of macros defined therein.
118928         * lib/openat.c: Likewise.
118930         * lib/mkdirat.c (mkdirat): New file and function.
118931         * lib/openat.h (mkdirat): Declare.
118933         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118935         * lib/openat.h (openat_permissive): Declare.
118936         (openat_ro): Define.
118938         * lib/openat.c (EXPECTED_ERRNO): New macro.
118939         (openat_permissive): New function -- used in remove.c rewrite.
118940         (all functions): Set errno just before returning, only if there
118941         was an actual failure.
118942         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118944         Emulate openat-family functions using Linux's procfs, if possible.
118945         Idea and some code based on Ulrich Drepper's glibc changes.
118947         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118948         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118949         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118950         before falling back on save_cwd and restore_cwd.
118951         (fdopendir, fstatat, unlinkat): Likewise.
118953         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118954         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118956         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118957         as second argument to va_arg.  Otherwise, some versions of gcc
118958         warn that `if this code is reached, the program will abort'.
118960 2006-01-09  Jim Meyering  <jim@meyering.net>
118962         Sync from coreutils.
118963         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118964         Require openat-priv.h.
118966 2006-01-09  Bruno Haible  <bruno@clisp.org>
118968         * modules/strnlen (Include): Use strnlen.h.
118970 2006-01-09  Bruno Haible  <bruno@clisp.org>
118972         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118974 2006-01-09  Bruno Haible  <bruno@clisp.org>
118976         * lib/sysexit_.h (EX_OK): New macro.
118977         Suggested by Martin Lambers <marlam@marlam.de>.
118979 2006-01-09  Bruno Haible  <bruno@clisp.org>
118981         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118982         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118984 2006-01-09  Bruno Haible  <bruno@clisp.org>
118986         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118987         numbers.
118989 2006-01-09  Bruno Haible  <bruno@clisp.org>
118991         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118992         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118993         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118994         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118996 2006-01-09  Bruno Haible  <bruno@clisp.org>
118998         * build-aux/javacomp.sh.in: New file, moved from lib/.
118999         * modules/javacomp-script (Files): Update.
119000         (configure.ac): Add AC_CONFIG_FILES invocation.
119001         (EXTRA_DIST): Remove variable.
119003         * build-aux/javaexec.sh.in: New file, moved from lib/.
119004         * modules/javaexec (Files): Update.
119005         (configure.ac): Add AC_CONFIG_FILES invocation.
119006         (EXTRA_DIST): Remove javaexec.sh.in.
119008         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
119009         * modules/csharpcomp-script (Files): Update.
119010         (configure.ac): Add AC_CONFIG_FILES invocation.
119011         (EXTRA_DIST): Remove variable.
119013         * build-aux/csharpexec.sh.in: New file, moved from lib/.
119014         * modules/csharpexec (Files): Update.
119015         (configure.ac): Add AC_CONFIG_FILES invocation.
119016         (EXTRA_DIST): Remove csharpexec.sh.in.
119018 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119020         Sync from coreutils.
119022         Add POSIX ACL support
119023         * lib/acl.h (copy_acl, set_acl): Add declarations.
119024         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
119025         systems other than Linux.
119026         (chmod_or_fchmod): New function: use fchmod when possible,
119027         and chmod otherwise.
119028         (file_has_acl): Add a POSIX ACL implementation, with a
119029         Linux-specific subcase.
119030         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
119031         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
119032         acls are unsupported.
119033         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
119034         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
119035         are unsupported.
119037 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119039         Sync from coreutils.
119040         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
119042 2006-01-07  Bruno Haible  <bruno@clisp.org>
119044         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
119045         gl_EARLY.
119047 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119049         * lib/strftime.c (tzname): Don't declare if it is already #defined.
119050         Problem reported for Mingw by Mark Junker.
119052 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119054         * README: Gnulib normally doesn't generate a tarball.
119056 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
119058         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
119059         long int, not int, for nanosecond counts, so that people who are
119060         used to POSIX struct timespec won't be surprised.  Reported by Jim
119061         Meyering.
119063 2005-12-28  Bruno Haible  <bruno@clisp.org>
119065         * build-aux/config.rpath: Update from GNU gettext.
119067 2005-12-16  Jim Meyering  <jim@meyering.net>
119069         * modules/fprintftime: New module.
119070         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
119072 2005-12-16  Jim Meyering  <jim@meyering.net>
119074         * m4/fprintftime.m4: New file.
119076 2005-12-16  Jim Meyering  <jim@meyering.net>
119078         * lib/fprintftime.c, lib/fprintftime.h: New files.
119080 2005-12-15  Simon Josefsson  <jas@extundo.com>
119082         * modules/socklen (configure.ac): Fix M4 macro name, to align with
119083         new m4/socklen.m4.
119085 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119087         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
119088         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
119090 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119092         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
119093         * lib/argp-help.c (fill_in_uparams): Check if the constructed
119094         struct uparams is valid. Fall back to the default values if it is
119095         not.
119097 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119099         * modules/argp (Files): Add argp-pin.c
119100         (Depends-on): dirname
119101         (lib_SOURCES): Add argp-pin.c
119103 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119105         * m4/argp.m4:  Check if program_invocation_name and
119106         program_invocation_short_name are declared and define appropriate
119107         macros if they are not.
119109 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119111         * lib/argp-help.c (__argp_base_name): New function
119112         (__argp_short_program_name): Rewrite using __argp_base_name
119113         * lib/argp-namefrob.h: Define program_invocation_name and
119114         program_invocation_short_name if requested
119115         (__argp_base_name): Add prototype
119116         * lib/argp-parse.c (argp_def): Use gettext wrappers
119117         (argp_default_parser): Use __argp_base_name
119118         * lib/argp-pin.c: New file. Defines program_invocation_name and
119119         program_invocation_short_name on systems that lack them.
119121 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119123         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
119124         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119125         porting problem reported by Georg Schwarz in
119126         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119128 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119130         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
119131         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119132         porting problem reported by Georg Schwarz in
119133         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119135 2005-12-05  Bruno Haible  <bruno@clisp.org>
119137         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
119138         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
119139         Reported by Mark Junker <mjscod@gmx.de>.
119141 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
119143         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
119144         Use implementation from Albert Chin, with some
119145         comments/corrections by Stepan Kasal and myself.
119147 2005-12-02  Bruno Haible  <bruno@clisp.org>
119149         * gnulib-tool (func_import): Accept GPLed build tool modules when
119150         --lgpl is given.
119151         * modules/csharpcomp-script: New file.
119152         * modules/csharpcomp: Depend on it.
119153         * modules/javacomp-script: New file.
119154         * modules/javacomp: Depend on it.
119155         Suggested by Simon Josefsson.
119157 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
119159         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
119160         statement, to work around an HP-UX 10.20 compiler bug reported by
119161         Peter O'Gorman.
119163 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119165         * modules/savedir (Depends-on): Add openat.
119167 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119169         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
119170         (uintmax_t) [defined uintmax_t]: Do not declare.
119171         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
119172         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
119173         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
119174         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
119175         sake of portability to weird hosts that C allows (though we don't
119176         know of any practical examples).
119178         * lib/savedir.h (fdsavedir): New decl.
119179         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
119180         contains most of the former guts of savedir.
119181         (savedir): Use savedirstream.
119182         Include "openat.h".
119184 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119186         * modules/obstack (Files): Add m4/ulonglong.m4.
119187         Problem reported by Davide Angelocola.
119189 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
119191         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
119192         coreutils no longer futzes with rounding modes.
119194 2005-11-14  Jim Meyering  <jim@meyering.net>
119196         * lib/mkstemp-safer.c: Include <config.h>, required for possible
119197         replacement of mkstemp.
119199 2005-11-10  Simon Josefsson  <jas@extundo.com>
119201         * lib/readline.c: Remove EOL.
119203 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119205         * modules/gethrxtime (Depends-on): Add gettime.
119207 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119209         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
119210         or gettimeofday; no longer needed.
119212 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119214         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
119215         time business.
119216         (gethrxtime) [! (HAVE_NANOUPTIME
119217         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
119218         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
119219         our own approximation.
119221 2005-11-08  Eric Blake  <ebb9@byu.net>
119223         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119225 2005-11-08  Eric Blake  <ebb9@byu.net>
119227         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119229 2005-11-04  Bruno Haible  <bruno@clisp.org>
119231         * gnulib-tool: Implement --update mode.
119233 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119235         Fix porting problem reported by Theodoros V. Kalamatianos.
119236         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
119237         Don't assume that futimes failing means we must fail.
119239 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
119242         variables to suggest the intended function of the PATH_MAX check.
119244 2005-10-30  Kean Johnston  <jkj@sco.com>
119246         Trivial changes to support SCO systems.
119247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
119248         as PATH_MAX.
119249         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
119250         where __ptr is null when no I/O is pending.
119252 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119254         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
119255         leave errno alone.  Problem reported by Dmitry V. Levin.
119257 2005-10-28  Simon Josefsson  <jas@extundo.com>
119259         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
119260         Test more.
119262         * tests/test-gc-md2.c, tests/test-md2.c: New files.
119264         * modules/md2, modules/md2-tests: New files.
119266 2005-10-28  Simon Josefsson  <jas@extundo.com>
119268         * m4/inet_ntop.m4: More tests.
119270         * m4/gc-md2.m4, md2.m4: New file.
119272 2005-10-28  Simon Josefsson  <jas@extundo.com>
119274         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
119275         "restrict" keywords, as per POSIX.  Protect the function
119276         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
119277         Don't use K&R prototypes.  Check the sprintf return values.
119278         Re-define EAFNOSUPPORT if not present.  Indent.
119280         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
119281         suggested by Bruno Haible <bruno@clisp.org>.
119283         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
119285         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
119287         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
119288         libgcrypt).
119290         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
119292         * lib/md2.h, lib/md2.c: New files.
119294 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
119296         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
119297         errno alone.  Problem reported by Frederic Jolliton.
119299 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
119301         * modules/verify (License): Change from GPL to LGPL.  This is a
119302         tiny module and there are apparently near-equivalents that are
119303         under the BSD license.
119305 2005-10-24  Simon Josefsson  <jas@extundo.com>
119307         * modules/sha1: Relicense to LGPL.
119309 2005-10-24  Simon Josefsson  <jas@extundo.com>
119311         * lib/md4.h: Shrink buffer size, now that we changed the type.
119313 2005-10-23  Simon Josefsson  <jas@extundo.com>
119315         * gnulib-tool (func_import): Fix --tests-base.
119317 2005-10-22  Simon Josefsson  <jas@extundo.com>
119319         * modules/arcfour (Depends-on): Need stdint.
119321 2005-10-22  Simon Josefsson  <jas@extundo.com>
119323         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
119324         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
119326 2005-10-22  Simon Josefsson  <jas@extundo.com>
119328         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
119329         suggested by Bruno Haible <bruno@clisp.org>.
119331 2005-10-22  Simon Josefsson  <jas@extundo.com>
119333         * lib/crc.h: Include stddef.h, for size_t.
119335 2005-10-22  Simon Josefsson  <jas@extundo.com>
119337         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
119338         arcfour_context struct (simplify test vector testing in GNU
119339         Shishi).
119341 2005-10-21  Simon Josefsson  <jas@extundo.com>
119343         * modules/des, modules/des-tests: New files.
119345         * modules/gc-des, modules/gc-des-tests: New files.
119347         * tests/test-des.c, tests/test-gc-des.c: New file.
119349 2005-10-21  Simon Josefsson  <jas@extundo.com>
119351         * modules/arctwo, modules/arctwo-tests: New files.
119353         * tests/test-arctwo.c: New file.
119355         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
119357         * tests/test-gc-arctwo.c: New file.
119359 2005-10-21  Simon Josefsson  <jas@extundo.com>
119361         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
119362         Bruno Haible <bruno@clisp.org>.
119364         * m4/gc-des.m4: New file.
119366 2005-10-21  Simon Josefsson  <jas@extundo.com>
119368         * m4/arctwo.m4: New file.
119370         * m4/gc-arctwo.m4: New file.
119372 2005-10-21  Simon Josefsson  <jas@extundo.com>
119374         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
119375         block.
119377 2005-10-21  Simon Josefsson  <jas@extundo.com>
119379         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
119380         <bruno@clisp.org>.
119382         * lib/hmac-sha1.c (hmac_sha1): Likewise.
119384         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
119385         Bruno Haible <bruno@clisp.org>.
119387         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
119388         <bruno@clisp.org>.
119390 2005-10-21  Simon Josefsson  <jas@extundo.com>
119392         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
119394 2005-10-21  Simon Josefsson  <jas@extundo.com>
119396         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
119398 2005-10-21  Simon Josefsson  <jas@extundo.com>
119400         * lib/des.h, lib/des.c: New files.
119402         * lib/gc-gnulib.c: Support DES.c
119404 2005-10-21  Simon Josefsson  <jas@extundo.com>
119406         * lib/arctwo.h, lib/arctwo.c: New files.
119408         * lib/gc-gnulib.c: Support ARCTWO.
119410 2005-10-21  Simon Josefsson  <jas@extundo.com>
119412         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
119413         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
119415 2005-10-21  Simon Josefsson  <jas@extundo.com>
119417         * gnulib-tool (func_import, func_create_testdir): Define automake
119418         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
119419         Makefile.am snippet),
119420         suggested by Bruno Haible <bruno@clisp.org>.
119422         * modules/gc (Makefile.am): Use it.
119424 2005-10-21  Bruno Haible  <bruno@clisp.org>
119426         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119427         patch.
119429 2005-10-19  Simon Josefsson  <jas@extundo.com>
119431         * tests/test-gc-rijndael.c: New file.
119433         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119435 2005-10-19  Simon Josefsson  <jas@extundo.com>
119437         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119438         interface too.
119440 2005-10-19  Simon Josefsson  <jas@extundo.com>
119442         * tests/test-gc-arcfour.c: New file.
119444         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119446 2005-10-19  Simon Josefsson  <jas@extundo.com>
119448         * modules/gc-md4, modules/gc-md4-tests: New file.
119450         * tests/test-gc-md4.c: New file.
119452 2005-10-19  Simon Josefsson  <jas@extundo.com>
119454         * m4/gc-md4.m4: New file.
119456 2005-10-19  Simon Josefsson  <jas@extundo.com>
119458         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119459         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119460         <kasal@ucw.cz>.
119462 2005-10-19  Simon Josefsson  <jas@extundo.com>
119464         * m4/gc-arcfour.m4: New file.
119466         * m4/gc-rijndael.m4: New file.
119468 2005-10-19  Simon Josefsson  <jas@extundo.com>
119470         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119472 2005-10-19  Simon Josefsson  <jas@extundo.com>
119474         * lib/gc-gnulib.c: Support ARCFOUR.
119476 2005-10-19  Simon Josefsson  <jas@extundo.com>
119478         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119479         support.
119481         * lib/gc.h: Add ECB enum type.
119483         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119485 2005-10-18  Simon Josefsson  <jas@extundo.com>
119487         * tests/test-md5.c: New file.
119489         * modules/md5-tests: New file.
119491 2005-10-18  Simon Josefsson  <jas@extundo.com>
119493         * tests/test-md4.c: New file.
119495         * modules/md4, modules/md4-tests: New files.
119497 2005-10-18  Simon Josefsson  <jas@extundo.com>
119499         * m4/md4.m4: New file.
119501 2005-10-18  Simon Josefsson  <jas@extundo.com>
119503         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119505 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119507         * gnulib-tool (func_create_testdir): Omit the second check whether
119508         BUILT_SOURCES in nonempty.
119510 2005-10-17  Simon Josefsson  <jas@extundo.com>
119512         * tests/test-rijndael.c: New file.
119514 2005-10-17  Simon Josefsson  <jas@extundo.com>
119516         * modules/sha1: Depend on stdint instead of md5.
119518         * modules/md5: Depend on stdint, remove uint32_t.
119520 2005-10-17  Simon Josefsson  <jas@extundo.com>
119522         * modules/gc-sha1-tests: New file.
119524         * tests/test-gc-sha1.c: New file.
119526 2005-10-17  Simon Josefsson  <jas@extundo.com>
119528         * m4/md5.m4: Remove call to uint32_t.m4.
119530 2005-10-17  Simon Josefsson  <jas@extundo.com>
119532         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119534         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119535         md5.h.
119537         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119539         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119541 2005-10-17  Simon Josefsson  <jas@extundo.com>
119543         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119545 2005-10-17  Simon Josefsson  <jas@extundo.com>
119547         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119549 2005-10-17  Simon Josefsson  <jas@extundo.com>
119551         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119553         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119555 2005-10-17  Bruno Haible  <bruno@clisp.org>
119557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119558         that it can also be used in a test.
119560 2005-10-16  Bruno Haible  <bruno@clisp.org>
119562         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119563         TESTS_ENVIRONMENT, so that individual tests can augment it.
119565         * gnulib-tool (func_create_testdir): Use an intermediate target for
119566         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119567         macros, like $(ALLOCA_H), which cannot be passed through the command
119568         line.
119570 2005-10-15  Simon Josefsson  <jas@extundo.com>
119572         * modules/rijndael-tests: New file.
119574         * modules/rijndael: New file.
119576 2005-10-15  Simon Josefsson  <jas@extundo.com>
119578         * m4/rijndael.m4: New file.
119580 2005-10-15  Simon Josefsson  <jas@extundo.com>
119582         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119584         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119586 2005-10-14  Simon Josefsson  <jas@extundo.com>
119588         * tests/test-arcfour.c: New file.
119590         * modules/arcfour, modules/arcfour-tests: New files.
119592 2005-10-14  Simon Josefsson  <jas@extundo.com>
119594         * m4/arcfour.m4: New file.
119596 2005-10-14  Simon Josefsson  <jas@extundo.com>
119598         * lib/arcfour.h, lib/arcfour.c: New files.
119600 2005-10-14  Roland McGrath  <roland@redhat.com>
119602         Import from libc.  [BZ #1331]
119603         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119604         macro argument.
119605         Reported by Matej Vela <vela@debian.org>.
119607 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119609         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119610         include <wchar.h>; no longer needed.
119612 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119614         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119616 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119617         and  Ulrich Drepper  <drepper@redhat.com>
119619         Import from libc.
119620         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119621         instead of inline stream orientation test and two separate
119622         function calls.  Pay no attention to USE_IN_LIBIO.
119624 2005-10-13  Simon Josefsson  <jas@extundo.com>
119626         * modules/gc-hmac-md5-tests: New file.
119628         * tests/test-gc-hmac-sha1.c: New file.
119630         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119632         * modules/gc-hmac-md5-tests: New file.
119634         * tests/test-gc-md5.c: New file.
119636         * modules/gc-md5-tests: New file.
119638 2005-10-13  Simon Josefsson  <jas@extundo.com>
119640         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119641         Move memory allocation outside of loop.
119643 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119645         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119646         intermediate directory is in a read-only file system.  Problem
119647         reported by Eric Blake.
119649 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119651         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119653 2005-10-12  Simon Josefsson  <jas@extundo.com>
119655         * tests/test-hmac-sha1.c: New file.
119657         * modules/hmac-sha1-tests: New file.
119659         * modules/hmac-sha1: New file.
119661 2005-10-12  Simon Josefsson  <jas@extundo.com>
119663         * modules/gc-sha1: New file.
119665 2005-10-12  Simon Josefsson  <jas@extundo.com>
119667         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119669         * tests/test-gc-pbkdf2-sha1.c: New file.
119671 2005-10-12  Simon Josefsson  <jas@extundo.com>
119673         * modules/gc-md5, modules/gc-hmac-md5: New files.
119675         * modules/gc (Files): Remove md5, memxor and hmac files.
119677 2005-10-12  Simon Josefsson  <jas@extundo.com>
119679         * m4/gc-pbkdf2-sha1.m4: New file.
119681         * m4/gc-hmac-sha1.m4: New file.
119683         * m4/gc-sha1: New file.
119685         * m4/hmac-sha1.m4: New file.
119687 2005-10-12  Simon Josefsson  <jas@extundo.com>
119689         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119691         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119693 2005-10-12  Simon Josefsson  <jas@extundo.com>
119695         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119696         suggested by Bruno Haible <bruno@clisp.org>.
119698 2005-10-12  Simon Josefsson  <jas@extundo.com>
119700         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119702 2005-10-12  Simon Josefsson  <jas@extundo.com>
119704         * lib/gc-pbkdf2-sha1.c: New file.
119706         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119708 2005-10-12  Simon Josefsson  <jas@extundo.com>
119710         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119712         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119714 2005-10-12  Simon Josefsson  <jas@extundo.com>
119716         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119717         GC_USE_HMAC_MD5, respectively.
119719         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119720         (gc_md5): Fix typo.
119722         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119724         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119726         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119728 2005-10-12  Bruno Haible  <bruno@clisp.org>
119730         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119731         Reported by Stepan Kasal <kasal@ucw.cz>.
119733 2005-10-11  Simon Josefsson  <jas@extundo.com>
119735         * tests/test-crc.c: New file.
119737         * modules/crc, modules/crc-tests: New files.
119739 2005-10-11  Simon Josefsson  <jas@extundo.com>
119741         * m4/crc.m4: New file.
119743 2005-10-11  Simon Josefsson  <jas@extundo.com>
119745         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119747         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119749         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119751 2005-10-11  Simon Josefsson  <jas@extundo.com>
119753         * lib/crc.h, lib/crc.c: New files.
119755         * lib/gc.h (gc_hash_buffer): Add doc.
119757 2005-10-11  Bruno Haible  <bruno@clisp.org>
119759         * modules/c-strcasestr: New file.
119760         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119762 2005-10-11  Bruno Haible  <bruno@clisp.org>
119764         * modules/c-strcase: New file.
119765         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119767 2005-10-11  Bruno Haible  <bruno@clisp.org>
119769         * lib/strcasecmp.c: Include limits.h.
119770         (strcasecmp): Avoid integer overflow on exotic platforms.
119771         * lib/strncasecmp.c: Include limits.h.
119772         (strncasecmp): Avoid integer overflow on exotic platforms.
119773         Reported by Paul Eggert.
119775 2005-10-11  Bruno Haible  <bruno@clisp.org>
119777         * lib/c-strcasestr.h: New file, from GNU gettext.
119778         * lib/c-strcasestr.c: New file, from GNU gettext.
119780 2005-10-11  Bruno Haible  <bruno@clisp.org>
119782         * lib/c-strcase.h: New file, from GNU gettext.
119783         * lib/c-strcasecmp.c: New file, from GNU gettext.
119784         * lib/c-strncasecmp.c: New file, from GNU gettext.
119786 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119788         * modules/mempcpy (License): GPL -> LGPL.
119789         * modules/strchrnul (License): Likewise.
119790         * modules/sysexits (License): Likewise.
119792 2005-10-08  Simon Josefsson  <jas@extundo.com>
119794         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119796 2005-10-07  Simon Josefsson  <jas@extundo.com>
119798         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119800 2005-10-06  Simon Josefsson  <jas@extundo.com>
119802         * tests/test-hmac-md5.c: New file.
119804         * modules/hmac-md5-tests: New file.
119806         * modules/hmac-md5: New file.
119808 2005-10-06  Simon Josefsson  <jas@extundo.com>
119810         * m4/hmac-md5.m4: New file.
119812         * m4/memxor.m4: Require gl_C_RESTRICT.
119814 2005-10-06  Simon Josefsson  <jas@extundo.com>
119816         * lib/memxor.c (memxor): Avoid casts and warnings.
119818 2005-10-06  Simon Josefsson  <jas@extundo.com>
119820         * lib/hmac-md5.c: New file.
119822         * lib/hmac.h: New file.
119824 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119827         promotes to int, not unsigned int, to catch the AIX 5.3
119828         compiler bug.
119830 2005-10-05  Simon Josefsson  <jas@extundo.com>
119832         * modules/memxor: New file.
119834         * modules/iconv (Files): Move config.rpath to havelib, it is used
119835         there.
119837         * modules/havelib (Files): Add config.rpath.
119839 2005-10-05  Simon Josefsson  <jas@extundo.com>
119841         * m4/memxor.m4: New file.
119843 2005-10-05  Simon Josefsson  <jas@extundo.com>
119845         * lib/memxor.c (memxor): Fix compiler error.
119847         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119848         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119850         * lib/memxor.h, lib/memxor.c: New files.
119852         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119853         we assume all systems have it, suggested by Jim Meyering
119854         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119855         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119856         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119857         same reasons.
119859 2005-10-05  Simon Josefsson  <jas@extundo.com>
119861         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119863 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119866         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119867         needed, since the source code now assumes these .h files.
119869 2005-10-05  Derek Price  <derek@ximbiot.com>
119871         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119873 2005-10-05  Bruno Haible  <bruno@clisp.org>
119875         * modules/stdint (License): Change to LGPL.
119877 2005-10-04  Simon Josefsson  <jas@extundo.com>
119879         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119880         D. Baushke" <mdb@gnu.org>.
119882 2005-10-04  Bruno Haible  <bruno@clisp.org>
119884         * lib/verify.h (verify_true): Provide alternative definition for C++.
119886 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119888         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119889         (SSIZE_MAX): New macro, if not already defined.
119890         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119891         than 2 GiB.
119893 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119895         Sync from coreutils.
119896         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119897         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119898         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119899         ULLONG_MAX doesn't work with 2.7.2.1.
119901 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119903         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119904         From Ben Pfaff.
119906         * modules/exclude (Depends-on): Depend on verify.
119907         * modules/strtoimax (Depends-on): Likewise.
119908         * modules/utimecmp (Depends-on): Likewise.
119910 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119912         * lib/exclude.c: Include verify.h.
119913         (verify): Remove.  All callers changed to use verify.h's version.
119914         * lib/strtoimax.c: Likewise.
119915         * lib/utimecmp.c: Likewis.e
119917         Sync from coreutils.
119918         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119919         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119920         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119921         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119922         bother returning ENOSYS if settimeofday or stime fails; just let
119923         them return whatever errno they want to return.
119924         * lib/utimens.c: Include unistd.h, for dup2.
119925         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119926         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119928 2005-10-02  Jim Meyering  <jim@meyering.net>
119930         Sync from coreutils.
119931         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119932         from glibc-2.2.5 that fails for read-only files.
119934 2005-10-02  Jim Meyering  <jim@meyering.net>
119936         Sync from coreutils.
119937         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119938         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119939         `#if HAVE_CONFIG_H'.
119940         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119941         Remove AT_FDCWD test.
119942         Do not consume the fd unless successful.
119943         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119944         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119945         block, so that we don't even try to compile it if settimeofday is
119946         available.  This works around a compilation failure on OSF1 V5.1,
119947         due to stime requiring a `long int*' while tv_sec is `int'.
119949 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119951         Sync from coreutils.
119952         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119953         against `yes', rather than just testing for nonempty.
119955 2005-10-01  Simon Josefsson  <jas@extundo.com>
119957         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119958         and Darwin.
119960         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119961         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119962         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119963         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119964         Check if struct addrinfo is declared.
119966 2005-10-01  Simon Josefsson  <jas@extundo.com>
119968         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119969         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119970         AI_* and EAI_* definitions.  Protect function declarations.
119972 2005-10-01  Jim Meyering  <jim@meyering.net>
119974         Sync from coreutils.
119976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119977         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119978         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119980         in the inet and nsl libraries.  Required on Solaris 5.7.
119982 2005-10-01  Jim Meyering  <jim@meyering.net>
119984         Sync from coreutils.
119985         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119986         in the inet and nsl libraries.  Required on Solaris 5.7.
119988 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119990         * lib/getdelim.c (getdelim): Remove unused variables.
119992 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119994         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119995         so that the code works even with ancient cpp.  Portability problem
119996         with GCC 2.7.2.1 reported by Thomas M.Ott.
119998 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
120000         * modules/regex (Depends-on): Add strcase.
120002         * modules/gethostname (Licence): Change from GPL to LGPL, since
120003         gethostname.c is a trivial implementation of a standard library
120004         function.
120005         * modules/poll (License): Change from GPL to LGPL, since it's
120006         derived from LGPL code.
120008 2005-09-27  Jim Meyering  <jim@meyering.net>
120010         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
120011         HAVE_CONFIG_H.
120013         * lib/intprops.h (signed_type_or_expr__): Define.
120014         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
120015         for unsigned types.
120017 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
120019         * lib/verify.h (verify_expr): Remove, replacing with:
120020         (verify_true): New macro that returns true instead of void.
120021         (verify_type__): Remove.
120022         (verify): Use verify_true rather than verify_type__.
120024 2005-09-26  Bruno Haible  <bruno@clisp.org>
120026         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
120027         is necessary.
120028         (lib_SOURCES): Remove mbchar.c.
120029         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
120030         (Files): Add m4/mbrtowc.m4.
120031         * modules/mbiter: Likewise.
120032         * modules/mbuiter: Likewise.
120034 2005-09-26  Bruno Haible  <bruno@clisp.org>
120036         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
120037         compile mbchar.c if they are not both present.
120038         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
120039         * m4/mbiter.m4 (gl_MBITER): Likewise.
120040         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
120041         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
120042         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
120044 2005-09-25  Jim Meyering  <jim@meyering.net>
120046         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
120047         also uses socklen_t.
120049 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
120051         * lib/utimens.c (ENOSYS): Define if not already defined.
120052         (futimens): Support having a null PATH if the file descriptor
120053         is nonnegative.
120055         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
120056         Remove.
120057         (__attribute): Define to empty unless GCC 3.1 or later.
120058         This works around a core dump on OpenBSD 3.4, which has GCC
120059         2.95.3, which dumps core when given __attribute__(()).  It also
120060         simplifies other tests, since we really don't want to bother with
120061         worrying about which ancient version of GCC supported what.
120062         Original problem reported by Yoann Vandoorselaere, with part of
120063         the fix suggested by Derek Price.
120065 2005-09-24  Jim Meyering  <jim@meyering.net>
120067         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
120068         so we can once again use a positive bitfield width of 1 -- now we
120069         don't have to explain why we were using a bitfield width of 2.
120071 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120073         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
120074         and similarly for the other external symbols.  Problem reported
120075         by James Gallager.
120077         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
120078         bug reported by Jim Meyering.
120080         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
120081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
120082         not needed, since socklen is a prerequisite module.
120084 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120086         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
120087         Problem reported by Eric Blake.
120088         (getaddrinfo): Initialize se so that it's not garbage.
120089         Redo internal storage allocation so that it doesn't make unportable
120090         assumptions about alignment.
120091         Fix a memory leak.
120093         * lib/utimens.c (futimens): Use futimesat if available.
120094         Prefer it to futimes since it doesn't have the futimes bug.
120096         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
120097         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
120098         Instead, declare a function that returns a pointer to an array,
120099         and use verify_type__ to declare the size of the array.
120100         Problem and germ of a solution reported by Bruno Haible.
120101         (verify_type__): Use 2, not 1, for bitfield size, to avoid
120102         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
120104 2005-09-23  Jim Meyering  <jim@meyering.net>
120106         Sync from coreutils.
120107         Correct build failure (socklen_t not defined) on at least
120108         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
120109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
120111 2005-09-23  Jim Meyering  <jim@meyering.net>
120113         * modules/getaddrinfo (Depends-on): Add socklen.
120115 2005-09-23  Bruno Haible  <bruno@clisp.org>
120117         * tests/test-verify.c: New file.
120119 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120121         Sync from coreutils.
120123         * modules/argmatch (Depends-on): Add verify.
120124         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
120125         unistd-safer.
120126         * modules/save-cwd (Depends-on): Likewise.
120128         * modules/openat (Files): Add lib/openat-die.c.
120129         (Depends-on): Remove error, exitfail.
120130         Add dirname.
120132         * modules/verify: New file.
120133         * MODULES.html.sh (Diagnostics <assert.h>): New section,
120134         with "verify" module.
120136 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120138         Sync from coreutils.
120140         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
120141         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
120142         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
120143         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
120144         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
120145         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
120146         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
120147         Don't bother checking for string.h, stdlib.h, unistd.h.
120148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
120149         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
120150         module's job.
120151         * m4/jm-macros.m4 (gl_MACROS): Likewise.
120152         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
120154         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
120155         (gl_GETDATE): Use it.
120157         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
120159 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120161         Sync from coreutils.
120163         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
120164         stat-time.h.
120165         * lib/argmatch.h: Include verify.h
120166         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
120167         (ARGMATCH_ASSERT): Remove; unused.
120168         * lib/canonicalize.c: Assume STDC_HEADERS.
120169         * lib/exclude.c: Include "strcase.h".
120170         * lib/regex_internal.h [!defined _LIBC]: Likewise.
120171         * lib/getusershell.c: Include stdio--.h rather than stdio.h
120172         and stdio-safer.h.
120173         (getusershell): Call fopen, not fopen_safer.
120174         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
120175         Do not include unistd-safer.h.
120176         (save_cwd): Don't call fd_safer; no longer needed
120177         now that we include fcntl--.h.
120179         * lib/getdate.y (relative_time): New type.
120180         (RELATIVE_TIME_0): New constant.
120181         (parser_control): Use relative_time instead of doing it ourselves.
120182         (%union): Add new relative_time rel member.
120183         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
120184         Now typeless.
120185         (relunit, relunit_snumber): Now of type rel.
120186         (zone, rel, relunit, get_date): Adjust to above changes.
120188         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
120189         Do not include unistd-safer.h.
120190         (getloadavg): Don't call fd_safer; no longer needed
120191         now that we include fcntl--.h.
120193         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
120194         (make_dir_parents): Treat ENOSYS like EEXIST.
120196         Improve quality of diagnostics on restore_cwd failure.
120197         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
120198         (make_dir_parents): Last arg is now int * (for errno), not bool *.
120199         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
120200         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
120201         each time through the loop.  Do not diagnose restore_cwd failure;
120202         that is the caller's job (and perhaps the caller does not care).
120204         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
120205         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
120206         If the file already exists but is not a directory, don't bother
120207         to try to make its parents.
120208         Close potential file descriptor leak if we can't chdir("/") (!).
120209         Don't always return true if chdir($PWD) fails; return true only
120210         if the requested action was done successfully (except for the
120211         chdir($PWD)).
120212         Don't log final directory unless we actually made it.
120213         Refactor to avoid duplicate code to fix up permissions.
120214         Don't attempt to fix up parent permissions if chdir($PWD) fails.
120216         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
120217         to make it a bit faster and (I hope) clearer.
120218         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
120219         Fix bug in formats like %2N.
120221         * lib/verify.h: New file.
120223 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120225         Sync from coreutils.
120226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
120228 2005-09-22  Jim Meyering  <jim@meyering.net>
120230         Sync from coreutils.
120232         * m4/lstat.m4 (gl_FUNC_LSTAT):
120233         Use AC_LIBSOURCES to require lstat.c and lstat.h.
120234         Remove obsolete comment.
120235         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
120236         * m4/xstrtod.m4: Likewise.
120238         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
120240 2005-09-22  Jim Meyering  <jim@meyering.net>
120242         Sync from coreutils.
120244         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
120246         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
120247         the .tm_year member, since otherwise gcc-4.0 would now warn about
120248         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
120250         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
120251         order to avoid an unsuppressible warning from gcc on 64-bit systems.
120253         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
120254         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
120255         when run in a time zone for which daylight savings time is in effect
120256         for the starting date.
120258         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
120259         stop us from restricting permissions of just-created absolute-named
120260         directories.
120261         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
120262         to restore initial working directory.
120263         * lib/mkdir-p.c (make_dir_parents): New parameter:
120264         different_working_dir, to tell caller if/when we change the working
120265         directory and are unable to return to the initial one.
120266         * lib/mkdir-p.h (make_dir_parents): Update prototype.
120267         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
120268         `return false'.  This fixes a bug introduced on 2004-07-30.
120270         * lib/openat.c (fdopendir): Be sure to close the supplied
120271         file descriptor before returning.  This makes our replacement
120272         implementation a little closer to Solaris's, where fdopendir
120273         ties the file descriptor to the returned DIR* pointer.
120274         * lib/openat.c (unlinkat): New function.
120275         * lib/openat.h (unlinkat): Add prototype.
120276         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
120277         (openat_restore_fail): Rename from openat_restore_die.
120278         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
120280         Provide an alternative to exiting immediately upon save_cwd or
120281         restore_cwd failure.  Now, an application can arrange e.g.,
120282         to perform a longjump in that case.
120283         * lib/openat.c: Include dirname.h.
120284         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
120285         (rpl_openat, fdopendir, fstatat): Call openat_save_die
120286         and openat_restore_die rather than calling error directly.
120287         Don't include "error.h" or "exitfail.h"; they're no longer needed.
120289         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
120290         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
120291         define.
120293         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
120294         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
120295                             int utc, int nanoseconds);
120296         Background:
120297         date should not have to allocate a megabyte of virtual memory to
120298         handle a format argument like +%1048575T.  When implemented with
120299         strftime, it must allocate such a buffer, use strftime to fill it
120300         in, print it, then free it.
120301         With fprintftime, it simply prints everything and exits.
120302         With no need for memory allocation, that's one fewer way to fail.
120303         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
120304         optional field width, not before, so we accept %9:z, not %:9z.
120305         (my_strftime): Be sure to use L_('x') for literals.
120307         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
120308         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
120309         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
120310         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
120311         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
120312         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
120313         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
120314         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
120315         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
120316         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
120317         * lib/xgethostname.c, lib/xreadlink.c:
120318         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
120320         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
120321         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
120322         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
120323         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120324         and don't include <sys/file.h>).
120326 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
120328         Sync from coreutils.
120330         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
120331         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
120332         [!LDAV_DONE]: Avoid unused variable warning.
120334 2005-09-21  Bruno Haible  <bruno@clisp.org>
120336         * lib/unicodeio.h (unicode_to_mb): New declaration.
120338 2005-09-20  Derek Price  <derek@ximbiot.com>
120340         * lib/getaddrinfo.c: Don't include <netdb.h> included from
120341         getaddrinfo.h.
120343 2005-09-20  Bruno Haible  <bruno@clisp.org>
120345         * gnulib-tool: Remove trailing slashes from the values specified for
120346         --source-base, --m4-base, --tests-base, --aux-dir.
120347         Suggested by Simon Josefsson <jas@extundo.com>.
120349 2005-09-20  Bruno Haible  <bruno@clisp.org>
120351         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
120352         func_modules_to_filelist, func_import, func_create_testdir): Make all
120353         sorting results locale-independent, so that gnulib-cache.m4 doesn't
120354         change when gnulib-tool is invoked in a different locale.
120356 2005-09-19  Simon Josefsson  <jas@extundo.com>
120358         * m4/socklen.m4: Fix typo.
120360 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120362         Use a consistent style for including <config.h>.
120363         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
120364         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
120365         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
120366         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
120367         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
120368         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
120369         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
120370         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
120371         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
120372         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
120373         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
120374         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
120375         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
120376         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
120377         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
120378         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
120379         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
120380         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
120381         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
120382         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
120383         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
120384         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
120385         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
120386         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
120387         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
120388         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
120389         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
120390         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
120391         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
120392         lib/xstrtoumax.c, lib/yesno.c:
120393         Standardize inclusion of config.h.
120394         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
120395         lib/inttostr.h:  Removed inclusion of config.h from header files.
120396         * lib/inttostr.c:  Adjusted in-tree users.
120397         * lib/timespec.h: Remove superfluous warning to include config.h.
120398         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
120399         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
120400         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
120401         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
120402         config.h with HAVE_CONFIG_H.
120404 2005-09-19  Jim Meyering  <jim@meyering.net>
120406         * modules/pathmax (License): Change to LGPL.
120408 2005-09-19  Derek Price  <derek@ximbiot.com>
120410         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
120412 2005-09-19  Bruno Haible  <bruno@clisp.org>
120414         * gnulib-tool (import): Provide default for --tests-base.
120416 2005-09-19  Bruno Haible  <bruno@clisp.org>
120418         * doc/quote.texi: New file, extracted from gnulib.texi.
120419         * doc/ctime.texi: New file, extracted from gnulib.texi.
120420         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120421         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120422         * doc/gnulib.texi: Include them.
120424 2005-09-18  Bruno Haible  <bruno@clisp.org>
120426         Portability fix.
120427         * gnulib-tool (func_readlink): New function.
120428         (func_ln_if_changed): Use it.
120430 2005-09-18  Bruno Haible  <bruno@clisp.org>
120432         * gnulib-tool: Support --with-tests also with --import.
120433         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120434         (func_import): Use variables $testsbase and $inctests. Emit a
120435         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120436         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120437         SUBDIRS += $testsdir.
120438         (func_create_testdir): Update.
120440 2005-09-18  Bruno Haible  <bruno@clisp.org>
120442         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120443         instead of $dry_run.
120444         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120445         (func_ln_if_changed): Don't handle dry-run here.
120446         (func_import): In dry-run mode, detect more precisely which actions
120447         would be performed, and don't use "...ing" verbs.
120449 2005-09-18  Bruno Haible  <bruno@clisp.org>
120451         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120452         (func_import): Use join on two temporary files instead of three nested
120453         loops, in order to determine which files are new or old.
120455 2005-09-18  Bruno Haible  <bruno@clisp.org>
120457         * gnulib-tool (func_import): Comment out code that spits out the
120458         new files with --dry-run.
120460 2005-09-18  Bruno Haible  <bruno@clisp.org>
120462         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120464 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120466         * lib/stat-time.h: New file.
120467         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120468         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120469         in a different way.
120470         (timespec_cmp): New function.
120471         * lib/utimecmp.c: Include stat-time.h.
120472         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120473         members exist, not on the obsolescent ST_MTIM_NSEC.
120474         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120476 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120478         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120480 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120482         * MODULES.html.sh (File system functions): Add stat-time.
120483         * modules/stat-time: New file.
120484         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120485         is now done in a different way, by the stat-time module.
120486         * modules/utimecmp (Depends-on): Add stat-time.
120488 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120490         * m4/st_mtim.m4: Remove.  Superseded by...
120491         * m4/stat-time.m4: New file.
120492         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120493         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120495 2005-09-15  Derek Price  <derek@ximbiot.com>
120497         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120499 2005-09-15  Derek Price  <derek@ximbiot.com>
120501         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120502         * lib/regex_internal.c: Ditto, using this...
120503         (__GNUC_PREREQ): ...new macro.
120504         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120505         using...
120506         (__GNUC_PREREQ): ...this new macro.
120508         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120510 2005-09-15  Derek Price  <derek@ximbiot.com>
120511             Paul Eggert  <eggert@cs.ucla.edu>
120513         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120514         changes, consolidating in...
120515         * lib/regex_internal.h: ...this file.
120517 2005-09-13  Jim Meyering  <jim@meyering.net>
120519         * lib/canon-host.c: Filter through gnu indent and reword comments
120520         slightly.
120521         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120523 2005-09-13  Derek Price  <derek@ximbiot.com>
120525         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120526         failure.
120527         Reported by Jim Meyering  <jim@meyering.net>.
120529 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120531         * lib/base64.c: Typo.
120532         (base64_encode): Put b64str in initialized data section.
120534 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120536         Merge glibc and coreutils changes into gnulib, plus a few
120537         extra fixes.
120538         * lib/md5.c: Use #error rather than a string.
120539         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120540         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120541         (__attribute__): Define to empty for non recent-GCC.
120542         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120543         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120544         Renamed from their non-__ counterparts, with new macros replacing
120545         them if not _LIBC.  Add __THROW attribute.
120546         (rol): Remove.
120547         (struct md5_ctx): Align buffer if using GCC.
120548         * lib/sha1.h (struct sha1_ctx): Likewise.
120549         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120550         The old name was backwards.
120551         (NOTSWAP): Remove; not used.
120552         (rol): New macro, moved here from md5.h.
120553         (sha1_process_block): Remove a FIXME that doesn't make sense.
120555 2005-09-12  Derek Price  <derek@ximbiot.com>
120557         Return usable errors from canon-host.
120558         * lib/canon-host.h: New file.
120559         * lib/canon-host.c (canon_host): Wrap...
120560         (canon_host_r): ...this new function, which now relies exclusively on
120561         getaddrinfo.
120562         (ch_strerror): New function.
120563         (last_cherror): New global.
120564         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120565         interface.
120566         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120567         void *.
120568         (freeaddrinfo): Free ai->ai_canonname when set.
120570 2005-09-12  Derek Price  <derek@ximbiot.com>
120572         Make canon-host require getaddrinfo.
120573         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120574         AC_LIBSOURCE canon-host.h.  Call...
120575         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120576         gl_GETADDRINFO.
120577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120579 2005-09-12  Derek Price  <derek@ximbiot.com>
120581         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120582         LGPL.
120583         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120585 2005-09-12  Derek Price  <derek@ximbiot.com>
120587         * lib/gai_strerror.c: Include config.h when available.  Include
120588         getaddrinfo.h before other headers to test interface.
120589         Reported by Larry Jones <lawrence.jones@ugs.com>.
120591 2005-09-12  Derek Price  <derek@ximbiot.com>
120592             Paul Eggert  <eggert@cs.ucla.edu>
120594         * modules/glob (Files): Add glob-libc.h.
120596 2005-09-12  Derek Price  <derek@ximbiot.com>
120597             Paul Eggert  <eggert@cs.ucla.edu>
120599         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120600         glob_.h, glob-libc.h.
120601         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120603 2005-09-12  Derek Price  <derek@ximbiot.com>
120604             Paul Eggert  <eggert@cs.ucla.edu>
120606         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120607         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120608         protecting things that should be done only in gnulib contexts.
120609         * lib/glob_.h: New file, containing only the glob things needed for
120610         gnulib.
120611         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120612         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120613         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120614         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120615         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120616         and to respect the namespace rules better.
120618 2005-09-08  Simon Josefsson  <jas@extundo.com>
120620         * modules/socklen: New file.
120622 2005-09-08  Simon Josefsson  <jas@extundo.com>
120624         * m4/socklen.m4: New file.
120626 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120628         * modules/utimens (Files): Add m4/utimbuf.m4, since
120629         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120630         Reported by Sergey Poznyakoff.
120632 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120634         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120635         definitions, since that's the preferred style in glibc.
120636         Fix a minor spacing issue, and update copyright notice to match
120637         glibc's.
120639 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120641         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120643 2005-09-06  Simon Josefsson  <jas@extundo.com>
120645         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120646         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120648 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120650         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120651         warning.
120653 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120655         * config/srclist.txt: Add glibc bug 1302.
120657 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120659         Change bitset word type from unsigned int to unsigned long int,
120660         as this has better performance on typical 64-bit hosts.
120661         Port bitset code to hosts with unusual word sizes.
120662         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120663         (build_collating_symbol):
120664         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120665         argument is a bitset.  This is merely a style issue, but it makes
120666         it clearer that an entire array is expected.
120667         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120668         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120669         Port to the case where bitset_word is not the same as unsigned int.
120670         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120671         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120672         Likewise.
120673         * lib/regexec.c (check_dst_limits_calc_pos_1,
120674         check_subexp_matching_top):
120675         (build_trtable, group_nodes_into_DFAstates):
120676         Likewise.
120677         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120678         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120679         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120680         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120681         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120682         * lib/regcomp.c (optimize_subexps, lower_subexp):
120683         Work even if bitset_word has holes in its bitwise representation.
120684         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120685         * lib/regexec.c (check_dst_limits_calc_pos_1,
120686         check_subexp_matching_top):
120687         Likewise.
120688         * lib/regex_internal.c (re_string_reconstruct):
120689         Don't assume UCHAR_MAX == 255.
120690         * lib/regex_internal.h (bitset_set_all): Likewise.
120691         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120692         All uses changed.
120693         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120694         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120695         All uses changed.
120696         (BITSET_WORD_MAX): New macro.
120697         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120698         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120699         (bitset_empty, bitset_copy):
120700         Prefer sizeof (bitset) to multiplying it out ourselves.
120701         (bitset_not_merge): Remove; unused.
120702         (bitset_contain): Return bool, not unsigned int with one bit on.
120703         All callers changed.
120704         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120705         alignment than re_node_set; do this by defining a new internal
120706         type struct dests_alloc and using it to allocate memory.
120708 2005-09-05  Bruno Haible  <bruno@clisp.org>
120710         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120711         links.
120713 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120715         * modules/size_max (Makefile.am): Add size_max.h
120717 2005-09-04  Derek Price  <derek@ximbiot.com>
120719         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120721 2005-09-03  Simon Josefsson  <jas@extundo.com>
120723         * gnulib-tool: Fix typo.
120725 2005-09-03  Simon Josefsson  <jas@extundo.com>
120727         * config/srclist.txt: Add glibc bug 1293.
120729 2005-09-03  Derek Price  <derek@ximbiot.com>
120731         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120732         From Larry Jones <lawrence.jones@ugs.com>.
120734 2005-09-02  Simon Josefsson  <jas@extundo.com>
120736         * modules/socklen: New file.
120738 2005-09-02  Simon Josefsson  <jas@extundo.com>
120740         * modules/havelib: New module.
120742         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120743         Use havelib.
120745 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120747         Check for arithmetic overflow when calculating sizes, to prevent
120748         some buffer-overflow issues.  These patches are conservative, in the
120749         sense that when I couldn't determine whether an overflow was possible,
120750         I inserted a run-time check.
120751         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120752         macros.
120753         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120754         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120755         (re_xnrealloc, re_x2nrealloc): New inline functions.
120756         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120757         parse_bracket_exp):
120758         (build_equiv_class, build_charclass): Check for arithmetic overflow
120759         in size expression calculations.
120760         * lib/regex_internal.c (re_string_realloc_buffers):
120761         (build_wcs_upper_buffer, re_node_set_add_intersect):
120762         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120763         (re_dfa_add_node, register_state): Likewise.
120764         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120765         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120766         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120767         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120769 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120771         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120772         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120774 2005-09-02  Bruno Haible  <bruno@clisp.org>
120776         Support for lib vs. lib64 distinction on biarch platforms.
120777         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120778         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120781 2005-09-02  Bruno Haible  <bruno@clisp.org>
120783         * gnulib-tool (import): In the other first-use case, provide defaults
120784         as well.
120786 2005-09-02  Bruno Haible  <bruno@clisp.org>
120788         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120789         patches not yet found in the latest gettext release.
120791 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120793         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120794         to avoid a collision with bits/local_lim.h in glibc.
120795         All uses changed.  Problem reported by Dmitry V. Levin in
120796         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120798         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120799         bugs in int versus size_t comparisons.
120800         (re_string_context_at): Fix bug where the code assumed that
120801         Idx is signed.
120803         Use bool where appropriate.
120804         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120805         All callers changed.
120806         (calc_eclosure_iter): Likewise, for ROOT arg.
120807         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120808         (build_charclass_op): Likewise, for NON_MATCH arg.
120809         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120810         (re_string_construct_common): Likewise, for ICASE arg.
120811         * lib/regexec.c (re_search_2_stub, re_search_stub):
120812         Likewise, for RET_LEN arg.
120813         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120814         (set_regs): Likewise, for FL_BACKTRACK arg.
120815         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120816         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120817         (calc_eclosure_iter, parse_bracket_exp):
120818         Use bool for internal variables that are booleans.
120819         * lib/regexec.c (re_search_internal, check_matching,
120820         proceed_next_node):
120821         (set_regs, build_sifted_states, sift_states_bkref):
120822         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120823         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120824         (find_collation_sequence_value):
120825         Likewise.
120826         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120827         (re_node_set_compare):
120828         Return bool, not int. All callers changed.
120829         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120830         (build_trtable, check_node_accept): Likewise.
120831         * lib/regex_internal.h: Include stdbool.h.
120833         Fix bugs uncovered when converting to bool.
120834         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120835         failure instead of charging ahead blindly.
120836         * lib/regex_internal.c (register_state): Likewise.
120837         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120838         for freeing internal storage.
120839         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120840         bitset pieces used as boolean, to avoid undefined behavior
120841         on hosts that do int overflow checking.
120843 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120845         * config/srclist.txt: Add glibc bugs 1285-1287.
120847 2005-09-01  Jim Meyering  <jim@meyering.net>
120849         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120850         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120851         Require gl_STAT_MACROS, too.
120853 2005-09-01  Bruno Haible  <bruno@clisp.org>
120855         * gnulib-tool (import): In the first-use case, provide defaults.
120857 2005-09-01  Bruno Haible  <bruno@clisp.org>
120859         * gnulib-tool (func_import): Remove the .tmp files.
120861 2005-09-01  Bruno Haible  <bruno@clisp.org>
120863         * gnulib-tool (func_import): Fix handling of symbolic links.
120865 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120867         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120868         old glibc regex code mishandles strings longer than 2**31 bytes.
120869         This patch fixes this when the regex code is used in gnulib
120870         (i.e., outside glibc).
120872         This patch should not affect the use of the regex code inside
120873         glibc.  No doubt this problem also needs to be handled for glibc
120874         as well, but the result will be an incompatible change to the
120875         glibc ABI, and the old ABI will have to be supported too.  That
120876         can be the subject for another patch.
120878         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120879         governing whether the rest of this patch is active.  By default,
120880         the macro is disabled and the patch has no effect.
120881         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120882         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120883         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120884         (re_match_2, re_set_registers): Use the new types.
120885         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120886         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120887         New macros.
120888         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120889         (re_string_context_at, bin_tree_t, re_dfastate_t):
120890         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120891         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120892         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120893         (re_string_char_size_at, re_string_wchar_at):
120894         (re_string_elem_size_at):
120895         Use the new types and macros to port to 64-bit hosts.
120896         Use unsigned types for internal values, so that the code
120897         mostly works even for arrays larger than SSIZE_MAX.
120898         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120899         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120900         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120901         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120902         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120903         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120904         (calc_inveclosure, parse_dup_op, build_range_exp):
120905         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120906         (fetch_number, create_token_tree, mark_opt_subexp):
120907         Likewise.
120908         * lib/regex_internal.c (re_string_construct_common,
120909         create_ci_newstate):
120910         (create_cd_newstate, re_string_allocate, re_string_construct):
120911         (re_string_realloc_buffers, build_wcs_upper_buffer):
120912         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120913         (re_string_reconstruct, re_string_peek_byte_case):
120914         (re_string_fetch_byte_case, re_string_context_at):
120915         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120916         (re_node_set_init_copy, re_node_set_add_intersect):
120917         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120918         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120919         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120920         (re_acquire_state, re_acquire_state_context, register_state):
120921         Likewise.
120922         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120923         search_cur_bkref_entry):
120924         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120925         (re_search_internal, re_search_2_stub, re_search_stub)
120926         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120927         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120928         (update_cur_sifted_state, check_dst_limits):
120929         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120930         (check_subexp_limits, sift_states_bkref, merge_state_array):
120931         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120932         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120933         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120934         (expand_bkref_cache, check_node_accept_bytes):
120935         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120936         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120937         (acquire_init_state_context, check_halt_node_context):
120938         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120939         (sift_states_backward, clean_state_log_if_needed):
120940         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120941         (find_recover_state, transit_state_sb, transit_state_mb):
120942         (transit_state_bkref, build_trtable, match_ctx_clean):
120943         Likewise.
120944         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120945         to work around an assumption that REG_MISSING is negative.
120947         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120948         (seek_collating_symbol_entry) [defined _LIBC]:
120949         (lookup_collation_sequence_value) [defined _LIBC]:
120950         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120951         Use prototypes rather than old-style function definitions.
120952         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120953         (transit_state_sb) [0]:
120954         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120956         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120957         rm_eo.
120959         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120960         (optimize_subexps, lower_subexp):
120961         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120962         since the signed shift might overflow.  Use 1u<<31 instead.
120963         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120964         Likewise.
120965         * lib/regexec.c (check_dst_limits_calc_pos_1,
120966         check_subexp_matching_top): Likewise.
120968         * lib/regcomp.c (optimize_subexps, lower_subexp):
120969         Use CHAR_BIT rather than 8, for clarity.
120970         * lib/regexec.c (check_dst_limits_calc_pos_1):
120971         (check_subexp_matching_top): Likewise.
120972         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120973         have to worry about portability issues when shifting it left.
120974         Remove no-longer-needed test for table_size > 0.
120975         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120976         in a word, as the resulting behavior is undefined.
120977         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120978         in one case, a <= should have been an <, and in another case the
120979         whole test was missing.
120980         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120981         the standard name CHAR_BIT.
120982         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120983         this is not true on one's complement and signed-magnitude hosts.
120985         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120986         next_last_offset.
120987         (struct re_dfa_t): Remove unused member states_alloc.
120988         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120990 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120992         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120993         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120994         and large-file glibc and in 32-bit large-file Solaris.
120996 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120998         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120999         lengths fit in regoff_t; this isn't true if regoff_t is the same
121000         width as size_t.
121001         * lib/regex.c (re_search_internal): 5th arg is LAST_START
121002         (= START + RANGE) instead of RANGE.  This avoids overflow
121003         problems when regoff_t is the same width as size_t.
121004         All callers changed.
121005         (re_search_2_stub): Check for overflow when adding the
121006         sizes of the two strings.
121007         (re_search_stub): Check for overflow when adding START
121008         to RANGE; if it occurs, substitute the extreme value.
121010 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121012         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
121014 2005-08-31  Jim Meyering  <jim@meyering.net>
121016         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
121017         a pointer-to-const.
121018         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
121019         (register_state): Likewise.
121020         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
121021         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
121022         (group_nodes_into_DFAstates): Likewise.
121024 2005-08-31  Jim Meyering  <jim@meyering.net>
121026         * check-module: Add a FIXME comment.
121028 2005-08-31  Eric Blake  <ebb9@byu.net>
121030         * modules/unistd-safer (Files): Add unistd--.h.
121031         * modules/stdio-safer (Files): Add stdio--.h.
121033 2005-08-31  Derek Price  <derek@ximbiot.com>
121035         * lib/getdelim.c (getdelim): Return EOF on EOF.
121036         Reported by Larry Jones <lawrence.jones@ugs.com>.
121038 2005-08-31  Bruno Haible  <bruno@clisp.org>
121040         Avoid unnecessary diffs in the generated lib/Makefile.am.
121041         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
121042         the generated files.
121043         (func_import): Don't set cmd.
121045 2005-08-31  Bruno Haible  <bruno@clisp.org>
121047         * lib/strstr.c: Include <stddef.h>, for NULL.
121048         * lib/strcasestr.c: Likewise.
121049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121051 2005-08-31  Bruno Haible  <bruno@clisp.org>
121053         * gnulib-tool: New option --macro-prefix.
121054         (func_import): Use macro_prefix.
121055         (import): Handle option --macro-prefix.
121057 2005-08-31  Bruno Haible  <bruno@clisp.org>
121059         * gnulib-tool (import): Rename most ac_* variables to cached_*.
121060         Also use new variables cached_lgpl, cached_libtool.
121062 2005-08-31  Bruno Haible  <bruno@clisp.org>
121064         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
121065         always instantiating them.
121067 2005-08-31  Bruno Haible  <bruno@clisp.org>
121069         * gnulib-tool (func_import): Read the previous cached settings
121070         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
121071         earlier added by gnulib but are now dropped. Warn when a gnulib file
121072         overwrites a non-gnulib file.
121074 2005-08-31  Bruno Haible  <bruno@clisp.org>
121076         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
121077         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
121078         projects that don't keep autogenerated files in CVS. Put into
121079         actioncmd only the specified modules, not the transitive closure.
121081 2005-08-31  Bruno Haible  <bruno@clisp.org>
121083         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
121084         Create directories that shall be filled.
121085         (import): Don't look for gl_* macros in configure.ac. Recurse across
121086         all directories containing a gnulib-cache.m4 files, if meaningful.
121088 2005-08-31  Bruno Haible  <bruno@clisp.org>
121090         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
121091         (import): Set seen_libtool when we see gl_LIBTOOL.
121093 2005-08-31  Bruno Haible  <bruno@clisp.org>
121095         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
121096         declaration macro definitions from generated gnulib.m4.
121098 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
121100         * lib/iconvme.h: Add prototype for iconv_alloc.
121102 2005-08-29  Simon Josefsson  <jas@extundo.com>
121104         * lib/iconvme.c: Fix errno.
121106 2005-08-29  Bruno Haible  <bruno@clisp.org>
121108         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
121109         that it works when the directory contains spaces.
121111 2005-08-29  Bruno Haible  <bruno@clisp.org>
121113         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
121115 2005-08-29  Bruno Haible  <bruno@clisp.org>
121117         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
121118         Emit more advice.
121120 2005-08-29  Bruno Haible  <bruno@clisp.org>
121121         and Stepan Kasal  <kasal@ucw.cz>
121123         * check-module: If more parameters are given, check each of them
121124         separately; add more exceptions, as noted by Jim Meyering.
121125         (check_module): New procedure.
121126         (%exempt_header): Now contains all exceptions.
121128 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
121130         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
121132 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121134         * lib/iconvme.c: Split iconv_string into iconv_alloc.
121136 2005-08-28  Bruno Haible  <bruno@clisp.org>
121138         * m4/gnulib-tool.m4: New file.
121140 2005-08-27  Jim Meyering  <jim@meyering.net>
121142         * modules/unistd-safer (Files): Add pipe-safer.c.
121143         * modules/fcntl-safer (Files): Add creat-safer.c.
121145 2005-08-27  Jim Meyering  <jim@meyering.net>
121147         * m4/stdlib-safer.m4: New file.  From coreutils.
121148         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
121149         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
121150         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
121151         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
121152         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
121154 2005-08-27  Jim Meyering  <jim@meyering.net>
121156         * lib/fopen-safer.c: Merge minor changes from coreutils.
121157         * lib/dup-safer.c: Likewise.
121158         * lib/fd-safer.c: Likewise.
121160         Merge from coreutils.
121161         * lib/stdio--.h: New file.
121162         * lib/stdlib--.h: New file.
121163         * lib/mkstemp-safer.c: New file.
121165         GNU tar needs these.
121166         * lib/pipe-safer.c: New file.
121167         * lib/creat-safer.c: New file.
121168         * lib/fcntl--.h (creat): Define to creat_safer.
121169         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
121170         * lib/unistd--.h (pipe): Define to pipe_safer.
121171         * lib/unistd-safer.h: Declare pipe_safer.
121173 2005-08-26  Simon Josefsson  <jas@extundo.com>
121175         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
121176         Haible <bruno@clisp.org>.
121178 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
121180         * lib/regex_internal.h: Remove all references to
121181         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
121182         or better.
121183         (bitset_not, bitset_merge, bitset_not_merge):
121184         (bitset_mask, re_string_allocate, re_string_construct):
121185         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
121186         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
121187         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
121188         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
121189         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121190         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121191         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
121192         (re_acquire_state_context):
121193         Remove unnecessary forward decls.
121194         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
121195         Put __attribute at function definition,
121196         now that the function decl has been removed.
121197         * lib/regex_internal.c (re_string_peek_byte_case):
121198         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
121199         Likewise.
121201 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
121203         * m4/regex.m4: Add AC_PREREQ(2.50).
121204         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
121206 2005-08-25  Simon Josefsson  <jas@extundo.com>
121208         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
121209         __fsetlocking.
121211 2005-08-25  Simon Josefsson  <jas@extundo.com>
121213         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
121214         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
121215         GLIBC specific code.
121217 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121219         Make regex safe for g++.  This fixes one real bug (an "err"
121220         that should have been "*err").  g++ problem reported by
121221         Sam Steingold.
121222         * lib/regex_internal.h (re_calloc): New macro, consistent with
121223         re_malloc etc.  All callers of calloc changed to use re_calloc.
121224         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
121225         not int.  All callers changed.
121226         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
121227         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
121228         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
121229         (find_recover_state): Change "err" to "*err"; this fixes what
121230         appears to be a real bug.
121231         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
121232         versus int.
121234 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121236         * modules/regex (Depends-on): Add malloc, since the code
121237         assumes that !malloc(0) means failure.
121239 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121241         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
121243         alloca modernization/simplification for regex.
121244         * lib/regex.c: Remove portability cruft for alloca.  This no longer
121245         needs to be at the start of the file, and can be moved into
121246         regex_internal.h and simplified.
121247         * lib/regex_internal.h: Include <alloca.h>.
121248         (__libc_use_alloca) [!defined _LIBC]: New macro.
121249         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
121250         now works outside glibc.
121252 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121254         * config/srclist.txt: Add glibc bugs 1241, 1245.
121256 2005-08-25  Jim Meyering  <jim@meyering.net>
121258         * lib/open-safer.c: Include <config.h>.
121259         Otherwise, we'd lose LARGEFILE support in any file using
121260         e.g. "fcntl--.h"
121262 2005-08-25  Bruno Haible  <bruno@clisp.org>
121264         * m4/minmax.m4: Require autoconf 2.52.
121265         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
121266         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
121267         alternatives of translit over the alphabet.
121268         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
121270 2005-08-24  Simon Josefsson  <jas@extundo.com>
121272         * tests/test-getpass.c: New file.
121274 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121276         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
121277         for GNU regex features.
121279 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121281         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
121282         * lib/regex.h (regerror): Likewise.
121284         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
121285         requires this.  (The code never needed it.)
121287         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
121288         All uses of recently-renamed identifiers changed to use the new,
121289         POSIX-compliant names.  The code will build and run just fine
121290         without these changes, but it's better to eat our own dog food
121291         and use the standard-conforming names.
121293         * lib/regex.h: Fix a multitude of POSIX name space violations.
121294         These changes have an effect only for programs that define
121295         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
121296         do not change anything for programs compiled in the normal way.
121297         Also, there is no effect on the ABI.
121299         (_REGEX_SOURCE): New macro.
121300         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
121301         defined and _GNU_SOURCE is not; this fixes a name space violation.
121303         Rename the following macros to obey POSIX requirements.
121304         The old names are still visible as macros if _REGEX_SOURCE is defined.
121305         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
121306         RE_BACKSLASH_ESCAPE_IN_LISTS.
121307         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
121308         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
121309         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
121310         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
121311         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
121312         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
121313         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
121314         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
121315         (REG_INTERVALS): renamed from RE_INTERVALS.
121316         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
121317         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
121318         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
121319         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
121320         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
121321         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
121322         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
121323         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
121324         RE_UNMATCHED_RIGHT_PAREN_ORD.
121325         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
121326         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
121327         (REG_DEBUG): renamed from RE_DEBUG.
121328         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
121329         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
121330         unusual, since we can't clash with the POSIX REG_ICASE.
121331         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
121332         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
121333         (REG_NO_SUB): renamed from RE_NO_SUB.
121334         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
121335         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
121336         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
121337         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
121338         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
121339         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
121340         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
121341         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
121342         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
121343         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
121344         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
121345         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
121346         RE_SYNTAX_POSIX_MINIMAL_BASIC.
121347         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
121348         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
121349         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
121350         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
121351         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
121352         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
121353         (REG_FIXED): Renamed from REGS_FIXED.
121354         (REG_NREGS): Renamed from RE_NREGS.
121356         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
121357         of other REG_* macros, since POSIX says the user is allowed to
121358         #undef these macros selectively.
121360         (reg_errcode_t): Update comment stating what other tables need
121361         to be consistent.
121363         Rename the following enum values to obey POSIX requirements.
121364         The old names are still visible as macros.
121365         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
121366         is not defined, since GNU is supposed to be a superset of POSIX as
121367         much as possible, and since we want reg_errcode_t to be a signed
121368         type for implementation consistency.
121369         (_REG_NOERROR): Renamed from REG_NOERROR.
121370         (_REG_NOMATCH): Renamed from REG_NOMATCH.
121371         (_REG_BADPAT): Renamed from REG_BADPAT.
121372         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
121373         (_REG_ECTYPE): Renamed from REG_ECTYPE.
121374         (_REG_EESCAPE): Renamed from REG_EESCAPE.
121375         (_REG_ESUBREG): Renamed from REG_ESUBREG.
121376         (_REG_EBRACK): Renamed from REG_EBRACK.
121377         (_REG_EPAREN): Renamed from REG_EPAREN.
121378         (_REG_EBRACE): Renamed from REG_EBRACE.
121379         (_REG_BADBR): Renamed from REG_BADBR.
121380         (_REG_ERANGE): Renamed from REG_ERANGE.
121381         (_REG_ESPACE): Renamed from REG_ESPACE.
121382         (_REG_BADRPT): Renamed from REG_BADRPT.
121383         (_REG_EEND): Renamed from REG_EEND.
121384         (_REG_ESIZE): Renamed from REG_ESIZE.
121385         (_REG_ERPAREN): Renamed from REG_ERPAREN.
121386         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
121387         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
121388         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
121389         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
121391         (_REG_RE_NAME, _REG_RM_NAME): New macros.
121392         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
121393         changed.  But support the old name if the new one is not defined
121394         and if _REGEX_SOURCE.
121396         Change the following member names in struct re_pattern_buffer.
121397         The old names are still supported if !_REGEX_SOURCE.
121398         The new names are always supported, regardless of _REGEX_SOURCE.
121399         (re_buffer): Renamed from buffer.
121400         (re_allocated): Renamed from allocated.
121401         (re_used): Renamed from used.
121402         (re_syntax): Renamed from syntax.
121403         (re_fastmap): Renamed from fastmap.
121404         (re_translate): Renamed from translate.
121405         (re_can_be_null): Renamed from can_be_null.
121406         (re_regs_allocated): Renamed from regs_allocated.
121407         (re_fastmap_accurate): Renamed from fastmap_accurate.
121408         (re_no_sub): Renamed from no_sub.
121409         (re_not_bol): Renamed from not_bol.
121410         (re_not_eol): Renamed from not_eol.
121411         (re_newline_anchor): Renamed from newline_anchor.
121413         Change the following member names in struct re_registers.
121414         The old names are still supported if !_REGEX_SOURCE.
121415         The new names are always supported, regardless of _REGEX_SOURCE.
121416         (rm_num_regs): Renamed from num_regs.
121417         (rm_start): Renamed from start.
121418         (rm_end): Renamed from end.
121420         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121421         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121422         Prepend __ to parameter names.
121424         Undo yesterday's changes.
121426 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121428         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121429         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121430         lib/regex.c.
121432 2005-08-24  Jim Meyering  <jim@meyering.net>
121434         Sync from coreutils.
121435         * m4/fcntl-safer.m4: New file.
121437         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121438         and object files for this module.
121440 2005-08-24  Jim Meyering  <jim@meyering.net>
121442         Sync from coreutils.
121443         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121445 2005-08-24  Jim Meyering  <jim@meyering.net>
121447         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121448         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121450 2005-08-24  Jim Meyering  <jim@meyering.net>
121452         * modules/fcntl-safer: New module.
121453         * modules/fts (Depends-on): Add fcntl-safer.
121454         * MODULES.html.sh (File descriptor based Input/Output):
121455         Add fcntl-safer.
121457 2005-08-24  Bruno Haible  <bruno@clisp.org>
121459         Support for unit test modules.
121460         * modules/README: Mention tests modules.
121461         * modules/TEMPLATE-TESTS: New file.
121462         * gnulib-tool: New options --extract-tests-module, --with-tests and
121463         --tests-base (unused for the moment).
121464         (testsbase, inctests): New variables.
121465         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121466         (func_verify_module): Exclude TEMPLATE-TESTS.
121467         (func_verify_nontests_module, func_verify_tests_module): New functions.
121468         (func_get_dependencies): Add implicit dependency for tests modules.
121469         (func_get_tests_module): New function.
121470         (func_modules_transitive_closure): When --with-tests was specified,
121471         include the unit tests as well, unless explicitly avoided.
121472         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121473         (func_emit_tests_Makefile_am): New function.
121474         (func_create_testdir): When --with-tests was specified, emit a
121475         tests/ directory.
121476         * MODULES.html.sh (Future developments): Update.
121478 2005-08-24  Bruno Haible  <bruno@clisp.org>
121480         * modules/tls-tests: New file.
121481         * tests/test-tls.c: New file, from GNU gettext.
121483 2005-08-24  Bruno Haible  <bruno@clisp.org>
121485         * modules/lock-tests: New file.
121486         * tests/test-lock.c: New file, from GNU gettext.
121488 2005-08-24  Bruno Haible  <bruno@clisp.org>
121490         * lib/lock.h: Add multiple inclusion guard.
121491         * lib/tls.h: Add multiple inclusion guard.
121493 2005-08-24  Bruno Haible  <bruno@clisp.org>
121495         * gnulib-tool: Add support for the --aux-dir option to
121496         --create-testdir, --create-megatestdir, --test, --megatest.
121497         (func_create_testdir, func_create_megatestdir): Optionally emit a
121498         AC_CONFIG_AUX_DIR directive.
121499         (create-testdir, create-megatestdir, test, megatest): Provide a
121500         default value for $auxdir.
121502 2005-08-24  Bruno Haible  <bruno@clisp.org>
121504         * gnulib-tool (import): Use compound statement instead of subshell
121505         where possible.
121507 2005-08-24  Bruno Haible  <bruno@clisp.org>
121509         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121511 2005-08-24  Bruno Haible  <bruno@clisp.org>
121513         * gnulib-tool (func_version): Update.
121515 2005-08-24  Bruno Haible  <bruno@clisp.org>
121517         * gnulib-tool (func_import, func_create_testdir,
121518         func_create_megatestdir): Quote all autoconf macro arguments.
121520 2005-08-24  Bruno Haible  <bruno@clisp.org>
121522         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121523         option --force, because --force causes the aclocal.m4 of each
121524         subdirectory to be newer than the corresponding config.h.in.
121526 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121528         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121529         All contents moved to gl_REGEX.
121530         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121531         assume that it does.
121533 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121535         * lib/regex.h (REG_NOSYS)
121536         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121537         Define, since POSIX requires it as of 2001.
121538         (_REG_ENOSYS)
121539         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121540         New private symbol, used to keep the enum signed in all cases.
121541         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121542         Youngman in
121543         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121545         * lib/regex_internal.c (re_string_skip_chars, register_state):
121546         (calc_state_hash):
121547         Remove forward decls; no longer needed now that we use prototypes.
121548         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121549         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121550         (clean_state_log_if_needed): Likewise.
121552 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121554         * config/srclist.txt: Add glibc bugs 1231-1233.
121556 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121558         Fix problems reported by Sam Steingold in
121559         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121560         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121561         assumed that reg_errcode_t is a signed type, which is not
121562         necessarily true if _XOPEN_SOURCE is not defined.
121563         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121564         since some compilers warn about it otherwise.
121566 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121568         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121569         (init_word_char, create_initial_state, duplicate_node_closure):
121570         (fetch_token, peek_token_bracket, build_range_exp):
121571         (build_collating_symbol): Remove forward decls; no longer needed
121572         now that we use prototypes.
121574         * lib/regcomp.c:
121575         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121576         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121577         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121578         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121579         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121580         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121581         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121582         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121583         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121584         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121585         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121586         (build_charclass, build_charclass_op, fetch_number, create_tree):
121587         (create_token_tree, mark_opt_subexp, duplicate_tree):
121588         Use prototypes rather than old-style definitions.
121590         * lib/regex_internal.c:
121591         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121592         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121593         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121594         (re_string_reconstruct, re_string_peek_byte_case):
121595         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121596         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121597         (re_node_set_init_copy, re_node_set_add_intersect):
121598         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121599         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121600         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121601         (re_acquire_state, re_acquire_state_context, register_state):
121602         (create_ci_newstate, create_cd_newstate, free_state):
121603         Likewise.
121604         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121605         re_search_2):
121606         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121607         (re_search_internal, prune_impossible_nodes):
121608         (acquire_init_state_context, check_matching, static):
121609         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121610         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121611         (update_regs, sift_states_backward, build_sifted_states):
121612         (clean_state_log_if_needed, merge_state_array):
121613         (update_cur_sifted_state, add_epsilon_src_nodes):
121614         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121615         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121616         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121617         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121618         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121619         (check_arrival, check_arrival_add_next_nodes):
121620         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121621         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121622         (check_node_accept_bytes, check_node_accept, extend_buffers):
121623         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121624         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121625         (sift_ctx_init):
121626         Likewise.
121628         * lib/regex_internal.h:
121629         (re_string_allocate, re_string_construct, re_string_reconstruct):
121630         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121631         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121632         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121633         (re_string_context_at, re_string_peek_byte_case):
121634         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121635         is defined, since we now use prototypes always.
121637         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121638         C89 or better.  All uses removed.
121640 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121642         * config/srclist.txt: Add glibc bugs 1220-1227.
121644 2005-08-20  Jim Meyering  <jim@meyering.net>
121646         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121647         of unused local, dfa.
121649 2005-08-20  Bruno Haible  <bruno@clisp.org>
121651         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121653 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121655         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121656         (re_node_set_insert_last, re_dfa_add_node):
121657         Rename local variables to avoid GCC shadowing warnings.
121659 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121661         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121662         [defined lint]: Suppress bogus uninitialized-variable warnings.
121664         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121665         and let the caller return REG_ESPACE if out of space.  This
121666         removes an uninitialied-variable warning with GCC 4.0.1, and also
121667         avoids taking the address of a local variable.  All callers
121668         changed.
121670 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121672         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121673         $LIBCSRC/posix/regexec.c.
121674         Add glibc bug 1217 for regcomp.c.
121676 2005-08-19  Jim Meyering  <jim@meyering.net>
121678         * lib/regexec.c (proceed_next_node): Redo local variables to
121679         avoid GCC shadowing warnings.
121681 2005-08-18  Bruno Haible  <bruno@clisp.org>
121683         * lib/strstr.c (strstr): Fix return value in multibyte case.
121684         * lib/strcasestr.c (strcasestr): Likewise.
121686 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121688         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121690 2005-08-17  Jim Meyering  <jim@meyering.net>
121692         Make the %s format (seconds since the epoch) work for a negative
121693         number and when used with a zero-padded field width, e.g. %015s.
121695         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121696         label so that it precedes the code to set `digits'.  Otherwise,
121697         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121698         print `00-22'.  Now, it prints `-0022', as it should.
121700 2005-08-17  Bruno Haible  <bruno@clisp.org>
121702         * modules/strstr (Files): Add m4/mbrtowc.m4.
121703         (Depends-on): Add mbuiter.
121705 2005-08-17  Bruno Haible  <bruno@clisp.org>
121707         * modules/strcasestr: New file.
121708         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121709         strcasestr.
121711 2005-08-17  Bruno Haible  <bruno@clisp.org>
121713         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121715 2005-08-17  Bruno Haible  <bruno@clisp.org>
121717         * modules/mbuiter: New file.
121718         * MODULES.html.sh (Extended multibyte and wide character utilities):
121719         Add mbuiter.
121721 2005-08-17  Bruno Haible  <bruno@clisp.org>
121723         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121724         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121726 2005-08-17  Bruno Haible  <bruno@clisp.org>
121728         * m4/strcasestr.m4: New file.
121730 2005-08-17  Bruno Haible  <bruno@clisp.org>
121732         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121733         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121735 2005-08-17  Bruno Haible  <bruno@clisp.org>
121737         * lib/strcasestr.h: New file.
121738         * lib/strcasestr.c: New file.
121740 2005-08-17  Bruno Haible  <bruno@clisp.org>
121742         * lib/strcasecmp.c: Use mbuiter.h.
121744 2005-08-17  Bruno Haible  <bruno@clisp.org>
121746         * lib/mbuiter.h: New file.
121748 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121751         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121752         and gl_GETOPT are both invoked via different paths (as happens
121753         with GNU tar CVS because it uses both argp and getopt), the former
121754         wins.
121756 2005-08-16  Bruno Haible  <bruno@clisp.org>
121758         * modules/tls: New file.
121759         * MODULES.html.sh (Multithreading): Add tls.
121761 2005-08-16  Bruno Haible  <bruno@clisp.org>
121763         * modules/strnlen1: New file.
121764         * MODULES.html.sh (String handling): Add strnlen1.
121766 2005-08-16  Bruno Haible  <bruno@clisp.org>
121768         * modules/strcase (Files): Add m4/mbrtowc.m4.
121769         (Depends-on): Add strnlen1, mbchar.
121771 2005-08-16  Bruno Haible  <bruno@clisp.org>
121773         * modules/mbiter: New file.
121774         * MODULES.html.sh (Extended multibyte and wide character utilities):
121775         Add mbiter.
121777 2005-08-16  Bruno Haible  <bruno@clisp.org>
121779         * modules/mbfile: New file.
121780         * MODULES.html.sh (Extended multibyte and wide character utilities):
121781         Add mbfile.
121783 2005-08-16  Bruno Haible  <bruno@clisp.org>
121785         * modules/mbchar: New file.
121786         * MODULES.html.sh (Extended multibyte and wide character utilities):
121787         New section.
121789 2005-08-16  Bruno Haible  <bruno@clisp.org>
121791         * m4/tls.m4: New file, from GNU gettext.
121793 2005-08-16  Bruno Haible  <bruno@clisp.org>
121795         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121796         always.
121797         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121799 2005-08-16  Bruno Haible  <bruno@clisp.org>
121801         * m4/mbiter.m4: New file.
121803 2005-08-16  Bruno Haible  <bruno@clisp.org>
121805         * m4/mbfile.m4: New file.
121807 2005-08-16  Bruno Haible  <bruno@clisp.org>
121809         * m4/mbchar.m4: New file.
121811 2005-08-16  Bruno Haible  <bruno@clisp.org>
121813         * lib/tls.h: New file, from GNU gettext.
121814         * lib/tls.c: New file, from GNU gettext.
121816 2005-08-16  Bruno Haible  <bruno@clisp.org>
121818         * lib/strnlen1.h: New file.
121819         * lib/strnlen1.c: New file.
121821 2005-08-16  Bruno Haible  <bruno@clisp.org>
121823         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121824         (mbi_init): Update.
121825         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121826         NUL byte, not after it.
121828 2005-08-16  Bruno Haible  <bruno@clisp.org>
121830         * lib/strcase.h (strcasecmp): Add note in comments.
121831         * lib/strncasecmp.c: Use code from strcasecmp.c.
121832         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121833         (strcasecmp): Work correctly in multibyte locales.
121835 2005-08-16  Bruno Haible  <bruno@clisp.org>
121837         * lib/mbiter.h: New file.
121839 2005-08-16  Bruno Haible  <bruno@clisp.org>
121841         * lib/mbfile.h: New file.
121843 2005-08-16  Bruno Haible  <bruno@clisp.org>
121845         * lib/mbchar.h: New file.
121846         * lib/mbchar.c: New file.
121848 2005-08-16  Bruno Haible  <bruno@clisp.org>
121850         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121851         the valid ones. Makes the comparison operations transitive:
121852         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121853         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121855 2005-08-15  Simon Josefsson  <jas@extundo.com>
121857         * modules/ssize_t (License): Change to 'unlimited'.
121859         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121861 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121863         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121864         Add comments for each pending glibc patch.
121866 2005-08-15  Bruno Haible  <bruno@clisp.org>
121868         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121869         __cplusplus is defined.
121871 2005-08-14  Jim Meyering  <jim@meyering.net>
121873         Sync from coreutils.
121875         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121876         Use the hash-table-based cycle-detection code not just when
121877         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121878         Reported by James Youngman in
121879         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121880         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121881         FTS_TIGHT_CYCLE_CHECK.
121882         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121883         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121884         once again.
121885         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121886         * lib/fts.c (fd_safer): Remove decl.
121887         Include fcntl--.h rather than unistd-safer.h
121888         (fts_safe_changedir): Don't call fd_safer; no longer needed
121889         now that we include fcntl--.h.
121891 2005-08-12  Simon Josefsson  <jas@extundo.com>
121893         * modules/getndelim2: Use ssize_t module.
121894         * modules/getnline: Likewise.
121895         * modules/safe-read: Likewise.
121896         * modules/xreadlink: Likewise.
121898         * modules/ssize_t: New file.
121900 2005-08-12  Simon Josefsson  <jas@extundo.com>
121902         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121904 2005-08-12  Simon Josefsson  <jas@extundo.com>
121906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121907         ssize_t.
121909 2005-08-12  Simon Josefsson  <jas@extundo.com>
121911         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121912         readline, getdelim and check_version.
121913         (Support for systems lacking ISO C 99: Sizes of integer types):
121914         Add size_max.
121916 2005-08-12  Bruno Haible  <bruno@clisp.org>
121918         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121920 2005-08-11  Simon Josefsson  <jas@extundo.com>
121922         * modules/readline: New file.
121924         * modules/strnlen (Files): Add strnlen.h.
121926 2005-08-11  Simon Josefsson  <jas@extundo.com>
121928         * m4/readline.m4: New file.
121930 2005-08-11  Simon Josefsson  <jas@extundo.com>
121932         * lib/readline.h, readline.c: New file.
121934 2005-08-11  Simon Josefsson  <jas@extundo.com>
121936         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121937         gl_AVOID.
121939 2005-08-11  Bruno Haible  <bruno@clisp.org>
121941         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121943 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121945         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121947 2005-08-10  Simon Josefsson  <jas@extundo.com>
121949         * tests/test-iconvme.c: New file.
121951 2005-08-10  Simon Josefsson  <jas@extundo.com>
121953         * m4/strnlen.m4: New file.
121955         * m4/strndup.m4: Don't check for strnlen declaration, done in
121956         strnlen.m4.
121958 2005-08-10  Simon Josefsson  <jas@extundo.com>
121960         * lib/strndup.c: Use strnlen.h.
121962         * lib/strnlen.h: New file.
121964 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121966         * README: Typos.
121968 2005-08-02  Simon Josefsson  <jas@extundo.com>
121970         * modules/readline: New file.
121972 2005-08-02  Simon Josefsson  <jas@extundo.com>
121974         * modules/getdelim: New file.
121976         * modules/getline: Rewrite, don't use getndelim2.
121978 2005-08-02  Simon Josefsson  <jas@extundo.com>
121980         * m4/getline.m4: Separate out getdelim stuff into separate module.
121982         * m4/getdelim.m4: New file.
121984 2005-08-02  Simon Josefsson  <jas@extundo.com>
121986         * lib/getline.h, getline.c: Rewrite.
121988         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121990 2005-07-31  Bruno Haible  <bruno@clisp.org>
121992         * lib/lock.h (gl_lock_initializer): New macro.
121993         (gl_lock_define_initialized): Use it.
121994         (gl_rwlock_initializer): New macro.
121995         (gl_rwlock_define_initialized): Use it.
121996         (gl_recursive_lock_initializer): New macro.
121997         (gl_recursive_lock_define_initialized): Use it.
121999 2005-07-30  Karl Berry  <karl@gnu.org>
122001         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
122002         Report from Ben Pfaff, regarding getopt.
122004 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
122006         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
122007         normal way.
122008         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
122009         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
122010         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
122011         (gl_GETOPT): Use the new macros.  Most of the implementation
122012         is moved to the new macros.  This is for programs like Emacs
122013         that don't want all the functionality of gl_GETOPT.
122015 2005-07-26  Bruno Haible  <bruno@clisp.org>
122017         * m4/lock.m4: Update from GNU gettext.
122019 2005-07-26  Bruno Haible  <bruno@clisp.org>
122021         * lib/lock.h: Update from GNU gettext.
122022         * lib/lock.c: Update from GNU gettext.
122024 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
122026         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
122027         obsolescent AC_TRY_RUN.  Include the default includes files, for
122028         'exit'.
122030 2005-07-24  Bruno Haible  <bruno@clisp.org>
122032         * modules/visibility: New file.
122033         * MODULES.html.sh (Misc): Add visibility.
122035 2005-07-24  Bruno Haible  <bruno@clisp.org>
122037         * m4/visibility.m4: New file.
122039 2005-07-24  Bruno Haible  <bruno@clisp.org>
122041         * doc/visibility.texi: New file.
122043 2005-07-22  Bruno Haible  <bruno@clisp.org>
122045         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
122046         $(ALLOCA_H), redundant through BUILT_SOURCES.
122047         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
122048         redundant through BUILT_SOURCES.
122049         * modules/byteswap (Makefile.am): Remove explicit dependency on
122050         $(BYTESWAP_H), redundant through BUILT_SOURCES.
122051         * modules/fnmatch (Makefile.am): Remove explicit dependency on
122052         $(FNMATCH_H), redundant through BUILT_SOURCES.
122053         * modules/getopt (Makefile.am): Remove explicit dependency on
122054         $(GETOPT_H), redundant through BUILT_SOURCES.
122055         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
122056         redundant through BUILT_SOURCES.
122057         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
122058         redundant through BUILT_SOURCES.
122059         * modules/stdbool (Makefile.am): Remove explicit dependency on
122060         $(STDBOOL_H), redundant through BUILT_SOURCES.
122061         * modules/stdint (Makefile.am): Remove explicit dependency on
122062         $(STDINT_H), redundant through BUILT_SOURCES.
122063         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
122064         Remove explicit dependency on $(SYSEXITS_H).
122065         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
122067 2005-07-18  Simon Josefsson  <jas@extundo.com>
122069         * lib/check-version.c (check_version): Accept identical versions too.
122071 2005-07-18  Bruno Haible  <bruno@clisp.org>
122073         * modules/lock: New file.
122074         * MODULES.html.sh (Multithreading): New section.
122076 2005-07-18  Bruno Haible  <bruno@clisp.org>
122078         * m4/lock.m4: New file, from GNU gettext.
122080 2005-07-18  Bruno Haible  <bruno@clisp.org>
122082         * lib/lock.h: New file, from GNU gettext.
122083         * lib/lock.c: New file, from GNU gettext.
122085 2005-07-18  Bruno Haible  <bruno@clisp.org>
122087         * lib/lock.h (gl_once_t): New type.
122088         (gl_once_define, gl_once): New macros.
122089         * lib/lock.c (fresh_once): New variable.
122090         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
122091         functions.
122093 2005-07-16  Simon Josefsson  <jas@extundo.com>
122095         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
122096         workaround, suggested by Bruno.
122098 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122100         * modules/xalloc (Depends-on): Add xalloc-die.
122101         * modules/xvasprintf (Depends-on): Add xalloc-die.
122103 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122105         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
122106         with a minor change.
122108 2005-07-15  Bruno Haible  <bruno@clisp.org>
122110         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
122111         When using lib/poll.c, define poll as rpl_poll.
122113 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
122115         * modules/argp (Depends-on): Remove unlocked-io.
122117 2005-07-14  Derek Price  <derek@ximbiot.com>
122119         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
122120         for glob symlink bug.
122122 2005-07-14  Bruno Haible  <bruno@clisp.org>
122124         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
122125         Instead, test for *_unlocked function declarations directly.
122127 2005-07-11  Simon Josefsson  <jas@extundo.com>
122129         * modules/size_max: New file.
122131         * modules/xsize: Depend on size_max module for size_max.m4.
122133 2005-07-11  Simon Josefsson  <jas@extundo.com>
122135         * lib/size_max.h: New file.
122137 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
122139         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
122140         copyright symbol and the year.
122141         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
122142         (version_etc_va): Use parameterized copyright notice.
122143         Reword to conform to the current GNU coding standards.
122145 2005-07-11  Karl Berry  <karl@gnu.org>
122147         * doc/gnulib.texi (Quoting): new node.
122148         (Initial import): more info, from Patrice.
122150 2005-07-11  Bruno Haible  <bruno@clisp.org>
122152         * gnulib-tool (func_usage): Document option --avoid.
122153         (Command line options): Handle --avoid.
122154         (func_acceptable): New function.
122155         (func_modules_transitive_closure): Use it.
122157 2005-07-11  Bruno Haible  <bruno@clisp.org>
122159         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
122160         Reported by Jim Meyering.
122162 2005-07-10  Bruno Haible  <bruno@clisp.org>
122164         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
122165         Needed when size_t is smaller than 'unsigned int'.
122166         Reported by Paul Eggert.
122168 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122170         * modules/argp (Depends-on): Add unlocked-io
122172 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122174         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
122175         block of defines.
122177 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
122179         * config/srclist.txt: Comment out regcomp.c, since we have a porting
122180         fix now.
122182 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
122183         and Paul Eggert  <eggert@cs.ucla.edu>
122185         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
122186         in wint_t, not wchar_t.  Remove now-unnecessary cast.
122188 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122190         * modules/regex (Files): Add lib/regex_internal.c,
122191         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
122192         (Depends-on): Add extensions.
122193         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
122195 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122197         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
122198         pathconf.
122199         * m4/same.m4 (gl_SAME): Likewise.
122200         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
122202         * m4/regex.m4: Adjust to new libc regex implementation.
122203         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
122204         all the .c and .h parts of (the new) regex.
122205         Quote the m4 stuff better.
122206         Check for RE_ICASE bug of old gnulib.
122207         Check for REG_STARTEND of recent libc.
122208         Rename local variables from jm_* to gl_*.
122209         Quote operand of "test -f".
122210         Say "recent enough" version of libc, not "version 2".
122211         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
122212         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
122213         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
122214         Remove check for btowc, isascii.
122215         Require AM_LANGINFO_CODESET.
122217 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122219         * lib/regex.c, regex.h: Sync from libc.
122220         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
122221         * lib/regexec.c:
122222         New files, synced from libc, except that regex_internal.h
122223         currently has a small porting fix.
122225 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122227         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
122228         regex_internal.c, regexec.c.
122229         Add regex_internal.h too, but as a comment, since the libc version
122230         is currently broken in gnulib mode.
122232 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
122234         Support programs like Emacs that use gnulib but not gettext.
122235         * MODULES.html.sh (Internationalization functions): Add gettext-h.
122236         * modules/gettext-h: New file.
122237         * modules/gettext (Files): Remove lib/gettext.h.
122238         (Depends-on): Add gettext-h.
122239         (Makefile.am): Remove lib_SOURCES.
122240         * modules/argmatch, modules/c-stack, modules/closeout:
122241         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
122242         * modules/execute, modules/file-type, modules/getaddrinfo:
122243         * modules/getopt, modules/human, modules/javacomp:
122244         * modules/javaexec, modules/mkdir-p, modules/obstack:
122245         * modules/openat, modules/pagealign_alloc, modules/pipe:
122246         * modules/quotearg, modules/regex, modules/rpmatch:
122247         * modules/unicodeio, modules/userspec, modules/version-etc:
122248         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
122249         * modules/xsetenv:
122250         Depend on gettext-h, not gettext.
122252 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
122254         * gnulib-tool (func_import): Add support for 'public domain' license.
122255         * modules/alloca, modules/atexit, modules/memmove:
122256         Now public domain, not GPL.
122257         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
122258         * modules/realloc, modules/strerror, modules/strtod:
122259         Now LGPL, not GPL.
122261 2005-07-05  Bruno Haible  <bruno@clisp.org>
122263         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
122264         autoconf CVS. Needed for mingw.
122266 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122268         Remove the dependency of the strftime module on the tzset module.
122269         * modules/strftime (Depends-on): Remove dependency on tzset.
122271 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122273         Remove the dependency of the strftime module on the tzset module.
122274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
122275         gl_FUNC_TZSET_CLOBBER.
122277 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122279         Remove the dependency of the strftime module on the tzset module.
122280         * lib/strftime.c (my_strftime)
122281         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
122282         Copy the input structure, to work around some of the bug with
122283         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
122284         Solaris releases, you should also use the tzset module, but we won't
122285         require it as a dependency any more since we don't want LGPLed code
122286         to depend on GPLed code.
122288 2005-07-02  Jim Meyering  <jim@meyering.net>
122290         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
122291         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
122292         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
122293         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
122295 2005-07-02  Jim Meyering  <jim@meyering.net>
122297         * lib/backupfile.c (backup_args): Change a `0' to NULL.
122299 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
122301         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
122302         declares only 'struct timespec;' (!).
122304 2005-07-01  Jim Meyering  <jim@meyering.net>
122306         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
122307         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
122308         * lib/save-cwd.c, tempname.c:
122309         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
122310         and don't include <sys/file.h>).
122312 2005-06-29  Jim Meyering  <jim@meyering.net>
122314         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
122315         type name.  Use the variable name instead.
122316         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
122317         Likewise.
122319 2005-06-28  Simon Josefsson  <jas@extundo.com>
122321         * modules/check-version (Files): Add check-version.m4.
122323 2005-06-28  Simon Josefsson  <jas@extundo.com>
122325         * m4/check-version.m4: New file, suggested by Jim Meyering
122326         <jim@meyering.net>.
122328 2005-06-28  Simon Josefsson  <jas@extundo.com>
122330         * lib/check-version.h, lib/check-version.c: New files.
122332 2005-06-28  Simon Josefsson  <jas@extundo.com>
122334         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
122335         collision with global variable.  Better indentation.  Don't
122336         increment buffer pointer beyond buffer end.  Based on comments
122337         from Paul Eggert <eggert@cs.ucla.edu>.
122339         * lib/base64.h: Indent.
122341 2005-06-28  Simon Josefsson  <jas@extundo.com>
122343         * doc/gnulib.texi (Library version handling): New section.
122345 2005-06-28  Jim Meyering  <jim@meyering.net>
122347         * check-module (find_included_lib_files): Hard-code another
122348         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
122349         but modules/fts-lgpl (correctly) does not list those files.
122351         * modules/canonicalize (Files): Add lib/pathmax.h.
122353 2005-06-25  Simon Josefsson  <jas@extundo.com>
122355         * modules/check-version: New file.
122357 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
122359         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
122360         initializer of struct addrinfo, as an indication that we don't
122361         care how many members the structure has.
122363 2005-06-24  Derek Price  <derek@ximbiot.com>
122364         and Bruno Haible  <bruno@clisp.org>
122366         Remove stat module & update lstat.
122367         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
122368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122369         * m4/stat.m4: Remove this file.
122371 2005-06-24  Derek Price  <derek@ximbiot.com>
122372         and Bruno Haible  <bruno@clisp.org>
122374         Remove stat module & update lstat.
122375         * lib/stat.c: Remove this file...
122376         (slash_aware_lstat): ...moving this content and its support...
122377         * lib/lstat.c (rpl_lstat): ...into here.
122378         * lib/lstat.h: New file.
122380 2005-06-24  Derek Price  <derek@ximbiot.com>
122381         and Bruno Haible  <bruno@clisp.org>
122383         Remove stat module & update lstat.
122384         * config/srclist.txt (libc sources): Remove stat.
122386 2005-06-24  Derek Price  <derek@ximbiot.com>
122387         and Bruno Haible  <bruno@clisp.org>
122389         Remove stat module & update lstat.
122390         * MODULES.html.sh (stat): Remove.
122391         * MODULES.html: Regenerated.
122392         * modules/lstat (Description): Correct function name.
122393         (Files): Add "lstat.h".
122394         (Depends-on): Remove stat, add xalloc, stat-macros.
122395         * modules/stat: Remove this file.
122396         (Include): Add "lstat.h", remove <sys/stat.h>.
122398 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
122400         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
122401         (ranged_convert): Don't save conversion in a temporary struct.
122402         This causes a warning with GCC 4.0.0, and anyway in the typical
122403         case it's not worth the extra 100 bytes or so of code.
122404         (ranged_convert, __mktime_internal): When calling a function via a
122405         pointer P, use P () rather than (*P) (), as we now assume C89 or
122406         better.
122408 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122410         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
122411         "who -r" failed to give output.  Problem reported by Tim Waugh.
122413         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
122414         (xcalloc): Use it to avoid needless tests.
122415         Problem reported by Jim Meyering.
122417 2005-06-20  Derek Price  <derek@ximbiot.com>
122419         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
122420         unnecessary for Autoconfs > 2.59c.
122422 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122424         * lib/argp.h (__option_is_short): Check upper limit of
122425         __key. Isprint() requires its argument to have the value
122426         of an unsigned char or EOF.
122428 2005-06-16  Jim Meyering  <jim@meyering.net>
122430         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122431         when either N or S is zero.
122433 2005-06-16  Derek Price  <derek@ximbiot.com>
122435         * m4/bison.m4: Declare YACC & YFLAGS precious.
122437 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122439         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122440         multibyte string or pattern, fall back on unibyte matching.
122441         Problem reported by James Youngman.
122443 2005-06-08  Bruno Haible  <bruno@clisp.org>
122445         * modules/csharpcomp: New file.
122446         * MODULES.html.sh (C#): Add csharpcomp.
122448 2005-06-08  Bruno Haible  <bruno@clisp.org>
122450         * m4/csharpcomp.m4: New file, from GNU gettext.
122452 2005-06-08  Bruno Haible  <bruno@clisp.org>
122454         * lib/csharpcomp.h: New file, from GNU gettext.
122455         * lib/csharpcomp.c: New file, from GNU gettext.
122456         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122458 2005-06-08  Bruno Haible  <bruno@clisp.org>
122460         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122461         warning on mingw.
122463 2005-06-07  Derek Price  <derek@ximbiot.com>
122465         Sync from CVS.
122466         * lib/glob_.h: Indent nested #ifdef.
122468 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122470         Sync from coreutils.
122471         Use "file name" when talking about file names, instead of "filename"
122472         or "path", as per the GNU coding standards.
122473         * lib/mkdir-p.c: Renamed from makepath.c.
122474         (make_dir_parents): Renamed from make_path.  All callers changed.
122475         * lib/mkdir-p.h: Likewise.  All includers changed.
122476         * lib/filenamecat.c: Renamed from path-concat.c.
122477         (file_name_concat): Renamed from path_concat.  All callers changed.
122478         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122479         * lib/filenamecat.h: Likewise.  All includers changed.
122480         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122481         in comments or local variable names.
122482         * lib/basename.c: Likewise.
122483         * lib/canonicalize.c, canonicalize.h: Likewise.
122484         * lib/dirname.c, dirname.h: Likewise.
122485         * lib/euidaccess.c: Likewise.
122486         * lib/exclude.c: Likewise
122487         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122488         * lib/fsusage.c, fsuage.h: Likewise.
122489         * lib/fts.c, fts_.h: Likewise.
122490         * lib/getcwd.c: Likewise.
122491         * lib/getloadavg.c: Likewise.
122492         * lib/mkstemp.c: Likewise.
122493         * lib/mountlist.c, mountlist.h: Likewise.
122494         * lib/openat.c, openat.h: Likewise.
122495         * lib/readlink-stub.c: Likewise.
122496         * lib/readutmp.c, readutmp.h: Likewise.
122497         * lib/rename.c: Likewise.
122498         * lib/rmdir.c: Likewise.
122499         * lib/same.c: Likewise.
122500         * lib/savedir.c: Likewise.
122501         * lib/stripslash.c: Likewise.
122502         * lib/tempname.c: Likewise.
122503         * lib/xreadlink.c: Likewise.
122504         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122505         All uses changed.
122506         * lib/exclude.h: Likewise.
122508         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122509         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122510         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122511         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122512         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122513         files have been getting away with it for years (MORE/BSD 4.3
122514         is extinct now).
122515         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122516         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122518         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122519         Define to 256, not 255, as per modern POSIX.
122521 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122523         Sync from coreutils.
122524         Use "file name" when talking about file names, instead of "filename"
122525         or "path", as per the GNU coding standards.
122526         * MODULES.html.sh: mkdir-p renamed from makepath.
122527         filenamecat renamed from path-concat.
122528         * modules/filenamecat: Renamed from modules/path-concat.
122529         (Files): filenamecat.h and filenamecat.c renamed from
122530         path-concat.h and path-concat.c.
122531         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122532         (Include): filenamecat.h, not path-concat.h.
122533         * modules/mkdir-p: Renamed from modules/makepath.
122534         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122535         makepath.c.
122536         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122537         (Include): mkdir-p.h, not makepath.h.
122539 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122541         Sync from coreutils.
122542         * m4/mkdir-p.m4: Renamed from makepath.m4.
122543         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122544         Rename files from makepath.c to mkdir-p.c, and from
122545         makepath.h to mkdir-p.h.
122546         * m4/filenamecat.m4: Renamed from path-concat.m4.
122547         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122548         Rename files from path-concat.c to filenamecat.c,
122549         and from path-concat.h to filenamecat.h.
122550         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122551         "file name" in local variables or comments.
122552         * m4/rename.m4: Likewise.
122554 2005-06-01  Bruno Haible  <bruno@clisp.org>
122556         * modules/csharpexec: New file.
122557         * MODULES.html.sh (C#): New section.
122559 2005-06-01  Bruno Haible  <bruno@clisp.org>
122561         * m4/csharp.m4: New file, from GNU gettext.
122562         * m4/csharpexec.m4: New file, from GNU gettext.
122564 2005-06-01  Bruno Haible  <bruno@clisp.org>
122566         * lib/csharpexec.h: New file, from GNU gettext.
122567         * lib/csharpexec.c: New file, from GNU gettext.
122568         * lib/csharpexec.sh.in: New file, from GNU gettext.
122570 2005-05-31  Derek Price  <derek@ximbiot.com>
122571             Paul Eggert  <eggert@cs.ucla.edu>
122573         Sync from cvs.
122574         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122576 2005-05-31  Derek Price  <derek@ximbiot.com>
122577             Paul Eggert  <eggert@cs.ucla.edu>
122579         Sync from cvs.
122580         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122582 2005-05-29  Derek Price  <derek@ximbiot.com>
122584         * config/srclist.txt (glob_.h, glob.c): Add these files.
122586 2005-05-29  Derek Price  <derek@ximbiot.com>
122588         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122589         * modules/glob: New file.
122590         * modules/getlogin_r: Add link to POSIX spec in description.
122592 2005-05-29  Derek Price  <derek@ximbiot.com>
122593             Paul Eggert  <eggert@cs.ucla.edu>
122595         * m4/glob.m4: New file.
122597 2005-05-29  Derek Price  <derek@ximbiot.com>
122598             Paul Eggert  <eggert@cs.ucla.edu>
122600         * lib/glob_.h, lib/glob.c: New files.
122602 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122604         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122605         * modules/fts-lgpl (Depends-on): Remove gettext.
122607 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122610         and don't require gt_INTTYPES_PRI.
122612 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122614         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122616         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122617         the configuration hassle isn't worth it.
122618         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122619         (LONGEST_MODIFIER, PRIuMAX): Remove.
122621 2005-05-27  Bruno Haible  <bruno@clisp.org>
122623         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122625 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122628         _POSIX_PTHREAD_SEMANTICS for Solaris.
122630 2005-05-25  Derek Price  <derek@ximbiot.com>
122632         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122634 2005-05-25  Derek Price  <derek@ximbiot.com>
122635             Paul Eggert  <eggert@cs.ucla.edu>
122637         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122638         * lib/getlogin_r.c, getlogin_r.h: New files.
122640 2005-05-25  Bruno Haible  <bruno@clisp.org>
122641             Derek Price  <derek@ximbiot.com>
122643         * lib/getlogin_r.h: Simplify API documentation.
122645 2005-05-23  Derek Price  <derek@ximbiot.com>
122647         * modules/minmax (Files): Add m4/minmax.m4.
122648         (configure.ac): Add gl_MINMAX.
122650 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122652         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122653         so that unistd-safer.h (GPL'ed code) need not be included.
122655 2005-05-22  Bruno Haible  <bruno@clisp.org>
122657         * m4/minmax.m4: New file.
122658         Based on a patch by Derek Price <derek@ximbiot.com>.
122660 2005-05-22  Bruno Haible  <bruno@clisp.org>
122662         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122663         (INT64_MIN): Fix definition.
122664         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122666         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122667         NEED_SIGNED_INT_TYPES.
122669         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122670         HAVE_SYSTEM_INTTYPES.
122672 2005-05-22  Bruno Haible  <bruno@clisp.org>
122674         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122675         Also include <sys/param.h> if it defines MIN, MAX.
122676         Based on a patch by Derek Price <derek@ximbiot.com>.
122678 2005-05-21  Jim Meyering  <jim@meyering.net>
122680         * modules/fts (Files): Add m4/inttypes-pri.m4.
122681         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122683 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122685         New fts module.
122686         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122687         (setup_dir, free_dir): New functions.
122688         (enter_dir, leave_dir): Define trivial
122689         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122690         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122691         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122692         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122693         Move to fts-cycle.c.
122694         (fts_open): Use setup_dir.
122695         (fts_close): Use free_dir.
122696         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122697         This adds a label and some gotos, but the alternatives were messier.
122698         Check for memory allocation failure when entering a dir.
122699         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122700         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122701         (FTS): New member fts_cycle, that is a union that contains the
122702         old active_dir_ht and cycle_state.  All uses changed to mention
122703         fts_cycle.ht and fts_cycle.state.
122704         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122705         fts.c, with the following changes:
122706         (setup_dir, free_dir): New functions.
122707         (enter_dir): Now returns bool.  Return true if successful, false
122708         if memory exhausted.  All callers changed.
122709         Do not bother partly cleaning up on
122710         memory allocation failure; that is free_dir's job.
122711         However, free ad if hash_insert fails, to avoid memory leak.
122712         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122713         fts->fts_options to see which union member to use.
122715 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122718         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122720 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122722         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122724 2005-05-20  Jim Meyering  <jim@meyering.net>
122726         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122727         Now a macro, to pacify GCC.
122729 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122731         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122732         of -1.
122734 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122736         * lib/chown.c (rpl_chown): Return -1 on failure.
122738 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122741         Don't check for stddef.h.
122742         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122743         don't use its results.
122744         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122745         since we include them unconditionally.  Don't require
122746         AM_STDBOOL_H, since stdbool is a prerequisite.
122747         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122748         since we assume C89 or better.
122749         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122750         as we don't use their results.
122751         Don't check for fchdir, memmove, memset, strrchr, as we use
122752         them unconditionally.
122753         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122754         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122756 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122758         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122759         Include <stddef.h> unconditionally, since we assume C89 now.
122760         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122761         * lib/fts.c: Include fts_.h first, to check interface.
122762         Do not include intprops.h; no longer needed.
122763         Include cycle-check.h and hash.h, since fts_.h no longer does.
122764         Remove unnecessary casts of closedir to void.
122765         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122766         decide whether to decrement nlinks.
122767         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122768         (FTS): Use struct hash_table * instead of Hash_table, so that
122769         we no longer need to include hash.h here.
122771 2005-05-18  Jim Meyering  <jim@meyering.net>
122773         * modules/dirfd (License): Change to LGPL.  Most of the code
122774         is already in the public domain.
122776 2005-05-18  Jim Meyering  <jim@meyering.net>
122778         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122779         Reported by Yoann Vandoorselaere.
122781 2005-05-17  Jim Meyering  <jim@meyering.net>
122783         * m4/fts.m4: New file, from coreutils.
122785 2005-05-17  Jim Meyering  <jim@meyering.net>
122787         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122789 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122791         Sync from coreutils.
122792         * m4/unlinkdir.m4: New file.
122794 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122796         Sync from coreutils.
122797         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122798         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122799         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122800         White space changes only.
122801         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122802         special.
122803         * lib/yesno.c: Include getline.h, not ctype.h.
122804         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122805         Use getline to remove arbitrary restriction on response length.
122807 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122809         * config/srclist-update: Spell out "Street" in FSF postal
122810         mail address; this is the style the FSF seems to prefer.
122812         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122813         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122814         this updates FSF postal mail address.
122816         Sync from coreutils.
122817         * modules/unlinkdir: New file.
122818         * modules/yesno (Depends-on): Add getline.
122819         * MODULES.html.sh (File system functions): Add unlinkdir.
122821 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122823         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122824         lib/strsep.h:
122825         Change the initial comment to refer to GPL, not LGPL.
122826         gnulib-tool will change it to LGPL as needed.
122828         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122829         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122830         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122831         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122832         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122833         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122834         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122835         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122836         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122837         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122838         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122839         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122840         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122841         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122842         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122843         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122844         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122845         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122846         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122847         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122848         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122849         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122850         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122851         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122852         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122853         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122854         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122855         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122856         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122857         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122858         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122859         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122860         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122861         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122862         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122863         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122864         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122865         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122866         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122867         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122868         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122869         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122870         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122871         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122872         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122873         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122874         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122875         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122876         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122877         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122878         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122879         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122880         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122881         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122882         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122883         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122884         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122885         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122886         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122887         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122888         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122889         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122890         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122891         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122892         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122893         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122894         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122895         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122896         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122897         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122898         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122899         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122900         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122901         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122902         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122903         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122904         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122905         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122906         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122907         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122908         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122909         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122910         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122911         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122912         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122913         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122914         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122915         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122916         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122917         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122918         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122919         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122920         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122921         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122922         lib/yesno.c, lib/yesno.h:
122923         Update FSF postal mail address.
122925 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122927         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122928         tests/test-memmem.c, tests/test-stpncpy.c:
122929         Update FSF postal mail address.
122931 2005-05-13  Bruno Haible  <bruno@clisp.org>
122933         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122934         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122935         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122936         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122937         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122938         Add support for 64-bit integers in the MSVC compiler.
122940 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122942         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122944 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122946         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122948 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122950         * doc/getdate.texi (General date syntax): Don't say that date
122951         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122952         Problem reported by Nic Ferrier.
122954 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122956         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122957         specified in ai_socktype. Fix invalid ai_protocol
122958         check. ai_protocol is usually set to 0 or depending on
122959         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122960         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122961         ai_socktype / ai_protocol in the returned addrinfo structure.
122963 2005-05-10  Simon Josefsson  <jas@extundo.com>
122965         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122966         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122968 2005-05-10  Karl Berry  <karl@gnu.org>
122970         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122971         (from http://www.gnu.org/licenses).
122972         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122973         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122974         fdl.texi suffices.
122976 2005-05-10  Karl Berry  <karl@gnu.org>
122978         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122979         (COPYING.DOC): remove.
122981         * config/srclist-update: new FSF address.
122983 2005-05-10  Derek Price  <derek@ximbiot.com>
122985         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122986         possible.
122988 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122989             Bruno Haible  <bruno@clisp.org>
122991         * modules/inet_ntop: New file.
122992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122993         inet_ntop.
122995 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122996             Bruno Haible  <bruno@clisp.org>
122998         * m4/inet_ntop.m4: New file.
123000 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123001             Bruno Haible  <bruno@clisp.org>
123003         * lib/inet_ntop.h: New file.
123004         * lib/inet_ntop.c: New file, from glibc with modifications.
123006 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
123008         * modules/time_r (License): Change to LGPL.
123009         * modules/extensions (License): Change to LGPL.  Actually,
123010         the license is more permissive than that, but currently gnulib-tool
123011         doesn't know how to handle more-permissive licenses.
123013         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
123014         Problem reported by Dave Love.
123016 2005-05-08  Jim Meyering  <jim@meyering.net>
123018         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
123019         blank.
123021 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
123023         * modules/argmatch (Depends-on): Add stdbool.
123024         * modules/backupfile (Depends-on): Likewise.
123025         * modules/chdir-long (Depends-on): Likewise.
123026         * modules/closeout (Depends-on): Likewise.
123027         * modules/cycle-check (Depends-on): Likewise.
123028         * modules/dirname (Depends-on): Likewise.
123029         * modules/fnmatch (Depends-on): Likewise.
123030         * modules/fsusage (Depends-on): Likewise.
123031         * modules/fwriteerror (Depends-on): Likewise.
123032         * modules/getcwd (Depends-on): Likewise.
123033         * modules/getloadavg (Depends-on): Likewise.
123034         * modules/hard-locale (Depends-on): Likewise.
123035         * modules/makepath (Depends-on): Likewise.
123036         * modules/mountlist (Depends-on): Likewise.
123037         * modules/nanosleep (Depends-on): Likewise.
123038         * modules/posixtm (Depends-on): Likewise.
123039         * modules/quotearg (Depends-on): Likewise.
123040         * modules/readtokens (Depends-on): Likewise.
123041         * modules/readtokens0 (Depends-on): Likewise.
123042         * modules/readutmp (Depends-on): Likewise.
123043         * modules/save-cwd (Depends-on): Likewise.
123044         * modules/strftime (Depends-on): Likewise.
123045         * modules/userspec (Depends-on): Likewise.
123046         * modules/utimecmp (Depends-on): Likewise.
123047         * modules/xgetcwd (Depends-on): Likewise.
123048         * modules/xnanosleep (Depends-on): Likewise.
123049         * modules/xstrtod (Depends-on): Likewise.
123050         * modules/yesno (Depends-on): Likewise.
123052 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
123054         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
123055         needless checks.
123057 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123059         Merge from coreutils.  Among other things,
123060         add bulletproofing for cases where stdin, stdout, or stderr are closed.
123061         * lib/fd-safer.c: New file.
123062         * lib/fcntl-safer.h, open-safer.c: Remove.
123063         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
123064         * lib/dup-safer.c: Include unistd-safer.h first.
123065         Don't include errno.h.
123066         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
123067         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
123068         * lib/file-type.c: Rely on file-type.h change.
123069         * lib/getloadavg.c: Include unistd-safer.h.
123070         (getloadavg): Use safer open.
123071         * lib/getusershell.c: Include "stdio-safer.h".
123072         (getusershell): Use safer fopen.
123073         * lib/long-options.c (long_options): Use NULL rather than 0.
123074         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
123075         'free'.
123076         * lib/modechange.c: Likewise.
123077         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
123078         (MODE_DONE): New constant.
123079         (struct mode_change): Remove 'next' member.
123080         (make_node_op_equals): New function; like the old one of the
123081         same name, except it allocates an array.
123082         (mode_compile, mode_create_from_ref): Use it.
123083         (mode_compile): Allocate result as an array, not a linked list.
123084         Parse octal string ourself, so that we catch mistakes like "+0".
123085         (mode_adjust): Arg is an array, not a linked list.
123086         * lib/modechange.c: Include stat-macros.h, xalloc.h.
123087         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
123088         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
123089         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
123090         Remove.  This is now stat-macros.h's job.
123091         (talloc): Remove.  All callers replaced by xalloc, so that
123092         our invokers don't have to worry about reporting memory failures.
123093         (make_node_op_equals): Remove.
123094         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123095         New constants.
123096         (struct mode_change): Moved here from modechange.h.
123097         (mode_append_entry): Remove.
123098         (mode_compile): Remove MASKED_OPS arg, since it encouraged
123099         apps to have incorrect behavior.  Use simpler algorithm for head
123100         and tail.  Don't futz with umask; that's now the job of mode_adjust.
123101         Detect more invalid usages rather than having somewhat-random behavior.
123102         Don't insert an "a=" action, as that leads to incorrect behavior.
123103         (mode_compile, mode_create_from_ref): Return NULL on error instead
123104         of an enum, since now there's only one way to have an error.  All
123105         callers changed.
123106         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
123107         at the correct time.  Simplify calculation of "+u" and its ilk.
123108         Don't mishandle "+X".
123109         (mode_free): Remove "register" and localize decls.
123110         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123111         (struct mode_change): Move to modechange.c; callers don't
123112         need to see this stuff.
123113         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
123114         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
123115         (mode_change, mode_adjust): Reflect the new signatures noted above.
123116         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
123117         that might redefine system include files.
123118         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
123119         (my_usleep): Use NULL rather than (void *) 0.
123120         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
123121         Use siginterrupt to specify that system calls should be interrupted.
123122         (rpl_nanosleep): Move initialization of suspended closer to call of
123123         my_usleep.
123124         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
123125         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
123126         (desirable_utmp_entry): New function.
123127         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
123128         using x2nrealloc, to simplify logic.
123129         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
123130         size calculation.  Do not assume utmp file is a regular file.
123131         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
123132         (READ_UTMP_CHECK_PIDS): New constant.
123133         * lib/save-cwd.c: Include unistd-safer.h.
123134         (save_cwd): Use fd_safer.
123135         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
123136         [!_LIBC] Include "stat-macros.h" instead.
123137         * lib/unistd-safer.h (fd_safer): New decl.
123139 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123141         * modules/getloadavg (Depends-on): Add unistd-safer.
123142         * modules/getusershell (Depends-on): Add stdio-safer.
123143         * modules/lstat (Depends-on): Remove xalloc.
123144         * modules/mkstemp (Depends-on): Add stat-macros.
123145         * modules/modechange (Depends-on): Remove xstrtol.
123146         Add stat-macros, xalloc.
123147         * modules/save-cwd (Depends-on): Add unistd-safer.
123148         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
123149         * modules/unistd-safer (Files): Add lib/fd-safer.c
123150         (Makefile.am): Remove lib_SOURCES.
123152         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
123153         Remove fcntl-safer; unistd-safer supersedes it.
123155 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123157         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
123158         AC_HEADER_STAT.
123159         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
123160         (gl_PREREQ_CHOWN): Remove.
123161         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
123162         it.  Don't require AC_HEADER_STAT.
123163         (gl_PREREQ_LSTAT): Remove.
123164         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
123165         Don't require AC_HEADER_STAT.
123166         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
123167         (gl_PREREQ_RMDIR): Remove.
123168         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
123169         mention stat-macros.h or AC_HEADER_STAT, since we'll make
123170         the stat-macros module a prerequisite.
123171         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
123172         * m4/filemode.m4 (gl_FILEMODE): Likewise.
123173         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
123174         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
123175         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
123176         variable names.
123177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
123178         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
123179         variable prefixes.
123180         * m4/fcntl-safer.m4: Remove.
123181         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
123182         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
123183         Invoke gl_PREREQ_FD_SAFER.
123184         (gl_PREREQ_FD_SAFER): New macro.
123185         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
123186         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
123187         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
123188         Remove duplicate call to AC_LIBOBJ(readutmp).
123189         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
123191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
123192         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
123194 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123196         * MODULES.html.sh (Misc): Add byteswap.
123198 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123200         * modules/getcwd (Depends-on): Add extensions.
123201         * modules/openat (Depends-on): Likewise.
123203 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123205         * modules/byteswap: New file.
123207 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123209         * m4/byteswap.m4: New file.
123211 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123213         * lib/byteswap_.h: New file.
123215 2005-04-25  Karl Berry  <karl@gnu.org>
123217         * m4/gettext.m4: Update from GNU gettext 0.14.4.
123219 2005-04-25  Albert Chin  <china@thewrittenword.com>
123221         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
123222         Toolkit C bug.
123224 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
123226         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
123227         (func_ln_if_changed): Remove forcibly for no error message
123228         in case file does not exist.
123230 2005-04-19  Simon Josefsson  <jas@extundo.com>
123232         * gnulib-tool (Options): Make --symlink mean --symbolic.
123234 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
123236         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
123238 2005-04-16  Simon Josefsson  <jas@extundo.com>
123240         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
123242 2005-04-15  Simon Josefsson  <jas@extundo.com>
123244         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
123246 2005-04-15  Simon Josefsson  <jas@extundo.com>
123248         * gnulib-tool: Rename --symlink to --symbolic.
123250 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
123252         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
123253         symbolic links to files instead of copying/moving.  Add --aux-dir,
123254         specifying directory relative --dir where auxiliary build tools
123255         are placed.
123257 2005-04-14  Bruno Haible  <bruno@clisp.org>
123259         * modules/allocsa (License): Change to LGPL.
123260         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
123262 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
123264         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
123265         that "UTC +1 second" continues to work.  Problem reported
123266         by Dmitry V. Levin.
123267         (relunit_snumber): New rule.
123268         (relunit): Use it.
123270 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
123272         * lib/getdate.y (universal_time_zone_table): New constant.
123273         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
123274         universal_time_zone_table.
123275         (lookup_zone): Prefer universal_time_zone_table to
123276         local_time_zone_table, so that "GMT" time stamps are allowed in
123277         London during the summer.  Problem reported by Ian Abbott.
123279 2005-04-12  Jim Meyering  <jim@meyering.net>
123281         * lib/human.c (humblock): Set *options even when returning due to
123282         xstrtoumax conversion failure.  Thanks to a used-uninitialized
123283         warning from gcc-4.
123285 2005-04-09  Jim Meyering  <jim@meyering.net>
123287         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
123288         -Wuninitialized: initialize tm0.tm_year.
123290 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
123292         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
123293         count, since there's no maximum.  All uses changed.
123294         Add member dsts_seen.
123295         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
123296         not being INT_MAX.
123297         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
123298         Use pc_rels_seen to decide whether a date is absolute.
123300         * lib/getdate.y (number): Don't overwrite year.
123301         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
123302         check.
123304 2005-04-02  Simon Josefsson  <jas@extundo.com>
123306         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
123307         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
123309 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
123311         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
123312         where no absolute path name can be longer than PATH_MAX.
123314 2005-03-27  Jim Meyering  <jim@meyering.net>
123316         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
123318 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
123320         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
123321         "one's complement" -> "ones' complement" in comment, as per Knuth.
123322         "value of type" -> "type or expression" in comment.
123323         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
123325 2005-03-26  Jim Meyering  <jim@meyering.net>
123327         Comment nits.
123328         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
123329         Correct typos: s/or/of/.
123331 2005-03-26  Jim Meyering  <jim@meyering.net>
123333         * modules/check-include-files: Move to ../ and rename to...
123334         * check-module: ...this.
123336 2005-03-25  Jim Meyering  <jim@meyering.net>
123338         * modules/xvasprintf (Files): Add xalloc.h.
123340 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
123342         * modules/gettext (Files): config/config.rpath ->
123343         build-aux/config.rpath
123344         * modules/iconv (Files): Likewise.
123345         Problem reported by Oskar Liljeblad.
123347 2005-03-23  Jim Meyering  <jim@meyering.net>
123349         * modules/check-include-files: New script to check for
123350         missing dependencies, multiple includes, etc.
123352         * modules/c-strtold (Depends-on): Add xalloc.
123353         * modules/c-strtod (Depends-on): Add xalloc.
123354         * modules/hash (Depends-on): Add xalloc.
123355         (Files): Remove lib/xalloc.h.
123357         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
123358         * modules/userspec (Files): Add lib/inttostr.h.
123360 2005-03-23  Jim Meyering  <jim@meyering.net>
123362         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
123364 2005-03-22  Jim Meyering  <jim@meyering.net>
123366         * modules/stat-macros: New module.
123367         * modules/canonicalize, modules/euidaccess, modules/file-type,
123368         * modules/filemode, modules/lchown, modules/makepath,
123369         * modules/rmdir, modules/stat: Depend on new stat-macros module
123370         rather than listing lib/stat-macros.h manually.
123371         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
123373 2005-03-22  Jim Meyering  <jim@meyering.net>
123375         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
123377 2005-03-22  Bruno Haible  <bruno@clisp.org>
123379         * config/srclist.txt: Replace target directory 'config' with
123380         'build-aux'.
123381         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
123382         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
123383         ../build-aux/.
123385 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
123387         * modules/chdir-long (Depends-on): Add mempcpy.
123389         * modules/acl, modules/backupfile, modules/c-strtod,
123390         modules/c-strtold, modules/canon-host, modules/canonicalize,
123391         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
123392         modules/exclude, modules/exitfail, modules/file-type,
123393         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
123394         modules/getdate, modules/getline, modules/getpagesize,
123395         modules/getpass, modules/getugroups, modules/group-member,
123396         modules/hard-locale, modules/hash, modules/human, modules/idcache,
123397         modules/inttostr, modules/long-options, modules/makepath,
123398         modules/md5, modules/memcasecmp, modules/memcoll,
123399         modules/modechange, modules/mountlist, modules/path-concat,
123400         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
123401         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
123402         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
123403         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
123404         modules/strftime, modules/strndup, modules/strverscmp,
123405         modules/timespec, modules/unlocked-io, modules/userspec,
123406         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
123407         modules/yesno:
123408         Remove lib_SOURCES line from Makefile.am section, as this is now
123409         done automatically by the corresponding Autoconf macro.
123411 2005-03-21  Jim Meyering  <jim@meyering.net>
123413         Changes imported from coreutils.
123415         * lib/cycle-check.c: Don't include xalloc.h.
123417         * lib/path-concat.c: Don't include assert.h.
123418         (path_concat): Remove assertion that would have triggered
123419         for ABASE starting with more than one slash.
123420         Reported by Andreas Schwab.
123422         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123423         properly when ABASE is an absolute file name.
123424         Correct the description of this function.
123425         Include <assert.h>.
123426         Add an assertion and a test driver.
123427         This fixes a bug introduced on 2004-07-02.
123428         Andreas Schwab reported the resulting failure of cp --parents:
123429         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123431 2005-03-21  Jim Meyering  <jim@meyering.net>
123433         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123434         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123436 2005-03-21  Jim Meyering  <jim@meyering.net>
123437         and  Paul Eggert  <eggert@cs.ucla.edu>
123439         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123440         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123441         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123442         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123443         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123444         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123445         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123446         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123447         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123448         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123449         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123450         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123451         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123452         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123453         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123454         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123455         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123456         for these modules.
123458 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123460         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123461         (which shouldn't happen), generate nothing instead of returning 0
123462         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123464 2005-03-16  Bruno Haible  <bruno@clisp.org>
123466         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123467         HAVE_LONGLONG_64BIT.
123469 2005-03-16  Bruno Haible  <bruno@clisp.org>
123471         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123472         HAVE_LONGLONG_64BIT.
123474 2005-03-16  Bruno Haible  <bruno@clisp.org>
123476         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123477         HAVE_LONGLONG_64BIT.
123479 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123481         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123482         reliably distinguish strftime failure from empty output on POSIX
123483         hosts.
123485 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123487         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123488         (iconv_string): Don't guess a size-zero buffer, as that might cause
123489         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123490         result would be 'too large', where 'too large' is (heuristically)
123491         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123492         overflow concerns.  This will prevent some unwanted malloc failures
123493         when the inputs are very large.
123495 2005-03-15  Karl Berry  <karl@gnu.org>
123497         * config/srclist.txt (config.rpath): from gettext.
123498         * config/config.rpath: update.
123500 2005-03-15  Bruno Haible  <bruno@clisp.org>
123502         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123503         to 'negate'.
123505         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123506         variable.
123508         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123509         results.
123511 2005-03-14  Simon Josefsson  <jas@extundo.com>
123513         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123514         <fx@gnu.org>.
123516 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123518         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123519         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123520         intprops.h.
123521         * lib/strtol.c: Likewise.
123523 2005-03-14  Jim Meyering  <jim@meyering.net>
123525         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123526         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123527         to be nonzero so that we (and caller) can detect the difference
123528         between a valid zero-length expansion and an error return, even
123529         when the underlying strftime fails before writing anything into
123530         that location.
123532 2005-03-14  Bruno Haible  <bruno@clisp.org>
123534         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123535         Update from GNU gettext 0.14.3.
123537 2005-03-10  Jim Meyering  <jim@meyering.net>
123539         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123541 2005-03-10  Jim Meyering  <jim@meyering.net>
123543         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123544         so that this module works on systems without fchdir.
123546 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123548         Factor int-properties macros into a single file, except for
123549         glibc-related files.
123550         * lib/intprops.h: New file.
123551         * lib/getloadavg.c: Include it instead of limits.h.
123552         (INT_STRLEN_BOUND): Remove.
123553         * lib/human.c: Include intprops.h.
123554         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123555         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123556         302/1000.
123557         * lib/inttostr.h: Include intprops.h instead of limits.h.
123558         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123559         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123560         for consistency with intprops.h.
123561         (time_t_is_integer, twos_complement_arithmetic): Use them.
123562         * lib/sig2str.h: Include <signal.h>, intprops.h.
123563         (INT_STRLEN_BOUND): Remove.
123564         * lib/strftime.c (TYPE_SIGNED): Remove.
123565         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123566         * lib/strtol.c: Adjust comments to match intprops.h.
123567         * lib/userspec.c: Include intprops.h.
123568         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123569         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123570         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123571         instead of rolling our own expressions.
123572         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123574         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123575         instead of int.
123576         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123577         the right thing even if adding 1900 would overflow.  Similarly
123578         for tm_mon + 1 and tm_yday + 1.
123579         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123580         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123581         (DO_SIGNED_NUMBER): New macro.
123582         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123584 2005-03-07  Bruno Haible  <bruno@clisp.org>
123586         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123588 2005-03-07  Bruno Haible  <bruno@clisp.org>
123590         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123592 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123594         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123595         (func_import): Only replace files via --import when they have actually
123596         changed.
123598 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123600         * m4/mmap-anon.m4: New file.
123601         * m4/pagealign_alloc.m4: New file.
123603 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123604             Bruno Haible  <bruno@clisp.org>
123606         * modules/pagealign_alloc: New file.
123607         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123609 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123610             Bruno Haible  <bruno@clisp.org>
123612         * lib/pagealign_alloc.h: New file.
123613         * lib/pagealign_alloc.c: New file.
123615 2005-03-03  Bruno Haible  <bruno@clisp.org>
123617         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123618         Use an all-permissive copyright notice, recommended by RMS.
123620 2005-03-02  Bruno Haible  <bruno@clisp.org>
123622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123623         of AIX, the replacement has to be done only after <string.h> is
123624         included, therefore not in config.h. stpncpy.h does the replacement,
123625         and stpncpy.c uses it.
123627 2005-03-02  Bruno Haible  <bruno@clisp.org>
123629         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123630         stpncpy.c uses it.
123632 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123634         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123635         The workaround isn't strictly needed for POSIX conformance, and
123636         it's too much of a pain to configure and maintain.  We'll ask
123637         people to fix their kernels instead.
123638         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123639         (NANOSLEEP_BUG_WORKAROUND): Remove.
123640         (xnanosleep): Remove the workaround.
123642 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123644         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123645         Reported by Derek Price.
123646         (Include): Add "timespec.h".
123648         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123650 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123652         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123653         to detect nanosleep bug.
123655 2005-03-01  Bruno Haible  <bruno@clisp.org>
123657         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123659 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123661         * modules/gethrxtime: New file.
123662         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123663         (Depends-on): Add gethrxtime.
123664         (configure.ac): Add gl_XNANOSLEEP.
123665         (Makefile.am): Remove lib_SOURCES line.
123667 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123669         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123670         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123672 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123674         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123675         * lib/timespec.h (gettime): Return void, since it always
123676         succeeds now.  All uses changed.
123677         * lib/gettime.c (gettime): Likewise.
123678         [HAVE_NANOTIME]: Prefer nanotime.
123679         Assume gettimeofday succeeds, as POSIX requires.
123680         Assime time () succeeds, since other code already does.
123681         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123682         (timespec_subtract): Remove.
123683         (NANOSLEEP_BUG_WORKAROUND): New constant.
123684         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123685         things considerably.  Use it only on GNU/Linux hosts, since the
123686         workaround shouldn't be needed elsewhere.
123688 2005-02-24  Bruno Haible  <bruno@clisp.org>
123690         * modules/gettext (Files): Add m4/glibc2.m4.
123692 2005-02-24  Bruno Haible  <bruno@clisp.org>
123694         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123695         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123696         * m4/progtest.m4:
123697         Update from GNU gettext 0.14.2.
123698         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123700 2005-02-24  Bruno Haible  <bruno@clisp.org>
123702         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123703         * lib/config.charset: Update from GNU gettext 0.14.2.
123705 2005-02-24  Bruno Haible  <bruno@clisp.org>
123707         * lib/gettext.h: Update from GNU gettext 0.14.2.
123709 2005-02-23  Simon Josefsson  <jas@extundo.com>
123711         * m4/iconvme.m4: New file.
123713 2005-02-23  Jim Meyering  <jim@meyering.net>
123715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123716         change.
123717         Thanks to Bruno Haible for catching it.
123719 2005-02-22  Simon Josefsson  <jas@extundo.com>
123721         * modules/iconvme: New file.
123723         * MODULES.html.sh: Add iconvme.
123725 2005-02-22  Simon Josefsson  <jas@extundo.com>
123727         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123729 2005-02-22  Simon Josefsson  <jas@extundo.com>
123731         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123733 2005-02-22  Jim Meyering  <jim@meyering.net>
123735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123736         s/ifndef/ifdef/.
123738 2005-02-20  Neil Conway  <neilc@samurai.com>
123740         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123741         returned by OSX/Darwin if the specified buffer is not large
123742         enough for the hostname.
123744 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123746         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123747         pass it to _help, otherwise the latter coredumps trying to
123748         dereference state.root_argp.
123750 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123752         * modules/chdir-long (Depends-on): Add memrchr.
123753         * modules/memrchr (Files): Add lib/memrchr.h.
123754         (Include): "memrchr.h".
123756 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123760 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123762         * lib/memrchr.h: New file.
123763         * lib/chdir-long.c: Include it.
123764         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123765         Don't bother including stddef.h.
123767 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123769         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123770         inclusion.
123771         Include <sys/types.h>, for dev_t.
123772         (ME_DUMMY, ME_REMOTE): Move from here....
123773         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123774         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123775         Dmitry V. Levin.
123776         Include mountlist.h first, to test the interface.
123778 2005-01-29  Bruno Haible  <bruno@clisp.org>
123780         * lib/progname.c (program_name): Initialize.
123781         Needed when linking statically on MacOS X.
123783 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123785         Sync from coreutils.
123786         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123787         (Depends-on): Add c-strtod.
123788         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123790 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123792         Sync from coreutils.
123793         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123795         Remove files that are specific to coreutils.
123796         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123798 2005-01-28  Bruno Haible  <bruno@clisp.org>
123800         * modules/javacomp: New file.
123801         * MODULES.html.sh (Java): Add javacomp.
123803 2005-01-28  Bruno Haible  <bruno@clisp.org>
123805         * m4/javacomp.m4: New file, from GNU gettext.
123807 2005-01-28  Bruno Haible  <bruno@clisp.org>
123809         * lib/javacomp.sh.in: New file, from GNU gettext.
123810         * lib/javacomp.h: New file, from GNU gettext.
123811         * lib/javacomp.c: New file, from GNU gettext.
123813 2005-01-26  Simon Josefsson  <jas@extundo.com>
123815         * lib/gai_strerror.c: Use GPL in header.
123817 2005-01-26  Bruno Haible  <bruno@clisp.org>
123819         * modules/javaexec: New file.
123820         * MODULES.html.sh (Java): Add javaexec.
123822 2005-01-26  Bruno Haible  <bruno@clisp.org>
123824         * m4/javaexec.m4: New file, from GNU gettext.
123826 2005-01-26  Bruno Haible  <bruno@clisp.org>
123828         * lib/javaexec.sh.in: New file, from GNU gettext.
123829         * lib/javaexec.h: New file, from GNU gettext.
123830         * lib/javaexec.c: New file, from GNU gettext.
123832 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123834         * modules/lchown (Depends-on): Remove lchown.h
123836 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123838         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123839         must be defined if the header file was not found, in order
123840         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123842 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123844         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123845         initializers for struct pentry_state.
123846         (__argp_error): Check return value of __asprintf
123847         (__argp_failure): Translate error message
123849         * lib/argp-parse.c: Removed braces around the expansion of N_()
123851 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123853         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123854         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123855         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123856         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123857         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123858         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123859         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123860         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123861         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123862         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123863         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123864         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123865         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123866         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123867         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123868         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123869         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123870         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123871         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123872         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123873         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123874         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123875         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123876         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123877         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123878         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123879         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123880         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123881         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123882         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123883         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123884         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123885         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123886         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123887         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123888         Use an all-permissive copyright notice, recommended by RMS.
123890 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123892         * modules/chdir-long (Depends-on): Remove mempcpy.
123894 2005-01-21  Jim Meyering  <jim@meyering.net>
123896         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123897         same value as for Solaris 9.
123899         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123900         component length.  This included changing the parameter to be
123901         of type `char *' rather than `char const *'.
123902         * lib/chdir-long.h (chdir_long): Update prototype.
123904         * lib/openat.c (fdopendir, fstatat): New functions.
123905         * lib/openat.h: Include headers required for use of DIR and struct
123906         stat.
123907         [AT_SYMLINK_NOFOLLOW]: Define.
123908         (fdopendir, fstatat): Add prototypes.
123910 2005-01-21  Bruno Haible  <bruno@clisp.org>
123912         * modules/classpath: New file.
123913         * MODULES.html.sh (Java): Add classpath.
123915 2005-01-21  Bruno Haible  <bruno@clisp.org>
123917         * lib/classpath.h: New file, from GNU gettext.
123918         * lib/classpath.c: New file, from GNU gettext.
123920 2005-01-20  Simon Josefsson  <jas@extundo.com>
123922         * modules/version-etc-fsf: New file.
123924 2005-01-20  Simon Josefsson  <jas@extundo.com>
123926         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123927         * lib/version-etc.c: Remove version_etc_copyright.
123928         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123929         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123931 2005-01-20  Simon Josefsson  <jas@extundo.com>
123933         * lib/base64.h (isbase64): Add.
123935         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123936         using a unsigned prototype, don't inline.
123937         (base64_decode): Use it.
123939 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123941         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123942         it.
123944 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123946         * lib/save-cwd.c (save_cwd): Remove code to support the case
123947         where fchdir is missing or flaky.
123949 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123951         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123953 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123955         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123956         AC_LIBSOURCES now does this.
123957         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123958         with new ullong_max module.
123960 2005-01-19  Bruno Haible  <bruno@clisp.org>
123962         * modules/sh-quote: New file.
123963         * MODULES.html.sh (Executing programs): Add sh-quote.
123965 2005-01-19  Bruno Haible  <bruno@clisp.org>
123967         * lib/sh-quote.h: New file, from GNU gettext.
123968         * lib/sh-quote.c: New file, from GNU gettext.
123970 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123972         Merge from coreutils.
123973         * m4/ullong_max.m4: New file.
123974         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123975         (gl_MACROS): Assume localeconv exists.
123977 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123979         Merge changes from coreutils, as described below in several
123980         changelogs dated today.
123982         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123983         (O_DIRECTORY): Remove; not needed here, since "." must be
123984         a directory.  All uses removed.
123985         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123986         universal on Suns, and we also need to test for IRIX.
123987         Revamp code to use 'if' rather than '#if'.
123988         Avoid unnecessary comparison of cwd->desc to 0.
123990         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123991         for known valid error numbers rather than observed invalid ones.
123993 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123995         * modules/ullong_max: New file.
123997         * modules/chdir-long, modules/openat: New files.
123998         * modules/save-cwd (Depends-on): Depend on chdir-long.
123999         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
124001 2005-01-18  Jim Meyering  <jim@meyering.net>
124003         Merge from coreutils.
124004         * m4/chdir-long.m4, m4/openat.m4: New files.
124005         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
124006         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
124007         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
124008         is sane and DOES follow symlinks.  Besides, testing 20 different
124009         systems found no broken chown implementations.
124010         Prompted by a change in rsync's copy of this macro.
124011         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
124013         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
124015         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
124016         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
124017         NULL-means-set-to-current-time semantics.
124018         Remove temporary file immediately, rather than waiting
124019         for configure's at-exit trap code to do it.
124021 2005-01-18  Jim Meyering  <jim@meyering.net>
124023         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124025         * lib/utimens.c (futimens): Account for the fact that futimes
124026         can also fail with errno == ENOSYS or errno == ENOENT.
124027         Patch from Dmitry V. Levin.
124029         Change the name of the robust chdir function from chdir to chdir_long.
124030         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
124031         (restore_cwd): Use chdir_long, not chdir.
124032         * lib/chdir-long.c: Renamed from chdir.c.
124033         * lib/chdir-long.h: Renamed from chdir.h.
124034         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
124035         Hurd.
124037 2005-01-18  Bruno Haible  <bruno@clisp.org>
124039         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
124040         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
124041         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
124042         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
124043         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
124044         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
124045         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
124046         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
124047         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
124048         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
124049         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
124050         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
124051         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
124052         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
124053         Use an all-permissive copyright notice, recommended by RMS.
124055 2005-01-18  Bob Proulx  <bob@proulx.com>
124057         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
124058         simplify offsetof() macro construct to avoid compile failure with
124059         native HP-UX 11.0 ANSI C compiler.
124061 2005-01-17  Bruno Haible  <bruno@clisp.org>
124063         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
124064         redundant because stpncpy.m4 takes care of it.
124066 2005-01-17  Bruno Haible  <bruno@clisp.org>
124068         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
124070 2005-01-17  Bruno Haible  <bruno@clisp.org>
124072         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
124073         used.
124075 2005-01-17  Bruno Haible  <bruno@clisp.org>
124077         * lib/fwriteerror.h (fwriteerror): Change specification to include
124078         fclose.
124079         * lib/fwriteerror.c: Include <stdbool.h>.
124080         (fwriteerror): At the end, close the file stream. Record whether
124081         stdout was already closed.
124083 2005-01-17  Bruno Haible  <bruno@clisp.org>
124085         * lib/execute.c (environ): Declare if needed.
124086         * lib/pipe.c (environ): Likewise.
124087         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
124089 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124091         * modules/argp: Depend on vsnprintf
124093 2005-01-10  Jim Meyering  <jim@meyering.net>
124095         * modules/closeout (Depends-on): Add atexit.
124097 2005-01-06  Bruno Haible  <bruno@clisp.org>
124099         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
124101 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
124103         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
124104         definitions to be after all include files, to avoid collisions.
124105         Problem reported by Bob Proulx.
124107 2005-01-04  Jim Meyering  <jim@meyering.net>
124109         Changes imported from coreutils.
124110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
124111         as the mkstemp template, use a temporary directory and an
124112         8.3-friendly template to avoid trouble on systems like DJGPP.
124113         Reported by Juan M. Guerrero via Stepan Kasal.
124114         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
124115         close. Remove the temporary directory right away, rather than waiting
124116         for configure's at-exit trap code to do it.
124117         Suggestion from Stepan Kasal.
124119 2005-01-01  Simon Josefsson  <jas@extundo.com>
124121         * gnulib-tool: Print #include directives when --import'ing.
124123 2004-12-28  Simon Josefsson  <jas@extundo.com>
124125         * tests/test-base64.c: Include required header files.  Remove
124126         unused variables.
124128 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124130         * modules/error (Depends-on): Remove gettext.
124132 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124134         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
124135         not needed.  This removes a dependency on the gettext module.
124136         [defined _LIBC]: Do not include <libintl.h>; not needed.
124138 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124140         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
124141         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
124143 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124145         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
124146         HAVE_DECL_STRTOLD.
124148 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124150         * modules/getdate (Depends-on): Remove alloca-opt.
124152 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124154         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
124156 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124158         * lib/argp-parse.c: Include <stddef.h>.
124159         (alignof, alignto): New macros.
124160         (parser_init): Don't assume that void * is aligned sufficiently
124161         for struct option.
124163         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
124164         need to extend the stack.
124165         (YYINITDEPTH): New macro, so that the initial stack isn't overly
124166         large.
124168 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124170         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
124172 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124174         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
124175         (2004-10-24) change.  Apparently this was a false alarm.
124177         * modules/getdate: Depend on alloca-opt, not alloca.
124179 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124181         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
124182         Remove now-obsolete comment about AIX.
124183         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
124184         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
124185         (YYMAXDEPTH): New macro.
124187 2004-12-18  Simon Josefsson  <jas@extundo.com>
124189         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
124191 2004-12-18  Bruno Haible  <bruno@clisp.org>
124193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
124195 2004-12-18  Bruno Haible  <bruno@clisp.org>
124197         * lib/fatal-signal.c (fatal_signals): Make non-const.
124198         (init_fatal_signals): New function.
124199         (uninstall_handlers, install_handlers): Ignore signals that were set to
124200         SIG_IGN.
124201         (at_fatal_signal): Call init_fatal_signals.
124202         (init_fatal_signal_set): Likewise. Ignore signals that were set to
124203         SIG_IGN.
124204         Reported by Paul Eggert.
124206 2004-12-18  Bruno Haible  <bruno@clisp.org>
124208         * doc/alloca.texi: New file.
124209         * doc/alloca-opt.texi: New file.
124211 2004-12-17  Jim Meyering  <jim@meyering.net>
124213         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
124214         Otherwise, install-sh could exit with improper exit status when
124215         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
124217 2004-12-16  Simon Josefsson  <jas@extundo.com>
124219         * tests/test-base64.c: Add license.
124221 2004-12-15  Stepan Kasal  <address@hidden>
124223         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
124225 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
124227         * modules/getcwd (Files): Add m4/d-ino.m4.
124228         Suggested by Mark D. Baushke.
124230 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124232         * lib/getdate.y (textint): New member "negative".
124233         (time_zone_hhmm): New function.
124234         Expect 14 shift-reduce conflicts, not 13.
124235         (o_colon_minutes): New rule.
124236         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
124237         (yylex): Set the "negative" member of signed numbers.
124239 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124241         * doc/getdate.texi (Time of day items, Time zone items):
124242         Describe new formats +00:00, UTC+00:00.
124244 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
124246         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
124247         spurious "-l"s.  Problem reported by Stepan Kasal.
124249 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
124251         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
124252         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
124254 2004-12-04  Simon Josefsson  <jas@extundo.com>
124256         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
124257         Vandoorselaere <yoann@prelude-ids.org>.
124259 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124261         Changes imported from coreutils.
124262         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
124263         exist.
124264         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
124266 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124268         Changes imported from coreutils.
124269         * lib/hard-locale.c: Assume <locale.h> exists.
124270         Include "strdup.h".
124271         (GLIBC_VERSION): New macro.
124272         (hard_locale): Assume setlocale exists.
124273         Rewrite to avoid #ifdef.
124274         Use strdup rather than malloc + strcpy.
124275         * lib/human.c: Assume <locale.h> exists.
124276         (human_readable): Assume localeconv exists.
124278 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124280         * modules/hard-locale (Depends-on): Add strdup.
124282 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
124284         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
124285         convert T2, not T.  (Imported from libc.)
124287 2004-11-30  Simon Josefsson  <jas@extundo.com>
124289         * modules/restrict (License): Change to LGPL.
124291 2004-11-30  Simon Josefsson  <jas@extundo.com>
124293         * m4/restrict.m4: Add copyright and copying conditions.
124295 2004-11-30  Simon Josefsson  <jas@extundo.com>
124297         * m4/base64.m4: New file.
124299 2004-11-30  Simon Josefsson  <jas@extundo.com>
124301         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
124302         base64.
124304         * tests/test-base64.c: New file.
124306         * modules/base64: New file.
124308 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124310         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
124311         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
124313         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
124315 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124317         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
124318         (__getcwd.c): Don't restore errno; glibc doesn't.
124319         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
124320         first, falling back to our code only if its results look suspicious.
124321         Ensure that the resulting buffer is only as large as necessary.
124323         * lib/readutmp.c: Include readutmp.h first.
124324         Include <errno.h>, since readutmp.h no longer does that.
124325         * lib/readutmp.h: Don't include <errno.h>,
124326         <sys/param.h>, <time.h>; not needed to establish interface.
124327         (errno): Remove decl.
124328         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
124329         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
124330         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
124332 2004-11-28  Simon Josefsson  <jas@extundo.com>
124334         * lib/base64.h, base64.c: New file.
124336 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
124338         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
124340 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
124342         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
124343         (Depends-on): Remove pathmax, same.  Add mempcpy.
124344         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
124345         (Makefile.am): Append getcwd.h to lib_SOURCES.
124346         (Include): Add getcwd.h.
124347         (Maintainer): Change from Jim Meyering to "all, glibc",
124348         since getdate now uses intended-for-glibc code.
124349         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
124350         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
124352 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124354         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
124355         HP's ANSI C compiler.
124356         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
124357         Declaring int functions causes warnings on some modern systems and
124358         shouldn't be needed to compile on ancient ones.
124359         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
124360         defined.
124362         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
124363         with the following changes.
124364         (__set_errno): Parenthesize properly.
124365         Include <stdbool.h>.
124366         (MIN, MAX, MATCHING_INO): New macros.
124367         (__getcwd): Define with prototype, not K&R form.
124368         Use heuristics to allocate default buffer on stack if possible.
124369         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
124370         behavior, and to avoid the PATH_MAX limit when computing
124371         ../../../../...
124372         Use MATCHING_INO to compare inode number to file.
124373         Check for arithmetic overflow in size calculations.
124374         Fix bug in reallocation of dot array that caused getcwd to fail
124375         on directories nested deeper than 75.
124376         Be more careful about saving errno on error.
124377         Do not use realloc; use only free+malloc, as this is a bit
124378         more flexible and avoids a needless copy operation.
124379         Do not inspect st_dev and st_ino for symbolic links; POSIX
124380         doesn't specify the latter.
124381         Check for closedir errors.
124382         Avoid needless casts.
124383         Use "#ifdef weak_alias" around weak_alias, to be like other
124384         glibc code.
124385         The following changes to getcwd.c have effect only when used in
124386         gnulib; they have no effect inside glibc proper.
124387         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
124388         as alloca isn't used.
124389         (alloca, __alloca): Likewise.
124390         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
124391         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124392         unconditionally, as gnulib assumes C89 or better.
124393         Do not include <sys/param.h>.
124394         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
124395         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
124396         better.
124397         (NULL) [!defined NULL]: Remove; we assume C89 or better.
124398         Include <dirent.h> in a way that is compatible with modern Autoconf.
124399         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
124400         New macros, if not already defined.
124401         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
124402         Use "_LIBC", not "defined _LIBC", for consistency.
124403         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
124404         a mempcpy module.
124405         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
124406         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
124407         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
124408         credit only to Jim Meyering and adjust the copyright dates.
124409         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
124410         <stdlib.h>, <unistd.h>, "pathmax.h".
124411         Instead, include "xgetcwd.h" (first) and "getcwd.h".
124412         (INITIAL_BUFFER_SIZE): Remove.
124413         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
124415 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
124418         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
124419         Use the _ONCE methods, for efficiency.
124420         Check for fcntl.h.  In test program, include <errno.h>
124421         and <fcntl.h> if available.  Remove old K&R cruft from
124422         test program.  Check for common errors in GNU/Linux,
124423         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124424         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124425         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124426         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124427         name accordingly.
124428         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124429         accommodate new getcwd.c.
124430         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124431         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124432         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124433         that's all we need now.
124435 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124437         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124438         argp-parse.c depends on getopt internals, that means we should
124439         always use our getopt, to be on the safe side.
124440         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124441         order not to spoil the result of an eventual previous invocation
124442         of gl_GETOPT_SUBSTITUTE.
124444 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124446         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124447         redefinition warnings. To avoid them, include the defines
124448         in `#if !defined __need_getopt ... #endif'. The only place
124449         where __getopt_argv_const is used is in definitions
124450         of getopt_long and getopt_long_only below, which are as well
124451         protected by `#ifndef __need_getopt'.
124452         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124453         __need_getopt after including <stdio.h> and <unistd.h> These
124454         headers might have defined it.
124456 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124458         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124460 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124462         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124463         (futimens): New function, which uses futimes if available.
124464         (futimens, utimens): Support timespec==NULL, with same semantics
124465         as utime and utimens.
124466         * lib/utimens.h (futimens): New decl.
124468 2004-11-23  Jim Meyering  <jim@meyering.net>
124470         * lib/getopt_.h: Remove trailing blanks.
124472 2004-11-23  Jim Meyering  <jim@meyering.net>
124474         * lib/__fpending.c: Add comment.
124476 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124478         * modules/canonicalize (Depends-on): Add xreadlink.
124479         Problem reported by James Youngman.
124481 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124483         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124484         New macros.
124485         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124486         optopt): Use them instead of invoking ## directly; otherwise, the
124487         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124489 2004-11-19  Bruno Haible  <bruno@clisp.org>
124491         * lib/strtok_r.c: Move comments from here...
124492         * lib/strtok_r.h: ... to here.
124494 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124497         implementations that mishandle size_t overflow.
124499 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124501         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124502         might fail.  Problem reported by Yoann Vandoorselaere.
124503         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124504         implementations that mishandle size_t overflow.
124506 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124508         * modules/canon-host (Depends-on): Add strdup.
124510 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124512         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124514 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124516         * lib/canon-host.c: Include "strdup.h".
124517         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124518         Use strdup instead of malloc/strcpy to duplicate strings.
124520         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124521         (human_space_before_unit): New constant.
124522         * lib/human.c (human_readable): Support it.
124524         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124525         (xgetcwd): Set errno correctly when failing.
124526         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124527         the failure is actually due to a PATH_MAX problem.
124529         Further getopt changes to make it more likely that glibc will
124530         buy the changes back.
124531         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124532         (getopt): Use it, so to preserve glibc semantic
124533         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124534         when compiling for libc.
124535         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124536         (getopt_long, getopt_long_only): Use it.
124538         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124539         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124540         (getopt): Argv is now char * const *, as per standard.
124541         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124542         not char *__getopt_argv_const *.
124543         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124544         _getopt_long_only_r): Likewise.
124545         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124546         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124547         _getopt_long_r, _getopt_long_only_r): Likewise.
124548         * lib/getopt_.h (__getopt_argv_const): Remove.
124549         (getopt): Argv is now char * const *, as per standard.
124551         * lib/getdate.y (tORDINAL): New token.
124552         (day, relunit): Allow it for relative times.
124553         (relative_time_table): Use tORDINAL for ordinals.
124555 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124557         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124558         Document that "second" isn't allowed as an ordinal number.
124560 2004-11-16  Jim Meyering  <jim@meyering.net>
124562         * modules/closeout (Depends-on): Add fpending.
124564 2004-11-15  Jim Meyering  <jim@meyering.net>
124566         * lib/closeout.c: Include "__fpending.h" once again.
124567         Include <stdbool.h>.
124568         (close_stdout): Don't fail just because stdout was closed initially,
124569         since some programs don't write to stdout in the normal course of
124570         operation (other than --version and --help), and we don't want this
124571         function to make e.g. `touch file >&-' fail.
124572         But do fail if it was closed and someone has tried to write to it.
124573         E.g., `printf foo >&-' must fail.
124575 2004-11-13  Jim Meyering  <jim@meyering.net>
124577         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124579 2004-11-12  Simon Josefsson  <jas@extundo.com>
124581         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124582         small doc fix is still pending.
124584 2004-11-11  Simon Josefsson  <jas@extundo.com>
124586         * modules/strtok_r: New file.
124588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124589         strtok_r.
124591 2004-11-11  Simon Josefsson  <jas@extundo.com>
124593         * m4/strtok_r.m4: New file.
124595         * m4/getopt.m4: Replace opterr.
124597 2004-11-11  Simon Josefsson  <jas@extundo.com>
124599         * lib/strtok_r.h, strtok_r.c: New file.
124601 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124603         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124604         of replacing opterr, getopt, etc.  This should handle the
124605         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124607 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124609         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124610         we can stop lying to compilers about the constness of argv when we
124611         are compiled outside glibc.
124612         (getopt, getopt_long, getopt_long_only): Use it.
124613         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124614         _getopt_internal, getopt): Likewise.
124615         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124616         _getopt_long_only_r): Likewise.
124617         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124618         _getopt_long_r, _getopt_long_only_r): Likewise.
124620         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124621         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124622         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124623         the other external symbols.
124624         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124625         declaration, since the above renaming now works around collisions.
124627 2004-11-11  Jim Meyering  <jim@meyering.net>
124629         * lib/linebreak.c: Remove trailing blanks.
124630         * lib/alloca_.h: Likewise.
124631         * lib/acosl.c: Likewise.
124632         * lib/euidaccess.c: Likewise.
124633         * lib/allocsa.h: Likewise.
124635 2004-11-10  Simon Josefsson  <jas@extundo.com>
124637         * m4/getaddrinfo.m4: New file.
124639 2004-11-10  Simon Josefsson  <jas@extundo.com>
124641         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124643 2004-11-10  Simon Josefsson  <jas@extundo.com>
124645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124646         getaddrinfo.
124648         * modules/getaddrinfo: New file.
124650 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124652         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124654 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124656         * lib/mktime.c (SHR): New macro, which is a portable
124657         substitute for >> that should work even on Crays.
124658         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124659         Problem reported by Mark D. Baushke in
124660         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124661         * lib/getdate.y (SHR): Likewise.
124662         (tm_diff): Use it.
124663         * lib/strftime.c (SHR): Likewise.
124664         (tm_diff): Use it.
124665         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124666         quote_these_too, so that right shifts are well defined.  All uses
124667         changed.
124669 2004-11-10  Jim Meyering  <jim@meyering.net>
124671         Ensure that no close failure goes unreported.
124672         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124673         return early when it seems there's nothing to flush.
124674         Don't include __fpending.h.
124676 2004-11-10  Jim Meyering  <jim@meyering.net>
124678         * modules/closeout (Depends-on): Remove fpending.
124680 2004-11-10  Jim Meyering  <jim@meyering.net>
124682         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124684 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124686         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124687         gl_FUNC_STRFTIME.
124688         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124689         and AC_REQUIRE when possible, to avoid duplicate checks.
124690         Check for <wchar.h>.
124692 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124694         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124696 2004-11-09  Bruno Haible  <bruno@clisp.org>
124698         * m4/sockpfaf.m4: New file.
124700 2004-11-05  Bruno Haible  <bruno@clisp.org>
124702         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124703         Reported by Mark D. Baushke <mdb@cvshome.org>.
124705 2004-11-04  Bruno Haible  <bruno@clisp.org>
124707         2004-09-11  Bruno Haible  <bruno@clisp.org>
124708                 * allocsa.valgrind: New file.
124709         2004-02-06  Bruno Haible  <bruno@clisp.org>
124710                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124711                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124712                 Reported by Christopher Seip <chris.seip@hp.com>.
124714 2004-11-04  Bruno Haible  <bruno@clisp.org>
124716         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124717         (Makefile.am): Distribute it.
124719 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124721         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124722         with errno == ERANGE if the buffer is too small.
124723         Problem reported by Mark D. Baushke.
124725 2004-11-03  Albert Chin  <china@thewrittenword.com>
124726             Paul Eggert  <eggert@cs.ucla.edu>
124728         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124729         equivalent, substitute $ac_type for equivalent type rather than
124730         blindly using uint32_t *always* which won't work if uint32_t is not
124731         available.  Define _UINT32_T to work around typedef of uint32_t if
124732         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124733         2.5.1.
124735 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124737         * m4/jm-macros.m4: Sync from coreutils.
124738         (gl_MACROS): Check for mbrlen, for pathchk.
124739         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124741 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124743         * lib/xreadlink.c (MAXSIZE): New macro.
124744         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124745         size does not exceed MAXSIZE.  Avoid cast.
124746         As suggested by Mark D. Baushke in
124747         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124748         if readlink fails with buffer size just under MAXSIZE, try again
124749         with MAXSIZE.
124751 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124753         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124755 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124756         and  Paul Eggert  <eggert@cs.ucla.edu>
124758         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124759         (get_date): Overparenthesize to avoid GCC warning.
124761 2004-11-02  Bruno Haible  <bruno@clisp.org>
124763         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124764         returns void.
124766 2004-11-02  Bruno Haible  <bruno@clisp.org>
124768         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124769         function returns void.
124771 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124773         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124774         fflush_unlocked, flockfile, funlockfile, funlockfile,
124775         fputs_unlocked, putc_unlocked.
124777 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124779         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124780         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124781         already declared.
124783 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124785         * modules/getdate (Files): Add doc/getdate.texi.
124786         (Depends-on): Add setenv, xalloc.
124788 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124790         * lib/getdate.y: Add support for TZ="foo" within a date string.
124791         Fix some bugs near time_t boundaries.  Reject dates with
124792         out-of-range components, e.g., "Sept 31".
124793         Include <stdlib.h>, "setenv.h", "xalloc.h".
124794         (ISDIGIT_LOCALE): Remove; unused.
124795         Note that the TZ and time functions used here are not reentrant.
124796         (mktime_ok, get_tz): New functions.
124797         (TZBUFSIZE): New constant.
124798         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124799         This requires that we sometimes generate our own TZ="XXX..." setting.
124801 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124803         * doc/getdate.texi: New file, from coreutils with modifications for
124804         the new TZ parsing.
124806 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124808         * lib/mktime.c (not_equal_tm): Remove redundant check.
124810 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124812         * modules/regex (lib_SOURCES): Add regex.c.
124813         Reported by James Youngman in
124814         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124816 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124818         * lib/getdate.y: Use Bison 1.875 features, and some minor
124819         code cleanups.  This change does not affect semantics.
124820         Don't include <stdlib.h>; no longer needed.
124821         Don't include unlocked-io.h; only the "#if TEST" code uses
124822         stdio, and performance isn't crucial there.
124823         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124824         Bison 1.875 features as described below.
124825         All uses of "PC." replaced by "pc->".
124826         (YYSTYPE): Add a forward declaration.
124827         (yylex, yyerror): Use full prototypes in forward decls.
124828         Use "%pure-parser" rather than obsolescent "%pure_parser".
124829         Use %parse-param and %lex-param instead of obsolescent
124830         YYPARSE_PARAM and YYLEX_PARAM.
124831         (meridian_table, month_and_day_table, time_units_table,
124832         relative_time_table, time_zone_table, military_table,
124833         lookup_zone, lookup_word, get_date):
124834         Use NULL instead of 0 where appropriate.
124835         (to_hour): Avoid abort (), to avoid a dependency on
124836         stdlib.h.
124837         (yyerror, yylex): Now accepts parser_control * arg.
124838         (main) [TEST]: Use '\0' rather than 0 for char.
124840 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124842         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124844 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124846         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124847         It's now the caller's responsibility to handle the case where
124848         !HAVE_GETPAGESIZE && !defined getpagesize.
124850         * lib/mktime.c (leapyear): Arg is long int, not int.
124852 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124854         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124856 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124858         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124859         missing.  Problem reported by James Youngman.
124861 2004-10-16  Simon Josefsson  <jas@extundo.com>
124863         * gnulib-tool: Fix comments.  Fix parse problem.
124864         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124866 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124868         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124869         implementation of getopt_long.  Problem reported by Alexander Taler in:
124870         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124872 2004-10-15  Bruno Haible  <bruno@clisp.org>
124874         * gnulib-tool: Untabify. Initialize supplied_libname.
124875         (func_usage): More homogenous output.
124876         (func_modules_transitive_closure, func_modules_to_filelist,
124877         func_emit_lib_Makefile_am): New functions.
124878         (func_import): New function, extracted from big case statement. Use
124879         func_get_license, func_modules_transitive_closure,
124880         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124881         opt_lgpl. Don't use test -a, as it's not portable.
124882         (func_create_testdir): Use func_modules_transitive_closure,
124883         func_modules_to_filelist, func_emit_lib_Makefile_am.
124885 2004-10-15  Bruno Haible  <bruno@clisp.org>
124887         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124889 2004-10-15  Bruno Haible  <bruno@clisp.org>
124891         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124892         the portions belonging to each module.
124893         Suggested by Derek Robert Price <derek@ximbiot.com>.
124895 2004-10-12  Simon Josefsson  <jas@extundo.com>
124897         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124898         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124899         to real functions.
124901 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124903         * modules/vsnprintf: New file.
124905 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124907         * m4/vsnprintf.m4: New file.
124909 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124911         * lib/vsnprintf.h: New file.
124912         * lib/vsnprintf.c: New file.
124914 2004-10-11  Bruno Haible  <bruno@clisp.org>
124916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124917         vsnprintf.
124919 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124921         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124923 2004-10-07  Bruno Haible  <bruno@clisp.org>
124925         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124926         fits into the provided buffer.
124928 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124930         * lib/diacrit.c, diacrit.h: Add GPL notice.
124932         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124933         notice.
124934         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124935         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124936         This avoids a potential constant-folding bug.
124938 2004-10-05  Bruno Haible  <bruno@clisp.org>
124940         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124941         for the declaration of strsep.
124943 2004-10-05  Bruno Haible  <bruno@clisp.org>
124945         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124947 2004-10-04  Simon Josefsson  <jas@extundo.com>
124949         * modules/memmem: New file.
124950         * tests/test-memmem.c: New file.
124951         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124953 2004-10-04  Simon Josefsson  <jas@extundo.com>
124955         * m4/memmem.m4: New file.
124957 2004-10-04  Simon Josefsson  <jas@extundo.com>
124959         * lib/memmem.h: New file.
124960         * lib/memmem.c: New file, taken from glibc.
124962 2004-10-04  Simon Josefsson  <jas@extundo.com>
124964         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124965         '#ifdef USE_UNLOCKED_IO'.
124967 2004-10-04  Simon Josefsson  <jas@extundo.com>
124969         * config/srclist.txt: Add memmem from glibc.
124971 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124973         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124975         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124976         modules/exclude, modules/getdate, modules/getline,
124977         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124978         modules/getusershell, modules/linebuffer, modules/md5,
124979         modules/mountlist, modules/posixtm, modules/readtokens,
124980         modules/readutmp, modules/regex, modules/sha1,
124981         modules/version-etc, modules/yesno:
124982         Remove dependency on unlocked-io.
124984 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124986         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124988         * m4/unlocked-io.m4: Add copyright notice.
124989         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124991 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124993         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124994         * lib/xmalloc.c (xmemdup): Likewise.
124995         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124996         XFREE): Remove these long-obsolescent macros.
124997         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124998         * lib/xstrdup.c: Remove.
125000         * lib/regex.c (re_comp): Cast gettext return value to char *,
125001         Problem reported by Martin Neitzel via Mark D. Baushke.
125003 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125005         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
125006         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
125007         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
125008         regex.c, sha1.c, version-etc.c, yesno.c:
125009         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
125010         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
125011         the includer's responsibility.
125013         Sync from coreutils.
125015         * lib/modechange.c (mode_compile): Don't decrement a pointer that
125016         points to the start of a string, as the C Standard says the
125017         resulting behavior is undefined.
125019         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
125020         simple -> simple_backups, numbered_existing ->
125021         numbered_existing_backups, numbered -> numbered_backups
125022         to avoid shadowing problems.  All uses changed.
125023         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
125024         * lib/backupfile.c (check_extension, numbered_backup):
125025         Rename locals to avoid shadowing 'basename'.
125026         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
125027         once.
125029         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
125030         * lib/.cvsignore: Add getopt.h.
125032 2004-10-04  Bruno Haible  <bruno@clisp.org>
125034         * modules/README: New file.
125035         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
125036         not a module.
125038 2004-10-02  Jim Meyering  <jim@meyering.net>
125040         * lib/dirfd.h, getpagesize.h: Add copyright notice.
125042 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125044         * modules/strsep: New file.
125046 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125048         * m4/strsep.m4: New file.
125050 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125052         * lib/strsep.h: New file.
125053         * lib/strsep.c: New file.
125055 2004-10-01  Simon Josefsson  <jas@extundo.com>
125057         * lib/snprintf.c (snprintf): Handle size==0.
125059 2004-10-01  Simon Josefsson  <jas@extundo.com>
125060             Bruno Haible  <bruno@clisp.org>
125062         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
125063         (snprintf): Declare 'args'.
125065 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
125067         * lib/snprintf.c: Remove comments as to why each header is needed.
125069 2004-10-01  Bruno Haible  <bruno@clisp.org>
125071         * MODULES.html.sh: Add strsep.
125073 2004-09-30  Simon Josefsson  <jas@extundo.com>
125075         * modules/snprintf: New file.
125077 2004-09-30  Simon Josefsson  <jas@extundo.com>
125079         * m4/snprintf.m4: New file.
125081 2004-09-30  Simon Josefsson  <jas@extundo.com>
125083         * lib/snprintf.h, lib/snprintf.c: New files.
125085 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
125087         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
125088         (hol_entry_help): Never translate an empty string.
125089         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
125090         * lib/argp.h (OPTION_NO_TRANS): New option.
125092 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125094         * modules/argp (Maintainer): Replace Simon Josefsson
125095         by Sergey Poznyakoff.
125097 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125099         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
125100         changes merged back into glibc.
125102 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125104         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
125106 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
125108         * lib/xvasprintf.c: Include xalloc.h.
125109         (xvasprintf): Use xalloc_die, not xmalloc_die.
125111 2004-09-29  Bruno Haible  <bruno@clisp.org>
125113         * modules/alloca-opt: New file, derived from modules/alloca.
125114         * modules/allocsa: Depend on alloca-opt instead of alloca.
125115         * modules/setenv: Likewise.
125116         * modules/vasnprintf: Likewise.
125117         * MODULES.html.sh: Add alloca-opt.
125119 2004-09-28  Simon Josefsson  <jas@extundo.com>
125121         * gnulib-tool: New parameter --lgpl, to asseert that modules are
125122         LGPL, and to replace license template from GPL to LGPL.
125124 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125126         * modules/dummy: Change license to LGPL.
125128 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125130         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
125132 2004-09-24  Simon Josefsson  <jas@extundo.com>
125134         * modules/minmax (License): Change from GPL to LGPL.
125136 2004-09-23  Simon Josefsson  <jas@extundo.com>
125138         * gnulib-tool (--import): Typo.
125140 2004-09-23  Simon Josefsson  <jas@extundo.com>
125142         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
125144 2004-09-22  Bruno Haible  <bruno@clisp.org>
125146         * modules/*: Add 'License' field.
125147         * gnulib-tool: Accept --extract-license option.
125148         (func_get_license): New function.
125150 2004-09-21  Bruno Haible  <bruno@clisp.org>
125152         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
125153         Reported by Simon Josefsson.
125155 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125157         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
125158         gl_AC_TYPE_LONG_LONG.
125160 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125162         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
125164 2004-09-18  Simon Josefsson  <jas@extundo.com>
125165         and  Paul Eggert  <eggert@cs.ucla.edu>
125167         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
125168         calls with autoreconf.  Define GL_LIB.
125170 2004-09-14  Karl Berry  <karl@gnu.org>
125172         * config/srclist.txt: unsync setenv.c, sigh.
125174 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125176         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
125177         Problem reported by Bruno Haible in:
125178         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
125180 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125182         * config/srclist.txt: Comment out argp-pvh.c.
125184 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
125186         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
125187         in case some system header has #define'd it.  Problem reported by
125188         Soeren D. Schulze in
125189         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
125191 2004-09-09  Karl Berry  <karl@gnu.org>
125193         * regex.[ch]: delete from the root.  These were supposed to be
125194                 synced with emacs cvs, but this has not happened for about
125195                 a year, and anyway nothing else uses emacs regex.[ch].
125196                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
125197                 lib/regex[.ch] is untouched.
125199 2004-09-09  Bruno Haible  <bruno@clisp.org>
125201         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
125203 2004-09-09  Bruno Haible  <bruno@clisp.org>
125205         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
125206         modifications.
125207         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
125209 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125211         * modules/xvasprintf: New file.
125212         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
125214 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125216         * lib/xvasprintf.h: New file.
125217         * lib/xvasprintf.c: New file.
125218         * lib/xasprintf.c: New file.
125220 2004-09-08  Bruno Haible  <bruno@clisp.org>
125222         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
125224 2004-09-08  Bruno Haible  <bruno@clisp.org>
125226         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
125227         length is > INT_MAX.
125228         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
125229         more.
125231 2004-09-08  Bruno Haible  <bruno@clisp.org>
125233         * lib/stdint_.h: New file, taken from GNU clisp.
125235 2004-09-08  Bruno Haible  <bruno@clisp.org>
125236             Oskar Liljeblad  <oskar@osk.mine.nu>
125238         * modules/stdint: New file.
125239         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
125241 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125243         Import from coreutils.
125244         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
125245         strings on unbounded length.  alloca's performance benefits aren't
125246         that important here.
125247         (V_STRDUP): Remove.
125248         (parse_with_separator): New function, with most of the internals
125249         of the old parse_user_spec.  Allow user to omit both user and group,
125250         for compatibility with FreeBSD.
125251         Clone only the user name, not the entire spec.
125252         Do not set *uid, *gid unless entirely successful.
125253         Avoid memory leak in some failing cases.
125254         Fix regression for USER.GROUP reported by Dmitry V. Levin in
125255         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
125256         (parse_user_spec): Rewrite to use parse_with_separator.
125258 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125260         * modules/userspec: Don't depend on alloca.
125262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125264         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
125266 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
125268         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
125269         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
125270         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
125272 2004-08-16  Simon Josefsson  <jas@extundo.com>
125274         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
125275         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
125276         Add --dry-run for --import.
125277         Let user provided command line parameters override configure.ac
125278         settings.
125280 2004-08-12  Simon Josefsson  <jas@extundo.com>
125282         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
125283         as discussed with Paul Eggert in threads rooted at
125284         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
125285         and
125286         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
125287         Before, the test was empty, and relied on ELIDE_CODE in source
125288         code.)
125289         (gl_PREREQ_GETOPT): New macro.
125290         (gl_GETOPT): Use them.
125292 2004-08-12  Simon Josefsson  <jas@extundo.com>
125294         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
125295         * lib/getopt_.h: Renamed from getopt.h.
125297 2004-08-12  Simon Josefsson  <jas@extundo.com>
125299         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
125300         Change default library name from libfoo to libgnu.
125301         Now, if you have a configure.ac that says:
125302                 gl_SOURCE_BASE(gl)
125303                 gl_M4_BASE(gl/m4)
125304                 gl_MODULES(error getopt etcetera)
125305                 gl_INIT
125306         you can import all you need by running:
125307                 ../gnulib/gnulib-tool --import
125309         * modules/getopt (Files): Rename getopt.h to getopt_.h.
125310         (Makefile.am): Rewrite, use logic from argz.
125311         (Include): Use <getopt.h> instead of "getopt.h".
125313 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125315         * modules/argp (Files): Add m4/unlocked-io.m4.
125316         (Depends-on): Add extensions.
125318 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125320         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
125321         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
125322         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
125323         Check for program_invocation_name, program_invocation_short_name,
125324         flockfile, funlockfile, features.h, _getopt_long_only_r.
125326 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125328         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
125329         its complicated substitute.
125330         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
125331         and program_invocation_name.
125332         (__argp_basename) [!_LIBC]: Remove; the only use was
125333         replaced by its body.
125334         (__argp_short_program_name): Change condition from
125335         !defined __argp_short_program_name to
125336         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
125337         to match argp-namefrob.h.
125338         (__argp_failure): Don't assume strerror_r returns char *.
125339         * lib/argp-parse.c (N_): Define unconditionally.
125340         (argp_default_options): Fill out initializers with 0 to avoid
125341         gcc warnings.
125343 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125345         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
125346         getopt1.c.
125348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125350         Merge from coreutils.
125352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
125354         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
125355         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
125357 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125359         Merge from coreutils.
125361         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
125362         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
125363         for Reliant Unix 5.43.
125365         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
125366         (union fooround): Use uintmax_t, not long int.
125367         The rest is a merge from libc:
125368         [defined _LIBC]: Include <shlib-compat.h>.
125369         (_obstack) [defined _LIBC]: Remove after 2.3.4.
125371         * lib/settime.c (settime): Recode to avoid warning with
125372         Sun Forte C 6U2.
125374         * lib/strverscmp.c: Convert to UTF-8.
125376 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125378         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
125379         m4/uintmax_t.m4.
125381 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125383         * modules/xalloc-die: New file.
125384         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
125386         * modules/md5 (Files): Add m4/uint32_t.m4.
125387         * modules/sha1: Renamed from modules/sha.
125388         (Files):
125389         Rename lib/sha.h to lib/sha1.h.
125390         Rename lib/sha.c to lib/sha1.c.
125391         Rename m4/sha.m4 to m4/sha1.m4.
125392         (lib_SOURCES): Likewise.
125393         (configure.ac): Rename gl_SHA to gl_SHA1.
125394         (Include): sha.h -> sha1.h.
125396 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125398         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
125399         * m4/sha1.m4: Renamed from sha.m4.
125400         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
125402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125404         * lib/obstack.h (obstack_empty_p):
125405         Don't assume that chunk->contents is suitably aligned.
125406         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
125407         Likewise. Problem reported by Benno in
125408         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
125410         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
125411         readable.  This could be improved further but it'd take some work.
125413 2004-08-08  Simon Josefsson  <jas@extundo.com>
125415         * modules/xgethostname (Depends-on): Remove exit and error (not
125416         used).
125418         * modules/getpass-gnu: Add getpass.h.
125419         (Depends-on): Add stdbool.
125420         * modules/getpass: Add getpass.h.
125422 2004-08-08  Simon Josefsson  <jas@extundo.com>
125424         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125425         Check getpass declaration.
125427 2004-08-08  Simon Josefsson  <jas@extundo.com>
125429         * lib/xgethostname.c: Don't include error.h (not used).
125431         * lib/getpass.h: Add.
125432         * lib/getpass.c: Include getpass.h first.
125434 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125436         * lib/xalloc-die.c: New file.
125437         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125438         All uses removed.
125439         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125440         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125441         xalloc-die.c.
125442         (_, N_, xalloc_die): Move to xalloc-die.c.
125443         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125444         so that we needn't mess with xalloc_msg_memory_exhausted.
125446         * lib/sha1.h: Renamed from sha.h.
125447         (SHA1_H): Renamed from _SHA_H.
125448         (sha1_ctx): Renamed from sha_ctx.
125449         (sha1_init_ctx): Renamed from sha_init_ctx.
125450         (sha1_process_block): Renamed from sha_process_block.
125451         (sha1_process_bytes): Renamed from sha_process_bytes.
125452         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125453         (sha1_read_ctx): Renamed from sha_read_ctx.
125454         (sha1_stream): Renamed from sha_stream.
125455         (sha1_buffer): Renamed from sha_buffer.
125456         * lib/sha1.c: Likewise; renamed from sha.c.
125457         Do not include <sys/types.h>.
125458         Include <stddef.h> rather than <stdlib.h>.
125460 2004-08-08  Bruno Haible  <bruno@clisp.org>
125462         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125463         FILESYSTEM_PREFIX_LEN.
125464         * lib/progreloc.c: Likewise.
125465         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125467 2004-08-06  Simon Josefsson  <jas@extundo.com>
125469         * modules/progname (Depends-on): Don't depend on stdbool.
125471 2004-08-06  Simon Josefsson  <jas@extundo.com>
125473         * modules/getsubopt: New file.
125474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125475         getsubopt.
125477 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125479         More merge from coreutils.
125481         * m4/utimens.m4, m4/utimecmp.m4: New files.
125482         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125483         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125484         prereq.m4, sha.m4: Import changes from coreutils.
125486 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125488         More merge from coreutils.
125489         * modules/raise, modules/readtokens0, modules/utimens:
125490         * modules/utimecmp, module/xnanosleep: New files.
125491         * modules/strftime: Add lib/strftime.h.
125492         Change include from <time.h> to "strftime.h".
125493         * modules/yesno: Add lib/yesno.h.
125494         * modules/backupfile: Remove lib/addext.c.
125495         * modules/euidaccess: Add stat-macros.h.
125496         * modules/canonicalize, modules/euidaccess,
125497         modules/filemode, modules/lchown, modules/makepath,
125498         modules/rmdir, modules/stat: Likewise.
125500 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125502         Merge from tar.
125503         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125504         SIZE_MAX is a valid preprocessor constant.
125505         (__argp_basename): Change from "#ifndef _LIBC"
125506         to "#ifndef __argp_short_program_name", so that
125507         we don't compile these functions for tar.
125509         More merges from coreutils.
125510         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125511         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125512         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125513         * lib/addext.c: Remove; no longer needed.
125514         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125515         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125516         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125517         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125518         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125519         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125520         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125521         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125522         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125523         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125524         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125525         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125526         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125527         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125528         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125529         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125530         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125531         Import changes from coreutils.
125533 2004-08-05  Simon Josefsson  <jas@extundo.com>
125535         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125537 2004-08-05  Simon Josefsson  <jas@extundo.com>
125539         * m4/getsubopt.m4: New file.
125541 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125543         Merge from coreutils.
125545         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125546         * m4/getcwd-path-max.m4: New files.
125548         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125549         FILESYSTEM_PREFIX_LEN ->
125550         FILE_SYSTEM_PREFIX_LEN.
125551         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125552         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125553         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125554         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125556         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125557         prerequisite modules now handle the DOS stuff.
125558         Don't check for unistd.h.
125560 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125562         Merge from coreutils.
125564         * lib/.gdb-history: Remove; this doesn't belong here.
125566         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125567         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125568         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125569         * lib/getcwd.c: New files.
125571         * lib/dirname.h: Include <stdbool.h>.
125572         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125573         for consistency with POSIX terminology.  All uses changed.
125574         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125575         (strip_trailing_slashes): Use bool for booleans.
125576         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125578         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125579         sometimes returns a positive errno value even when it succeeds.
125580         (print_errno_message) [!LIBC]: Fall back on strerror if
125581         __strerror_r fails.
125583         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125584         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125585         (longest_relative_suffix): New function.
125586         (path_concat): Use it.  Assume first argument is not NULL.
125587         Port to DOS.  Omit redundant separators.
125588         Report an error instead of returning NULL.
125589         Use mempcpy instead of memcpy.
125590         (xpath_concat): Remove: not declared or used.
125592         * lib/same.h: Include <stdbool.h>
125593         (same_name): Return bool, not int.
125594         * lib/same.c (same_name): Likewise.
125595         (errno): Don't declare; we assume C89 or better now.
125597         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125598         if not already defined.
125600         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125601         * lib/dup-safer.c (errno): Likewise.
125603 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125605         Merge from coreutils.
125606         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125607         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125608         * modules/path-concat: Don't depend on strdup.
125610 2004-08-03  Simon Josefsson  <jas@extundo.com>
125612         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125613         * lib/progname.h: Don't include stdbool.h.
125615 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125617         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125618         * MODULES.html.sh (func_all_modules): Remove fatal.
125620 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125622         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125624 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125626         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125627         working.
125629 2004-08-02  Simon Josefsson  <jas@extundo.com>
125631         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125632         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125633         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125635 2004-08-01  Simon Josefsson  <jas@extundo.com>
125637         * lib/xgetdomainname.c: Include stdlib.h, for free().
125639 2004-07-19  Bruno Haible  <bruno@clisp.org>
125641         * MODULES.html.sh (func_all_modules): Add dummy.
125643 2004-07-16  Simon Josefsson  <jas@extundo.com>
125645         * modules/dummy: New file.
125647 2004-07-16  Simon Josefsson  <jas@extundo.com>
125649         * lib/dummy.c: New file.
125651 2004-07-16  Bruno Haible  <bruno@clisp.org>
125653         * lib/backupfile.h: Add extern "C" for C++.
125654         * lib/closeout.h: Likewise.
125655         * lib/copy-file.h: Likewise.
125656         * lib/findprog.h: Likewise.
125657         * lib/full-write.h: Likewise.
125658         * lib/pathname.h: Likewise.
125659         * lib/progname.h: Likewise.
125660         * lib/stpcpy.h: Likewise.
125661         * lib/stpncpy.h: Likewise.
125662         * lib/strcase.h: Likewise.
125663         * lib/strstr.h: Likewise.
125664         * lib/xalloc.h: Likewise.
125666         * lib/mbswidth.h: Add extern "C" for C++.
125667         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125669 2004-07-13  Robert Millan  <robertmh@gnu.org>
125671         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125673 2004-07-09  Simon Josefsson  <jas@extundo.com>
125675         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125676         failed without this.)
125678 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125680         * modules/chown (Files): Add lib/fchown-stub.c, since
125681         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125683 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125685         * lib/fchown-stub.c: New file.
125687 2004-06-24  Jim Meyering  <jim@meyering.net>
125689         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125691 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125693         * modules/argz: Omit "#include".
125695         * MODULES.html.sh (func_all_modules): Add calloc, to match
125696         2004-06-01 addition of calloc module.
125698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125700         * m4/argz.m4: New file, which is autoupdated from libtool.
125702 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125704         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125705         libtool.
125707 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125709         * config/srclist-update: Don't insist on "USA." before the
125710         close-comment, as libtool omits the period and puts the */ on a
125711         separate line.
125712         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125713         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125715 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125717         * modules/argz: New file.
125718         * MODULES.html.sh (func_all_modules): Add argz.
125720 2004-06-12  Jim Meyering  <jim@meyering.net>
125721         and  Paul Eggert  <eggert@cs.ucla.edu>
125723         * modules/hash (Files): Add lib/xalloc.h.
125724         * modules/pipe (Depends-on): Add wait-process.
125725         * modules/stat (Depends-on): Add xalloc.
125726         * modules/userspec (Files): Add lib/userspec.h.
125727         * modules/xstrto
125729         Upgrade from gettext-0.13.
125730         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125731         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125732         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125734 2004-06-10  Jim Meyering  <jim@meyering.net>
125736         * lib/calloc.c: New file.
125738 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125740         * lib/getdate.y (yylex): Allow space between sign and number.
125741         Problem reported by Dan Jacobson.
125743 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125745         Merge from coreutils CVS.
125747         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125748         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125749         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125750         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125751         xstrtol.m4: Fix copyright date and/or serial number.
125753         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125754         See if we need an fchown replacement.
125755         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125756         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125757         and use the replacement function if we detect either defect.
125759         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125760         gl_UTIMECMP.
125762 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125763         and  Jim Meyering  <jim@meyering.net>
125765         Merge from coreutils CVS.
125767         * lib/stat-macros.h: New file, with contents from file-type.h
125768         and coreutils' system.h.
125769         * lib/file-type.c: Include "stat-macros.h".
125770         * lib/file-type.h (file_type): Move all macro definitions to new file,
125771         stat-macros.h.
125773         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125774         Wrap old code with this conditional.
125775         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125776         function that does not dereference symlinks.
125777         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125779         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125780         dependency problems.
125781         (xreadlink): Accept new arg SIZE, for efficiency.
125782         All decls and uses changed.
125783         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125785         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125786         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125788         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125789         sysexits.h.
125791 2004-06-01  Jim Meyering  <jim@meyering.net>
125793         * m4/calloc.m4: New file.
125795 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125798         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125799         Also, fix a typo in a diagnostic.
125801 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125803         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125804         or AC_FUNC_REALLOC.
125806 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125808         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125809         macros to be defined.
125810         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125811         the allocator returns NULL because the requested size is zero.
125813 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125815         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125816         var.  Add comment explaining why libc still defines it.  This
125817         merges the following patch from glibc:
125818         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125820 2004-05-20  Andreas Schwab  <schwab@suse.de>
125822         * m4/free.m4: Replace free if it not known to work, not the other
125823         way round.
125825 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125827         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125828         present in glibc since revision 1.1 of this file.
125829         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125830         obstack_alignment_mask, obstack_alloc, obstack_base,
125831         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125832         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125833         obstack_grow0, obstack_init, obstack_int_grow,
125834         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125835         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125836         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125837         nonexistent functions.
125839 2004-05-18  Karl Berry  <karl@gnu.org>
125841         * config/srclist.txt: break link for vasnprintf.c.
125843 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125845         Port obstack to the AS/400, where pointers are 16 bytes wide and
125846         you cannot cast an integer to a valid pointer.  This patch is
125847         currently waiting to be integrated into glibc; see
125848         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125850         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125851         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125852         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125853         (struct obstack): temp member is now a union of a pointer and
125854         an integer, instead of an integer.  All integer uses changed.
125855         This does not affect the physical layout of struct obstack,
125856         except on hosts (like the AS/400) where the size or alignment of
125857         void * is greater than that of ptrdiff_t.
125858         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125859         __STDC__)]: Store temporary in pointer member of union, not
125860         integer member.
125861         * lib/obstack.c: Include <stddef.h>, for offsetof.
125862         (struct fooalign): Remove; it doesn't need a name.
125863         (union fooround): Change double to long double, and add void *.
125864         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125865         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125866         not a macro.  Hence the values are always int; so remove all
125867         casts-to-int in uses.
125869 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125871         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125872         we can get this patch merged into glibc.
125874 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125875             Paul Eggert  <eggert@cs.ucla.edu>
125877         * m4/argp: Depend on alloca.
125879 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125880             Paul Eggert  <eggert@cs.ucla.edu>
125882         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125883         freecoding.
125885 2004-05-17  Bruno Haible  <bruno@clisp.org>
125887         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125888         precision that consists of a '.' followed by an empty digit string.
125889         Patch by Tor Lillqvist <tml@iki.fi>.
125891 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125894         for backward compatibility with older code.  We need our own
125895         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125896         it under some other name, and our alloca.h will define it.
125898 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125899             Derek Price  <derek@ximbiot.com>
125901         * lib/alloca.c: Include <alloca.h>, to get our interface.
125902         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125903         include <alloca.h> first.  Use C89 prototype for alloca; this
125904         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125905         Use #elif for simplicity, since we can assume C89 now.
125906         Don't try to source the system alloca.h since it will not be found
125907         and to prevent recursively including its replacement.
125908         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125909         * lib/regex.c: Likewise.
125911 2004-05-16  Derek Price  <derek@ximbiot.com>
125912             Paul Eggert  <eggert@cs.ucla.edu>
125914         getline cleanup.  This changes the getndelim2 API: both order of
125915         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125916         no delimiter).
125918         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125919         interface does that.
125920         (getline): Always use getdelim, so that we don't have two
125921         copies of this code.
125922         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125923         if available.
125924         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125925         (GETNDELIM2_MAXIMUM): New macro.
125926         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125927         instead of the old practice of delim2==0.  All callers changed.
125928         Return -1 on overflow, instead of returning junk.
125929         Do not set *linesize unless allocation succeeds.
125930         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125931         that we include sys/types.h.
125932         * lib/getnline.h: Likewise.
125933         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125934         (getndelim2): Reorder arguments.
125935         * lib/getnline.c (getnline, getndelim):
125936         Don't discard the NMAX argument.
125937         (getnline): Invoke getndelim, to avoid code duplication.
125938         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125939         of (size_t) -1 by callers of the getnline family.
125941 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125943         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125944         Check for gettimeofday.
125945         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125946         Check for settimeofday, stime.
125948 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125950         * lib/nanosleep.c (suspended): Change its type from int to
125951         sig_atomic_t volatile.
125952         (first_call): Make it private to rpl_nanosleep, and have it
125953         be zero initially as that's a bit faster.
125954         (my_usleep): Round up fractional times instead of truncating them,
125955         as this is the usual meaning for 'sleep'.
125957         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125958         doesn't work.
125959         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125960         (ENOSYS): Define if not defined.
125961         (settime): Fall back on stime if it exists and settimeofday fails.
125962         But don't bother with fallbacks if a method fails with errno == EPERM.
125964 2004-05-11  Jim Meyering  <jim@meyering.net>
125966         Prior to this change, the save_cwd caller required read access to the
125967         current directory on most systems (ones with the fchdir function).
125969         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125970         fails, try write-only, and finally, resort to using xgetcwd.
125972 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125974         * lib/obstack.c, obstack.h: Import changes from libc.
125976 2004-04-28  Bruno Haible  <bruno@clisp.org>
125978         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125979         also implicitly appends .exe to executables.
125980         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125981         accepts Windows pathnames.
125982         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125983         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125984         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125985         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125986         Reported by Derek Robert Price <derek@ximbiot.com>.
125988 2004-04-21  Karl Berry  <karl@gnu.org>
125990         * config/srclist.txt (localcharset.c): break sync.
125992 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125994         * m4/host-os.m4: Add a copyright notice.
125996 2004-04-20  Jim Meyering  <jim@meyering.net>
125998         Change UTILS_ to gl_ in AC_DEFINE'd names.
125999         Change utils_- and jm_-prefixed variables, too.
126000         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
126001         UTILS_FUNC_MKDIR_TRAILING_SLASH.
126002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
126004         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
126005         Don't emit trailing blanks.
126006         Also rename jm_-prefixed variables to have gl_ prefix.
126008         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
126009         Also rename jm_-prefixed variables to have gl_ prefix.
126011         * m4/jm-macros.m4: Reflect the renamings.
126012         * m4/prereq.m4: Likewise.
126014 2004-04-20  Jim Meyering  <jim@meyering.net>
126016         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
126017         memory.
126019 2004-04-20  Jim Meyering  <jim@meyering.net>
126020             Bruno Haible  <bruno@clisp.org>
126022         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
126023         memory when realloc fails.
126025 2004-04-19  Jim Meyering  <jim@meyering.net>
126027         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
126028         now that readutmp.c may call `free (0)'.
126030 2004-04-19  Bruno Haible  <bruno@clisp.org>
126032         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
126033         * m4/inttypes_h.m4: Likewise.
126034         * m4/stdint_h.m4: Likewise.
126035         * m4/intmax_t.m4: Likewise.
126036         * m4/uintmax_t.m4: Likewise.
126038 2004-04-18  Jim Meyering  <jim@meyering.net>
126040         * m4/prereq.m4: Don't forbid jm_ prefix.
126042         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
126043         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
126044         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
126045         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
126046         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
126047         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
126048         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
126049         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
126050         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
126051         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
126052         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
126053         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
126054         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
126055         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
126056         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
126057         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
126058         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
126059         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
126060         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
126062 2004-04-18  Jim Meyering  <jim@meyering.net>
126064         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
126065         failure, don't leak memory and do call END_UTMP_ENT.
126067 2004-04-16  Jim Meyering  <jim@meyering.net>
126069         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
126070         coreutils' stat program.
126071         (gl_PREREQ): Don't require jm_PREREQ_STAT.
126073 2004-04-11  Paul Eggert  <eggert@twinsun.com>
126075         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
126076         C89.
126077         (CHAR_BIT): Remove, since we assume C89.
126078         Include <stdint.h> if available, as per current Autoconf CVS advice.
126080 2004-03-31  Jim Meyering  <jim@meyering.net>
126082         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
126083         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
126084         * m4/xalloc.m4: Likewise.
126086 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126088         Merge from coreutils.
126090         * m4/inttostr.m4: New file.
126091         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
126092         Require AM_STDBOOL_H and gl_TIMESPEC instead.
126093         Require gl_CLOCK_TIME.
126094         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
126096 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126098         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
126099         not bool, to be more consistent with Unix conventions.
126100         Suggested by Bruno Haible.
126102         Merge from coreutils.
126104         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
126105         * lib/umaxtostr.c: New files.
126107         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
126108         the usual <time.h> dance.
126109         (get_date): Change signature to support fractional time stamps.
126110         All callers changed.
126111         * lib/getdate.y: Include "getdate.h" first, as we can now
126112         assume C89 and don't need to worry about 'const'.
126113         Similarly, include "unlocked-io.h" near start, not in middle.
126114         Include <limits.h>.
126115         (textint.value): Use long int rather than int.
126116         (textint.digits): Use size_t rather than int.
126117         (BILLION, LOG10_BILLION): New constants.
126118         (parser_control): New member rel_ns.  Members day_ordinal,
126119         time_zone, month, day, hour, minutes, rel_year, rel_month,
126120         rel_day, rel_hour, rel_minutes, rel_seconds
126121         are now long int, not int.  Member seconds is now struct timespec,
126122         not int.  New member timespec_seen.  Members dates_seen, days_seen,
126123         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
126124         not int.
126125         (%union.intval): Now long int, not int.
126126         New member timespec.
126127         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
126128         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
126129         (spec): Now is a timespec or an item list.
126130         (timespec, items): New nonterminals.
126131         (time, rel, relunit, number, get_date):
126132         Add support for fractional seconds.
126133         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
126134         (gmtime, localtime, mktime): Remove decls; not needed with C89.
126135         (to_hour): First arg is now long int, not int.
126136         (to_year): Returns long int, not int.
126137         Don't treat year -70 like 70.
126138         (tm_diff): Returns long int, not int.
126139         (lookup_word): Use bool instead of int when appropriate.
126140         (yylex): Use size_t for count, not int.
126141         Detect overflow when parsing large integer constants.
126142         Add support for fractions.
126143         (get_date): Make pointers 'const' if possible.
126144         Use more-portable code to detect integer overflow.
126145         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
126146         Don't use ctime; it's not reliable if the year has >4 digits.
126148         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
126149         This is for compatibility with BSD.
126151         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
126152         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
126153         From coreutils' system.h.
126155         * lib/userspec.c: Don't include "posixver.h".
126156         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
126157         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
126158         compatible extension.  Simplify code by removing a boolean int
126159         that was always nonzero if a string was nonnull.
126161 2004-03-30  Jim Meyering  <jim@meyering.net>
126163         Merge from coreutils.
126165         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
126166         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
126167         on some systems one must include <grp.h> before it.
126168         Reported by Christian Krackowizer.
126170 2004-03-30  Jim Meyering  <jim@meyering.net>
126172         Merge from coreutils.
126174         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
126176         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
126177         an empty input stream.
126179         * lib/readtokens.c: Include <stdbool.h>.
126180         (readtoken): Use `size_t' rather than int/long.
126181         All callers adjusted.
126182         Use `bool' rather than `int' where appropriate.
126183         Use memset rather than an explicit loop.
126184         Use x2nrealloc rather than xrealloc.
126185         Allow the use of `\0' as a delimiter.
126186         (readtokens): Likewise.
126187         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
126189 2004-03-30  Jim Meyering  <jim@meyering.net>
126191         * m4/realloc.m4: Remove file, since now it does no more than
126192         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
126193         the `configure.ac' section of module/realloc.
126194         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
126196 2004-03-30  Bruno Haible  <bruno@clisp.org>
126198         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
126199         nonnull.
126201 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126203         Merge changes to getloadavg.c from coreutils and Emacs.
126205         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
126206         Define to an expression, not to the empty string.
126207         Include cloexec.h and xalloc.h.
126208         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
126209         Use set_cloexec_flag rather than rolling our own.
126210         * lib/cloexec.c, lib/cloexec.h: New files.
126212 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126214         * m4/cloexec.m4: New file.
126216 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126218         * lib/getopt.h: Sync with libc CVS.
126220 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126221             Bruno Haible  <bruno@clisp.org>
126223         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
126224         mbswidth.
126226 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126227             Bruno Haible  <bruno@clisp.org>
126229         * lib/mbswidth.h: Include <wchar.h> only if
126230         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
126231         <wchar.h>.
126232         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
126234 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126236         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
126237         Sync with libc CVS.
126238         * lib/getopt_int.h: New file, also synced from libc.
126240 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126242         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
126243         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
126244         Bring back getopt.c, getopt.h, getopt1.c.
126246 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126248         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
126249         All uses changed.  Check for sa_sigaction member; this fixes
126250         a bug first reported by Jason Andrade in
126251         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126253 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126255         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
126256         '#if' expressions.  Unlike the code it replaces, it does not
126257         depend on (defined _SC_PAGESIZE).  However, it does depend on
126258         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
126259         first reported by Jason Andrade in
126260         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126262 2004-02-25  Simon Josefsson  <jas@extundo.com>
126264         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
126266 2004-02-25  Simon Josefsson  <jas@extundo.com>
126268         * lib/strdup.h: New file.
126269         * lib/strdup.c: Include it.
126270         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
126271         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
126273 2004-02-23  Karl Berry  <karl@gnu.org>
126275         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
126276         (from fencepost.gnu.org:/gd/gnuorg).
126278 2004-02-23  Karl Berry  <karl@gnu.org>
126280         * config/srclistvars.sh (GNUORG) [karl]: redefine.
126281         * config/srclist.txt: add maintain/standards documents.
126283 2004-02-18  Bruno Haible  <bruno@clisp.org>
126285         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
126286         Reported by Derek Robert Price <derek@ximbiot.com>.
126288 2004-02-16  Karl Berry  <karl@gnu.org>
126290         * config/mkinstalldirs, install-sh: update from automake.
126292 2004-02-06  Karl Berry  <karl@gnu.org>
126294         * m4/po.m4: update from gettext 0.14.1.
126296 2004-02-06  Karl Berry  <karl@gnu.org>
126298         * lib/config.charset: update from gettext 0.14.1.
126300 2004-02-05  Paul Eggert  <eggert@twinsun.com>
126302         Add comments and code, prompted by suggestions from Bruno Haible
126303         for sh-quote.
126304         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
126305         describing the enum quoting_style values.
126306         * lib/quotearg.c (quotearg_alloc): New function.
126307         (quotearg_buffer_restyled): Treat lone { and } as special.
126308         Treat = as special.  Work around bug with older shells
126309         that "see" a '\' that is really the 2nd byte of a multibyte char.
126310         Quote empty string with shell_quoting_style.
126312 2004-02-03  Bruno Haible  <bruno@clisp.org>
126314         * m4/pipe.m4: New file, from GNU gettext.
126316 2004-02-03  Bruno Haible  <bruno@clisp.org>
126318         * lib/pipe.h: New file, from GNU gettext.
126319         * lib/pipe.c: New file, from GNU gettext.
126321 2004-01-27  Bruno Haible  <bruno@clisp.org>
126323         * m4/execute.m4: New file, from GNU gettext.
126325 2004-01-27  Bruno Haible  <bruno@clisp.org>
126327         * lib/execute.h: New file, from GNU gettext.
126328         * lib/execute.c: New file, from GNU gettext.
126329         * lib/w32spawn.h: New file, from GNU gettext.
126331 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126333         Merge from diffutils.
126335         * lib/file-type.c (file_type): Add typed memory objects.
126336         * lib/file-type.h (S_TYPEISTMO): New macro.
126338         * lib/c-stack.h (c_stack_action): Remove argv argument.
126339         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
126340         (die): Don't calculate message unless segv_action returns.
126341         (get_stack_location, min_address_from_argv, max_address_from_argv,
126342         volatile stack_base, volatile_stack_size): Remove.
126343         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
126344         that every segmentation violation is a stack overflow.  (Ouch!)
126345         See Debian bug 136249 (still outstanding) for more info about why
126346         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
126348 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126350         Exit-status fix from coreutils.
126352         Use exit_failure consistently in place of EXIT_FAILURE,
126353         so that program exit statuses are consistent on failure.
126355         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
126356         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
126357         * lib/argmatch.h: Comment fix to match the above.
126358         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
126359         Now a macro referring to exit_failure, instead of a separate
126360         variable.  Include "exitfail.h" to get it.
126361         * lib/xstrtol.h: Include "exitfail.h".
126362         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
126364         * lib/long-options.c (parse_long_options): Use prototype
126365         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
126366         for clarity.
126368 2004-01-21  Jim Meyering  <jim@meyering.net>
126370         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
126371         so as not to conflict with a different-sized __mktime_internal
126372         function in GNU libc.
126373         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
126374         Problem building statically-linked `ls' reported by Michael Brunnbauer.
126376 2004-01-20  Karl Berry  <karl@gnu.org>
126378         * config/config.guess: update from config.
126380         * config/srclistvars.sh: GNUWWWLICENSES for karl.
126382 2004-01-20  Bruno Haible  <bruno@clisp.org>
126384         Safer stack allocation.
126385         * lib/setenv.c: Include allocsa.h.
126386         (alloca): Remove fallback definition.
126387         (freea): Remove macro.
126388         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
126389         instead of freea.
126391 2004-01-20  Bruno Haible  <bruno@clisp.org>
126393         * m4/eealloc.m4: New file, from GNU gettext.
126395 2004-01-20  Bruno Haible  <bruno@clisp.org>
126397         * m4/allocsa.m4: New file, from GNU gettext.
126399 2004-01-20  Bruno Haible  <bruno@clisp.org>
126401         * lib/xallocsa.h: New file, from GNU gettext.
126402         * lib/xallocsa.c: New file, from GNU gettext.
126404 2004-01-20  Bruno Haible  <bruno@clisp.org>
126406         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
126408 2004-01-20  Bruno Haible  <bruno@clisp.org>
126410         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
126411         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
126412         specially.
126414 2004-01-20  Bruno Haible  <bruno@clisp.org>
126416         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
126417         patch.
126419 2004-01-20  Bruno Haible  <bruno@clisp.org>
126421         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126423 2004-01-20  Bruno Haible  <bruno@clisp.org>
126425         * lib/eealloc.h: New file.
126427 2004-01-20  Bruno Haible  <bruno@clisp.org>
126429         * lib/binary-io.h: Avoid warnings on Cygwin.
126431 2004-01-20  Bruno Haible  <bruno@clisp.org>
126433         * lib/allocsa.h: New file, from GNU gettext.
126434         * lib/allocsa.c: New file, from GNU gettext.
126436 2004-01-18  Karl Berry  <karl@gnu.org>
126438         * doc/gpl.texi, doc/lgpl.texi: new files.
126440 2004-01-18  Karl Berry  <karl@gnu.org>
126442         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126443         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126445 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126447         Merge from coreutils.
126449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126450         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126451         (gl_DEFAULT_POSIX2_VERSION): Move
126452         the documentation from 'configure' into 'config.hin',
126453         so that 'configure --help' isn't burdened by it and
126454         we don't have to worry about its formatting there.
126455         Reword the documentation so that it's more succinct
126456         and can be run together into a single paragraph.
126457         * m4/same.m4 (gl_SAME): Check for pathconf.
126459 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126461         Merge from coreutils.
126463         * lib/posixver.c: Include posixver.h.
126465         * lib/same.c: Include <stdbool.h>, <limits.h>.
126466         (_POSIX_NAME_MAX): Define if not defined.
126467         (MIN): New macro.
126468         (same_name): If file names are silently truncated, report
126469         that the file names are the same if they are the same after
126470         the silent truncation.
126472         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126473         conversion function.
126474         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126475         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126476         longer needed.
126478 2004-01-15  Jim Meyering  <jim@meyering.net>
126480         Merge from coreutils.
126482         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126483         if no library is required.
126484         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126485         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126486         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126487         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126488         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126489         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126490         value, $ac_cv_search_crypt, if it's "none required".
126491         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126492         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126493         not gl_FUNC_GETLOADAVG.
126494         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126495         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126497 2004-01-15  Jim Meyering  <jim@meyering.net>
126499         Merge from coreutils.
126501         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126502         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126503         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126505         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126506         optional configure-time default.
126508         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126510         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126512 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126514         Merge from coreutils.
126516         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126517         value, $ac_cv_search_nanosleep, if it's "none required".
126519 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126521         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126522         with like-named macro in fnmatch.c.
126523         (EXT): Use an internal constant instead.
126525         Merge fnmatch patches from glibc.
126526         * lib/fnmatch.c (mbsinit): Remove define.
126527         Add libc_hidden_ver (__fnmatch, fnmatch).
126528         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126529         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126531 2004-01-14  Karl Berry  <karl@gnu.org>
126533         * config/install-sh: update from automake.
126535 2004-01-13  Karl Berry  <karl@gnu.org>
126537         * config/install-sh: update from automake.
126539 2004-01-09  Karl Berry  <karl@gnu.org>
126541         * config/install-sh: update from automake.
126543 2004-01-05  Karl Berry  <karl@gnu.org>
126545         * config/config.{sub,guess}: update from config.
126547 2003-12-31  Karl Berry  <karl@gnu.org>
126549         * config/depcomp: update from automake.
126551 2003-12-14  Karl Berry  <karl@gnu.org>
126553         * lib/config.charset: update from gettext-runtime.
126555 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126557         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126558         Bug reported by Alfred M. Szmidt.
126560 2003-12-03  Bruno Haible  <bruno@clisp.org>
126562         * m4/gettext.m4: Upgrade from gettext-0.13.
126563         * m4/po.m4: Upgrade from gettext-0.13.
126564         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126565         * m4/intmax.m4: New file, from gettext-0.13.
126566         * m4/printf-posix.m4: New file, from gettext-0.13.
126568 2003-11-29  Karl Berry  <karl@gnu.org>
126570         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126572 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126573             Bruno Haible  <bruno@clisp.org>
126575         * lib/printf-parse.h: Don't include sys/types.h.
126576         (ARG_NONE): New macro.
126577         (char_directive): Change type of *arg_index fields to size_t.
126578         * lib/printf-parse.c: Don't include sys/types.h.
126579         (SSIZE_MAX): Remove macro.
126580         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126581         Remove unnecessary overflow check.
126582         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126583         fields.
126585 2003-11-25  Bruno Haible  <bruno@clisp.org>
126587         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126589 2003-11-25  Bruno Haible  <bruno@clisp.org>
126591         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126592         gt_TYPE_SSIZE_T.
126594 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126596         * modules/alloca: Remove dependency on xalloc.
126598 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126600         * lib/alloca.c: Remove dependency on xalloc module.
126601         (xalloc_die): Remove.
126602         (memory_full) [!defined emacs]: New macro.
126603         [!defined emacs]: Don't include xalloc.h.
126604         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126605         address arithmetic overflows.  Change datatypes a bit to avoid
126606         unnecessary casts.
126608 2003-11-22  Jim Meyering  <jim@meyering.net>
126610         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126611         s/size/size_t/.
126613 2003-11-21  Karl Berry  <karl@gnu.org>
126615         * config/config.{sub,guess}: update from config.
126617 2003-11-18  Karl Berry  <karl@gnu.org>
126619         * config/config.{sub,guess}: update from config.
126621         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126623 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126625         * README: Mention that S+T cannot overflow if S is the size of
126626         an existing object and T is sufficiently small.
126628 2003-11-17  Jim Meyering  <jim@meyering.net>
126630         On systems without utime and without a utimes function capable of
126631         dealing with a NULL struct utimbuf* argument, this utime replacement
126632         could -- in unusual circumstances -- leak a file descriptor.
126633         * lib/utime.c: Include <unistd.h> and <errno.h>.
126634         (utime_null): Be sure to close `fd' and to preserve errno.
126635         Reported by Geoff Collyer via Arnold Robbins.
126637 2003-11-17  Bruno Haible  <bruno@clisp.org>
126639         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126640         (Depends-on): Add xsize.
126642 2003-11-17  Bruno Haible  <bruno@clisp.org>
126644         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126646 2003-11-17  Bruno Haible  <bruno@clisp.org>
126648         * lib/vasnprintf.c (alloca): Remove fallback definition.
126649         (freea): Remove definition.
126650         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126651         Reported by Paul Eggert.
126653 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126654             Bruno Haible  <bruno@clisp.org>
126656         Protect against address arithmetic overflow.
126657         * lib/printf-args.h: Include stddef.h.
126658         (arguments): Change type of field 'count' to size_t.
126659         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126660         'unsigned int' where appropriate.
126661         * lib/printf-parse.h: Include sys/types.h.
126662         (char_directive): Change type of *arg_index fields to ssize_t.
126663         (char_directives): Change type of fields 'count', max_*_length to
126664         size_t.
126665         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126666         (SSIZE_MAX): Define fallback value.
126667         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126668         instead of 'int' where appropriate. Check a_allocated, d_allocated
126669         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126670         * lib/vasnprintf.c: Include xsize.h.
126671         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126672         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126673         overflow. Avoid wraparound when converting a width or precision from
126674         decimal to binary.
126676 2003-11-16  Bruno Haible  <bruno@clisp.org>
126678         Update from GNU gettext.
126679         * lib/printf-parse.c: Generalize to it can be compiled for wide
126680         strings.
126681         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126682         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126683         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126684         SNPRINTF): New macros.
126685         Don't include <alloca.h> if the file is used inside libintl.
126686         (local_wcslen): New function, for Solaris 2.5.1.
126687         (VASNPRINTF): Use it instead of wcslen.
126689 2003-11-16  Bruno Haible  <bruno@clisp.org>
126691         * lib/xsize.h (xmax): New function.
126692         (xsum, xsum3, xsum4): Declare as "pure" functions.
126694 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126696         * modules/xalloc (Files): Undo latest change, since xalloc.h
126697         no longer needs SIZE_MAX or PTRDIFF_MAX.
126699 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126701         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126702         gl_PTRDIFF_MAX.
126704 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126706         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126707         "return", to pacify some unknown compiler.  Problem reported
126708         by Joerg Schilling.
126710 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126712         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126713         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126714         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126715         heuristic is just as accurate as far as we know, and it removes a
126716         dependency on size_max.m4 and ptrdiff_max.m4.
126718 2003-11-11  Bruno Haible  <bruno@clisp.org>
126720         * modules/xsize (Files): Add m4/size_max.m4.
126721         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126723 2003-11-11  Bruno Haible  <bruno@clisp.org>
126725         * m4/size_max.m4: New file.
126726         * m4/ptrdiff_max.m4: New file.
126727         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126728         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126729         (gl_XALLOC): Invoke it.
126731 2003-11-11  Bruno Haible  <bruno@clisp.org>
126733         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126734         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126735         defined.
126737 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126739         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126740         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126741         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126742         From Bruno Haible.
126743         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126744         not (size_t) -1, since it's defined here.
126746 2003-11-09  Karl Berry  <karl@gnu.org>
126748         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126750 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126752         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126753         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126754         Reject sizes of exactly SIZE_MAX bytes.
126755         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126756         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126758 2003-11-05  Bruno Haible  <bruno@clisp.org>
126760         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126761         SIZE_MAX defined in <limits.h> on Solaris.
126763 2003-11-04  Jim Meyering  <jim@meyering.net>
126765         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126766         variable names, rather than @VAR@.
126767         * modules/poll: Likewise.
126769 2003-11-04  Bruno Haible  <bruno@clisp.org>
126771         * modules/xsize: New file.
126772         * modules/linebreak: Depend on xsize.
126773         * MODULES.html.sh (func_all_modules): Add xsize.
126775 2003-11-04  Bruno Haible  <bruno@clisp.org>
126777         * m4/xsize.m4: New file.
126779 2003-11-04  Bruno Haible  <bruno@clisp.org>
126781         * lib/xsize.h: New file.
126782         * lib/linebreak.c: Include xsize.h.
126783         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126784         argument for overflow.
126785         Suggested by Paul Eggert.
126787 2003-11-03  Karl Berry  <karl@gnu.org>
126789         * config/config.{guess,sub}: update from config.
126791 2003-11-03  Jim Meyering  <jim@meyering.net>
126793         * modules/userspec (lib_SOURCES): Add userspec.h.
126794         (Include): Add "userspec.h".
126795         Improve description.
126797 2003-11-03  Jim Meyering  <jim@meyering.net>
126799         * lib/userspec.c: Include "userspec.h".
126800         * lib/userspec.h: New file.
126802 2003-11-03  Bruno Haible  <bruno@clisp.org>
126804         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126806 2003-11-03  Bruno Haible  <bruno@clisp.org>
126808         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126809         available, to avoid (extremely rare) race condition.
126810         Suggested by Paul Eggert.
126812 2003-11-02  Karl Berry  <karl@gnu.org>
126814         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126816 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126818         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126819         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126820         (read_filesystem_list): Set and use me_type_malloced.
126821         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126822         whatever the type happens to be), for brevity and consistency.
126823         Check for size calculation overflow on Alphas running OSF/1.
126825 2003-10-31  Jim Meyering  <jim@meyering.net>
126827         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126829         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126831 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126832             Bruno Haible  <bruno@clisp.org>
126834         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126835         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126837 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126839         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126840         netbsd*-gnu*.  Suggested by Robert Millan.
126842 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126844         * modules/group-member: Depend on stdbool.
126846 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126848         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126850 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126852         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126853         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126854         after the 'gnu' in these cases.  This fixes some bugs in the
126855         previous change, and is based on suggestions by Robert Millan.
126857 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126859         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126860         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126861         no longer needed.
126862         * lib/quotearg.c (quotearg_n_options): Use it.
126863         * lib/group-member.c: Include <stdbool.h>.
126864         (free_group_info): Arg is now const *; don't free arg.
126865         (get_group_info): Now returns bool and accepts struct group_info *,
126866         rather than returning a malloc'ed struct group_info *.
126867         All uses changed.  Check for overflow in internal size calculation.
126869         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126870         rather than xmalloc/xrealloc.
126871         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126872         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126873         conformance bug: the old code used a pointer after freeing the
126874         storage that it addressed.
126875         * lib/hash.c (hash_initialize): Simplify the code by using
126876         xalloc_oversized rather than doing it by hand.
126877         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126878         the buffer preserved.  Use free and xmalloc instead.
126879         * lib/quotearg.c (quotearg_n_options): Likewise.
126880         Use a simpler test for size overflow.  Don't use xalloc_oversized
126881         because unsigned int might be wider than size_t (!); this suggests
126882         that we should switch from unsigned int to size_t for slot numbers.
126884 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126886         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126887         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126888         NetBSD kernels.  Requested by Richard Stallman.
126890 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126892         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126893         to allocate the returned structure.  Do not allocate a subarray,
126894         as x2nrealloc will do that.
126895         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126896         instead of xnrealloc.
126897         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126899 2003-10-27  Bruno Haible  <bruno@clisp.org>
126901         * lib/stdbool_.h: Better support for BeOS.
126903 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126905         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126906         now uses inline.
126908 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126910         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126911         callers that want to do their own size-overflow checking.  Include
126912         <stdbool.h>, since xalloc_oversized returns bool.
126913         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126914         to use xalloc_oversized.
126916         Add two functions x2realloc, x2nrealloc, for programs that grow
126917         arrays dynamically by doubling their sizes.
126918         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126919         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126920         New functions.
126922         Port to C99 semantics for 'inline' of external functions.
126923         Bug reported by Bruno Haible.
126924         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126925         with the old contents of xnmalloc.
126926         (xnmalloc, xmalloc): Use it.
126927         (xnrealloc_inline): New static inline function,
126928         with the old contents of xnrealloc.
126929         (xnrealloc, xrealloc): Use it.
126931         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126932         that.
126934 2003-10-26  Karl Berry  <karl@gnu.org>
126936         * config/srclist.txt (COPYING.DOC): no longer available from
126937         /gd/gnuorg; don't know where the ultimate source is.
126939 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126941         Fix several address-calculation bugs in the hash modules,
126942         plus some minor code cleanup.
126944         * lib/hash.h: Include <stdbool.h>, for bool.
126945         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126946         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126947         hash_get_n_entries, hash_get_max_bucket_length,
126948         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126949         hash_rehash): Use size_t rather than unsigned.
126950         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126951         hash_get_n_buckets_used, hash_get_n_entries,
126952         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126953         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126954         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126955         Likewise.
126956         (SIZE_MAX): Define if not defined.
126957         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126958         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126959         hash_print):
126960         Use const * when possible.
126961         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126962         (check_tuning): Fix bug: if tuning parameters were very close to
126963         0 or 1, rounding errors could have caused subscript violations.
126964         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126965         (hash_initialize): Add 'fail:' label
126966         to free table and return NULL, and use it to simplify code.
126967         Use calloc rather than clearing the storage ourself.
126968         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126969         buffer size calculations.
126970         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126971         Include <stddef.h>, for size_t.
126972         * lib/hash-pjw.c (hash_pjw): Likewise.
126973         Switch to method described by Bruno Haible.
126974         Include <limits.h>, for CHAR_BIT.
126975         (SIZE_BITS): New macro.
126977 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126979         * m4/getline.m4 (AM_FUNC_GETLINE):
126980         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126981         hosts.  Problem reported by Derek Robert Price in
126982         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126983         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126984         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126986 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126988         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126989         ceiling the allocation at NMAX bytes rather than silently
126990         discarding input bytes before NMAX is reached.  This makes
126991         a difference only if NMAX exceeds SIZE_MAX / 2.
126993         * lib/obstack.c: Merge from glibc.
126994         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126995         Add libc_hidden_def (_obstack_newchunk).
126996         (_obstack_free) [! defined _LIBC]: Remove.
126997         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126998         a clone of the function body.
126999         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
127000         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
127002         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
127003         glibc.
127004         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
127005         arg to memcpy.
127007         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
127008         (obstack_ptr_grow_fast, obstack_int_grow_fast):
127009         Don't use lvalue casts, as GCC plans to remove support for them
127010         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
127011         was also present in the non-GCC version, indicating that this
127012         code had always been buggy and had never been widely used.
127013         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
127014         Use the fast variant of each macro, rather than copying the
127015         definiens of the fast variant; that way, we'll be more likely to
127016         catch future bugs in the fast variants.
127018 2003-10-20  Bruno Haible  <bruno@clisp.org>
127020         * modules/wait-process: New file.
127021         * MODULES.html.sh (func_all_modules): Add wait-process.
127023 2003-10-20  Bruno Haible  <bruno@clisp.org>
127025         * m4/wait-process.m4: New file.
127027 2003-10-20  Bruno Haible  <bruno@clisp.org>
127029         * lib/wait-process.h: New file, from GNU gettext.
127030         * lib/wait-process.c: New file, from GNU gettext.
127032 2003-10-19  Jim Meyering  <jim@meyering.net>
127034         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
127035         HPUX 10.20.
127037 2003-10-18  Karl Berry  <karl@gnu.org>
127039         * config/config.guess: update from config.
127041 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127043         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
127044         (getgroups): First arg is int, not size_t.
127045         Don't let 'free' mangle errno.
127047 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127049         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
127051 2003-10-16  Karl Berry  <karl@gnu.org>
127053         * config/config.{guess,sub}: update from config.
127055 2003-10-16  Jim Meyering  <jim@meyering.net>
127057         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
127058         memcpy.
127060 2003-10-15  Paul Eggert  <eggert@twinsun.com>
127062         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
127063         (SIZE_MAX): Remove.
127064         (new_exclude, add_exclude_file): Initial size no longer needs to
127065         be a power of 2.
127066         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
127067         our own address arithmetic overflow checking.
127069         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
127070         (fnmatch): Do not alloca more than 2000 wide characters;
127071         instead, use malloc for large buffers.
127072         Check for address arithmetic overflow, and return -1
127073         with errno set to ENOMEM in that case.
127074         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
127075         (NEW_PATTERN): Do not alloca more than 8000 bytes;
127076         instead, return -1.  Check for address arithmetic overflow.
127078 2003-10-14  Paul Eggert  <eggert@twinsun.com>
127080         Handle invalid suffixes and overflow independently, so that
127081         callers can treat them independently as needed.  Fix some bugs in
127082         suffix handling, e.g., "100k@" was not diagnosed as an invalid
127083         suffix for a human-readable blocksize.  The major caller-visible
127084         change is the addition of a new
127085         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
127086         that both overflow and suffix chars were found.
127088         * lib/human.c (humblock): Don't check separately for invalid suffix
127089         char; that is xstrtoumax's job (now that its bug is fixed).
127090         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
127091         INTMAX_MAX]: New macros.
127092         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
127093         TYPE_MAXIMUM): New macros.
127094         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
127095         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
127096         if overflow occurs, as it's what __strtol does and it's more useful
127097         in practice.
127098         (__xstrtol): If __strtol reports some error other than ERANGE,
127099         reflect it to the caller as LONGINT_INVALID.  If it reports
127100         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
127101         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
127102         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
127103         value.
127104         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
127105         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
127106         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
127107         [defined UINTMAX_MAX]: New macros.
127109 2003-10-14  Bruno Haible  <bruno@clisp.org>
127111         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
127113 2003-10-14  Bruno Haible  <bruno@clisp.org>
127115         * m4/sig_atomic_t: New file, from GNU gettext.
127116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
127118 2003-10-14  Bruno Haible  <bruno@clisp.org>
127120         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
127121         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
127122         Also use volatile where needed.
127124 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127126         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
127127         Change maintainer from Bruno Haible to 'all'.
127129 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127131         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
127133 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127135         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
127136         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
127137         and define in terms of the other primitives.
127138         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
127139         (SIZE_MAX): Define if not already defined.
127140         (array_size_overflow): New function.
127141         (xalloc_die): Abort instead of exiting if 'error' returns.
127142         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
127143         (xmalloc, xrealloc): Use them.
127144         (xcalloc): Check for address arithmetic overflow.
127145         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
127146         a bit faster than strcpy.
127148 2003-10-10  Simon Josefsson  <jas@extundo.com>
127150         * modules/argp (Depends-on): Add restrict and strcase.
127152 2003-10-10  Simon Josefsson  <jas@extundo.com>
127154         * m4/argp.m4: Add AC_C_INLINE.
127156 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127158         Merge getpass from libc, plus a few fixes.
127160         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
127161         Include <stdbool.h>.
127162         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
127163         __fsetlocking to empty.
127164         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
127165         do include <bits/libc-lock.h>.
127166         Do not include <fcntl.h>; not needed.
127167         [_LIBC]: Include <wchar.h>.
127168         (NOTCANCEL_MODE): New macro.
127169         (flockfile, funlockfile) [_LIBC]: New macros.
127170         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
127171         [!_LIBC]: New macros.
127172         (call_fclose): New function.
127173         (getpass): Use it.  Save tty stream separately; this simplifies the
127174         code and makes it more reliable if stdin happens to equal stdout.
127175         Invoke __fsetlocking on tty.
127176         Handle thread cancellation if needed.
127177         Namespace cleanup (use __tcgetattr, __getline).
127178         Use bool for Booleans.
127179         [USE_IN_LIBIO]: Handle wide streams.
127180         [!_LIBC]: Unconditionally do the fseek, since we don't know what
127181         stream might go where.
127183         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
127184         doesn't have to include <stdio.h> before us.
127185         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
127186         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
127187         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
127188         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
127189         if not declared, so that we can use getpass.c code from libc without
127190         rewriting it.
127191         (flockfile, ftrylockfile, funlockfile): New macros.
127193 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127195         * modules/getpass: Depend on stdbool.
127197 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127199         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
127201 2003-10-07  Karl Berry  <karl@gnu.org>
127203         * config/config.{guess,sub}: update from config.
127205 2003-10-06  Jim Meyering  <jim@meyering.net>
127206             Bruno Haible  <bruno@clisp.org>
127208         This lets translators provide better translations for the
127209         "Written by ..." part of --version output.
127210         * lib/version-etc.h: Include stdarg.h.
127211         (version_etc_copyright): Declare as readonly.
127212         (version_etc): Make this function variadic with a NULL-terminated list
127213         of author name strings.
127214         (version_etc_va): New declaration.
127215         * lib/version-etc.c: Include stdarg.h, stdlib.h.
127216         (version_etc_copyright): Declare as readonly.
127217         (version_etc_va): New function. Provide a different translatable string
127218         for each possible number of authors < 10. Abbreviate when there are 10
127219         authors or more.
127220         (version_etc): Make this function variadic. Call version_etc_va.
127221         Suggestion from Gary V. Vaughan.
127223         * lib/long-options.h (parse_long_options): Change prototype: the
127224         authors string is moved to the end and becomes variadic.
127225         * lib/long-options.c: Include stdarg.h.
127226         (parse_long_options): Make this function variadic, too.
127227         Call version_etc_va, not version_etc.
127229 2003-10-06  Bruno Haible  <bruno@clisp.org>
127231         * modules/version-etc-2: Remove file.
127232         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
127234 2003-10-06  Bruno Haible  <bruno@clisp.org>
127236         * modules/fatal-signal: New file.
127237         * MODULES.html.sh (func_all_modules): Add fatal-signal.
127239 2003-10-06  Bruno Haible  <bruno@clisp.org>
127241         * m4/fatal-signal.m4: New file.
127242         * m4/signalblocking.m4: New file, from GNU gettext.
127244 2003-10-06  Bruno Haible  <bruno@clisp.org>
127246         * lib/version-etc-2.h: Remove file.
127247         * lib/version-etc-2.c: Remove file.
127249 2003-10-06  Bruno Haible  <bruno@clisp.org>
127251         * lib/fatal-signal.h: New file, from GNU gettext.
127252         * lib/fatal-signal.c: New file, from GNU gettext.
127254 2003-10-05  Paul Eggert  <eggert@twinsun.com>
127256         * README: Rework advice for preventing empty .o files.
127257         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
127258         not <sys/types.h>.
127260 2003-10-04  Karl Berry  <karl@gnu.org>
127262         * lib/argp*: update from libc.
127264 2003-10-04  Karl Berry  <karl@gnu.org>
127266         * config/config.{guess,sub}: update from config.
127268 2003-10-02  Bruno Haible  <bruno@clisp.org>
127270         * modules/lchown (Include): Add lchown.h.
127271         * modules/time_r (Include): Use "..." syntax.
127272         * modules/xgetdomainname (Include): Add xgetdomainname.h.
127274 2003-10-01  Simon Josefsson  <jas@extundo.com>
127276         * MODULES.html.sh (func_all_modules): Move gethostname from section
127277         'based on' to section 'lacking' POSIX:2001.
127279 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
127281         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
127282         to output mode on the same stream.
127284 2003-09-29  Paul Eggert  <eggert@twinsun.com>
127286         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
127287         Fix arg typo in previous patch.
127289 2003-09-28  Jim Meyering  <jim@meyering.net>
127291         * lib/error.c: Correct cpp indentation.
127293 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127295         * modules/free: New file.
127297 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127299         * m4/free.m4: New file.
127301 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127303         * lib/minmax.h (MIN, MAX)
127304         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
127305         Omit the special code that used __typeof__, since we worry that
127306         it could be more trouble than it's worth.  See:
127307         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
127308         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
127310         * lib/free.c: New file.
127312 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
127314         Trivial fixes to Makefile.am parts of module listings.
127315         * modules/strstr: Append strstr.h to lib_SOURCES.
127316         * modules/strcase: Likewise, for strcase.h.
127318 2003-09-27  Karl Berry  <karl@gnu.org>
127320         * config/mkinstalldirs: update from automake.
127322 2003-09-26  Paul Eggert  <eggert@twinsun.com>
127324         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
127325         (error_tail): Do not loop, reallocating temporary buffer, since
127326         the output cannot contain more wide characters than the input
127327         contains bytes, the size must be big enough already.  This avoids
127328         one potential size overflow calculation.  Check for size overflow
127329         when calculating temporary buffer size.  Free temporary buffer
127330         when done, if it was allocated with malloc; this plugs a memory
127331         leak.  Remove casts from void * to pointers, that are no longer
127332         needed now that we're assuming C89 or better.
127334         Merge error changes from glibc.
127336         * lib/error.c, error.h: Update copyright notice header to match glibc.
127337         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
127338         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
127339         Disable cancellation while printing error.
127340         * lib/error.h: Prepend __ to parameter names.
127342 2003-09-26  Jim Meyering  <jim@meyering.net>
127344         * lib/error.c (error_tail): Move some declarations
127345         into inner scope where the local variables are used.
127347 2003-09-26  Bruno Haible  <bruno@clisp.org>
127349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
127350         stpncpy().
127351         Don't define stpncpy through config.h; it's now done through stpncpy.h.
127353 2003-09-26  Bruno Haible  <bruno@clisp.org>
127355         * lib/stpncpy.h (gnu_stpncpy): New declaration.
127356         (stpncpy): Define as alias for gnu_stpncpy.
127357         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
127359 2003-09-25  Simon Josefsson  <jas@extundo.com>
127361         * lib/xgetdomainname.h: New file.
127362         * lib/xgetdomainname.c: New file.
127364 2003-09-25  Simon Josefsson  <jas@extundo.com>
127365             Bruno Haible  <bruno@clisp.org>
127367         * modules/getdomainname: New file.
127368         * modules/xgetdomainname: New file.
127369         * MODULES.html.sh (func_all_modules): Add getdomainname,
127370         xgetdomainname.
127372 2003-09-25  Simon Josefsson  <jas@extundo.com>
127373             Bruno Haible  <bruno@clisp.org>
127375         * m4/getdomainname.m4: New file.
127377 2003-09-25  Simon Josefsson  <jas@extundo.com>
127378             Bruno Haible  <bruno@clisp.org>
127380         * lib/getdomainname.h: New file.
127381         * lib/getdomainname.c: New file.
127383 2003-09-25  Karl Berry  <karl@gnu.org>
127385         * lib/argp-fmtstream.c, argp-help.c: update from libc.
127387 2003-09-25  Karl Berry  <karl@gnu.org>
127389         * config/install-sh: update from automake.
127391 2003-09-25  Bruno Haible  <bruno@clisp.org>
127393         * modules/version-etc-2: New file, from modules/version-etc with
127394         modifications.
127395         * MODULES.html.sh (func_all_modules): Add version-etc-2.
127397 2003-09-25  Bruno Haible  <bruno@clisp.org>
127399         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
127400         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
127402 2003-09-24  Simon Josefsson  <jas@extundo.com>
127404         * modules/xgethostname: Add xgethostname.h.
127406 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127408         * lib/linebuffer.c (freebuffer): Don't free the argument, just
127409         the buffer associated with the argument.  Bug reported by
127410         Simon Josefsson.
127412 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127414         * README: Document assumptions that 'int' is at least 32 bits
127415         wide, that integer arithmetic is 2's complement without overflow,
127416         that there are no holes in integer values, that adding sizes of
127417         two nonoverlapping objects can't overflow, and that all-bits-zero
127418         yields scalar zero.  Fix spelling and capitalization typos.
127420 2003-09-19  Karl Berry  <karl@gnu.org>
127422         * lib/argp.h: update from libc.
127424 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127426         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127427         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127428         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127430 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127432         * gnulib-tool: Use "test -h", not "test -L", for portability
127433         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127434         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127435         (sed_extract_prog): Issue s commands one-by-one, rather than
127436         using \| in one s command.
127438 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127440         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127441         input error, instead of returning NULL the next time we are called
127442         (and therefore losing track of errno).
127444 2003-09-16  Bruno Haible  <bruno@clisp.org>
127446         * gnulib-tool (func_create_testdir): Warn about duplicated
127447         dependencies.
127449 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127451         * modules/argmatch, modules/fatal, modules/obstack,
127452         modules/xalloc, modules/xgethostname: Sort dependencies by
127453         importance, not alphabetically.
127455 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127457         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127458         fails, so that the caller gets the proper errno.
127460         * lib/readutmp.c (read_utmp): Likewise.
127461         Check for fstat error.  Close stream and free storage
127462         when failing.
127464 2003-09-14  Karl Berry  <karl@gnu.org>
127466         * config/srclist.txt (strdup.c): disable for c89 changes.
127468 2003-09-14  Jim Meyering  <jim@meyering.net>
127470         * lib/getloadavg.c: Correct cpp indentation.
127471         * lib/strdup.c: Likewise.
127472         * lib/vasnprintf.c: Likewise.
127474 2003-09-14  Bruno Haible  <bruno@clisp.org>
127476         * modules/fwriteerror: New file.
127477         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127479 2003-09-14  Bruno Haible  <bruno@clisp.org>
127481         * lib/fwriteerror.h: New file.
127482         * lib/fwriteerror.c: New file.
127484 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127486         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127487         modules/xgethostname, modules/xalloc: Depend on exit.
127489 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127491         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127494         and AC_MINIX, too, so that their extensions are available.
127496         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127497         This macro has been superseded by gl_BACKUPFILE.
127499         More patches to assume C89 or better.
127501         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127503         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127504         unconditionally.
127505         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127506         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127507         Include <string.h>, <stdlib.h> unconditionally.
127508         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127509         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127510         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127511         headers or for string.h.
127512         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127513         or strtoul.
127515         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127516         headers.
127517         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127518         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127519         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127520         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127523         memcpy, memset.
127524         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127525         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127526         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127527         strtol.
127528         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127529         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127530         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127531         strtoul.
127533 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127535         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127536         * lib/obstack.c [!defined _LIBC]: Likewise.
127537         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127538         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127539         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127541         More changes to assume C89 or better.
127543         * lib/error.c (error_tail): Assume vprintf.
127545         * lib/argmatch.c (getenv): Remove decl.
127546         * lib/progreloc.c (get_full_program_name): Define via prototype.
127547         * lib/setenv.c (clearenv): Likewise.
127548         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127549         needed.
127550         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127551         (malloc, memcpy): Remove decls.
127552         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127553         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127554         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127555         (memcpy): Remove macro.
127556         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127557         (__P): Remove.  All uses removed.
127558         (PTR): Remove.  All uses changed to void *.
127559         (CHAR_BIT, NULL): Remove.
127560         (spaces, zeros, memset_space, memset_zero)
127561         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127562         Remove.
127563         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127564         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127565         Define with prototype.
127566         Remove now-unnecessary prototype decl.
127567         (extra_args_spec): Assume ANSI C.  All uses changed.
127568         (extra_args_spec_iso): Remove.
127569         (my_strftime, emacs_strftimeu): Define via prototype.
127570         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127571         unconditionally.
127572         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127573         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127574         (strtoul, strtol): Remove decls.
127575         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127576         LONG_MAX): Remove.
127577         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127578         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127579         (LOCALE_PARAM_PROTO): New macro.
127580         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127581         (INTERNAL (strtol), strtol): Define with a prototype.
127582         (PARAMS): Remove.  All uses removed.
127583         * lib/tempname.c: Include <string.h> unconditionally.
127584         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127585         * lib/xgethostname.c (main): Define with a prototype.
127586         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127587         Include <stdlib.h> unconditionally.
127588         (calloc, malloc, realloc, free): Remove decls.
127589         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127590         Include <stdlib.h> unconditionally.  Sort include file names.
127591         (strtod): Remove.
127592         (xstrtod): Define with a prototype.
127593         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127594         (strtol, strtoul): Remove decls.
127596 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127598         More patches to assume C89 or better.
127599         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127600         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127601         string.h, memchr, STDC_HEADERS.
127603 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127605         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127606         Include <stdlib.h>, <string.h> unconditionally.
127607         Remove now-unnecessary cast to char *.
127608         * lib/strnlen.c: Include <string.h> unconditionally.
127609         * lib/yesno.c (yesno): Define with a prototype.
127611 2003-09-11  Bruno Haible  <bruno@clisp.org>
127613         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127615 2003-09-10  Jim Meyering  <jim@meyering.net>
127617         * lib/error.c: Correct indentation of cpp directives.
127619 2003-09-10  Bruno Haible  <bruno@clisp.org>
127621         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127622         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127623         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127624         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127625         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127626         <stdlib.h> and <string.h> checks.
127627         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127628         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127630 2003-09-10  Bruno Haible  <bruno@clisp.org>
127632         * lib/strcspn.c: Include <string.h> unconditionally.
127633         * lib/strpbrk.c: Include <string.h> unconditionally.
127634         * lib/strstr.c: Include <string.h> unconditionally.
127635         * lib/unicodeio.c: Include <string.h> unconditionally.
127636         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127637         * lib/unsetenv.c: Likewise.
127638         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127639         * lib/yesno.c: Include <stdlib.h> unconditionally.
127640         (rpmatch): Add prototype.
127642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127644         More patches to assume C89 or better.
127645         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127646         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127647         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127648         or for string.h.
127649         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127650         stdlib.h.
127651         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127652         C headers.
127653         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127654         string.h.
127655         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127656         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127657         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127658         or for string.h.
127659         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127660         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127661         C headers.
127662         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127663         memcpy.
127664         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127665         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127666         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127667         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127668         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127669         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127670         string.h, free.
127671         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127672         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127673         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127674         C headers, or for string.h.
127675         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127676         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127677         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127678         headers, memory.h, stdlib.h, string.h, strings.h.
127679         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127680         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127681         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127682         strchr.
127683         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127684         headers, memory.h, string.h.
127685         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127686         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127687         free.
127688         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127689         headers.
127690         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127691         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127692         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127693         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127694         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127696 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127698         More K&R removal.
127700         * lib/acosl.c (main): Use a prototype.
127701         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127702         tanl.c: Likewise.
127704         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127706         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127707         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127708         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127709         with a prototype.
127710         * lib/getopt.c (const): Remove macro.
127711         Include <string.h> unconditionally.
127712         (my_index): Remove; all uses changed to strchr.
127713         (strlen): Remove decl.
127714         (exchange): Remove forward decl; no longer needed.
127715         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127716         Define with prototype.
127717         * lib/getopt1.c (const): Remove macro.
127718         (getopt_long, getopt_long_only, main): Define with prototype.
127720         * lib/getugroups.c: Include <string.h> unconditionally.
127722         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127723         (getusershell, setusershell, endusershell, readname, main):
127724         Define with prototypes.
127726         * lib/group-member.c: Include group-member.h first.
127727         Include <stdlib.h> unconditionally.
127729         * lib/hard-locale.c: Include hard-locale.h first.
127730         Include <stdlib.h>, <string.h> unconditionally.
127732         * lib/hash.c (free, malloc): Remove decls.
127733         Include <stdlib.h> unconditionally.
127735         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127736         (getenv): Do not declare.
127738         * lib/idcache.c: Include <string.h> unconditionally.
127740         * lib/long-options.c: Include long-options.h first, to test interface.
127741         Include <stdlib.h> unconditionally.
127743         * lib/makepath.c: Include makepath.h first, to test interface.
127744         Include <stdlib.h> and <string.h> unconditionally.
127746         * lib/linebuffer.c: Include <stdlib.h>.
127747         (free): Remove decl.
127749         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127750         stddef.h. rpl_malloc returns void *, not char *.
127751         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127752         prototype.
127754         * lib/md5.h: Include <limits.h> unconditionally.
127755         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127756         (__P): Remove; all uses removed.
127757         * lib/md5.c: Include "md5.h" first.
127758         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127759         md5_buffer, md5_process_bytes, md5_process_block):
127760         Define with prototypes.
127761         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127762         * lib/sha.c: Include "sha.h" first.
127763         Include <stdlib.h>, <string.h> unconditionally.
127765         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127766         * lib/memcmp.c (__ptr_t): Likewise.
127767         * lib/memrchr.c (__ptr_t): Likewise.
127768         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127769         Include <string.h> unconditionally.
127770         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127771         * lib/memchr.c: Include <stdlib.h> unconditionally.
127772         * lib/memchr.c (LONG_MAX): Remove.
127773         * lib/memrchr.c (LONG_MAX): Likewise.
127774         * lib/memchr.c (__memchr): Define via a prototype.
127775         * lib/memrchr.c (__memrchr): Likewise.
127776         * lib/memcmp.c (__P): Remove, and remove all uses.
127777         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127778         Remove forward decls; no longer needed.
127779         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127780         Use types required by C89 in prototype.
127782         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127783         * lib/savedir.c: Likewise.
127784         * lib/mkdir.c (free): Remove decl.
127785         * lib/rmdir.c (rmdir): Define with a prototype.
127786         * lib/savedir.c: Include savedir.h first, to test interface.
127788         * lib/mktime.c (STDC_HEADERS): Remove.
127789         Include <stdlib.h>, <string.h> unconditionally.
127791         * lib/modechange.c: Include <stdlib.h> unconditionally.
127792         (malloc): Remove decl.
127794         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127795         (free): Remove decl.
127797         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127798         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127799         (This type really should be intptr_t, but that's a C99ism.)
127800         (_obstack_memcpy): Remove: all uses changed to memcpy.
127801         Include <string.h> unconditionally.
127802         (struct obstack): Assume __STDC__ for types of members
127803         chunkfun, freefun, extra_arg.
127804         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127805         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127806         obstack_begin, obstack_specify_allocation,
127807         obstack_specify_allocation_with_arg, obstack_chunkfun,
127808         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127809         Remove unprototyped decls and the macros that use them.
127810         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127811         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127812         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127813         (defined __STDC__ && __STDC__)]:
127814         Remove nonprototyped code.
127815         Include <stdlib.h> unconditionally.
127816         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127817         _obstack_allocated_p, _obstack_free, obstack_free,
127818         _obstack_memory_used, print_and_abort):
127819         Define using prototypes.
127820         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127821         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127822         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127823         obstack_next_free, obstack_object_size, obstack_room) [0]:
127824         Remove unused, unprototyped code.
127826         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127828         * lib/physmem.c (physmem_total, physmem_available, main): Define
127829         with prototypes.
127831         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127832         (main): Define with a prototype.
127834         * lib/posixver.c (getenv): Remove decl.
127836         * lib/putenv.c (malloc): Returns void *, not char *.
127837         Include <string.h> unconditionally.
127838         (strchr, memcpy, NULL): Do not define.
127840         * lib/readtokens.c: Include readtokens.h first, to test interface.
127841         Include <stdlib.h>, <string.h> unconditionally.
127842         (init_tokenbuffer): Define with a prototype.
127844         * lib/regex.c (PARAMS): Remove.  All uses removed.
127845         All uses of _RE_ARGS removed, too.
127846         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127847         unconditionally.
127848         (bzero): Assume memset exists.
127849         (memcmp, memcpy, NULL): Remove.
127850         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127851         char, or assignments to local vars of type signed char.
127852         (init_syntax_once, PREFIX(extract_number_and_incr),
127853         PREFIX(print_partial_compiled_pattern),
127854         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127855         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127856         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127857         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127858         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127859         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127860         wcs_compile_range, byte_compile_range, truncate_wchar,
127861         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127862         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127863         count_mbs_length, wcs_re_match_2_internal,
127864         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127865         PREFIX(alt_match_null_string_p),
127866         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127867         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127868         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127869         now-unnecessary declaration, if any.
127870         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127871         regcomp, regexec):
127872         Remove now-unnecessary casts among pointer types.
127873         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127875         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127876         (free): Remove decl.
127878         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127880         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127881         (free): Remove decl.
127883         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127884         * lib/xgetcwd.c: Likewise.
127886         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127887         (free): Remove decl.
127889         * lib/strchrnul.c (strchrnul): Define with a prototype.
127890         Fix bug: c_in was not converted to char before searching.
127892         The following changes are not K&R related:
127894         * lib/group-member.h: Include <sys/types.h>, so that this file is
127895         self-contained.
127896         * lib/makepath.h: Likewise.
127898         * lib/getusershell.c (readname, default_index, line_size, readname):
127899         Use size_t, not int, for sizes.
127900         (readname): If the size overflows, report an error instead of
127901         looping forever.
127903 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127905         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127906         libc.
127908 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127910         * README: New section: portability guidelines.
127912 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127914         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127915         C89 spec.
127917 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127919         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127921 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127923         Assume C89 or better; remove K&R cruft.
127924         A few of these changes were first proposed by Derek Robert Price
127925         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127927         * lib/addext.c: Include <string.h> unconditionally.
127928         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127929         Don't declare getenv or malloc.
127931         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127932         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127933         (NULL): Remove.
127934         (find_stack_direction, alloca): Use prototypes.
127936         * lib/atexit.c (atexit): Define using a prototype.
127938         * lib/basename.c, dirname.c, stripslash.c:
127939         Include <string.h> unconditionally.
127941         * lib/bcopy.c: Include <stddef.h>.
127942         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127944         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127946         * lib/error.h (error, error_at_line, error_print_progname)
127947         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127948         * lib/error.c: Include error.h first, to check interface.
127949         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127950         (VA_START): Remove; all uses changeed to va_start.
127951         (exit, strerror): Remove decls.
127952         (error_print_progname): Prototype uncondionally.
127953         Don't include <errno.h>; no longer needed.
127954         (private_strerror): Remove.
127955         (error_tail): Always define.
127956         (error, error_at_line): Assume C89 or better; always use prototypes.
127957         * lib/fatal.c: Include "fatal.h" first, to test interface.
127958         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127959         (VA_START): Remove; all uses changed to va_start.
127960         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127961         this case.
127962         (exit): Remove decl.
127963         (fatal): Prototype unconditionally.  Assume va_start works.
127964         Abort at end, to pacify gcc.
127966         * lib/euidaccess.c (main): Define with a prototype.
127968         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127970         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127972         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127973         prototypes.
127974         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127975         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127976         (getenv): Remove decl.
127977         (fnmatch): Define using a prototype.
127978         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127979         (FCT): Define using a prototype.
127981         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127983         * lib/gethostname.c: Include <stddef.h>.
127984         (gethostname): Define with prototype.  Length is size_t, not int.
127986 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127988         Assume C89 or better; remove K&R cruft.
127989         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127990         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127991         string.h, getenv, malloc.
127992         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127993         headers.
127994         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127995         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127996         do not check for strerror.
127997         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127998         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127999         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
128000         do not check for doprnt or vprintf.
128001         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
128002         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
128004 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128006         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
128007         getversion.c should have been removed then, but was accidentally
128008         preserved.
128010         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
128011         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
128013 2003-09-08  Karl Berry  <karl@gnu.org>
128015         * config/config.sub, config.guess, srclistvars.sh: update from savannah
128016                 config, forget about prep.
128018         * config/depcomp, missing: update from automake.
128020 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128022         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
128023         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128025 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128027         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
128028         copy_tm_result.  Bug reported by Simon Josefsson in
128029         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128031 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128033         * m4/time_r.m4: New file.
128034         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
128035         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
128036         is. Check for timegm declaration.
128037         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
128038         Do not check for gmtime_r.
128039         Replace mktime if __mktime_internal does not exist and if mktime
128040         hasn't been replaced already.
128042 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128044         * lib/time_r.c, lib/time_r.h: New files.
128046         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
128047         __localtime_r.
128048         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
128049         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
128051         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
128052         __gmtime_r.
128053         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
128054         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
128055         Include <time_r.h>.
128057         * lib/timegm.c: Switch to glibc implementation, with the following
128058         changes:
128059         [defined HAVE_CONFIG_H]: Include <config.h>.
128060         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
128061         (__mktime_internal) [!defined _LIBC]: New decl.
128062         (__gmtime_r) [!defined _LIBC]: New macro and function.
128063         (timegm): Use a prototype, since gnulib assumes C89.
128064         Do not bother declaring tmp to be const, as it's not really usefu.
128065         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
128066         (timegm): Declare only if HAVE_DECL_TIMEGM.
128068 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128070         * MODULES.html.sh (func_all_modules): Add time_r.
128071         * modules/time_r: New file.
128072         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
128073         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
128075 2003-09-03  Paul Eggert  <eggert@twinsun.com>
128077         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
128078         Bug reported by Lute Kamstra in
128079         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
128081         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
128082         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
128083         course with correspondingly smaller numbers for tomorrow and
128084         yesterday.  From Tadayoshi Funaba.  Originally installed into
128085         sh-utils on 1999-08-07, but the patch got lost (I guess during the
128086         coreutils merge?).
128088 2003-08-31  Simon Josefsson  <jas@extundo.com>
128090         * modules/timegm: New file.
128091         * MODULES.html.sh (func_all_modules): Add timegm.
128093 2003-08-31  Simon Josefsson  <jas@extundo.com>
128095         * m4/timegm.m4: New file.
128097 2003-08-31  Simon Josefsson  <jas@extundo.com>
128099         * lib/timegm.h: New file.
128100         * lib/timegm.c: New file.  Based on
128101         wget-1.8.2/src/http.c:mktime_from_utc.
128103 2003-08-31  Karl Berry  <karl@gnu.org>
128105         * lib/argp.h: update from libc.
128107 2003-08-28  Bruno Haible  <bruno@clisp.org>
128109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
128110         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
128111         followed by '#define fnmatch fnmatch_posix' gives an error.
128113 2003-08-28  Bruno Haible  <bruno@clisp.org>
128115         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
128116         warning on QNX, which defines O_BINARY to 000000.
128118 2003-08-27  Jim Meyering  <jim@meyering.net>
128120         * m4/mkstemp.m4: Require that the system mkstemp be able to create
128121         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
128122         would fail after 32.  Reported by Danny Levinson.  Details here:
128123         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
128125 2003-08-24  Bruno Haible  <bruno@clisp.org>
128127         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
128128         MSVC7 <stdio.h> is included later.
128130 2003-08-22  Simon Josefsson  <jas@extundo.com>
128132         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
128134 2003-08-20  Karl Berry  <karl@gnu.org>
128136         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
128138 2003-08-20  Bruno Haible  <bruno@clisp.org>
128140         * modules/progname: New file.
128141         * MODULES.html.sh (func_all_modules): Add progname.
128143 2003-08-20  Bruno Haible  <bruno@clisp.org>
128145         * lib/progname.h: New file, from GNU gettext.
128146         * lib/progname.c: New file, from GNU gettext.
128147         * lib/progreloc.c: New file, from GNU gettext.
128149 2003-08-19  Jim Meyering  <jim@meyering.net>
128151         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
128152         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
128154 2003-08-19  Bruno Haible  <bruno@clisp.org>
128156         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
128157         more.
128159 2003-08-19  Bruno Haible  <bruno@clisp.org>
128161         * lib/xstrdup.c: Assume <string.h> exists.
128163 2003-08-18  Paul Eggert  <eggert@twinsun.com>
128165         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
128166         in makefile rules.
128168 2003-08-18  Jim Meyering  <jim@meyering.net>
128170         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
128171         * m4/lib-ld.m4: Likewise.
128173 2003-08-18  Jim Meyering  <jim@meyering.net>
128175         * lib/setenv.h: Indent nested cpp directive.
128176         * lib/vasnprintf.c: Remove trailing blanks.
128178 2003-08-17  Simon Josefsson  <jas@extundo.com>
128180         * modules/xstrndup: New file.
128181         * MODULES.html.sh (func_all_modules): Add xstrndup.
128183 2003-08-17  Simon Josefsson  <jas@extundo.com>
128185         * modules/argp: Fix autoconf macro name. Add more dependencies.
128187 2003-08-17  Simon Josefsson  <jas@extundo.com>
128189         * m4/xstrndup.m4: New file.
128191 2003-08-17  Simon Josefsson  <jas@extundo.com>
128193         * m4/argp.m4: New file.
128195 2003-08-17  Simon Josefsson  <jas@extundo.com>
128196             Bruno Haible  <bruno@clisp.org>
128198         * lib/xstrndup.h: New file.
128199         * lib/xstrndup.c: New file.
128201 2003-08-17  Bruno Haible  <bruno@clisp.org>
128203         * modules/strndup (Files, Include): Add lib/strndup.h.
128205 2003-08-17  Bruno Haible  <bruno@clisp.org>
128207         * modules/euidaccess (Files): Add lib/euidaccess.h.
128209 2003-08-17  Bruno Haible  <bruno@clisp.org>
128211         * lib/strndup.h: New file.
128213 2003-08-17  Bruno Haible  <bruno@clisp.org>
128215         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
128216         like AC_GNU_SOURCE.
128217         * modules/extensions (configure.ac): Comment out the invocation of
128218         gl_USE_SYSTEM_EXTENSIONS.
128220 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128222         Merges from coreutils, etc.
128223         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
128224         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
128225         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
128226         fixing a typo.
128227         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
128228         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
128230 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128232         Document merge from coreutils.
128233         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
128234         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
128235         * modules/utime: Add m4/utimes-null.m4.
128237 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128239         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
128240         space, undoing this 2003-08-12 change:
128241         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128243 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128245         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
128246         strtoul.c from libc, undoing this 2003-08-12 change:
128247         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128249 2003-08-16  Jim Meyering  <jim@meyering.net>
128251         Merges from coreutils.
128252         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
128253         prefix.  Adjust cache variables similarly.  Create 500 rather than
128254         just 300 files, to exercise bug on Darwin6.5, too.
128255         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
128256         $missing_dir.
128257         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
128258         AM_SYS_POSIX_TERMIOS.
128259         Reported by mkc@mathdogs.com.
128260         Also change use of $am_cv_sys_posix_termios
128261         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
128262         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
128263         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
128264         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
128265         in /proc/mounts until it finds one with matching device number.  This
128266         is unnecessary when the FILE argument *is* a mount point.  No stat call
128267         is necessary in that case.  So, disable the statvfs-testing code on
128268         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
128269         as RedHat bug# 84846.
128270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128271         to 1MB, so as not to render systems with no stack size limit (e.g.,
128272         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128273         Include <unistd.h>.  On some systems,
128274         it is required for the definition of _SC_PAGESIZE.
128276 2003-08-16  Jim Meyering  <jim@meyering.net>
128278         Merge from coreutils.
128279         * lib/xstrtoimax.c: #else #if -> #elif.
128280         * lib/xstrtoumax.c: Likewise.
128282 2003-08-16  Jim Meyering  <jim@meyering.net>
128284         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
128285         * m4/utimes.m4: Removed.
128286         * m4/utimes-null.m4: Renamed from utimes.m4.
128288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128289         to 1MB, so as not to render systems with no stack size limit (e.g.,
128290         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128291         Include <unistd.h>.  On some systems,
128292         it is required for the definition of _SC_PAGESIZE.
128294 2003-08-16  Jim Meyering  <jim@meyering.net>
128295         and Paul Eggert  <eggert@cs.ucla.edu>
128297         Merges from coreutils, etc.
128299         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
128300         using the latest version from cvs.  This avoids problems with #line
128301         directives using a vendor (Sun) compiler.
128302         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
128303         Don't set GETGROUPS_LIB here; now it's
128304         done via getgroups.m4's wrapper function.
128305         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
128306         rather than just in sh-util/configure.in, so that the
128307         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
128308         same.
128309         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
128310         AC_FUNC_GETLOADAVG where to find getloadavg.c.
128311         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
128312         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
128313         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
128314         Remove code that is now done by the newly-required macros.
128315         Append $(EXEEXT) to DF_PROG.
128316         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
128317         Do not invoke or require the following here,
128318         since prereq.m4 or some gnulib .m4 now does this for us:
128319         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
128320         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
128321         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
128322         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
128323         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
128324         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
128325         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
128326         AC_FUNC_OBSTACK.
128327         Do not replace the following functions, as this is now the job
128328         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
128329         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
128330         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
128331         atexit getpass, strdup, getpagesize.
128332         Replace 'raise'.
128333         Do not check for the following functions, as this is now the job
128334         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
128335         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
128336         setregid.
128337         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
128338         Check for sys/sysctl.h.
128339         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
128340         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
128341         of checking for ssize_t ourselves.
128343         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
128344         Require every macro that gnulib/modules/* suggests for us.
128345         (jm_PREREQ_ADDEXT): New macro.
128346         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
128347         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
128349         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
128350         (gl_PHYSMEM): Use it.
128351         Also check for `table' function.
128352         Check for new headers and functions.
128353         Add check for sys/sysmp.h.
128354         With suggestions from Kaveh Ghazi.
128355         Ignore headers that are present but cannot be compiled.  This
128356         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
128357         C 5.4.
128359 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128361         Document merge from coreutils.
128362         * modules/userspec: Depend on posixver.
128363         * modules/strftime: Depend on tzset.
128365 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128367         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
128368         rather than tab, after '#' in shell-script copyright notices.
128369         Suggested by Bruno Haible.
128371 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128373         * config/srclist-update: Use three spaces, rather than tab, after '#'
128374         in shell-script copyright notices.  Suggested by Bruno Haible.
128375         Remove unnecessary parenthesization in regular expression.
128377 2003-08-15  Jim Meyering  <jim@meyering.net>
128379         Merge from coreutils.
128380         * lib/xgethostname.c: Include <stdlib.h>.
128381         (xghostname): Don't exit for anything other than memory-related
128382         failure; just return NULL.
128383         * lib/userspec.c: Include "posixver.h".
128384         (parse_user_spec): Accept `.' as a separator only
128385         in pre-POSIX-200112 mode.
128386         * lib/strtoimax.c: Use #elif rather than #else #if.
128387         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
128388         Remove function, now that we can rely on a working tzset function.
128389         [!_LIBC]: Ensure that the required autoconf test has been run.
128390         [!defined _NL_CURRENT && HAVE_STRFTIME]:
128391         Use underlying_strftime for %r.
128392         * lib/sha.c: Merge in some clean-up and optimization changes from
128393         glibc.
128394         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
128395         Ensure that it is a multiple of 64.
128396         Rearrange loop exit tests so as to avoid performing an
128397         additional fread after encountering an error or EOF.
128398         * lib/realloc.c: Update copyright date.
128400 2003-08-15  Jim Meyering  <jim@meyering.net>
128401         and Paul Eggert  <eggert@twinsun.com>
128403         Merge from coreutils.
128404         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
128405         member but strut utmpx does not.  Needed for AIX 4.3.3.
128406         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
128408 2003-08-15  Jim Meyering  <jim@meyering.net>
128409         and Paul Eggert  <eggert@cs.ucla.edu>
128411         Merges from coreutils, etc.
128412         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
128413         Require gl_FUNC_TZSET_CLOBBER.
128414         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
128415         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
128416         members.
128418 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128420         Help the merge from coreutils.
128421         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128422         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128423         * m4/tzset.m4: Use it too.
128425 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128427         * modules/tzset: New file.
128429 2003-08-14  Jim Meyering  <jim@meyering.net>
128431         Merges from coreutils.
128432         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128433         variable names, rather than @FNMATCH_H@.
128434         * modules/alloca: Likewise for $(ALLOCA_H).
128436         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128437         the three copies of the literal target, `fnmatch.h'.
128438         * modules/alloca (alloca.h): Likewise.
128440 2003-08-14  Jim Meyering  <jim@meyering.net>
128442         Merge from coreutils.
128443         * m4/tzset.m4: New file.
128444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128445         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128446         otherwise, AIX 5.1 systems would end up using the latter.
128447         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128448         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128449         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128450         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128452 2003-08-14  Jim Meyering  <jim@meyering.net>
128454         Merge from coreutils.
128455         * lib/obstack.h: Whitespace changes.
128456         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128457         and xcalloc return values.
128458         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128459         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128460         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128461         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128462         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128463         error from mntctl.
128464         Use mntctl's return value to drive the entry-processing loop, since
128465         we can't rely on the value of the vmt_length member in the last
128466         entry.  On some systems doing so could result in exhausting
128467         virtual memory.  Based in part on a patch from Mike Jetzer.
128469 2003-08-14  Jim Meyering  <jim@meyering.net>
128470         and Paul Eggert  <eggert@twinsun.com>
128472         Merges from coreutils, plus other fixes.
128473         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128474         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128475         for credits and details.  Thanks to Kaveh Ghazi for helping
128476         to keep these files in sync.
128477         (ARRAY_SIZE): Define it.
128478         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128479         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128480         (memcasecmp): Don't assume size_t fits in unsigned int.
128481         Remove casts and duplicate code.
128482         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128483         (memcpy): Remove definition.
128484         Merge in some clean-up and optimization changes from glibc.
128485         [BLOCKSIZE]: Move definition to top of file.
128486         Ensure that it is a multiple of 64.
128487         Rearrange loop exit tests so as to avoid performing an
128488         additional fread after encountering an error or EOF.
128489         * lib/md5.h (md5_uintptr): Define.
128490         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128491         return to the initial working directory.  Preserve errno
128492         for caller.
128493         * lib/idcache.c: Include "xalloc.h".
128494         (xmalloc, xrealloc): Remove decls.
128495         (getuser): Remove casts no longer required in C89.
128496         * lib/human.c: Include stdio.h, for sprintf.
128497         * lib/group-member.c: Include "xalloc.h".
128498         (xmalloc, xrealloc): Remove decls.
128499         (get_group_info): Remove casts no longer required in C89.
128500         * lib/getusershell.c (readname): Remove casts no longer required in
128501         C89.
128502         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128503         * lib/getline.c: Whitespace fix, from coreutils.
128505 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128507         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128508         Check for isascii.
128510         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128511         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128512         Undo previous (whitespace-only) change.
128514 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128516         * lib/exclude.c: Include <ctype.h>
128517         (IN_CTYPE_DOMAIN): New macro.
128518         (is_space): New fn.
128519         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128520         and empty lines.
128522         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128523         Undo previous (whitespace-only) change.
128525 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128527         * config/srclist-update: Change update back to the old behavior,
128528         leaving whitespace alone.  Use one 'sed' command rather than a
128529         pipeline.
128530         (fixlicense): Now a variable, not a function.
128531         (remove_trailing_blanks): Remove.
128532         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128533         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128534         Undo previous (whitespace-only) change.
128536 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128538         Merge from coreutils.
128539         * modules/euidaccess: Add lib_SOURCES, include for new
128540         file euidaccess.h
128542 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128544         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128545         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128546         Normalize leading white space and remove trailing white space.
128548         Merge from coreutils
128549         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128551         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128552         0.12.1.  These files are now being upgraded automatically by
128553         ../config/srclist-update.
128555 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128557         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128558         Normalize leading white space and remove trailing white space.
128559         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128560         notice, as per ../config/srclist-update.
128562         Merge from coreutils.
128563         * lib/euidaccess.h: New file.
128564         * lib/euidaccess.c: Include it.
128565         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128566         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128567         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128569 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128571         * config/srclist-update: Add copyright notice.
128572         (remove_id_lines, remove_trailing_blanks): New constants.
128573         (fixfile): Use them to normalize spacing a bit in copied files.
128574         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128575         Normalize leading white space and remove trailing white space.
128577         * config/texinfo.tex: Sync with texinfo.
128579         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128580         strtoul.c from libc, to merge coreutils whitespace changes.
128582         * config/srclist.txt: Get the following m4 files from gettext:
128583         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128584         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128585         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128586         wint_t.m4.
128588 2003-08-12  Karl Berry  <karl@gnu.org>
128590         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128591         been made.
128593 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128595         * modules/gnu-source, m4/gnu-source.m4:
128596         Remove; we're assuming Autoconf 2.54 or later now.
128597         Suggested by Bruno Haible.
128598         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128600 2003-08-11  Bruno Haible  <bruno@clisp.org>
128602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128604 2003-08-11  Bruno Haible  <bruno@clisp.org>
128606         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128607         (vasnprintf): Use it instead of wcslen.
128609 2003-08-11  Bruno Haible  <bruno@clisp.org>
128611         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128612         value to ensure that _Bool promotes to int. Use #define for _Bool when
128613         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128615 2003-08-10  Karl Berry  <karl@gnu.org>
128617         * lib/regex.h: update from libc (whitespace fix).
128619 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128621         Merge some files from coreutils.  These changes were
128622         originally made by Jim Meyering.
128623         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128624         many older Unixes require this.
128625         * lib/alloca.c (alloca): Remove cast to argument of free;
128626         no longer needed in C89.
128627         * lib/alloca_.h, regex.h: Fix white space to match
128628         what GNU indent does.
128630 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128632         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128633         apparently Emacs's Unicode mode got confused before my 2003-08-05
128634         checkin.
128636 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128638         * m4/extensions.m4: New file.
128639         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128640         Require gl_USE_SYSTEM_EXTENSIONS.
128641         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128642         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128644 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128646         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128647         * modules/extensions, modules/gnu-source: New files.
128648         * modules/timespec, modules/unlocked-io: Depend on extensions.
128650 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128652         * modules/restrict: New file.
128653         * MODULES.html.sh (func_all_modules): Add restrict.
128654         * modules/regex: Depend on restrict.
128656 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128658         * m4/restrict.m4: New file.
128659         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128661 2003-08-07  Bruno Haible  <bruno@clisp.org>
128663         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128664         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128666 2003-08-07  Bruno Haible  <bruno@clisp.org>
128668         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128669         makes the module 'getndelim2' compatible with the module 'getline'.
128671 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128673         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128674         byte with "\201" to avoid glitches when editing that source file
128675         with multi-gnome-terminal.
128677 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128679         * lib/bumpalloc.h: Remove.
128681 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128683         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128684         * modules/bumpalloc: Remove.
128686 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128688         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128689         GNU coding style.
128691         Merge from coreutils.
128692         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128693         1. From glibc.
128694         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128695         from Karl Berry, implemented by Jim Meyering.
128696         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128697         from Dmitry V. Levin.
128698         Remove anachronistic cast of xrealloc.
128699         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128700         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128701         type. Otherwise, it wouldn't compile with at least /bin/cc on
128702         ymp-cray-unicos9.0.2.X.
128703         Combine two mostly-identical uses of alloca into one.
128704         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128706 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128708         [From Emacs.]
128710         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128711         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128712         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128713         obsolete NLIST_NAME_UNION.
128714         [__GNU__]: Undef BSD and FSCALE.
128715         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128717 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128719         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128720         an enum type, so that it's guaranteed to promote to int.  See:
128721         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128723 2003-08-03  Karl Berry  <karl@gnu.org>
128725         * config/depcomp: update from automake.
128727 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128729         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128730         (strerror): Don't assume that a printable int fits in 14 bytes.
128732 2003-07-31  Bruno Haible  <bruno@clisp.org>
128734         * modules/getpass-gnu: New file.
128735         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128737 2003-07-31  Bruno Haible  <bruno@clisp.org>
128739         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128741 2003-07-24  Karl Berry  <karl@gnu.org>
128743         * config/missing: update from automake.
128745 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128746             Bruno Haible  <bruno@clisp.org>
128748         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128749         * lib/getline.c (getline, getdelim): Likewise.
128750         Remove _GNU_SOURCE define; now it's defined in config.h through
128751         m4/getline.m4.
128753 2003-07-23  Karl Berry  <karl@gnu.org>
128755         * config/config.sub: update from prep.
128757 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128759         * modules/xalloc (Depends-on): Add exitfail.
128760         * modules/xmemcoll: Likewise.
128762 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128764         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128765         over-parenthesization in macros.
128767         Sync with coreutils.
128769         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128770         required by C99.
128772         Use `exit_failure' for xalloc and xmemcoll instead of their own
128773         private exit-failure variables.
128774         * lib/xalloc.h (xalloc_exit_failure): Remove.
128775         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128776         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128777         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128778         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128779         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128781 2003-07-20  Jim Meyering  <jim@meyering.net>
128783         * modules/closeout (Depends-on): Add exitfail.
128784         Suggestion from Bruno Haible.
128786 2003-07-19  Karl Berry  <karl@gnu.org>
128788         * config/config.sub: update from prep.
128790 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128792         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128793         Remove.
128794         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128795         to test that it can stand by itself.  Include "exitfail.h".
128796         Clients should set exit_failure instead.
128797         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128799 2003-07-18  Bruno Haible  <bruno@clisp.org>
128801         * modules/getndelim2: New file.
128802         * modules/getline: Share files with module getndelim2.
128803         * modules/getnline: Depend on getndelim2 instead of sharing files with
128804         it. Add getnline.c to lib_SOURCES.
128805         * MODULES.html.sh (func_all_modules): Add getndelim2.
128807 2003-07-18  Bruno Haible  <bruno@clisp.org>
128809         * m4/getndelim2.m4: New file.
128810         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128811         invoke gl_PREREQ_GETNDELIM2.
128812         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128813         gl_PREREQ_GETNDELIM2.
128814         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128815         gl_GETNDELIM2.
128817 2003-07-18  Bruno Haible  <bruno@clisp.org>
128819         * lib/getndelim2.h: New file.
128820         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128821         getndelim2.h.
128822         (getndelim2): Make non-static. Change return type to ssize_t.
128823         * lib/getline.h: Change argument names.
128824         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128825         * lib/getnline.c: Include getndelim2.h.
128827 2003-07-18  Andreas Schwab  <schwab@suse.de>
128829         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128831 2003-07-17  Karl Berry  <karl@gnu.org>
128833         * config/config.sub: update from prep.
128835 2003-07-17  Bruno Haible  <bruno@clisp.org>
128837         * modules/getnline: New file.
128838         * modules/getline: Add lib/getndelim2.c to source file list.
128839         * MODULES.html.sh (func_all_modules): Add getnline.
128841 2003-07-17  Bruno Haible  <bruno@clisp.org>
128843         * m4/getnline.m4: New file.
128845 2003-07-17  Bruno Haible  <bruno@clisp.org>
128847         * m4/Makefile.am.in: Remove file.
128848         * m4/Makefile.am: Remove file.
128849         * m4/Makefile.in: Remove file.
128851 2003-07-17  Bruno Haible  <bruno@clisp.org>
128853         * lib/getnline.h: New file.
128854         * lib/getnline.c: New file.
128855         * lib/getndelim2.c: New file, extracted from getline.c.
128856         (getndelim2): Renamed from getdelim2, with added nmax argument.
128857         * lib/getline.c: Include getndelim2.c.
128858         (getdelim2): Moved out to getndelim2.c.
128859         (getline, getdelim): Update.
128861 2003-07-17  Bruno Haible  <bruno@clisp.org>
128863         * lib/Makefile.am: Remove file.
128864         * lib/Makefile.in: Remove file.
128866 2003-07-17  Bruno Haible  <bruno@clisp.org>
128868         * configure.in: Remove file.
128869         * Makefile.in: Remove file.
128871 2003-07-17  Bruno Haible  <bruno@clisp.org>
128873         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128875 2003-07-16  Karl Berry  <karl@gnu.org>
128877         * config/srclist-update: was running fixlicense twice, which caused
128878                 texinfo.tex to be nullified for some reason.  Simplify,
128879                 $gplsrc is no longer needed as far as I can see?
128881 2003-07-16  Jim Meyering  <jim@meyering.net>
128883         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128885 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128887         * config/srclist.txt: Get the following files from gettext-runtime/intl
128888         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128889         ref-del.sin.  From Bruno Haible.
128890         * config/srclist-update (fixfile): Change grep pattern again, since the
128891         previous fix didn't work (there was another trailing $).  Use
128892         '[$]' to escape the $s.
128894 2003-07-15  Karl Berry  <karl@gnu.org>
128896         * lib/vasnprintf.c: update from gettext.
128898 2003-07-15  Karl Berry  <karl@gnu.org>
128900         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128901         gets expanded when surrounded by '$'.
128903 2003-07-15  Jim Meyering  <jim@meyering.net>
128905         * modules/save-cwd: Don't depend on error.  From Derek Price.
128907 2003-07-15  Jim Meyering  <jim@meyering.net>
128909         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128911 2003-07-14  Simon Josefsson  <jas@extundo.com>
128913         * modules/mempcpy: New file.
128914         * MODULES.html.sh (func_all_modules): Add mempcpy.
128916 2003-07-14  Simon Josefsson  <jas@extundo.com>
128918         * m4/mempcpy.m4: New file.
128920 2003-07-14  Simon Josefsson  <jas@extundo.com>
128922         * lib/mempcpy.h: New file.
128923         * lib/mempcpy.c: New file.
128925 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128927         * modules/getdate, modules/posixtm: Depend on mktime.
128929 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128931         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128932         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128933         unicodeio.c, unicodeio.h, unlocked-io.h:
128934         Switch from LGPL to GPL.
128936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128938         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128939         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128940         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128941         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128942         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128943         updated automatically by ../config/srclist-update.  This changes
128944         their license from LPGL to GPL.
128946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128948         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128949         assumed to refer to the root of the most recent stable gettext version.
128950         * config/srclistvars.sh: Add defaults for eggert.
128951         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128952         Match "This program" as well as "The program".  This is needed
128953         for gettext.
128955 2003-07-14  Jim Meyering  <jim@meyering.net>
128957         Don't emit diagnostics.  Let callers do that.
128958         * lib/save-cwd.c: Don't include "error.h".
128959         (save_cwd): Don't call error.  Ensure that errno is valid
128960         when returning nonzero.
128962         * lib/save-cwd.h (restore_cwd): Update prototype.
128963         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128964         Simplify.  Don't call error upon failure.  Let callers do that.
128965         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128966         when auditing is enabled.  But don't bother updating the #if.
128968 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128970         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128971         it breaks C++ compilation.
128972         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128974 2003-07-10  Simon Josefsson  <jas@extundo.com>
128976         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128978 2003-07-10  Jim Meyering  <jim@meyering.net>
128980         * m4/clock_time.m4: Remove trailing blank.
128981         * m4/intmax_t.m4: Likewise.
128983 2003-07-10  Jim Meyering  <jim@meyering.net>
128985         * lib/vasnprintf.c: Remove trailing blanks.
128986         Make cpp indentation consistent.
128988 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128990         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128991         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128992         Switch from LGPL to GPL.
128994 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128996         * config/srclist.txt: Sort sublists.  Add
128997         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128998         that differ from gnulib for one reason or another; we'd like this list
128999         to be smaller but for now let's document what we have.
129001 2003-07-08  Paul Eggert  <eggert@twinsun.com>
129003         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
129004         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
129005         and sweeter "eval x=$x".
129006         * config/srclist.txt: Get lib/argp* from glibc.
129008 2003-07-07  Paul Eggert  <eggert@twinsun.com>
129010         * lib/mktime.c: Fix some boundary cases and remove need for floating
129011         point.
129013         Issue a compile-time diagnostic if time_t is floating point, or if
129014         two's complement arithmetic is not in effect, or if arithmetic
129015         right shift does not propagate the sign.  These assumptions were
129016         all in the original code but they weren't checked.
129018         (TIME_T_MIDPOINT, verify): New macros.
129019         (__isleap): Remove; it has integer overflow problems.
129020         (leapyear): New function, without those problems.
129021         (ydhms_tm_diff): Remove; splitting into two parts.
129022         (ydhms_diff): New function, containing the arithmetic part of
129023         the old ydhms_tm_diff function.  Issue a compile-time
129024         diagnostic if we are not using C99 integer division.
129025         Avoid casts when possible.
129026         (guess_time_tm): New function, containing the checking part of
129027         the old ydhms_tm_diff function.  Return the new value, rather than
129028         the difference between it and the old.  Accept a new argument T
129029         so that *T specifies the old value.  Check for overflow in the result.
129031         (__mktime_internal): Use a time_t offset, not a long int offset.
129032         This undoes the 2003-06-04 change, which is no longer needed now
129033         that we have better overflow checking.
129034         (localtime_offset): Likewise.
129036         (__mktime_internal): Avoid harmful overflow on hosts where time_t
129037         and long are 64-bit but int is only 32-bit.
129038         (ydhms_diff): Use long int to store year1 and yday1.
129039         Issue a compile-time diagnostic if long int is not wide enough.
129041         (__mktime_internal): Use long int to store adjusted year and yday.
129042         Use plain C rather than preprocessor commands, if that doesn't
129043         affect efficiency.
129044         Check for overflow (and try to repair) after each probe
129045         rather than checking only at the very end.  This avoids some bugs
129046         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
129047         does not equal GMT offset at maximum time).
129048         Use integer to check for overflow rather than floating point; this
129049         is more portable to non-IEEE hosts, and is a tad faster.
129050         When we detect that we are oscillating between two values,
129051         don't check whether tm_isdst has the requested value, since
129052         we already know the answer.  When tm_isdst has the wrong value,
129053         use a different heuristic to find the right one, based on the
129054         extreme values actually observed in practice in tz2003a,
129055         rather than the (overly optimistic) "previous 3 calendar quarters".
129057         (not_equal_tm, print_tm, check_result): Use "const T" rather than
129058         "T const" to accommodate glibc style.
129059         (check_result): Use less-confusing report format.  "long" -> "long int.
129060         (main): Likewise.
129061         Don't loop if the iteration overflows time_t.
129062         Allow a negative step in the iteration.
129064 2003-07-06  Karl Berry  <karl@gnu.org>
129066         * config/depcomp: update from automake.
129067         * config/config.sub: update from prep.
129069 2003-07-03  Karl Berry  <karl@gnu.org>
129071         * config/config.guess: update from prep.
129073 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129075         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
129076         xreadlink.c now includes it unconditionally.
129078 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129080         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
129081         having it depend on HAVE_SYS_TYPES_H.
129083 2003-07-01  Bruno Haible  <bruno@clisp.org>
129085         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
129086         <sys/types.h> should be sufficient.
129087         Reported by Paul Eggert.
129089 2003-06-26  Karl Berry  <karl@gnu.org>
129091         * config/depcomp: update from automake.
129093 2003-06-26  Bruno Haible  <bruno@clisp.org>
129095         * modules/human: Depend on module stdbool.
129097 2003-06-25  Bruno Haible  <bruno@clisp.org>
129099         * modules/readlink: New file.
129100         * modules/xreadlink: Depend on it.
129101         * MODULES.html.sh (func_all_modules): Add readlink.
129103 2003-06-25  Bruno Haible  <bruno@clisp.org>
129105         * m4/readlink.m4: New file.
129107 2003-06-25  Bruno Haible  <bruno@clisp.org>
129109         * lib/readlink.c: New file.
129111 2003-06-22  Karl Berry  <karl@gnu.org>
129113         * config/srclist.txt: update mkinstalldirs from automake.
129114         * config/mkinstalldirs: update.
129116 2003-06-22  Bruno Haible  <bruno@clisp.org>
129118         Portability to mingw32.
129119         * m4/ssize_t.m4: New file, from GNU gettext.
129120         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
129121         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
129123 2003-06-22  Bruno Haible  <bruno@clisp.org>
129125         * modules/safe-read: Add m4/ssize_t.m4.
129126         * modules/xreadlink: Add m4/ssize_t.m4.
129128 2003-06-20  Bruno Haible  <bruno@clisp.org>
129130         Assume C89, so PARAMS isn't needed.
129131         * lib/unicodeio.h (PARAMS): Remove.
129132         * lib/unicodeio.c: Don't use PARAMS.
129134 2003-06-18  Karl Berry  <karl@gnu.org>
129136         * config/config.{guess,sub}: update from prep.
129138 2003-06-18  Jim Meyering  <jim@meyering.net>
129140         Merge changes from coreutils.
129141         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
129142         Remove explicit declarations of xmalloc and realloc.
129143         Include xalloc.h.
129144         (read_utmp): Remove anachronistic cast of xmalloc.
129146 2003-06-17  Paul Eggert  <eggert@twinsun.com>
129148         Assume C89, so PARAMS isn't needed.
129149         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
129150         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
129151         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
129152         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
129153         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
129154         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
129155         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
129156         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
129157         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
129158         lib/xstrtod.h, lib/xstrtol.h: Likewise.
129159         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
129160         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
129161         no longer needed. Anyway, config.h should always be included before any
129162         other file.
129164 2003-06-11  Simon Josefsson  <jas@extundo.com>
129166         * modules/sysexits: New file.
129167         * MODULES.html.sh (func_all_modules): Add sysexits.
129169 2003-06-11  Simon Josefsson  <jas@extundo.com>
129171         * lib/sysexit_.h: New file.
129173 2003-06-11  Derek Price  <derek@ximbiot.com>
129175         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
129176         necessary.
129178 2003-06-11  Bruno Haible  <bruno@clisp.org>
129180         * m4/sysexits.m4: New file.
129182 2003-06-10  Simon Josefsson  <jas@extundo.com>
129184         * lib/argp.h: New file, from glibc.
129185         * lib/argp-ba.c: New file, from glibc.
129186         * lib/argp-eexst.c: New file, from glibc.
129187         * lib/argp-fmtstream.c: New file, from glibc.
129188         * lib/argp-fmtstream.h: New file, from glibc.
129189         * lib/argp-fs-xinl.c: New file, from glibc.
129190         * lib/argp-help.c: New file, from glibc.
129191         * lib/argp-namefrob.h: New file, from glibc.
129192         * lib/argp-parse.c: New file, from glibc.
129193         * lib/argp-pv.c: New file, from glibc.
129194         * lib/argp-pvh.c: New file, from glibc.
129195         * lib/argp-xinl.c: New file, from glibc.
129197 2003-06-10  Simon Josefsson  <jas@extundo.com>
129199         * modules/strchrnul: New file.
129201 2003-06-10  Simon Josefsson  <jas@extundo.com>
129203         * modules/argp: New file.
129205 2003-06-10  Simon Josefsson  <jas@extundo.com>
129207         * m4/strchrnul.m4: New file.
129209 2003-06-10  Simon Josefsson  <jas@extundo.com>
129211         * lib/strchrnul.h: New file.
129212         * lib/strchrnul.c: New file.
129214 2003-06-10  Bruno Haible  <bruno@clisp.org>
129216         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
129218 2003-06-07  Karl Berry  <karl@gnu.org>
129220         * config/config.{guess,sub}: update from prep.
129222 2003-06-07  Jim Meyering  <jim@meyering.net>
129224         * modules/strtod: Use $(...) notation, not @...@ for
129225         AC_REPLACE'd variables.
129226         * modules/localcharset: Likewise.
129228 2003-06-07  Jim Meyering  <jim@meyering.net>
129230         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
129231         in place of my name in the copyright comment.
129232         Remove definition and uses of __P.
129234         From coreutils.
129235         * lib/stat.c: Don't declare xmalloc explicitly.
129236         Instead, include "xalloc.h".
129237         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
129238         xrealloc, and xcalloc return values.
129239         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
129240         Improve comment.
129241         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
129243 2003-06-07  Bruno Haible  <bruno@clisp.org>
129245         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
129246         avoid AC_CONFIG_LINKS.
129247         * modules/fnmatch (Makefile.am): Use explicit creation rule for
129248         fnmatch.h, to avoid AC_CONFIG_LINKS.
129249         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
129251 2003-06-07  Bruno Haible  <bruno@clisp.org>
129253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
129254         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
129255         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129256         directory.
129257         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
129258         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129259         directory.
129261 2003-06-06  Jim Meyering  <jim@meyering.net>
129263         Merge from coreutils.
129264         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
129265         Consolidate declarations and initializations of *_base* locals.
129267         Merge from coreutils.
129268         This avoids a core dump on systems without GNU putenv,
129269         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
129270         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
129271         (unsetenv): New static function, from GNU libc.
129272         (rpl_putenv): Use it.
129274         * lib/modechange.c: Remove trailing blanks.
129276         Merge from coreutils.
129277         * lib/fsusage.c: Remove declaration of statfs.
129278         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
129280         * lib/posixtm.c: Include <stdbool.h> unconditionally.
129282 2003-06-06  Jim Meyering  <jim@meyering.net>
129284         * lib/stdbool_.h: Renamed from stdbool.h.in.
129286 2003-06-06  Jim Meyering  <jim@meyering.net>
129287             Bruno Haible  <bruno@clisp.org>
129289         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
129290         Adjust Makefile.am snippet not to redirect directly to target.
129291         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
129293 2003-06-05  Paul Eggert  <eggert@twinsun.com>
129295         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
129296         mismatch, look in future quarters as well as past.  This fixes a
129297         bug when processing fall-backwards gaps immediately after a long
129298         period of daylight-saving time.
129300         * lib/mktime.c: Assume freestanding C89 or better.
129301         (HAVE_LIMITS_H): Remove.  Assume it's 1.
129302         (__P): Remove; not used.
129303         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
129304         (mktime, not_equal_tm, print_tm, check_result,
129305         main): Use prototypes.  Use const * where appropriate.
129306         (main): Fix typo in testing code that uncovered by above changes.
129307         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
129309 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129311         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
129312         locale.h, localeconv.  This merges changes from coreutils.
129314         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
129315         It can be removed after the next Autoconf is released.
129316         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
129317         needed.
129319 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129321         * lib/mktime.c: Fix Debian bug 177940
129322         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
129323         (localtime_offset): Now long int, not time_t, because we want it
129324         to be guaranteed to be signed.  All uses changed.
129325         (__mktime_internal): If overflow would occur when adding offset,
129326         don't add it.
129328         Merge 'human' changes from coreutils.  Rewrite to support
129329         locale-specific notations like thousands separators.
129330         * lib/human.c: Simplify authorship notice.
129331         Include human.h immediately after config.h.
129332         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
129333         <limits.h>: Do not include, since human.h does.
129334         (SIZE_MAX, UINTMAX_MAX): New macros.
129335         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
129336         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
129337         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
129338         (power_letter): Renamed from suffixes.
129339         (generate_suffix_backwards): Remove.
129340         (adjust_value): Now takes int style (because of human.h changes)
129341         and long double value (for greater precision on some platforms).
129342         (group_number): New function.
129343         (human_readable): Use it.  Use integer options, not enum.
129344         Put the options before the sizes in the arg list.
129345         Support all the new options.
129346         The old human_readable function has been removed;
129347         use inttostr.h instead.
129348         (human_readable, default_block_size, humblock):
129349         Use uintmax_t, not int, for block sizes.
129350         (human_readable_inexact, block_size_types): Remove.
129351         (block_size_opts): New constant.
129352         (human_options): Renamed from human_block_size, with new signature
129353         that allows block sizes up to UINTMAX_MAX.  All callers changed.
129354         * lib/human.h: Add copyright and authorship notice.
129355         Include <limits.h> and <stdbool.h> unconditionally.
129356         (PARAMS): Remove.  All uses removed.
129357         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
129358         (enum human_inexact_style): Remove tag; now a nameless enum.
129359         (human_floor, human_ceiling, human_round_to_even): Now have
129360         values 2, 0, 1 rather than -1, 1, 0.
129361         (human_group_digits, human_suppress_point_zero, human_autoscale,
129362         human_base_1024, human_SI, human_B): New constants.
129363         (human_readable_inexact, human_block_size): Remove.
129364         (human_readable): Size args are now uintmax_t, not int.
129365         (human_options): New decl.
129367         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
129368         unnecessary now that we assume C89 or better.  This change
129369         imported from coreutils.
129371         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129372         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
129373         in the 2003-05-30 sync from glibc.
129375         .h files should stand alone, but we shouldn't include <sys/types.h>
129376         if we can get away with just <stddef.h>.
129378         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
129379         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
129380         rather than <sys/types.h>, as we merely need size_t.
129381         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
129382         to get size_t.
129383         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
129384         Include <stdio.h>, to get FILE.
129385         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
129386         memcasecmp.h has included <stddef.h> and all we need is size_t.
129387         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
129388         our interface, instead of including <sys/types.h>
129390 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129392         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
129393         now, as glibc mktime is buggy on non-glibc systems.
129395 2003-06-03  Karl Berry  <karl@gnu.org>
129397         * config/config.sub: update from prep.
129399 2003-06-02  Paul Eggert  <eggert@twinsun.com>
129401         [from coreutils]
129402         Fix some minor time-related bugs with POSIX time arguments.
129403         Some valid time stamps were being rejected (notably -1, and
129404         time stamps before 1900 on 64-bit hosts).  And some invalid
129405         time stamps were being accepted, e.g. September 31.
129407         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
129408         that we can return (time_t) -1 successfully.
129409         * lib/posixtm.c: Likewise.
129410         [HAVE_STDBOOL_H]: Include <stdbool.h>.
129411         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
129412         (t): Remove static var.
129413         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
129414         of static var.  All uses changed.
129415         (year): Do not reject years before 1900; they can occur with
129416         64-bit time_t.
129417         (posix_time_parse): Do not check for out-of-range components;
129418         that is now the caller's responsibility, since our checks were
129419         only approximations.
129420         (posixtime): Use mktime to check for out-of-range components,
129421         since it knows them exactly.
129422         If mktime returns (time_t) -1, check whether an error actually occurred
129423         by invoking localtime on -1.
129424         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129425         posixtime failures better.
129426         Improve the test data (in comments only).
129428 2003-06-02  Karl Berry  <karl@gnu.org>
129430         * config/mkinstalldirs (version): new variable.
129431         (--version): new option.
129432         (usage): improve message.
129434 2003-05-30  Karl Berry  <karl@gnu.org>
129436         * lib/mktime.c: update from libc.
129438 2003-05-30  Bruno Haible  <bruno@clisp.org>
129440         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129441         * config/config.rpath: Upgrade to gettext-0.12.1.
129443 2003-05-30  Bruno Haible  <bruno@clisp.org>
129445         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129446         * m4/nls.m4: New file, from gettext-0.12.1.
129447         * m4/po.m4: New file, from gettext-0.12.1.
129448         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129450 2003-05-30  Bruno Haible  <bruno@clisp.org>
129452         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129453         * lib/localcharset.h: Likewise.
129454         * lib/localcharset.c: Likewise.
129456 2003-05-29  Karl Berry  <karl@gnu.org>
129458         * config/config.rpath: update from gettext.
129460 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129462         Assume the headers required for C89 freestanding compilers.
129463         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129464         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129465         * m4/human.m4 (gl_HUMAN): Likewise.
129466         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129467         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129468         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129469         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129470         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129471         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129473 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129475         Assume the headers required for C89 freestanding compilers.
129476         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129477         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129478         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129479         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129480         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129481         define, since <limits.h> is guaranteed to do that.
129482         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129483         * lib/exclude.c: Include <stdbool.h> unconditionally.
129484         * lib/tempname.c: Include <stddef.h> unconditionally.
129485         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129486         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129487         <stddef.h> does that.
129488         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129489         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129490         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129491         needed.
129492         * lib/xstrtol.c: Likewise.
129493         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129494         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129496         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129497         warnings on some platforms.
129499         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129500         arbitrarily.
129502 2003-05-26  Jim Meyering  <jim@meyering.net>
129504         Merge in a change from coreutils:
129505         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129506         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129507         that condition, rather than `-1' which is slightly misleading.
129508         Change the name of the cache variable to have the gl_ prefix.
129509         Prompted by a patch from Richard Dawe for DJGPP.
129511 2003-05-24  Karl Berry  <karl@gnu.org>
129513         * config/config.guess: update from prep.
129515 2003-05-22  Karl Berry  <karl@gnu.org>
129517         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129519 2003-05-20  Karl Berry  <karl@gnu.org>
129521         * config/config.guess: update from prep.
129523 2003-05-18  Karl Berry  <karl@gnu.org>
129525         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129526         might actually be set by the user.
129528         * config/depcomp, install-sh, mdate-sh: update from automake.
129530 2003-05-17  Bruno Haible  <bruno@clisp.org>
129532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129533         invalid expansion for AC_EGREP_CPP.
129534         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129535         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129536         Suggested by Akim Demaille <akim@epita.fr> in
129537         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129539 2003-05-12  Jim Meyering  <jim@meyering.net>
129541         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129542         the space-padded-by-default conversion specifiers, %e, %k, %l.
129544 2003-05-12  Bruno Haible  <bruno@clisp.org>
129546         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129547         the string is longer than 4 KB.
129549 2003-05-11  Karl Berry  <karl@gnu.org>
129551         * config/config.{guess,sub}: update from prep.
129553 2003-05-09  Bruno Haible  <bruno@clisp.org>
129555         * modules/error: Add m4/strerror_r.m4 to file list.
129557 2003-05-03  Bruno Haible  <bruno@clisp.org>
129559         Upgrade to Unicode-4.0.
129560         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129561         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129562         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129563         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129564         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129565         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129566         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129567         Change width of U+E0100..U+E01EF from 1 to 0.
129569 2003-04-25  Jim Meyering  <jim@meyering.net>
129571         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129572         of type size_t, not int.
129574 2003-04-25  Bruno Haible  <bruno@clisp.org>
129576         * lib/copy-file.c: Include <stddef.h>, for size_t.
129578 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129580         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129581         code which expansion is under static control.  Patch imported from
129582         Akim Demaille's patch to Bison; see
129583         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129585 2003-04-14  Bruno Haible  <bruno@clisp.org>
129587         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129589 2003-04-11  Jim Meyering  <jim@meyering.net>
129591         Merge changes from Coreutils.
129593         2003-03-22  Jim Meyering  <jim@meyering.net>
129595         * lib/strftime.c (widen): Cast alloca return value to proper type.
129597         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129599         From GNU libc.
129600         * lib/strftime.c (my_strftime): Handle very large width
129601         specifications for numeric values correctly.  Improve checks for
129602         overflow.
129604         2003-01-19  Jim Meyering  <jim@meyering.net>
129606         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129607         definitions.
129608         (nl_get_alt_digit) [! defined my_strftime]: Define.
129609         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129610         _nl_get_alt_digit and _nl_get_walt_digit.
129612         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129613         libc. These changes have no effect outside of _LIBC.
129615 2003-04-10  Bruno Haible  <bruno@clisp.org>
129617         * modules/findprog: New file.
129618         * MODULES.html.sh (func_all_modules): Add it.
129620 2003-04-10  Bruno Haible  <bruno@clisp.org>
129622         * m4/findprog.m4: New file.
129623         * m4/eaccess.m4: New file.
129625 2003-04-10  Bruno Haible  <bruno@clisp.org>
129627         * lib/findprog.h: New file, from GNU gettext.
129628         * lib/findprog.c: New file, from GNU gettext.
129630 2003-04-05  Jim Meyering  <jim@meyering.net>
129632         Merge changes from Coreutils.
129634         * lib/exclude.h (PARAMS): Remove definition and uses.
129635         * lib/exclude.c: Remove uses of `PARAMS'.
129637         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129638         Add test-cases for DOS filenames. Declare program_name.
129639         (main): Set up program_name.  Patch by Rich Dawe.
129641         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129642         error from mntctl.
129643         Use mntctl's return value to drive the entry-processing loop, since
129644         we can't rely on the value of the vmt_length member in the last
129645         entry.  On some systems doing so could result in exhausting
129646         virtual memory.  Based in part on a patch from Mike Jetzer.
129648 2003-04-04  Bruno Haible  <bruno@clisp.org>
129650         * modules/linebreak: New file.
129651         * MODULES.html.sh (func_all_modules): Add it.
129653 2003-04-04  Bruno Haible  <bruno@clisp.org>
129655         * m4/linebreak.m4: New file.
129657 2003-04-04  Bruno Haible  <bruno@clisp.org>
129659         * lib/linebreak.h: New file, from GNU gettext.
129660         * lib/linebreak.c: New file, from GNU gettext with slight
129661         modifications.
129662         * lib/lbrkprop.h: New file, from GNU gettext.
129664 2003-04-03  Bruno Haible  <bruno@clisp.org>
129666         * modules/utf8-ucs4: New file.
129667         * modules/utf16-ucs4: New file.
129668         * modules/ucs4-utf8: New file.
129669         * modules/ucs4-utf16: New file.
129670         * MODULES.html.sh (func_all_modules): Add them.
129672 2003-04-03  Bruno Haible  <bruno@clisp.org>
129674         * m4/utf-ucs4.m4: New file.
129675         * m4/ucs4-utf.m4: New file.
129677 2003-04-03  Bruno Haible  <bruno@clisp.org>
129679         * lib/utf8-ucs4.h: New file, from GNU gettext.
129680         * lib/utf16-ucs4.h: New file, from GNU gettext.
129681         * lib/ucs4-utf8.h: New file, from GNU gettext.
129682         * lib/ucs4-utf16.h: New file, from GNU gettext.
129684 2003-04-02  Bruno Haible  <bruno@clisp.org>
129686         * modules/binary-io: New file.
129687         * MODULES.html.sh (func_all_modules): Add it.
129689 2003-04-02  Bruno Haible  <bruno@clisp.org>
129691         * lib/binary-io.h: New file, from GNU gettext.
129693 2003-04-01  Bruno Haible  <bruno@clisp.org>
129695         * modules/pathname: New file.
129696         * MODULES.html.sh (func_all_modules): Add it.
129698 2003-04-01  Bruno Haible  <bruno@clisp.org>
129700         * lib/pathname.h: New file, from GNU gettext.
129701         * lib/concatpath.c: New file, from GNU gettext.
129703 2003-03-30  Bruno Haible  <bruno@clisp.org>
129705         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129707 2003-03-30  Bruno Haible  <bruno@clisp.org>
129709         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129710         function chown() doesn't exist.
129712 2003-03-28  Bruno Haible  <bruno@clisp.org>
129714         * modules/copy-file: New file.
129715         * MODULES.html.sh (func_all_modules): Add it.
129717 2003-03-28  Bruno Haible  <bruno@clisp.org>
129719         * m4/copy-file.m4: New file.
129721 2003-03-28  Bruno Haible  <bruno@clisp.org>
129723         * lib/copy-file.h: New file, from GNU gettext.
129724         * lib/copy-file.c: New file, from GNU gettext.
129726 2003-03-18  Jim Meyering  <jim@meyering.net>
129728         * lib/quote.c (quote_n): Fix typo in comment.
129730 2003-03-18  Bruno Haible  <bruno@clisp.org>
129732         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129733         checking.
129734         * m4/onceonly_2_57.m4: Likewise.
129736 2003-03-17  Bruno Haible  <bruno@clisp.org>
129738         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129739         (m4_quote): Remove macro.
129740         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129742 2003-03-14  Jim Meyering  <jim@meyering.net>
129744         Merge changes from Coreutils.
129745         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129746         to be const, in order to avoid warnings.
129747         (obstack_room): Likewise.
129748         (obstack_empty_p): Likewise.
129750 2003-03-14  Bruno Haible  <bruno@clisp.org>
129752         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129753         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129755 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129757         Merge changes from Bison.
129758         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129759         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129760         when compiling Bison 1.875's `bitset bset = obstack_alloc
129761         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129762         * lib/hash.c: Include <stdbool.h> unconditionally.
129764 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129766         * m4/onceonly.m4 (m4_quote): New macro.
129767         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129768         Quote AC_FOREACH variable-expansions properly.
129770 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129772         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129774 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129776         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129777         Reported by Bruce Becker; see:
129778         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129780 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129781             Bruno Haible  <bruno@clisp.org>
129783         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129784         Reported by John Hughes, see
129785         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129787 2003-02-20  Bruno Haible  <bruno@clisp.org>
129789         * MODULES.html.sh (func_all_modules): Add poll.
129791 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129793         * modules/poll: New file.
129795 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129797         * lib/poll_.h: New file.
129798         * lib/poll.c: New file.
129800 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129802         * m4/poll.m4: New file.
129804 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129806         * modules/mathl: New file.
129808 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129810         * lib/mathl.h: New file.
129811         * lib/acosl.c: New file.
129812         * lib/asinl.c: New file.
129813         * lib/atanl.c: New file.
129814         * lib/ceill.c: New file.
129815         * lib/cosl.c: New file.
129816         * lib/expl.c: New file.
129817         * lib/floorl.c: New file.
129818         * lib/frexpl.c: New file.
129819         * lib/ldexpl.c: New file.
129820         * lib/logl.c: New file.
129821         * lib/sincosl.c: New file.
129822         * lib/sinl.c: New file.
129823         * lib/sqrtl.c: New file.
129824         * lib/tanl.c: New file.
129825         * lib/trigl.c: New file.
129826         * lib/trigl.h: New file.
129828 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129830         * m4/mathl.m4: New file.
129832 2003-02-18  Bruno Haible  <bruno@clisp.org>
129834         * MODULES.html.sh (func_all_modules): Add mathl.
129836 2003-02-17  Bruno Haible  <bruno@clisp.org>
129838         * modules/mkdtemp: New module.
129839         * MODULES.html.sh (func_all_modules): Add it.
129841 2003-02-17  Bruno Haible  <bruno@clisp.org>
129843         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129845 2003-02-17  Bruno Haible  <bruno@clisp.org>
129847         * lib/mkdtemp.h: New file, from GNU gettext.
129848         * lib/mkdtemp.c: New file, from GNU gettext.
129850 2003-02-02  Jim Meyering  <jim@meyering.net>
129852         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129853         e.g. glibc-2.2.93.
129855 2003-01-31  Bruno Haible  <bruno@clisp.org>
129857         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129858         'rpl_rename'.
129859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129860         'rpl_strnlen'.
129861         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129862         'rpl_strtod'.
129863         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129864         'rpl_utime'.
129866 2003-01-31  Bruno Haible  <bruno@clisp.org>
129868         * lib/rename.c: #undef rename before defining rpl_rename.
129869         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129871 2003-01-30  Bruno Haible  <bruno@clisp.org>
129873         * modules/vasnprintf, modules/vasprintf: New modules.
129874         * MODULES.html.sh (func_all_modules): Add them.
129876 2003-01-30  Bruno Haible  <bruno@clisp.org>
129878         * m4/signed.m4: New file, from GNU gettext.
129879         * m4/longdouble.m4: New file, from GNU gettext.
129880         * m4/wchar_t.m4: New file, from GNU gettext.
129881         * m4/wint_t.m4: New file, from GNU gettext.
129882         * m4/vasnprintf.m4: New file.
129883         * m4/vasprintf.m4: New file.
129885 2003-01-30  Bruno Haible  <bruno@clisp.org>
129887         * lib/printf-args.h: New file, from GNU gettext.
129888         * lib/printf-args.c: New file, from GNU gettext.
129889         * lib/printf-parse.h: New file, from GNU gettext.
129890         * lib/printf-parse.c: New file, from GNU gettext.
129891         * lib/vasnprintf.h: New file, from GNU gettext.
129892         * lib/vasnprintf.c: New file, from GNU gettext.
129893         * lib/asnprintf.c: New file, from GNU gettext.
129894         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129895         * lib/vasprintf.c: New file, from GNU gettext.
129896         * lib/asprintf.c: New file, from GNU gettext.
129898 2003-01-29  Bruno Haible  <bruno@clisp.org>
129900         * modules/stpncpy: New module.
129901         * MODULES.html.sh (func_all_modules): Add it.
129903 2003-01-29  Bruno Haible  <bruno@clisp.org>
129905         * m4/stpncpy.m4: New file.
129907 2003-01-29  Bruno Haible  <bruno@clisp.org>
129909         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129910         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129912 2003-01-28  Bruno Haible  <bruno@clisp.org>
129914         * modules/c-ctype: New module.
129915         * MODULES.html.sh (func_all_modules): Add it.
129917 2003-01-28  Bruno Haible  <bruno@clisp.org>
129919         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129920         Paul Eggert.
129921         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129922         Paul Eggert.
129924 2003-01-27  Bruno Haible  <bruno@clisp.org>
129926         * modules/xsetenv: New module.
129927         * MODULES.html.sh (func_all_modules): Add it.
129929 2003-01-27  Bruno Haible  <bruno@clisp.org>
129931         * lib/xsetenv.h: New file, from GNU gettext.
129932         * lib/xsetenv.c: New file, from GNU gettext.
129934 2003-01-23  Jim Meyering  <jim@meyering.net>
129936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129937         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129939 2003-01-23  Bruno Haible  <bruno@clisp.org>
129941         * modules/minmax: New module.
129942         * MODULES.html.sh (func_all_modules): Add it.
129944 2003-01-23  Bruno Haible  <bruno@clisp.org>
129946         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129947         Eggert.
129949 2003-01-22  Bruno Haible  <bruno@clisp.org>
129951         * modules/exit: New module.
129952         * MODULES.html.sh (func_all_modules): Add it.
129954 2003-01-22  Bruno Haible  <bruno@clisp.org>
129956         * lib/exit.h: New file, from GNU gettext.
129958 2003-01-19  Bruno Haible  <bruno@clisp.org>
129960         * gnulib-tool: Recognize option --extract-maintainer.
129961         (func_get_maintainer): New function.
129962         * modules/*: Add Maintainer entry.
129964 2003-01-16  Jim Meyering  <jim@meyering.net>
129966         * m4/regex.m4: The `regex' struct is both input and output.
129967         Initialize it before each use.  Patch by Tim Waugh.
129969 2003-01-16  Bruno Haible  <bruno@clisp.org>
129971         * MODULES.html.sh: Add a table of contents. Add the module name as
129972         leftmost column. Add hyperlinks.
129974 2003-01-15  Bruno Haible  <bruno@clisp.org>
129976         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129978 2003-01-15  Bruno Haible  <bruno@clisp.org>
129980         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129982         suffix.
129984 2003-01-15  Bruno Haible  <bruno@clisp.org>
129986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129988 2003-01-15  Bruno Haible  <bruno@clisp.org>
129990         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129991         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129993 2003-01-14  Jim Meyering  <jim@meyering.net>
129995         * lib/same.c (same_name): Tweak a comment.
129997 2003-01-14  Bruno Haible  <bruno@clisp.org>
129999         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
130000         when a string comparison is sufficient.
130002 2003-01-14  Bruno Haible  <bruno@clisp.org>
130004         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
130005         'unsigned int'.
130007 2003-01-14  Bruno Haible  <bruno@clisp.org>
130009         * lib/hash-pjw.c: Add comment about low quality of this function.
130011 2003-01-13  Bruno Haible  <bruno@clisp.org>
130013         * modules/stpcpy: Distribute lib/stpcpy.h.
130014         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
130016 2003-01-13  Bruno Haible  <bruno@clisp.org>
130018         * modules/*: Add a description.
130019         * modules/strpbrk: Fix Makefile.am snippet.
130020         * modules/strtoimax: Fix dependencies.
130021         * modules/strtoumax: Likewise.
130023 2003-01-13  Bruno Haible  <bruno@clisp.org>
130025         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
130026         * modules/alloca (Makefile.am): All object files depend on alloca.h.
130027         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
130029 2003-01-13  Bruno Haible  <bruno@clisp.org>
130031         * gnulib-tool (func_create_testdir): Store config/* files in the main
130032         directory.
130033         * config.rpath: Move to ...
130034         * config/config.rpath: ... here.
130035         * modules/gettext: Contains config/config.rpath, not config.rpath.
130036         * modules/iconv: Likewise.
130038 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130040         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130041         to avoid collisions with libcurses and libreadline.
130043         * m4/getstr.m4: Remove.
130044         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
130046 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130048         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130049         to avoid collisions with libcurses and libreadline.
130051         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
130052         * lib/getstr.h, getstr.c: Remove.
130053         * lib/getline.c: Include "getline.h", to check interface.
130054         Move body of old getstr.c here: this defines MIN_CHUNK and
130055         declares getdelim2, which is renamed from getstr.
130056         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
130058         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
130059         All uses changed.
130060         * lib/linebuffer.h: Likewise.
130061         (readline): Remove backward-compatibility macro.
130063 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130065         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130066         to avoid collisions with libcurses and libreadline.
130067         * getstr: Remove.
130068         * MODULES.html.sh: Remove getstr.
130069         * modules/getline: Depend on unlocked-io, not getstr.
130071 2003-01-12  Jim Meyering  <jim@meyering.net>
130073         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
130075 2003-01-10  Bruno Haible  <bruno@clisp.org>
130077         * modules/alloca: Change Makefile.am requirements. Simplify Include
130078         requirements. Add lib/alloca_.h to file list.
130080 2003-01-10  Bruno Haible  <bruno@clisp.org>
130082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
130084 2003-01-10  Bruno Haible  <bruno@clisp.org>
130086         * lib/alloca_.h: New file.
130087         * lib/getdate.y: Unconditionally include alloca.h.
130088         * lib/makepath.c: Likewise.
130089         * lib/setenv.c: Likewise.
130090         * lib/userspec.c: Likewise.
130092 2003-01-09  Karl Berry  <karl@gnu.org>
130094         * MODULES.html.sh: include `dirname $0` in PATH, to find
130095         gnulib-tool.
130097 2003-01-09  Bruno Haible  <bruno@clisp.org>
130099         * modules/stdbool: Change configure.ac, Makefile.am requirements.
130100         Simplify Include requirements. Add lib/stdbool.h.in to file list.
130102 2003-01-09  Bruno Haible  <bruno@clisp.org>
130104         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
130106 2003-01-09  Bruno Haible  <bruno@clisp.org>
130108         * lib/stdbool.h.in: New file.
130110 2003-01-09  Bruno Haible  <bruno@clisp.org>
130112         * gnulib-tool (func_all_modules): Ignore files ending in ~.
130113         * MODULES.html.sh: Likewise.
130115 2003-01-08  Jim Meyering  <jim@meyering.net>
130117         * lib/full-write.c: Undefine and define-away `const' after inclusion
130118         of errno.h, not before.  Suggestion from Bruno Haible.
130120 2003-01-08  Bruno Haible  <bruno@clisp.org>
130122         * modules/full-read: Depend on full-write.
130124 2003-01-08  Bruno Haible  <bruno@clisp.org>
130126         * lib/safe-read.c: Include specification header first, to ensure its
130127         selfcontainedness.
130128         * lib/full-write.c: Likewise.
130130 2003-01-07  Jim Meyering  <jim@meyering.net>
130132         * lib/full-write.c: Rework so that it may serve to define full_read,
130133         too.
130134         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
130136 2003-01-07  Bruno Haible  <bruno@clisp.org>
130138         * lib/strtoimax.c: Include <stdint.h> as an alternative to
130139         <inttypes.h>.
130140         * lib/xstrtol.h: Likewise.
130141         * lib/xstrtoimax.c: Likewise.
130142         * lib/xstrtoumax.c: Likewise.
130143         * lib/human.h: Likewise.
130145         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
130146         on systems that have <inttypes.h> but not <stdint.h>.
130148 2003-01-07  Bruno Haible  <bruno@clisp.org>
130150         * MODULES.html.sh: Add copyright notice.
130151         (missed_files): Omit CVS directory entries.
130152         (func_module): Make it work with sed-3.02.
130153         * MODULES.txt: Remove file.
130155 2003-01-06  Jim Meyering  <jim@meyering.net>
130157         * lib/version-etc.c: Update year in translatable copyright string.
130159 2003-01-03  Karl Berry  <karl@gnu.org>
130161         * config/config.{guess,sub}: update from prep.
130163 2003-01-02  Karl Berry  <karl@gnu.org>
130165         * doc/COPYING.DOC: belatedly updated to 1.2.
130167 2003-01-01  Karl Berry  <karl@gnu.org>
130169         * gnulib-tool (func_verify_module): report module name $module in
130170         error message, not $1.
130171         * gnulib-tool (create-testdir): don't complain if destdir couldn't
130172         be created, only if it doesn't exist.
130173         * gnulib-tool (last_checkin_date): don't expand the $Date here.
130175 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130177         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
130179 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130181         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
130182         memcmp if strcoll doesn't work.
130184 2002-12-31  Bruno Haible  <bruno@clisp.org>
130186         * lib/utime.c (utime_null): No need to call ftruncate if the file was
130187         nonempty.
130189 2002-12-31  Bruno Haible  <bruno@clisp.org>
130191         * lib/memcoll.c (STRCOLL): New macro.
130192         (memcoll): Use it.
130194 2002-12-31  Bruno Haible  <bruno@clisp.org>
130196         * lib/localcharset.h: New file.
130197         * lib/localcharset.c: Include it.
130198         * lib/unicodeio.c: Likewise.
130200 2002-12-31  Bruno Haible  <bruno@clisp.org>
130202         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
130203         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
130205 2002-12-31  Bruno Haible  <bruno@clisp.org>
130207         * lib/getline.h: Include <stddef.h>, for size_t.
130209         * lib/unicodeio.h: Include <stddef.h>, for size_t.
130210         * lib/unicodeio.c: Don't include <stddef.h>.
130212 2002-12-31  Bruno Haible  <bruno@clisp.org>
130214         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
130215         HAVE_TM_ZONE.
130217 2002-12-24  Karl Berry  <karl@gnu.org>
130219         * config/config.guess: update from prep.
130221 2002-12-24  Bruno Haible  <bruno@clisp.org>
130223         General infrasructure.
130224         * m4/README: Rewritten.
130225         * m4/onceonly.m4: New file.
130226         * m4/onceonly_2_57.m4: New file.
130228         Module atexit.
130229         * m4/atexit.m4: New file.
130231         Module strtod.
130232         * m4/strtod.m4: New file.
130234         Module strtol.
130235         * m4/strtol.m4: New file.
130237         Module strtoul.
130238         * m4/strtoul.m4: New file.
130240         Module memchr.
130241         * m4/memchr.m4: New file.
130243         Module memcmp.
130244         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
130245         (jm_FUNC_MEMCMP): Invoke it.
130247         Module memcpy.
130248         * m4/memcpy.m4: New file.
130250         Module memmove.
130251         * m4/memmove.m4: New file.
130253         Module memset.
130254         * m4/memset.m4: New file.
130256         Module strcspn.
130257         * m4/strcspn.m4: New file.
130259         Module strpbrk.
130260         * m4/strpbrk.m4: New file.
130262         Module strstr.
130263         * m4/strstr.m4: New file.
130265         Module strerror.
130266         * m4/strerror.m4: New file.
130268         Module mktime.
130269         * m4/mktime.m4: Renamed from jm-mktime.m4.
130270         (gl_PREREQ_MKTIME): New macro.
130271         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
130273         Module malloc.
130274         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
130275         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
130276         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
130278         Module realloc.
130279         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
130280         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
130281         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
130283         Module strftime.
130284         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
130285         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
130286         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
130287         gl_TM_GMTOFF.
130288         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
130290         Module xalloc.
130291         * m4/xalloc.m4: New file.
130293         Module alloca.
130294         * m4/alloca.m4: New file.
130296         Module putenv.
130297         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
130298         (jm_FUNC_PUTENV): Invoke it.
130300         Module setenv.
130301         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
130302         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
130303         when invoked twice.
130304         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
130305         gt_FUNC_SETENV.
130307         Module memrchr.
130308         * m4/memrchr.m4: New file.
130310         Module stpcpy.
130311         * m4/stpcpy.m4: New file.
130313         Module strcase.
130314         * m4/strcase.m4: New file.
130316         Module strdup.
130317         * m4/strdup.m4: New file.
130319         Module strnlen.
130320         * m4/strnlen.m4: New file.
130322         Module strndup.
130323         * m4/strndup.m4: New file.
130325         Module xstrtod.
130326         * m4/xstrtod.m4: New file.
130328         Module xstrtol.
130329         * m4/xstrtol.m4: New file.
130331         Module getdate.
130332         * m4/getdate.m4: New file.
130334         Module unlocked-io.
130335         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
130336         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
130337         * m4/jm-glibc-io.m4n: Remove file.
130339         Module long-options.
130340         * m4/long-options.m4: New file.
130342         Module md5.
130343         * m4/md5.m4: New file.
130345         Module sha.
130346         * m4/sha.m4: New file.
130348         Module getstr.
130349         * m4/getstr.m4: New file.
130351         Module getline.
130352         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
130353         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
130354         <sys/types.h>, for size_t. Use the function name gnu_getline, not
130355         simply getline. Infoke gl_PREREQ_GETLINE.
130357         Module obstack.
130358         * m4/obstack.m4: New file.
130360         Module hash.
130361         * m4/hash.m4: New file.
130363         Module readtokens.
130364         * m4/readtokens.m4: New file.
130366         Module strverscmp.
130367         * m4/strverscmp.m4: New file.
130369         Module stdbool.
130370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
130371         OSF/1.
130373         Module strtoll.
130374         * m4/strtoll.m4: New file.
130376         Module strtoull.
130377         * m4/strtoull.m4: New file.
130379         Module strtoimax.
130380         * m4/strtoimax.m4: New file.
130382         Module strtoumax.
130383         * m4/strtoumax.m4: New file.
130385         Module xstrtoimax.
130386         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
130387         jm_AC_PREREQ_XSTRTOIMAX.
130388         Moved the strtol prerequisites to strtol.m4.
130389         Moved the strtoll prerequisites to strtoll.m4.
130390         Moved the strtoimax prerequisites to strtoimax.m4.
130392         Module xstrtoumax.
130393         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
130394         jm_AC_PREREQ_XSTRTOUMAX.
130395         Moved the strtoul prerequisites to strtoul.m4.
130396         Moved the strtoull prerequisites to strtoull.m4.
130397         Moved the strtoumax prerequisites to strtoumax.m4.
130399         Module chown.
130400         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
130401         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
130403         Module dup2.
130404         * m4/dup2.m4: New file.
130406         Module ftruncate.
130407         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
130408         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
130410         Module getgroups.
130411         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
130412         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
130414         Module gettimeofday.
130415         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
130416         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
130417         gl_PREREQ_GETTIMEOFDAY.
130419         Module mkdir.
130420         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130421         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130423         Module mkstemp.
130424         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130425         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130426         jm_AC_TYPE_UINTMAX_T.
130427         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130429         Module stat.
130430         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130431         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130433         Module lstat.
130434         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130435         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130437         Module timespec.
130438         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130439         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130440         * m4/st_mtim.m4: Indentation.
130442         Module nanosleep.
130443         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130444         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130445         gl_PREREQ_NANOSLEEP.
130447         Module regex.
130448         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130449         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130450         (gl_REGEX): New macro.
130452         Module rename.
130453         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130454         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130456         Module rmdir.
130457         * m4/rmdir.m4: New file.
130459         Module utime.
130460         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130461         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130462         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130464         Module dirname.
130465         * m4/dirname.m4: New file.
130467         Module getopt.
130468         * m4/getopt.m4: New file.
130470         Module unistd-safer.
130471         * m4/unistd-safer.m4: New file.
130473         Module fnmatch.
130474         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130475         declaration.
130476         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130477         (gl_FUNC_FNMATCH_POSIX): New macro.
130478         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130479         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130480         simply fnmatch.
130482         Module exclude.
130483         * m4/exclude.m4: New file.
130485         Module human.
130486         * m4/human.m4: New file.
130488         Module acl.
130489         * m4/acl.m4: Nop.
130491         Module backupfile.
130492         * m4/backupfile.m4: New file.
130493         * m4/d-ino.m4: Indentation.
130495         Module fsusage.
130496         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130497         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130498         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130500         Module dirfd.
130501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130502         requirements.
130504         Module euidaccess.
130505         * m4/euidaccess.m4: New file.
130507         Module file-type.
130508         * m4/file-type.m4: New file.
130510         Module fileblocks.
130511         * m4/fileblocks.m4: New file.
130513         Module filemode.
130514         * m4/filemode.m4: New file.
130516         Module isdir.
130517         * m4/isdir.m4: New file.
130519         Module lchown.
130520         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130521         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130523         Module makepath.
130524         * m4/makepath.m4: New file.
130526         Module modechange.
130527         * m4/modechange.m4: New file.
130529         Module mountlist.
130530         * m4/mountlist.m4: New file.
130531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130532         Indentation.
130534         Module path-concat.
130535         * m4/path-concat.m4: New file.
130537         Module pathmax.
130538         * m4/pathmax.m4: New file.
130540         Module same.
130541         * m4/same.m4: New file.
130543         Module save-cwd.
130544         * m4/save-cwd.m4: New file.
130546         Module savedir.
130547         * m4/savedir.m4: New file.
130549         Module xgetcwd.
130550         * m4/xgetcwd.m4: New file.
130551         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130553         Module xreadlink.
130554         * m4/xreadlink.m4: New file.
130556         Module safe-read.
130557         * m4/safe-read.m4: New file.
130559         Module safe-write.
130560         * m4/safe-write.m4: New file.
130562         Module closeout.
130563         * m4/closeout.m4: New file.
130565         Module stdio-safer.
130566         * m4/stdio-safer.m4: New file.
130568         Module getpass.
130569         * m4/getpass.m4: New file.
130571         Module getugroups.
130572         * m4/getugroups.m4: New file.
130574         Module group-member.
130575         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130576         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130578         Module idcache.
130579         * m4/idcache.m4: New file.
130581         Module userspec.
130582         * m4/userspec.m4: New file.
130584         Module gettime.
130585         * m4/clock_time.m4: New file.
130586         * m4/gettime.m4: New file.
130588         Module settime.
130589         * m4/settime.m4: New file.
130591         Module posixtm.
130592         * m4/posixtm.m4: New file.
130594         Module gethostname.
130595         * m4/gethostname.m4: New file.
130597         Module canon-host.
130598         * m4/canon-host.m4: New file.
130600         Module gettext.
130601         * m4/codeset.m4: New file, from gettext-0.11.5.
130602         * m4/gettext.m4: New file, from gettext-0.11.5.
130603         * m4/glibc21.m4: New file, from gettext-0.11.5.
130604         * m4/iconv.m4: New file, from gettext-0.11.5.
130605         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130606         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130607         * m4/inttypes.m4: New file, from gettext-0.11.5.
130608         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130609         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130610         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130611         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130612         * m4/lib-link.m4: New file, from gettext-0.11.5.
130613         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130614         * m4/progtest.m4: New file, from gettext-0.11.5.
130615         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130616         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130617         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130619         Module localcharset.
130620         * m4/localcharset.m4: New file.
130622         Module hard-locale.
130623         * m4/hard-locale.m4: New file.
130625         Module mbswidth.
130626         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130627         onceonly macros.
130628         * m4/mbrtowc.m4: Add comment.
130630         Module memcasecmp.
130631         * m4/memcasecmp.m4: New file.
130633         Module memcoll.
130634         * m4/memcoll.m4: New file.
130636         Module unicodeio.
130637         * m4/unicodeio.m4: New file.
130639         Module rpmatch.
130640         * m4/rpmatch.m4: New file.
130642         Module yesno.
130643         * m4/yesno.m4: New file.
130645         Module exitfail.
130646         * m4/exitfail.m4: New file.
130648         Module c-stack.
130649         * m4/c-stack.m4 (gl_C_STACK): New macro.
130650         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130652         Module error.
130653         * m4/error.m4 (gl_ERROR): New macro.
130654         (jm_PREREQ_ERROR): Use onceonly macros.
130656         Module fatal.
130657         * m4/fatal.m4: New file.
130659         Module getloadavg.
130660         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130661         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130663         Module getpagesize.
130664         * m4/getpagesize.m4: New file.
130666         Module getusershell.
130667         * m4/getusershell.m4: New file.
130669         Module physmem.
130670         * m4/physmem.m4: New file.
130672         Module posixver.
130673         * m4/posixver.m4: New file.
130675         Module quotearg.
130676         * m4/quotearg.m4: New file.
130678         Module quote.
130679         * m4/quote.m4: New file.
130681         Module readutmp.
130682         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130684         Module sig2str.
130685         * m4/sig2str.m4: New file.
130687         Other.
130688         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130689         ulonglong.m4.
130690         * m4/intmax_t.m4: New file.
130691         * m4/d-type.m4: Indentation.
130692         * m4/jm-macros.m4: Update.
130693         * m4/prereq.m4 (jm_PREREQ): Update.
130694         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130695         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130696         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130697         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130698         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130699         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130700         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130701         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130702         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130703         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130704         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130705         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130706         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130707         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130708         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130709         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130710         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130711         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130712         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130714 2002-12-24  Bruno Haible  <bruno@clisp.org>
130716         * MODULES.txt: Update according to m4/ changes.
130718         Module gettext.
130719         * config.rpath: New file, from gettext-0.11.5.
130721         * modules/*: New module descriptions.
130722         * gnulib-tool: New file.
130723         * MODULES.html.sh: New file.
130725 2002-12-21  Karl Berry  <karl@gnu.org>
130727         * doc/fdl.texi: update to version 1.2.
130729 2002-12-19  Karl Berry  <karl@gnu.org>
130731         * config/config.guess: update from prep.
130733 2002-12-18  Bruno Haible  <bruno@clisp.org>
130735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130736         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130738 2002-12-17  Bruno Haible  <bruno@clisp.org>
130740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130741         stdlib.h, string.h.
130743 2002-12-17  Bruno Haible  <bruno@clisp.org>
130745         * lib/canon-host.c (strdup): Remove unused declaration.
130747         * lib/fsusage.c: Include full_read.h.
130748         (get_fs_usage): Use full_read instead of safe_read.
130750         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130752 2002-12-12  Karl Berry  <karl@gnu.org>
130754         * config/config.guess: update from prep.
130756 2002-12-11  Bruno Haible  <bruno@clisp.org>
130758         * m4/setenv.m4: New file, from gettext-0.11.5.
130760 2002-12-11  Bruno Haible  <bruno@clisp.org>
130762         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130763         not unsetenv().
130764         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130765         modifications:
130767         2002-12-11  Bruno Haible  <bruno@clisp.org>
130769                 * setenv.c (alloca): Fall back to malloc.
130770                 (freea): New macro.
130771                 (setenv): Use freea() to free memory allocated with alloca().
130773         2002-11-13  Bruno Haible  <bruno@clisp.org>
130775                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130776                 function declarations.
130777                 * unsetenv.c (unsetenv): Likewise.
130779         2002-03-04  Bruno Haible  <bruno@clisp.org>
130781                 Portability to AIX 4.3.3.
130782                 * unsetenv.c: New file, extracted from setenv.c.
130783                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130785         2001-12-20  Bruno Haible  <bruno@clisp.org>
130787                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130788                 use malloc instead. For SunOS 4.
130790         2001-12-11  Bruno Haible  <bruno@clisp.org>
130792                 * setenv.c: Declare alloca.
130793                 (compar_fn_t): New typedef.
130794                 (KNOWN_VALUE, STORE_VALUE): Use it.
130796         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130797         setenv.h.
130799 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130801         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130802         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130803         Choose values that are less likely to collide with system fnmatch
130804         options.
130805         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130806         defined (e.g., a pure POSIX system).
130807         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130808         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130810 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130812         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130813         a pain in practice to deal with generated m4 files.  This change
130814         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130816         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130817         and jm-glibc-io.m4, as they are no longer a special case.
130818         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130819         kludge and the auto-generation stuff.  Check only whether the
130820         functions are declared, not whether they exist, since older hosts
130821         that don't declare the functions can't use the optimization anyway.
130823 2002-12-06  Jim Meyering  <jim@meyering.net>
130825         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130827         Merge in changes from libc's misc/error.c, in preparation
130828         for the merge of gnulib's changes back into libc.
130830         * lib/error.c (_): Define only if not already defined.
130831         Move definition to follow all #include directives.
130832         Include unlocked-io.h only if !_LIBC.
130833         [_LIBC]: Include <libio/libioP.h>.
130834         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130835         (fflush): Tweak definition to use INTUSE.
130836         (putc): Define.
130838 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130840         * lib/alloca.c [defined emacs]: Include "lisp.h".
130841         (xalloc_die) [defined emacs]: New macro.
130842         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130843         [! defined emacs]: Include <xalloc.h>.
130844         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130845         (pointer): Typedef to POINTER_TYPE *.
130846         (malloc): Remove decl; we now always use xmalloc.
130847         (alloca): Use old-style definition, since Emacs needs this.
130848         Check for arithmetic overflow when computing combined size.
130850 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130852         Do not generate unlocked-io.h automatically, since it's easier to
130853         maintain it by hand.
130855         * lib/unlocked-io.h: New file, from GNU diffutils,
130856         but with proper copyright notice and attribution.
130857         * lib/gen-uio: Remove.
130858         * lib/Makefile.am: Add copyright notice.
130859         (libfetish_a_SOURCES): Add unlocked-io.h.
130860         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130861         (DISTCLEANFILES, io_functions): Remove macros.
130862         (EXTRA_DIST): Remove gen_uio.
130863         (unlocked-io.h): Remove rule.
130865 2002-12-04  Jim Meyering  <jim@meyering.net>
130867         Reflect the fact that stat.c and lstat.c are no longer generated.
130868         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130869         (DISTCLEANFILES): Likewise.
130870         (EXTRA_DIST): Likewise.
130871         (all_local): Don't depend on stat.c or lstat.c.
130872         (stat.c, lstat.c): Remove rules.
130873         (EXTRA_DIST): Remove xstat.in.
130875         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130876         * lib/stat.c: New file.  Contents mostly from xstat.in.
130877         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130878         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130880         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130881         too.
130882         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130884 2002-12-03  Jim Meyering  <jim@meyering.net>
130886         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130887         but not semantics, to minimize the differences between these two files.
130888         (safe_read): Change comment to mention SAFE_READ_ERROR.
130890         * lib/safe-read.c (IS_EINTR): Define.
130891         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130893 2002-12-02  Jim Meyering  <jim@meyering.net>
130895         * lib/safe-read.c (EINTR): Define.
130896         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130897         (INT_MAX): Provide fallback.
130898         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130900         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130902 2002-12-02  Bruno Haible  <bruno@clisp.org>
130904         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130905         Define, taken from safe-read.c.
130906         (INT_MAX): Provide fallback.
130907         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130908         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130910         * lib/safe-read.c (EINTR): Remove definition.
130911         (safe_read): Don't use EINTR if it is absent.
130913 2002-12-01  Jim Meyering  <jim@meyering.net>
130915         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130916         zero.
130917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130919 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130921         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130922         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130923         with `if (! (value < limit)) abort ();', for readability.
130925 2002-11-26  Karl Berry  <karl@gnu.org>
130927         * lib/strdup.c: copy from libc again, with jim's ok.
130928         * lib/.cppi-disable: re-add strdup.c
130930 2002-11-25  Karl Berry  <karl@gnu.org>
130932         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130933         instead of "strtol.c".
130935 2002-11-25  Karl Berry  <karl@gnu.org>
130937         * config/install-sh: update from automake for variable quoting, $0 in
130938         error msgs, etc.
130940         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130941         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130942         entry.
130944 2002-11-25  Jim Meyering  <jim@meyering.net>
130946         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130948 2002-11-24  Karl Berry  <karl@gnu.org>
130950         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130951         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130953 2002-11-24  Jim Meyering  <jim@meyering.net>
130955         Update from coreutils:
130957         * lib/mktime.c: Merge in changes from libc.
130959         Avoid a link-time failure on some Linux systems.
130960         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130961         (otherwise).
130962         (__mon_yday): Declare with the STATIC attribute.
130963         (__mktime_internal): Likewise.
130964         Based on a report from Greg Schafer.
130966 2002-11-23  Jim Meyering  <jim@meyering.net>
130968         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130969         Use `unsigned', not `int', as type of index.
130971         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130973         * lib/fsusage.c: Remove unneeded parentheses around operands of
130974         `defined'.
130976 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130978         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130979         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130980         so that we can be included first.
130981         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130982         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130983         No need to include stddef.h or sys/types.h any more.
130984         Surround local include files with "", not "<>".
130985         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130986         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130987         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130988         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130989         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130990         (ISPRINT): Remove; no longer needed now that we assume C89.
130992         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130993         Preserve errno.
130995         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130996         quotearg_char): Use SIZE_MAX rather than
130997         (size_t) -1 when we are talking about "infinity".
130999         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
131001 2002-11-22  Paul Eggert  <eggert@twinsun.com>
131003         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
131004         hint that one should use `if (! x) abort ();' rather than `assert
131005         (x);', and anyway it's one less thing to worry about configuring.
131006         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
131007         hash_rehash, hash_insert): Use abort rather than assert.
131009 2002-11-22  Bruno Haible  <bruno@clisp.org>
131011         * lib/safe-read.h: Assume C89. Add comments.
131012         (safe_read): Change return type to size_t.
131013         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
131014         byte counts > SSIZE_MAX correctly.
131015         * lib/safe-write.h: New file.
131016         * lib/safe-write.c: New file.
131017         * lib/full-read.h: New file.
131018         * lib/full-read.c: New file.
131019         * lib/full-write.h: Assume C89. Add comments.
131020         * lib/full-write.c: Include safe-write.h.
131021         (full_write): Rewritten to use safe_write.
131022         Suggested by Jim Meyering and Paul Eggert.
131024 2002-11-21  Jim Meyering  <jim@meyering.net>
131026         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
131028         Merge in changes from the coreutils.
131030         2002-09-25  Paul Eggert  <eggert@twinsun.com>
131031         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
131032         <stdint.h>.
131033         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
131034         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
131035         int.  Work more efficiently if X is the same width as uintmax_t.
131036         Do not compare X to -1, to avoid bogus compiler warning.
131037         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
131038         Don't assume that f_frsize and f_bsize are the same type.
131040         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
131041         warning on FreeBSD.
131043         * lib/makepath.c (make_path): Restore umask *before* creating the final
131044         component.
131045         (make_path): Minor reformatting.
131047         * lib/xmalloc.c: Adjust to work with new autoconf macros,
131048         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
131049         HAVE_MALLOC/HAVE_REALLOC.
131051         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
131052         dummy ones.  At least on GNU/Linux systems, `auto' means something
131053         else.
131054         From Michael Stone.
131056 2002-11-21  Bruno Haible  <bruno@clisp.org>
131058         Remove case insensitive option matching.
131059         * lib/argmatch.h (argcasematch): Remove declaration.
131060         (ARGCASEMATCH): Remove macro.
131061         (__xargmatch_internal): Remove case_sensitive argument.
131062         (XARGMATCH): Update.
131063         (XARGCASEMATCH): Remove macro.
131064         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
131065         case_sensitive argument.
131066         (argcasematch): Remove function.
131067         (__xargmatch_internal): Remove case_sensitive argument.
131068         (main): Use XARGMATCH instead of XARGCASEMATCH.
131070         * lib/xmalloc.c: Change compile-time error message. Add comment about
131071         required autoconf version.
131073 2002-11-20  Paul Eggert  <eggert@twinsun.com>
131075         Merge argmatch cleanups from Bison.  Assume C89.
131077         * lib/argmatch.c: Include config.h here, not in argmatch.h.
131078         Include stdlib.h, for EXIT_FAILURE.
131079         Always include <string.h>, since we assume C89.
131080         (EXIT_FAILURE): Remove pre-C89 bug workaround.
131081         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
131082         Include <stddef.h> instead, since it's all we need for size_t.
131083         (PARAMS): Remove.  All uses removed.
131084         (ARRAY_CARDINALITY): Do not bother to #undef.
131085         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
131086         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131087         Remove unnecessary parentheses.
131088         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131089         Insert necessary parentheses.
131090         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
131091         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
131093 2002-11-19  Bruno Haible  <bruno@clisp.org>
131095         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
131096         * lib/mbswidth.h: Include <stddef.h>, for size_t.
131098         * lib/mbswidth.h (PARAMS): Remove macro.
131099         (mbswidth, mbsnwidth): Use ANSI C function declarations.
131100         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
131102         * lib/gcd.h (PARAMS): Remove macro.
131103         (gcd): Use ANSI C function declarations.
131104         * lib/gcd.c (gcd): Likewise.
131106 2002-11-15  Bruno Haible  <bruno@clisp.org>
131108         * lib/strcspn.c: Include <stddef.h>.
131109         (strcspn): Use ANSI C function declaration. Change return type to
131110         size_t. Use NULL.
131111         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
131112         (strpbrk): Use NULL.
131113         * lib/strpbrk.h (PARAMS): Remove macro.
131114         (strpbrk): Use ANSI C function declaration.
131115         * lib/strstr.c: Don't include <sys/types.h>.
131116         * lib/strstr.h (PARAMS): Remove macro.
131117         (strstr): Use ANSI C function declarations.
131119 2002-11-14  Karl Berry  <karl@gnu.org>
131121         * config/mkinstalldirs: `do' on separate line, instead of
131122         `for var; do'.
131124 2002-11-06  Bruno Haible  <bruno@clisp.org>
131126         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
131127         * lib/gcd.c (gcd): Likewise.
131129 2002-11-05  Bruno Haible  <bruno@clisp.org>
131131         * lib/gcd.h: New file, from gettext-0.11.5.
131132         * lib/gcd.c: New file, from gettext-0.11.5.
131134 2002-11-05  Bruno Haible  <bruno@clisp.org>
131136         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131137         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131138         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131139         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131141         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
131142         <libintl.h>.
131143         * lib/makepath.c: Include gettext.h instead of <locale.h> and
131144         <libintl.h>.
131146         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
131147         * lib/human.c: Include gettext.h instead of <libintl.h>.
131148         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
131149         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
131150         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
131151         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
131152         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
131153         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
131154         (textdomain): Remove definition.
131155         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
131157         * lib/long-options.c: Remove include of <libintl.h> and definition of
131158         _.
131159         * lib/same.c: Remove include of <libintl.h> and definition of _.
131161 2002-11-04  Owen Taylor  <otaylor@redhat.com>
131163         * lib/config.charset: A few additions for Solaris.
131165 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131167         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
131168         * lib/localcharset.c (locale_charset): Declare as extern "C".
131170 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131172         * lib/config.charset: msdos in uk_UA uses CP1125.
131174 2002-11-04  Bruno Haible  <bruno@clisp.org>
131176         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
131177         * lib/strcase.h: New file, from GNU gettext-0.11.5.
131178         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
131179         * lib/strstr.h: New file, from GNU gettext-0.11.5.
131180         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
131182 2002-11-04  Bruno Haible  <bruno@clisp.org>
131184         * lib/localcharset.c (locale_charset): Don't return an empty string.
131186 2002-11-04  Bruno Haible  <bruno@clisp.org>
131188         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
131189         aliases.
131191 2002-11-04  Bruno Haible  <bruno@clisp.org>
131193         * lib/config.charset: Update for newest glibc. Add canonical names
131194         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
131196 2002-11-04  Bruno Haible  <bruno@clisp.org>
131198         * lib/config.charset: Add support for NetBSD.
131200 2002-11-04  Bruno Haible  <bruno@clisp.org>
131202         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
131204 2002-11-01  Bruno Haible  <bruno@clisp.org>
131206         * configure.in: Add AC_CONFIG_AUX_DIR call.
131207         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
131208         test/Makefile.
131209         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
131211 2002-09-28  Karl Berry  <karl@gnu.org>
131213         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
131214         installed automake until the next release, since changes have been
131215         made.
131217 2002-09-25  Karl Berry  <karl@gnu.org>
131219         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
131220         * lib/getopt*: copy from libc/posix.
131221         * lib/gettext.h: copy from gettext.
131222         * lib/.cppi-disable: add strdup.c, gettext.h.
131224 2002-09-25  Karl Berry  <karl@gnu.org>
131226         * config/srclist.txt: enable gettext.h check.
131227         * config/config.{guess,sub}: update from prep.
131228         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
131229                 from automake 1.6.3.
131230         See srclist*.
131232 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
131234         * regex.c (PATFETCH): Remove the translating fetch.
131235         (PATFETCH_RAW): Rename to PATFETCH.
131236         (set_image_of_range): New fun.
131237         (SET_RANGE_TABLE_WORK_AREA): Use it.
131238         (regex_compile): Don't translate the pattern chars so eagerly.
131239         Only do it when inserting an `exactn' bytecode or when handling
131240         a char-range.
131241         (mutually_exclusive_p): Avoid empty statement.
131243 2002-07-06  Jim Meyering  <meyering@lucent.com>
131245         * m4/README: Don't mention Makefile.am.in.
131246         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
131248 2002-07-01  Jim Meyering  <meyering@lucent.com>
131250         * lib/c-stack.c: Include sys/time.h.
131251         From Volker Borchert.
131253 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
131257 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131259         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
131260         New macro.  Use it uniformly instead of
131261         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
131262         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
131263         reported by Vin Shelton.
131265 2002-06-22  Paul Eggert  <eggert@twinsun.com>
131267         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
131268         Do not assume SA_SIGINFO behavior.
131269         Bug reported by Jim Meyering on NetBSD 1.5.2.
131271 2002-06-22  Jim Meyering  <meyering@lucent.com>
131273         * m4/c-stack.m4: New file, from diffutils-2.8.2.
131274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
131276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
131277         now that configure.ac uses AC_GNU_SOURCE.
131278         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
131279         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
131281         Update to latest tools.  Suggestions from Paul Eggert.
131282         * m4/stdbool.m4: New file, from diffutils-2.8.2.
131283         * m4/gnu-source.m4: Update from diffutils-2.8.2.
131284         * m4/fnmatch.m4: Likewise.
131285         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
131286         to AC_HEADER_STDBOOL
131288 2002-06-22  Jim Meyering  <meyering@lucent.com>
131290         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
131291         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
131293 2002-06-22  Jim Meyering  <meyering@lucent.com>
131295         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
131297         * lib/exitfail.c, exitfail.h: Likewise.
131298         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
131300         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
131301         of fnmatch.h.
131302         (EXTRA_DIST): Add fnmatch_loop.c.
131303         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
131305         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
131306         * lib/fnmatch.c: Update from diffutils-2.8.2.
131307         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
131308         * lib/fnmatch.h: Remove file.
131310 2002-06-21  Jim Meyering  <meyering@lucent.com>
131312         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
131313         * m4/mbrtowc.m4: Likewise.
131315         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
131316         * m4/mbswidth.m4: Reflect name change:
131317         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
131318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131320         * m4/lib-link.m4: Update from gettext-0.11.2.
131321         * m4/gettext.m4: Likewise.
131323         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
131324         From Alfred M. Szmidt.
131326 2002-06-18  Paul Eggert  <eggert@twinsun.com>
131328         * lib/file-type.h: Report an error if neither S_ISREG nor
131329         S_IFREG is defined, instead of using a test specific to glibc
131330         2.2.  This should be safe, since POSIX requires S_ISREG and
131331         Unix Version 7 had S_IFREG.  We don't need to check for
131332         <sys/types.h> since we don't use any symbols that it defines.
131334 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
131336         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
131337         $@-t, so that each temporary file name is unique and valid in the first
131338         8 characters, for operation under DOS.
131340 2002-06-15  Paul Eggert  <eggert@twinsun.com>
131342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
131344 2002-06-15  Jim Meyering  <meyering@lucent.com>
131346         Work even with DJGPP 2.03, which lacks support for symlinks.
131347         From Richard Dawe.
131348         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
131349         is defined.
131350         * lib/lchown.c (S_ISLNK): Likewise.
131352 2002-06-15  Jim Meyering  <meyering@lucent.com>
131354         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
131355         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
131356         have been included before this file.
131358 2002-06-14  Jim Meyering  <meyering@lucent.com>
131360         * lib/file-type.h: Use the version from diffutils-2.8.2.
131361         * lib/file-type.c: Likewise.
131363 2002-06-07  Jim Meyering  <meyering@lucent.com>
131365         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
131366         They're needed at least for NetBSD 1.5.2.
131367         ($statxfs_includes): Include those same headers.
131368         ($statxfs_includes): Include sys/vfs.h if available.
131369         ($statxfs_includes): Likewise for sys/statvfs.h.
131370         Check for the following members in both structs statfs and statvfs:
131371         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
131373 2002-06-01  Jim Meyering  <meyering@lucent.com>
131375         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
131376         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
131378 2002-05-28  Jim Meyering  <meyering@lucent.com>
131380         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
131381         Reported by Volker Borchert.
131383 2002-05-27  Jim Meyering  <meyering@lucent.com>
131385         Fix a problem seen only on nonconforming systems whereby ls.c's
131386         use of localtime, and then of gettimeofday would cause trouble:
131387         the localtime call used to initialize rpl_gettimeofday's save
131388         mechanism would clobber ls's current local time information so
131389         that in any long listing the first file would always be listed
131390         with date 1970-01-01.  Analysis by Volker Borchert.
131392         * lib/gettimeofday.c (localtime): Undefine.
131393         (rpl_localtime): New function.
131395 2002-05-27  Jim Meyering  <meyering@lucent.com>
131397         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
131398         localtime.
131400         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
131401         use the replacement function; it wouldn't resolve at link time.
131402         Reported by Volker Borchert.
131404 2002-05-22  Jim Meyering  <meyering@lucent.com>
131406         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
131407         file-type.h.
131408         * lib/file-type.h: New file.
131409         * lib/file-type.c (file_type): New file/function.  Extracted from
131410         diffutils.
131412 2002-04-30  Jim Meyering  <meyering@lucent.com>
131414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
131416 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131418         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
131420 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131422         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131423         Do not check for alloca.h (no longer used) or stdbool.h (was never
131424         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131426 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131428         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131430 2002-04-29  Jim Meyering  <meyering@lucent.com>
131432         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131433         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131434         Use AC_FUNC_STRNLEN here instead.
131436         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131437         With autoconf-2.53a, it's part of AC_PROG_CC.
131439 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131441         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131442         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131444 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131446         * lib/sig2str.h, lib/sig2str.c: New files.
131447         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131449 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131451         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131452         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131453         of 127, since 64 is the largest conceivable number for ancient
131454         nonstandard hosts.
131455         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131457 2002-04-28  Jim Meyering  <meyering@lucent.com>
131459         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131461 2002-04-24  Jim Meyering  <meyering@lucent.com>
131463         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131464         (jm_PREREQ): Use it.
131466         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131467         mach/mach.h fcntl.h.
131468         Check for this function: setlocale.
131470 2002-04-24  Jim Meyering  <meyering@lucent.com>
131472         * lib/gettext.h: New file, from Gettext.
131473         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131474         (libfetish_a_SOURCES): Add gettext.h.
131476 2002-04-16  Jim Meyering  <meyering@lucent.com>
131478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131479         ut_pid, ut_id, ut_exit.
131481 2002-04-16  Jim Meyering  <meyering@lucent.com>
131483         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131484         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131485         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131487 2002-04-12  Jim Meyering  <meyering@lucent.com>
131489         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131490         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131491         existence of the getmntinfo function.  Needed for Darwin 5.3.
131493         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131494         This is necessary at least on Darwin 5.3.
131496         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131497         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131498         strnlen.o in the library, and that makes some versions of ranlib
131499         object.
131501 2002-04-12  Jim Meyering  <meyering@lucent.com>
131503         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131505 2002-04-09  Jim Meyering  <meyering@lucent.com>
131507         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131508         to be more precise.  Rather than saying we're checking whether the
131509         function `works', say what we're testing.
131510         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131511         Reported by Bruno Haible.
131513 2002-03-10  Jim Meyering  <meyering@lucent.com>
131515         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131516         Suggestion from Santiago Vila.
131518 2002-03-08  Jim Meyering  <meyering@lucent.com>
131520         * lib/rename.c: Mention that this wrapper is needed also on
131521         mips-dec-ultrix4.4 systems.
131523 2002-03-02  Jim Meyering  <meyering@lucent.com>
131525         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131526         not HAVE_CLOCK_SETTIME.
131528 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131530         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131531         Check for clock_settime.
131533 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131535         * lib/nanosleep.h: Rename to....
131536         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131538         * lib/gettime.c: New file.
131539         * lib/settime.c: New file.
131540         * lib/stime.c: Remove.
131542         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131543         timespec.h.  Remove nanosleep.h.
131545 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131547         * m4/acl.m4: New file.
131548         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131549         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131551 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131553         * lib/acl.c, lib/acl.h: New files.
131554         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131556 2002-02-24  Jim Meyering  <meyering@lucent.com>
131558         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131559         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131560         cause trouble.  Reported by Nelson Beebe.
131562 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131564         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131565         compilers that don't know that xalloc_die never returns.
131567 2002-02-20  Jim Meyering  <meyering@lucent.com>
131569         * lib/getdate.c: Regenerate using bison-1.33.
131571 2002-02-17  Jim Meyering  <meyering@lucent.com>
131573         * config/config.guess (main): Don't use `head -1'; it's no longer
131574         portable. Use `sed 1q' instead.
131576 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131578         * m4/codeset.m4: Upgrade to gettext-0.11.
131579         * m4/gettext.m4: Upgrade to gettext-0.11.
131580         * m4/glibc21.m4: Upgrade to gettext-0.11.
131581         * m4/iconv.m4: Upgrade to gettext-0.11.
131582         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131583         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131584         * m4/lib-ld.m4: New file, from gettext-0.11.
131585         * m4/lib-link.m4: New file, from gettext-0.11.
131586         * m4/lib-prefix.m4: New file, from gettext-0.11.
131587         * m4/progtest.m4: Upgrade to gettext-0.11.
131589 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131591         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131592         (jm_PREREQ): Use it.
131594 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131596         * lib/posixver.c, lib/posixver.h: New files.
131597         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131599 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131600             Bruno Haible  <bruno@clisp.org>
131602         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131603         (fwrite_success_callback): New declaration.
131604         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131605         print_unicode_char. Call failure callback instead of error.
131606         (fwrite_success_callback): New function.
131607         (exit_failure_callback): New function.
131608         (fallback_failure_callback): New function.
131609         (print_unicode_char): Call unicode_to_mb.
131611 2002-01-26  Jim Meyering  <meyering@lucent.com>
131613         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131614         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131616 2002-01-26  Jim Meyering  <meyering@lucent.com>
131618         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131620 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131622         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131624 2002-01-22  Jim Meyering  <meyering@lucent.com>
131626         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131627         Otherwise, some versions of automake would omit the rule that makes
131628         Makefile from Makefile.in.
131630 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131632         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131633         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131634         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131635         (memcoll): Set errno to zero if there is no error.
131637         * lib/quotearg.c (quotearg_buffer_restyled):
131638         Fix bug with quoting buffers containing NUL when backslashing escapes.
131639         This bug was exposed by the other changes in this patch.
131640         (quotearg_n_options): New arg ARGSIZE.
131641         All callers changed.
131642         (quoting_options_from_style): New function.
131643         (quotearg_n_style): Use it.
131644         (quotearg_n_style_mem): New function.
131646         * lib/quotearg.h (quotearg_n_style_mem): New function.
131648 2002-01-19  Jim Meyering  <meyering@lucent.com>
131650         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131651         Remove useless quotes: DF_PROG="df".
131652         * m4/strnlen.m4: New file.
131654 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131656         * lib/backupfile.c (ISDIGIT): Comment fix.
131657         * lib/getdate.y (ISDIGIT): Likewise.
131658         * lib/posixtm.c (ISDIGIT, year): Likewise.
131659         * lib/strverscmp.c (ISDIGIT): Likewise.
131660         * lib/userspec.c (ISDIGIT): Likewise.
131662 2002-01-16  Jim Meyering  <meyering@lucent.com>
131664         * lib/getdate.y: Add three semicolons, each just before a closing
131665         brace. Bison (as of version 1.31) no longer papers over that mistake.
131667 2002-01-05  Jim Meyering  <meyering@lucent.com>
131669         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131671 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131673         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131674         not silently exit merely because the output buffer happens to
131675         have nothing pending.
131677 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131679         See the big note in ../ChangeLog.
131680         * lib/human.c (suffixes): Prefer K to k for 1024.
131681         (generate_suffix_backwards): New function.
131682         (human_readable_inexact): Use it.
131683         * lib/xstrtol.c (__xstrtol): If there is no number but there
131684         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131685         Accept 'K' as well as 'k'.
131687 2001-12-15  Jim Meyering  <meyering@lucent.com>
131689         * lib/regex.h (__restrict_arr): Update from libc.
131691         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131692         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131693         (STREQ): Define.
131695 2001-12-14  Jim Meyering  <meyering@lucent.com>
131697         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131698         Suggestion from Bruno Haible.
131700 2001-12-10  Jim Meyering  <meyering@lucent.com>
131702         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131703         xrealloc, Instead, include "xalloc.h".
131704         (initbuffer): Don't cast xmalloc return value to char*.
131705         (readline): Reword comment.
131706         Don't cast xrealloc return value to char*
131707         Return NULL, not 0.
131709 2001-12-09  Jim Meyering  <meyering@lucent.com>
131711         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131712         about `signed and unsigned type in conditional expression'.
131713         * lib/posixtm.c (posix_time_parse): Likewise.
131715         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131717         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131718         to avoid a pedantic warning.
131720         * lib/getstr.c: Don't include assert.h.
131721         (getstr): Remove warning-evoking assertions.
131722         Return -1 if offset parameter is out of bounds.
131723         Change the type of a local from int to size_t.
131725         * lib/strftime.c (my_strftime_localtime_r): Include this function
131726         definition in the `#if ! HAVE_TM_GMTOFF' block.
131728         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131729         Include xalloc.h instead.
131731 2001-12-02  Jim Meyering  <meyering@lucent.com>
131733         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131734         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131735         included.
131737         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131738         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131740 2001-11-30  Akim Demaille  <akim@epita.fr>
131742         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131743         before being defined.
131745 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131747         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131748         First arg is int, not unsigned.
131749         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131750         (SIZE_MAX, UINT_MAX): New macros.
131751         (quotearg_n_options): Abort if N is negative.
131752         Avoid overflow check on hosts where size_t is 64 bits and int
131753         is 32 bits, as overflow is impossible there.
131754         Fix off-by-one typo that caused unnecessary reallocation.
131756 2001-11-27  Jim Meyering  <meyering@lucent.com>
131758         * lib/tempname.c: Merge with version from libc.
131759         * lib/regex.c: Likewise.
131761         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131762         systems for which STDC_HEADERS is 0, it was not included, resulting in
131763         a warning about an integer-to-pointer conversion problem with getenv.
131764         Reported by Volker Borchert.
131766 2001-11-26  Jim Meyering  <meyering@lucent.com>
131768         * lib/gtod.h: Remove file.
131769         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131770         * lib/gettimeofday.c: Don't include gtod.h.
131771         (GTOD_init): Remove function.
131772         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131773         Suggestion from Volker Borchert.
131775 2001-11-23  Jim Meyering  <meyering@lucent.com>
131777         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131778         it.
131779         * lib/hash.c (struct hash_table): Define it here instead.
131781 2001-11-22  Jim Meyering  <meyering@lucent.com>
131783         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131785 2001-11-20  Jim Meyering  <meyering@lucent.com>
131787         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131788         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131790 2001-11-19  Jim Meyering  <meyering@lucent.com>
131792         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131793         directory.  Use "conftestXXXXXX" as the template.
131794         Suggestion from Paul Eggert.
131796         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131797         immediately, so the test doesn't mistakenly hit the max-open-files
131798         limit.
131800 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131802         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131803         (TEMPORARIES): New macro.
131804         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131805         removes an artificial limitation (e.g. HP-UX 10.20, where
131806         TMP_MAX is 17576).
131808 2001-11-18  Jim Meyering  <meyering@lucent.com>
131810         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131812 2001-11-18  Jim Meyering  <meyering@lucent.com>
131814         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131815         on SunOS 4.
131817         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131818         files will be created before anything else.
131820 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131822         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131823         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131825 2001-11-17  Jim Meyering  <meyering@lucent.com>
131827         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131828         Prompted by a report from Bob Proulx.
131830         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131831         Instead, require UTILS_FUNC_MKSTEMP.
131833 2001-11-17  Jim Meyering  <meyering@lucent.com>
131835         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131836         Now, that's done as part of AC_FUNC_STRTOD.
131838 2001-11-17  Jim Meyering  <meyering@lucent.com>
131840         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131841         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131842         rather than group writable.  Patch by Juan F. Codagnone.
131844         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131845         xrealloc, Instead, include "xalloc.h".
131847         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131848         Remove explicit declarations of xmalloc, xrealloc,
131849         and xstrdup.  Instead, include "xalloc.h".
131851         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131852         unlocked-io.h.
131853         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131854         Likewise.
131855         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131857         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131858         Reported by Padraig Brady.
131860         * lib/mkstemp.c: #undef mkstemp.
131861         Include config.h.
131862         (rpl_mkstemp): Rename from mkstemp.
131863         Protoize.
131865 2001-11-16  Jim Meyering  <meyering@lucent.com>
131867         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131868         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131869         determine the amount of total physical memory, use pstat_getstatic.
131870         HPUX-11 doesn't define _SC_PHYS_PAGES.
131871         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131872         If sysconf couldn't be used to determine the amount of available
131873         physical memory, use both pstat_getstatic and pstat_getdynamic.
131874         Based on a patch from Bob Proulx.
131876 2001-11-10  Jim Meyering  <meyering@lucent.com>
131878         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131879         (jm_PREREQ): Use it.
131881 2001-11-09  Jim Meyering  <meyering@lucent.com>
131883         * m4/jm-macros.m4: Require autoconf-2.52f.
131884         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131885         Use these AC_-prefixed names, not the AM_-prefixed ones.
131887         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131889 2001-11-05  Jim Meyering  <meyering@lucent.com>
131891         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131893 2001-11-04  Jim Meyering  <meyering@lucent.com>
131895         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131896         $DEFS.
131898 2001-11-03  Jim Meyering  <meyering@lucent.com>
131900         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131901         of AC_DEFUN.
131903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131904         know the name of the variable in the macro definition.
131906 2001-11-03  Jim Meyering  <meyering@lucent.com>
131908         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131909         in argmatch_to_argument call.
131911         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131912         argument.
131914         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131915         e.g., a fault due to an attempt to free a NULL pointer.
131917 2001-11-01  Jim Meyering  <meyering@lucent.com>
131919         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131920         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131922 2001-11-01  Jim Meyering  <meyering@lucent.com>
131924         * lib/dirfd.c, lib/dirfd.h: New files.
131925         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131927         * lib/hash.c (hash_print) [TESTING]: Clean up.
131929 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131931         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131932         to avoid a warning if -Wall.
131934 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131936         * README: New file
131937         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131938         (per RMS's instructions, this is now the canonical source)
131939         * lgpl/, gpl/: New directories.
131941 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131943         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131945 2001-10-21  Jim Meyering  <meyering@lucent.com>
131947         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131948         this code would end up calling gettext even in packages built
131949         with --disable-nls.
131950         * lib/getopt.c (_): Likewise.
131951         * lib/regex.c (_): Likewise.
131953 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131955         * m4/error.m4 (jm_PREREQ_ERROR):
131956         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131957         AC_FUNC_STRERROR_R does that.
131958         Check for strerror declaration.
131960         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131961         are supposed to have them these days.
131962         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131963         Merge changes from latest Autoconf CVS.
131964         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131965         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131966         POSIX decided to standardize on the int flavor of strerror_r.
131968 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131970         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131971         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131972         Use strerror_r that is only a macro, even if it is not a function.
131973         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131974         (private_strerror): Use prototypes, not old-style function definition.
131975         (print_errno_message): New function.
131976         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131977         char*-flavored one.
131978         (error_tail, error, error_at_line): Use it.
131980 2001-10-11  Jim Meyering  <meyering@lucent.com>
131982         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131983         and quote_n (1, ... to avoid clobbering a buffer.
131985 2001-10-05  Jim Meyering  <meyering@lucent.com>
131987         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131988         hash-pjw.h.
131989         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131990         * lib/hash-pjw.h: New file.
131992 2001-09-30  Jim Meyering  <meyering@lucent.com>
131994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131995         `struct fsstat' has the `f_fstypename' member.
131996         Use that to define FS_TYPE, which is now used to make
131997         the getfsstat link test tighter.
131999 2001-09-30  Jim Meyering  <meyering@lucent.com>
132001         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
132002         Include <sys/ucred.h>, for Apple Darwin.
132003         Include sys/mount.h and sys/fs_types.h only if available.
132004         (FS_TYPE): Define.
132005         (read_filesystem_list): Use FS_TYPE.
132007 2001-09-29  Paul Eggert  <eggert@twinsun.com>
132009         * lib/exclude.c (excluded_filename): 0 -> false, since it's
132010         a boolean context.
132012 2001-09-29  Jim Meyering  <meyering@lucent.com>
132014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132015         [one-argument getmntent function]): Include stdio.h before mntent.h.
132016         SunOS 4.1.x needs it for the declaration of `FILE'.
132017         Patch by Volker Borchert.
132019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132020         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
132021         sys/fs_types.h, and make the link-test for getfsstat guard #include
132022         directives with appropriate #if HAVE_*_H tests so that we can
132023         detect getfsstat on Apple Darwin1.3.7 systems.
132024         Reported by Nelson Beebe.
132025         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
132027 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132029         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132030         #defines strtoimax.  Also treat the other strto* functions
132031         like strtoimax.
132033         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132034         Check for strtoul and strtoumax,
132035         as those declarations are made even in the signed case.
132036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
132037         Likewise, for strtol and strtoimax.
132039 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132041         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132042         #defines strtoimax.  Also treat the other strto* functions
132043         like strtoimax.
132045         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
132046         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
132047         (strtoimax, strtoumax): Do not declare if already defined as a macro.
132049 2001-09-26  Jim Meyering  <meyering@lucent.com>
132051         Most macros in unlocked-io.h had the wrong number of arguments.
132052         * lib/gen-uio: New script.
132053         (USE_UNLOCKED_IO): Define to 1 if not already defined.
132054         * lib/unlocked-io.hin: Remove file.
132055         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
132056         rather than trying to embed it here.
132057         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
132058         Reported by Padraig Brady.
132060 2001-09-25  Volker Borchert  <bt@teknon.de>
132062         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
132063         `result'.
132065 2001-09-24  Jim Meyering  <meyering@lucent.com>
132067         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
132069 2001-09-23  Jim Meyering  <meyering@lucent.com>
132071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
132072         instead of the mere test for existence of mntent.h.  The latter
132073         would get a false-positive on AIX 3.4 systems.
132074         In the outer getmntent if-block, don't die if neither of the getmntent
132075         tests succeeds.  Instead, just fall through and continue with the
132076         remaining tests.
132078 2001-09-23  Jim Meyering  <meyering@lucent.com>
132080         * lib/mountlist.c: Remove useless parentheses in #if directives.
132081         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
132082         the deprecated MOUNTED symbol is no longer defined in mntent.h.
132084 2001-09-22  Jim Meyering  <meyering@lucent.com>
132086         * m4/gettext.m4: New file.  From gettext.
132087         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
132088         * m4/progtest.m4: Likewise
132089         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
132090         * m4/glibc21.m4: Likewise.
132092         * m4/libintl.m4: Remove.  No longer used.
132094 2001-09-22  Jim Meyering  <meyering@lucent.com>
132096         * lib/localcharset.c: Update from latest gettext.
132097         * lib/config.charset: Likewise.
132099 2001-09-20  Jim Meyering  <meyering@lucent.com>
132101         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
132102         strtoimax.
132103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
132104         strtoumax.
132106 2001-09-20  Jim Meyering  <meyering@lucent.com>
132108         * lib/xstrtol.c (strtoimax): Guard declaration with
132109         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
132110         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
132111         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
132112         (strtoumax): Likewise, for completeness (it wasn't necessary).
132114 2001-09-17  Paul Eggert  <eggert@twinsun.com>
132116         * lib/strtoimax.c (HAVE_LONG_LONG):
132117         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
132118         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
132119         to work around bug in IBM C compiler.
132121 2001-09-17  Jim Meyering  <meyering@lucent.com>
132123         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
132124         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
132125         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
132126         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
132127         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
132128         whenever the right hand side need not be expanded by the shell.
132130 2001-09-16  Paul Eggert  <eggert@twinsun.com>
132132         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
132133         library.  It's not correct, as some older glibcs are buggy.
132134         fnmatch wasn't fixed until glibc 2.2.
132136         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
132137         special shell magic here.
132139 2001-09-16  Jim Meyering  <meyering@lucent.com>
132141         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
132142         * m4/jm-macros.m4: Require it.
132144 2001-09-16  Jim Meyering  <meyering@lucent.com>
132146         * lib/mkdir.c: New file.
132148 2001-09-15  Jim Meyering  <meyering@lucent.com>
132150         * m4/jm-macros.m4: Check for help2man.
132152 2001-09-11  Jim Meyering  <meyering@lucent.com>
132154         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
132155         The body, by Paul Eggert, was moved here from configure.in.
132156         * m4/jm-macros.m4: Require UTILS_HOST_OS.
132158 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132160         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
132161         (jm_PREREQ): Use it.
132163 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132165         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
132166         Use ssize_t, not int, to store result of readlink.
132167         Check for ssize_t overflow as well as size_t overflow,
132168         as POSIX says the result of readlink is implementation-defined
132169         when ssize_t overflows.
132170         Remove unnecessary cast to char*.
132171         Use free+malloc instead of realloc, as the storage doesn't need
132172         to be preserved and it's clearer and can be more efficient that way.
132173         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
132174         * lib/xreadlink.h (xreadlink): Update prototype.
132176 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132178         * lib/xgetcwd.c: Revert some of the previous change; intead,
132179         fix the HAVE_GETCWD_NULL code to behave more like the
132180         !HAVE_GETCWD_NULL code used to.
132182         Include "xalloc.h".
132183         (xgetcwd): Do not return NULL when memory is exhausted; instead,
132184         invoke xalloc_die.
132186 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132188         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
132189         sys/param.h, as pathmax.h includes them.
132191 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
132194         (jm_PREREQ_XGETCWD): New macro.
132196         * m4/getcwd.m4: New file.
132198 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132200         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
132201         like the HAVE_GETCWD_NULL code.
132202         Include pathmax.h if not HAVE_GETCWD.
132203         Do not include xalloc.h.
132204         (INITIAL_BUFFER_SIZE): New symbol.
132205         Do not use xmalloc / xrealloc, since the caller is responsible for
132206         handling errors.  Preserve errno around `free' during failure.
132207         Do not overrun buffer when using getwd.
132209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132211         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
132212         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
132213         getcwd (NULL, 0).
132215 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132217         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
132218         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
132219         spotted by Jim Meyering.
132221 2001-09-03  Jim Meyering  <meyering@lucent.com>
132223         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
132224         failure.
132226 2001-09-02  Jim Meyering  <meyering@lucent.com>
132228         * lib/error.c: Update from GNU libc.
132230 2001-09-01  Jim Meyering  <meyering@lucent.com>
132232         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
132233         Used by df.
132235 2001-09-01  Jim Meyering  <meyering@lucent.com>
132237         * lib/xreadlink.c: New file.
132238         * lib/xreadlink.h: New file.
132239         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
132240         xreadlink.h.
132242         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
132243         doesn't conflict with sparc Solaris 7's definition in
132244         /usr/include/sys/int_types.h.
132246         * lib/exclude.c: Use `""', not `<>' to #include non-system header
132247         files.
132248         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
132249         and strncasecmp as r-values.  Unixware didn't have declarations.
132251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132253         * lib/xstrtol.h: Add copyright notice.
132254         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
132255         LONGINT_INVALID_SUFFIX_CHAR.
132257 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132259         * lib/xstrtol.c (strtoimax): New decl.
132261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132263         * lib/xgetcwd.c: Don't include pathmax.h.
132264         Include stdlib.h and unistd.h if available.
132265         Include xalloc.h.
132266         (xmalloc, xstrdup, free): Remove decls.
132267         (xgetcwd): Don't assume sizes fit in unsigned.
132268         Check for overflow when computing sizes.
132269         Simplify reallocation code.
132271 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132273         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
132274         a directory's st_size can have an arbitrary value, so the old
132275         usage could waste an arbitrary amount of memory.  All uses
132276         changed.
132277         * lib/savedir.h: Update prototype.
132279 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132281         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
132283         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
132284         old strtoimax.c.
132286         Also, make the following further changes to make this file's
132287         configuration more similar to that of strtol.c:
132288         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
132289         (strtoumax, uintmax_t, strtoull, strtol): Remove.
132290         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
132291         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
132292         changed to signed values.
132294         And make the following changes as well:
132295         Fix copyright notice, as 1999 was missing.
132296         (verify): New macro.
132297         (strtoimax): Check sizes at compile-time, not run-time.
132298         Prefer strtol to strtoll if both work.
132299         (main): Remove; it was not that useful and was a pain to maintain.
132301         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
132303 2001-08-31  Jim Meyering  <meyering@lucent.com>
132305         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
132306         Use an initial, malloc'd, buffer of length 128 rather than
132307         a statically allocated one of length 1024.
132309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132311         Simplify code, partly by assuming autoconf 2.52 semantics.
132313         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
132315         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
132316         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
132317         All uses removed.
132318         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
132319         Move AC_REQUIRE to next-to-top level, to avoid confusion.
132320         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
132321         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
132322         jm_AC_HEADER_INTTYPES_H.
132323         * m4/jm-macros.m4 (jm_MACROS): Likewise.
132325         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
132327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132328         Quote first arg of AC_DEFUN.
132329         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
132330         since they are needed to parse the include file even if we need
132331         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
132332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
132333         but with opposite signedness.
132335 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132337         Merge 'exclude' changes from tar 1.13.22.
132338         This fixes one or two unlikely storage allocation overflow bugs,
132339         but doesn't change user-visible behavior otherwise.
132341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132343         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
132344         (jm_PREREQ_EXCLUDE): New macro.
132346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132348         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
132349         tm to be declared.
132351 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132353         * lib/hash.c: Remove '2001' from copyright notice.
132355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132357         * lib/full-write.h: New file.
132358         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
132359         * lib/full-write.c: Correct credits, as cccp.c no longer
132360         exists and anyway it was so heavily changed from the old cccp
132361         code as to be unrecognizable.  Include full-write.h.
132362         (full_write): Return size_t, with short writes meaning failure.
132363         All callers changed.  This fixes a bug with large buffers
132364         on 64-bit hosts.
132365         * lib/utime.c: Include full-write.h.
132367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132369         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
132370         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
132371         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
132372         Include if available.
132373         (<xalloc.h>): Include
132374         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
132375         (verify): New macro.  Use it to verify that EXCLUDE macros do not
132376         collide with FNM macros.
132377         (struct patopts): New struct.
132378         (struct exclude): Use it, as exclude patterns now come with options.
132379         (new_exclude): Support above changes.
132380         (new_exclude, add_exclude_file):
132381         Initial size must now be a power of two to simplify overflow checking.
132382         (free_exclude, fnmatch_no_wildcards): New function.
132383         (excluded_filename): No longer requires options arg, as the options
132384         are determined by add_exclude.  Now returns bool, not int.
132385         (excluded_filename, add_exclude):
132386         Add support for the fancy new exclusion options.
132387         (add_exclude, add_exclude_file): Now takes int options arg.
132388         Check for arithmetic overflow when computing sizes.
132389         (add_exclude_file): xrealloc might modify errno, so don't
132390         realloc until after errno might be used.
132392         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
132393         New macros.
132394         (free_exclude): New decl.
132395         (add_exclude, add_exclude_file): Now takes int options arg.
132396         (excluded_filename): No longer requires options arg, as the options
132397         are determined by add_exclude.  Now returns bool, not int.
132399 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132401         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
132403 2001-08-27  Jim Meyering  <meyering@lucent.com>
132405         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
132407         * lib/version-etc.c (N_): Remove definition.
132408         Revert most of last change.
132409         Instead, simply don't mark the `Copyright...' string for translation.
132410         Based on advice from Paul Eggert.
132412         * lib/strtoxmax.c: Tweak comment.
132414 2001-08-26  Jim Meyering  <meyering@lucent.com>
132416         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
132418         * m4/xstrtoimax.m4: New file.
132419         * m4/xstrtoumax.m4: Add comments explaining why we
132420         AC_REPLACE_FUNCS(strtol).
132422 2001-08-26  Jim Meyering  <meyering@lucent.com>
132424         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132425         of copyright with `%s' so translators don't get an untranslated
132426         message in 2002.
132427         (COPYRIGHT_YEAR): Define.
132428         (version_etc): Use fprintf rather than fputs.
132429         Suggestion from Ulrich Drepper.
132431         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132433         * lib/strtoll.c: New file, from GNU libc.
132434         * lib/xstrtoimax.c: New file.
132436         * lib/xstrtol.h: Add xstrtoimax.
132437         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132438         * lib/strtoimax.c: New file.  Likewise, but first define
132439         STRTOUXMAX_SIGNED.
132441         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132442         ...
132443         * lib/strtoxmax.c: ... then renamed to this.
132445 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132447         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132448         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132449         (jm_AC_TYPE_INTMAX_T): New macro.
132450         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132452         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132454         * m4/longlong.m4: Renamed from ulonglong.m4.
132455         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132456         * m4/uintmax_t.m4: Removed.
132458 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132460         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132461         Port to Solaris 8, where 'sed' requires a space after the 'r'
132462         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132463         Redirect output to $tmp just once.
132465 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132467         * lib/addext.c (<errno.h>): Include.
132468         (errno): Declare if not defined.
132469         (addext): Work correctly when pathconf returns -1 and leaves
132470         errno alone because there is no limit.  Also, work even if
132471         pathconf returns a value greater than SIZE_MAX.
132473 2001-08-12  Jim Meyering  <meyering@lucent.com>
132475         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132476         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132477         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132478         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132479         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132480         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132481         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132482         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132483         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132484         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132485         utime.m4, utimes.m4, xstrtoumax.m4:
132486         Quote the first argument in each use of AC_DEFUN.
132488 2001-08-12  Jim Meyering  <meyering@lucent.com>
132490         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132491         Simply `return getcwd (NULL, 0);'.
132492         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132493         Use 1300 as initial value for length, not PATH_MAX.
132495         * lib/pathmax.h: Clean up cpp syntax.
132497 2001-08-12  Jim Meyering  <meyering@lucent.com>
132499         * lib/gettimeofday.c: New file.
132500         * lib/gtod.h: New file.
132501         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132503 2001-08-05  Jim Meyering  <meyering@lucent.com>
132505         * m4/jm-macros.m4: Require autoconf-2.52.
132507 2001-08-04  Jim Meyering  <meyering@lucent.com>
132509         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132510         stmt, to get in sync with glibc.
132512 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132514         The following changes are from gettext 0.10.39 as maintained by
132515         Bruno Haible.
132517         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132518         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132519         with inverted sense.  All uses changed.
132521         * lib/mbswidth.c: Don't include <limits.h>.
132522         Include <stdlib.h> and <string.h> unconditionally.
132523         (iswcntrl, mbsinit, ISCNTRL): New macros.
132524         (mbsnwidth): Use K&R style function declarations.
132525         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132526         can optimize it when MB_CUR_MAX == 1.
132527         The width of control characters is zero, not 1.
132529 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132531         The following changes are from gettext 0.10.39 as maintained by
132532         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132534         * m4/codeset.m4: Upgrade to serial AM1.
132535         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132536         all uses changed.  Quote first arg of AC_DEFUN.
132537         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132539         * m4/iconv.m4: Upgrade to serial AM2.
132540         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132541         Add --with-libconv-prefix.
132542         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132543         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132544         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132545         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132546         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132548         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132549         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132550         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132551         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132552         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132553         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132554         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132555         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132556         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132558         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132559         string.h any more.
132561         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132562         not the default value.
132564         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132565         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132566         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132567         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132568         Also check for iswcntrl, used for wcwidth fallback.
132569         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132570         to Autoconf 2.13.
132572 2001-08-03  Jim Meyering  <meyering@lucent.com>
132574         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132575         as it was in the original.  Reported by Paul Eggert.
132577 2001-07-16  Jim Meyering  <meyering@lucent.com>
132579         * m4/gettimeofday.m4: New file.
132580         Prompted by a report from Bernhard Baehr.
132582 2001-07-15  Jim Meyering  <meyering@lucent.com>
132584         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132585         stuff. Now it's in ../Makefile.cfg.
132587 2001-07-15  Jim Meyering  <meyering@lucent.com>
132589         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132590         (BUILT_SOURCES): Add unlocked-io.h.
132591         (io_functions): Define.
132592         (unlocked-io.h): New rule.
132593         (DISTCLEANFILES): Add unlocked-io.h.
132594         (all-local): Depend on unlocked-io.h, to ensure it is created.
132596         * lib/unlocked-io.hin: New file
132598         * lib/regex.c: Update from glibc.
132600 2001-07-05  Jim Meyering  <meyering@lucent.com>
132602         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132603         recommendation.
132604         (libfetish_a_SOURCES): Put all .h files here instead.
132605         Remove a thus-exposed (better checks in automake) duplicate and
132606         two unnecessary .h files.
132608 2001-07-04  Jim Meyering  <meyering@lucent.com>
132610         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132611         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132612         distcheck failure.
132614 2001-07-02  Jim Meyering  <meyering@lucent.com>
132616         The following changes were prompted by suggestions from Bruno Haible.
132618         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132619         is now generated.
132620         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132621         definition of EXTRA_DIST.
132622         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132623         ensure that the generated file is created/updated whenever the list
132624         of $(unlocked_functions) is changed.
132625         (jm-glibc-io.m4): New rule.
132626         (unlocked-io.h): New rule -- currently unused.
132628 2001-06-24  Jim Meyering  <meyering@lucent.com>
132630         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132631         unmatched right bracket, rather than kludging it with an extra,
132632         falsely-matching quote in a comment.  Patch by Akim Demaille.
132634 2001-06-11  Jim Meyering  <meyering@lucent.com>
132636         * lib/regex.c: Update from GNU libc.
132638 2001-05-27  Jim Meyering  <meyering@lucent.com>
132640         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132641         Check for ut_type in struct utmp.
132643 2001-05-27  Jim Meyering  <meyering@lucent.com>
132645         * lib/readutmp.h (UT_TYPE): Define.
132647 2001-05-24  Jim Meyering  <meyering@lucent.com>
132649         * lib/argmatch.c: Include "quote.h".
132650         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132651         quote function.  Reported by Göran Uddeborg.
132653 2001-05-22  Jim Meyering  <meyering@lucent.com>
132655         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132656         now that we use the package-supplied version unconditionally.
132657         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132659 2001-05-21  Jim Meyering  <meyering@lucent.com>
132661         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132662         shell syntax errors.
132664 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132666         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132668 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132670         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132671         Don't bother to check library strftime, since
132672         we'll be using our own my_strftime function anyway.
132673         Define my_strftime instead of strftime.
132675 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132677         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132678         which is not yet declared.
132680 2001-05-15  Jim Meyering  <meyering@lucent.com>
132682         * m4/regex.m4: Use proper quoting so brackets appear in the test
132683         program.
132684         Reported by, and with help from, Bruno Haible.
132686 2001-05-13  Jim Meyering  <meyering@lucent.com>
132688         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132689         undefined.
132691 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132693         dirname code cleanup.  base_name now behaves more compatibly
132694         with POSIX basename when given file names that have trailing
132695         slashes, and similarly for dir_name.  Add new primitives
132696         base_len and dir_len.  Put the directory-name-related decls
132697         into dirname.h.
132699         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132700         * lib/backupfile.c (base_name): Likewise.
132701         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132702         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132703         * lib/makepath.c (strip_trailing_slashes): Likewise.
132704         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132705         ISSLASH): Likewise.
132706         * lib/rename.c (strip_trailing_slashes): Likewise.
132707         * lib/same.c (base_name): Likewise.
132708         * lib/stripslash.c (ISSLASH): Likewise.
132710         * lib/addext.c: Include <dirname.h> after size_t is defined.
132711         * lib/backupfile.c: Likewise.
132713         * lib/addext.c (addext): Use base_len to trim redundant
132714         trailing slashes instead of doing it ourselves.
132715         But do not trim the last slash if it is not redundant.
132717         * lib/backupfile.c (find_backup_file_name,
132718         max_backup_version): Use base_len instead of rolling it ourselves.
132719         Handle the case of "" and (on DOS) "C:" correctly.
132721         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132722         needed. Include <string.h>, <dirname.h>.
132723         (base_name): Allow file names ending in slashes, other than names
132724         that are all slashes.  In this case, return the basename followed
132725         by the slashes.  This is more general, and can be used in places
132726         where the original base_name purposely had an assertion failure.
132727         (base_len): New function.
132729         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132730         Do not include <assert.h>; no longer needed.
132731         Include xalloc.h.
132732         (memrchr): Remove decl.
132733         (dir_name_r): Remove.
132734         (dir_len): Renamed from dirlen.  All callers changed.
132735         Rewrite in terms of base_name, for simplicity and consistency.
132736         (dir_name): Never return NULL.  All callers changed.
132737         Do not include <stdlib.h> in test program; no longer needed.
132738         return 0; is fine for test program.
132740         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132741         New macros.
132742         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132744         * lib/path-concat.c (path_concat): Use base_len to compute
132745         base length, not strlen; this means we cannot rely on memcpy
132746         to null-terminate.
132748         * lib/same.c (STREQ): Remove.
132749         (same_name): Handle the case where the basename ends in trailing '/'.
132751         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132752         a slash was stripped.  Do not strip the last slash after a
132753         file system prefix.
132755 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132757         * lib/Makefile.am (libfetish_a_SOURCES):
132758         Add strftime.c, since we now compile it on all hosts.
132760         * lib/strftime.c (my_strftime):
132761         Define to nstrftime if emacs, but only if my_strftime is not defined.
132762         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132763         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132764         Add one more extra argument: a nanoseconds value.
132765         All uses changed.
132766         (ns): New macro.
132767         (my_strftime function): Add %N format.
132768         (emacs_strftimeu): Renamed from emacs_strftime,
132769         with extra ut argument.
132771 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132773         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132775 2001-04-21  Jim Meyering  <meyering@lucent.com>
132777         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132778         doesn't interfere.
132780 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132782         * m4/ftruncate.m4: Check for chsize.
132783         Link with ftruncate.o unconditionally if ftruncate is missing.
132784         This was required when cross-compiling to i586-mingw32msvc.
132786 2001-04-08  Jim Meyering  <meyering@lucent.com>
132788         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132789         recomputed; that's necessary when the offset spans a DST transition.
132790         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132792 2001-04-02  Jim Meyering  <meyering@lucent.com>
132794         * lib/regex.h, regex.c: Update from GNU libc.
132796 2001-03-24  Jim Meyering  <meyering@lucent.com>
132798         * m4/jm-macros.m4: Require autoconf-2.49d.
132800 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132802         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132804 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132806         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132808 2001-03-17  Jim Meyering  <meyering@lucent.com>
132810         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132811         now that the version in autoconf is equivalent.
132812         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132814         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132815         Suggestion from Akim Demaille.
132817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132818         (jm_PREREQ_TEMPNAME): New function.
132820 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132822         * lib/tempname.c (uint64_t): Define to uintmax_t if
132823         not defined, and if UINT64_MAX is not defined.
132824         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132825         Reported by John David Anglin.
132827 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132829         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132830         resolve alias if codeset is empty.
132831         * lib/config.charset (BeOS): Use wildcard syntax.
132833 2001-03-13  Jim Meyering  <meyering@lucent.com>
132835         * lib/path-concat.c (path_concat)
132836         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132837         concatenating e.g., `C:' and `foo'.
132838         From Bruno Haible.
132840 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132842         * lib/localcharset.c (locale_charset): Don't use
132843         setlocale(LC_CTYPE,NULL). Don't return NULL.
132844         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132846 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132848         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132849         support for DOS/DJGPP.
132851 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132853         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132854         lacks mkstemp.  Compile our own tempname.c if we compile our own
132855         mkstemp.c, as mkstemp relies on tempname.
132857 2001-03-01  Jim Meyering  <meyering@lucent.com>
132859         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132860         AH_VERBATIM really does output its argument verbatim.
132862 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132864         * lib/Makefile.am (libfetish_a_SOURCES):
132865         Add dup-safer.c, fopen-safer.c.
132866         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132868         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132869         * lib/unistd-safer.h: New files.
132871 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132873         The mkstemp replacement is taken from glibc 2.2.2, with some
132874         portability fixes for use outside glibc, as follows:
132876         * lib/tempname.c (struct_stat64): New macro.
132877         (direxists, __gen_tempname): Use it.
132878         This avoids a portability problem with Solaris 8.
132880         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132881         (<stddef.h>, <stdint.h>, <string.h>):
132882         Include only if STDC_HEADERS || _LIBC.
132883         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132884         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132885         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132886         (__set_errno): Define this macro if <errno.h> doesn't.
132887         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132888         Define these macros if <stdio.h> doesn't.
132889         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132890         Define these macros if <sys/stat.h>
132891         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132892         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132893         __xstat64): Define if not _LIBC.
132894         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132895         (__gen_tempname): Invoke gettimeofday only if
132896         HAVE_GETTIMEOFDAY || _LIBC;
132897         otherwise, fall back on plain "time".
132898         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132900         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132902         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132904 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132906         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132908 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132910         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132911         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132912         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132915 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132917         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132918         Remove workaround macros for hosts that have mbrtowc but not
132919         mbstate_t, as we now insist on proper declarations for both
132920         before using mbrtowc.
132922 2001-02-17  Jim Meyering  <meyering@lucent.com>
132924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132925         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132926         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132927         UnixWare 7.1.1.
132929         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132930         rather than AC_CACHE_VAL.
132932 2001-02-17  Jim Meyering  <meyering@lucent.com>
132934         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132935         around included file name.
132937         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132939         * lib/strftime.c: Update from GNU libc (the only changes were to
132940         comments).
132942 2001-02-17  Jim Meyering  <meyering@lucent.com>
132944         * lib/regex.c: Update from libc.
132946 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132948         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132949         clash.
132951 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132953         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132954         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132955         Reported by Mark Hounschell via Paul Eggert.
132957 2001-02-07  Jim Meyering  <meyering@lucent.com>
132959         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132961 2001-02-05  Jim Meyering  <meyering@lucent.com>
132963         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132964         it includes the patch required for `large file' support with at least
132965         HP-UX's 10.20 /bin/cc.
132967 2001-02-03  Jim Meyering  <meyering@lucent.com>
132969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132970         AS_IF, now that it works once again (mysteriously).
132971         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132973 2001-01-30  Jim Meyering  <meyering@lucent.com>
132975         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132976         * m4/chown.m4: Rename conftestchown to conftest.chown.
132977         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132978         s/conftestdir2/conftest.d2/.
132979         * m4/utimes.m4: s/conftestdata/conftest.data/
132980         Inspired by Pavel Roskin's change in autoconf.
132982 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132984         * lib/config.charset: Update for FreeBSD 4.2.
132986 2001-01-27  Jim Meyering  <meyering@lucent.com>
132988         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132989         a use of AS_IF.
132990         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132992 2001-01-26  Jim Meyering  <meyering@lucent.com>
132994         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132995         quotearg.c includes it.
132997 2001-01-26  Jim Meyering  <meyering@lucent.com>
132999         * lib/quotearg.c: Include stddef.h.
133000         * lib/quote.c: Include stddef.h.
133001         Reported by Axel Kittenberger.
133003         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
133004         line in double quotes so that it evokes a better diagnostic.
133005         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
133006         Reported by Axel Kittenberger.
133008 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
133010         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
133011         as if it was a `charset'.
133013 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133015         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
133016         has const.
133018 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133020         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
133021         to avoid a warning.  Add back 'const' to inptr.
133023 2001-01-20  Jim Meyering  <meyering@lucent.com>
133025         Be sure that headers are checked before used in code compiled
133026         for the type checks.
133027         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
133028         In place of that, invoke jm_CHECK_ALL_TYPES.
133029         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
133030         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
133031         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
133032         The check for ssize_t was mistakenly run before the test for unistd.h.
133034         The configure-time check for stdbool.h was missing.
133035         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
133036         (jm_PREREQ_HASH): New function.
133038 2001-01-17  Jim Meyering  <meyering@lucent.com>
133040         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
133041         for autoconf-2.49c.
133042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
133044 2001-01-16  Jim Meyering  <meyering@lucent.com>
133046         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
133047         From Bruno Haible.
133049 2001-01-14  Jim Meyering  <meyering@lucent.com>
133051         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
133052         foo and bar.  Create conftestdir/ in the script, not in the C code.
133053         Remove directories in the script, not in the C code.
133054         Remove conftestdir{,2} before trying to create the directory.
133055         Make the entire configure script fail if the mkdir fails.
133057 2001-01-14  Jim Meyering  <meyering@lucent.com>
133059         * lib/rename.c: New file.  From Volker Borchert.
133060         Include stdlib.h, string.h or strings.h, and xalloc.h.
133061         Use strip_trailing_slashes rather than open-coding it.
133063 2001-01-03  Paul Eggert  <eggert@twinsun.com>
133065         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
133067 2001-01-03  Jim Meyering  <meyering@lucent.com>
133069         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
133070         of local `inptr' to avoid warning with some system declarations of
133071         iconv.
133073 2001-01-02  Volker Borchert  <bt@teknon.de>
133075         * m4/rename.m4: New file.
133076         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
133078 2001-01-01  Jim Meyering  <meyering@lucent.com>
133080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
133081         even on systems with utmpx.h.  It's necessary for the declaration of
133082         utmp's ut_user member.  Reported by Andreas Jaeger.
133084         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
133085         available. They are required for the declarations of getgrgid and
133086         getpwuid resp.
133087         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
133088         Reported by Andreas Jaeger.
133090 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
133092         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
133093         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
133094         so `make install' also works in VPATH builds.
133096 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
133098         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
133099         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
133100         can be used in subdirectories.
133102 2000-12-29  Paul Eggert  <eggert@twinsun.com>
133104         * lib/modechange.c: Do not assume that mode_t uses the
133105         traditional octal encoding.  E.g. "chmod 1 FOO" should set
133106         the other-execute bit of FOO even if S_IXOTH != 1.
133108         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
133109         WOTH, XOTH, ALLM): New macros.
133110         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
133111          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
133112         Use them.
133113         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
133114         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
133115         (mode_compile):
133116         No need to use uintmax_t; unsigned long is long enough.
133117         Don't bother to get suffix since we don't use it.
133119 2000-12-26  Jim Meyering  <meyering@lucent.com>
133121         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
133122         better with autoheader.
133124 2000-12-24  Jim Meyering  <meyering@lucent.com>
133126         * lib/hash.c (is_prime): Return explicit boolean values.
133127         (hash_get_first): Return NULL to appease Irix5.6's 89.
133128         Reported by Nelson Beebe.
133130 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
133132         * lib/localcharset.c (locale_charset): Add support for Win32.
133134 2000-12-18  Paul Eggert  <eggert@twinsun.com>
133136         * lib/physmem.h, lib/physmem.c: New files.
133138         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
133139         (noinst_HEADERS): Add physmem.h.
133141         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
133142         't' for compatibility with Solaris 8 sort.
133144 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
133146         * lib/config.charset: Add support for BeOS.
133148 2000-12-17  Jim Meyering  <meyering@lucent.com>
133150         * m4/dos.m4 (jm_AC_DOS): New file and macro.
133151         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
133153 2000-12-16  Jim Meyering  <meyering@lucent.com>
133155         This bug had a serious impact on chown: `chown N:M FILE' (for integer
133156         N and M) would have treated it like `chown N:N FILE'.
133158         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
133160 2000-12-16  Jim Meyering  <meyering@lucent.com>
133162         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
133163         SHELLS_FILE to a file name that's useful on djgpp systems.
133164         Include stdlib.h.
133165         (ADDITIONAL_DEFAULT_SHELLS): Define.
133166         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
133167         Based mostly on a patch from Prashant TR.
133169 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
133171         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
133172         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
133173         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
133175 2000-12-08  Andreas Schwab  <schwab@suse.de>
133177         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
133178         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
133180 2000-12-07  Jim Meyering  <meyering@lucent.com>
133182         * lib/stripslash.c (ISSLASH): Define.
133183         (strip_trailing_slashes): Use ISSLASH rather than comparing against
133184         `/'.
133185         From Prashant TR.
133187         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
133188         (dir_name_r): Declare this function as static.
133189         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
133190         manifest itself on a name containing a mix of slashes and
133191         backslashes.
133192         Make this function work with names starting with a DOS-style
133193         drive letter and colon prefix.
133194         (dir_name): Append `.' if necessary.
133195         Based mostly on patches from Prashant TR and Eli Zaretskii.
133197         * lib/dirname.h (dir_name_r): Remove prototype.
133199 2000-12-06  Paul Eggert  <eggert@twinsun.com>
133201         * m4/off_t-format.m4: Remove this file.
133202         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
133204 2000-12-06  Jim Meyering  <meyering@lucent.com>
133206         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
133207         replacement strtoull, we may well need the replacement strtoul, too.
133208         Check for declarations of strtoul and strtoull.
133209         Check for strtol.  Mainly as a cue to cause automake to include
133210         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
133211         Check for limits.h -- strtol.c needs it.
133213 2000-12-05  Jim Meyering  <meyering@lucent.com>
133215         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
133217 2000-12-04  Jim Meyering  <meyering@lucent.com>
133219         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
133220         Also include memory.h, stdlib.h, unistd.h if appropriate.
133221         Reported by Andreas Jaeger (conflicting declaration of malloc).
133223 2000-12-02  Jim Meyering  <meyering@lucent.com>
133225         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
133226         * m4/jm-macros.m4 (jm_MACROS): require it.
133228 2000-12-02  Jim Meyering  <meyering@lucent.com>
133230         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
133232 2000-12-01  Paul Eggert  <eggert@twinsun.com>
133234         * lib/memrchr.c: Include <config.h> before any system include file.
133236 2000-11-30  Jim Meyering  <meyering@lucent.com>
133238         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
133240 2000-11-30  Jim Meyering  <meyering@lucent.com>
133242         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
133244 2000-11-29  Paul Eggert  <eggert@twinsun.com>
133246         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
133248 2000-11-26  Jim Meyering  <meyering@lucent.com>
133250         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
133252 2000-11-22  Paul Eggert  <eggert@twinsun.com>
133254         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
133255         size of (size_t) -1; it's not portable.
133257 2000-11-17  Jim Meyering  <meyering@lucent.com>
133259         * lib/strstr.c: Update from GNU libc.
133261 2000-11-17  Akim Demaille  <akim@epita.fr>
133263         * lib/obstack.h: Formatting changes.
133264         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
133265         prevent type checking.
133266         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
133267         cast the value to (void *): assigning a `foo *' to a `void *'
133268         variable is valid.
133269         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
133271 2000-11-16  Jim Meyering  <meyering@lucent.com>
133273         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
133275 2000-11-11  Jim Meyering  <meyering@lucent.com>
133277         * lib/error.c: Add a couple #includes, merging from GNU libc version.
133279 2000-11-10  Jim Meyering  <meyering@lucent.com>
133281         * lib/obstack.h: Update from GNU libc.
133282         * lib/obstack.c: Likewise.
133284 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
133286         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
133288 2000-11-06  Paul Eggert  <eggert@twinsun.com>
133290         * lib/getusershell.c (setusershell): Use rewind rather than
133291         fseek/fseeko, to avoid configuration hassles with fseeko.
133292         Don't bother opening SHELLS_FILE if shellstream is NULL;
133293         it's not necessary.
133295 2000-11-05  Jim Meyering  <meyering@lucent.com>
133297         * lib/makepath.h (make_dir): Declare.
133298         * lib/makepath.c (make_dir): Remove `static' attribute.
133299         Tweak a comment.
133301 2000-11-04  Jim Meyering  <meyering@lucent.com>
133303         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
133305 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
133307         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
133308         last one in a bucket, advance to the next bucket.
133310 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
133312         * lib/fnmatch.c: Do not comment out all the code if we are using
133313         the GNU C library, because in some cases we are replacing buggy
133314         code in the GNU C library itself.
133316 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
133318         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
133319         (regex_compile): Catch bogus \(\1\).
133321 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133323         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
133324         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
133325         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
133327 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133329         * lib/error.h, getline.h, modechange.h:
133330         Remove "2000" from Copyright line, as the file hasn't been
133331         changed this year other than in the copyright notice.
133333         * lib/xalloc.h: Add "2000" to Copyright line, as this file
133334         was changed this year.
133336 2000-10-29  Jim Meyering  <meyering@lucent.com>
133338         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
133339         renaming.
133340         * m4/ls-mntd-fs.m4: Likewise
133342 2000-10-29  Jim Meyering  <meyering@lucent.com>
133344         * lib/xstat.in: Fix grammar in comment.
133346 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
133348         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
133349         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
133350         doesn't define __restrict_arr.
133352 2000-10-28  Jim Meyering  <meyering@lucent.com>
133354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
133355         (jm_PREREQ_MEMCHR): New function.
133357 2000-10-28  Jim Meyering  <meyering@lucent.com>
133359         * lib/memchr.c: Update from libc.
133360         Adjust for portability:
133361         [HAVE_STDLIB_H]: Include stdlib.h.
133362         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
133363         Undef __memchr, too.
133364         [!weak_alias]: Define __memchr to memchr.
133366         * lib/regex.c: Update from libc.
133367         * lib/regex.h: Likewise.
133368         * lib/getopt1.c: Likewise.
133369         * lib/memcmp.c: Likewise.
133371         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
133372         Avoid using fseek, when possible -- it's broken by design.
133373         Patch by Ulrich Drepper.
133375 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
133377         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
133378         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
133379         Giving in to popular pressure to shut up the compiler with casts.
133381 2000-10-26  Jim Meyering  <meyering@lucent.com>
133383         * lib/strftime.c: Update from libc.
133385 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
133387         * regex.c: More `unsigned char' -> `re_char' changes.
133388         Also change several `int' into `re_wchar_t'.
133389         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
133390         (PUSH_FAILURE_POINTER): Don't cast any more.
133391         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
133392         We want GCC to complain, since this piece of code makes
133393         re_match non-reentrant, which *should* be fixed.
133394         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
133395         (EXTEND_BUFFER): Use RETALLOC.
133396         (SET_LIST_BIT): Don't cast.
133397         (re_wchar_t): New type.
133398         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
133399         that those two functions will always properly return.
133400         (IMMEDIATE_QUIT_CHECK): Cast to void.
133401         (analyse_first): Use recursion rather than an explicit stack.
133402         (re_compile_fastmap): Can't fail anymore.
133403         (re_search_2): Don't check re_compile_fastmap for failure.
133404         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
133405         Now also sets the new value (passed in a new argument).
133406         (re_match_2_internal): Use it.
133407         Also, use a new var `reg' of type size_t when looping through regs
133408         rather than reuse the inappropriate `mcnt'.
133410 2000-10-25  Jim Meyering  <meyering@lucent.com>
133412         * lib/obstack.c: Update from libc.
133414 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
133416         * regex.c (regex_compile): Change the way of handling a range from
133417         a char less than 256 to a char not less than 256.
133419 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133421         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133422         NT-Emacs only.
133423         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133424         so that re_search functions only quit when callers expect them to.
133426 2000-10-23  Jim Meyering  <meyering@lucent.com>
133428         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133429         wrong.  That set_locale call must not have any side effects.
133430         From Paul Eggert.
133432 2000-10-22  Jim Meyering  <meyering@lucent.com>
133434         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133435         [CYCLIC]: Remove now-unused definition.
133437         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133438         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133439         Suggestion from Ulrich Drepper.
133441 2000-10-21  Jim Meyering  <meyering@lucent.com>
133443         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133444         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133445         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133447 2000-10-21  Jim Meyering  <meyering@lucent.com>
133449         * lib/dirname.c (memrchr): Declare if necessary.
133450         (dir_name): Remove the restriction that there be no
133451         trailing slashes.  Now, this code skips past them, effectively
133452         ignoring them.
133453         [TEST_DIRNAME] (main): New unit tests.
133455         * lib/memrchr.c: New file from GNU libc.
133456         Undef __memrchr, too.
133457         [!weak_alias]: Define __memrchr to memrchr.
133458         Guard weak_alias use with `#ifdef weak_alias'.
133460 2000-10-21  Jim Meyering  <meyering@lucent.com>
133462         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133463         (dir_name): Use dir_name_r.
133464         * lib/dirname.h (dir_name_r): Declare it.
133466 2000-10-17  Jim Meyering  <meyering@lucent.com>
133468         * lib/quote.h (PARAMS): Define and use.
133469         Reported by Akim Demaille.
133471         * lib/getopt.c: Update from libc.
133473 2000-10-16  Jim Meyering  <meyering@lucent.com>
133475         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133476         setlocale.
133477         From Jan Fedak.
133479 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133481         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133483 2000-09-25  Jim Meyering  <meyering@lucent.com>
133485         * lib/md5.h (rol): Define (from GnuPG).
133487         * lib/sha.c: Give credit (GnuPG) where due.
133488         (M): Use rol rather than open-coding it.
133489         Add a FIXME comment.
133491 2000-09-21  Jim Meyering  <meyering@lucent.com>
133493         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133494         Reported by Michael Stone.
133496 2000-09-20  Jim Meyering  <meyering@lucent.com>
133498         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133499         (noinst_HEADERS): Add sha.h.
133500         Based on code from Scott G. Miller and from GnuPG.
133502 2000-09-18  Jim Meyering  <meyering@lucent.com>
133504         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133505         LIBS. Otherwise, everyone ends up linking with -lelf for some
133506         configurations.
133507         Reported by Mike Stone.
133509 2000-09-15  Jim Meyering  <meyering@lucent.com>
133511         * lib/regex.c: Update from libc.
133513 2000-09-10  Jim Meyering  <meyering@lucent.com>
133515         * lib/getopt.c (_getopt_internal): Update from glibc.
133517 2000-09-09  Jim Meyering  <meyering@lucent.com>
133519         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133520         think it should be used as a general replacement for isascii.
133521         * lib/fnmatch.c: Likewise.
133522         * lib/mbswidth.c: Likewise
133523         * lib/regex.c: Likewise.
133525         Don't use atoi.
133526         * lib/userspec.c: Include sys/param.h and limits.h.
133527         Include xstrtol.h.
133528         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133529         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133530         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133531         UID, GID.  Check range.
133533 2000-09-06  Jim Meyering  <meyering@lucent.com>
133535         * lib/getopt.c (_getopt_internal): Update from glibc.
133537 2000-08-30  Jim Meyering  <meyering@lucent.com>
133539         * lib/strftime.c: Merge in changes from GNU libc.
133541 2000-08-26  Jim Meyering  <meyering@lucent.com>
133543         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133544         * m4/fpending.m4: New file.
133546 2000-08-26  Jim Meyering  <meyering@lucent.com>
133548         * lib/closeout.c: Include "__fpending.h".
133549         (close_stdout_status): Return right away if there's nothing to flush.
133551         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133552         * lib/__fpending.c: New file.
133553         * lib/__fpending.h: New file.
133555 2000-08-20  Jim Meyering  <meyering@lucent.com>
133557         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133558         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133559         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133561 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133563         Improve fileutils installation on systems where running
133564         programs (like install) can't be unlinked.
133565         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133566         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133568 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133570         Standardize on "memory exhausted" instead of "Memory exhausted"
133571         or "virtual memory exhausted".
133572         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133573         "virtual memory exhausted".
133574         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133575         our own message.
133576         * lib/userspec.c (parse_user_spec): Likewise.
133577         * lib/bumpalloc.h: comment fix
133578         * lib/same.c, userspec.c: Include xalloc.h.
133580         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133581         not char *const and pointing to a constant array.
133582         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133583         (xrealloc): Comment fix.
133585         * lib/userspec.c (parse_user_spec):
133586         Don't translate a message until just before returning,
133587         to avoid unnecessary translation.
133589 2000-08-07  Jim Meyering  <meyering@lucent.com>
133591         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133592         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133593         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133594         getgroups.c, gethostname.c, getopt.h, group-member.c,
133595         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133596         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133597         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133598         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133599         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133600         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133601         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133602         yesno.c: Back out Copyright date changes for each file with no change
133603         this year.  This eases coordination with other programs using the same
133604         source code modules.  From Paul Eggert.
133606 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133608         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133609         not char, for compatibility with glibc 2.1.3 strftime.c.
133611 2000-08-03  Greg McGary  <greg@mcgary.org>
133613         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133614         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133615         (EXTEND_BUFFER): Use them.
133617 2000-08-01  Jim Meyering  <meyering@lucent.com>
133619         * lib/dirname.c (ISSLASH): Define.
133620         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133621         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133622         both `\' and `/' may be use as path separators.
133623         Based on a patch from Prashant TR.
133625 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133627         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133628         slot vector a constant, since it might get modified.
133630 2000-07-31  Jim Meyering  <meyering@lucent.com>
133632         * lib/xmalloc.c: Use `virtual memory exhausted', not
133633         `Memory exhausted'.
133634         * lib/obstack.c (print_and_abort): Likewise.
133636 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133638         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133639         buffer, so that the caller can always quote one small
133640         component of a "memory exhausted" message in slot 0.
133641         From a suggestion by Jim Meyering.
133643 2000-07-30  Jim Meyering  <meyering@lucent.com>
133645         * lib/makepath.c (make_path): Quote the other instance, too.
133647         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133648         (STATIC_BUF_SIZE): Define.
133649         (quotearg_n_options): Use only statically allocated storage when
133650         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133651         than STATIC_BUF_SIZE.
133653 2000-07-29  Jim Meyering  <meyering@lucent.com>
133655         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133656         * lib/dirname.c (dir_name): Likewise.
133658         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133659         `/'.
133661         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133662         (dir_name): Assert that there are no trailing slashes.
133664 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133666         * lib/mbswidth.h (mbswidth): Add a flags argument.
133667         (mbswidth): New declaration.
133668         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133669         * lib/mbswidth.c (mbswidth): Add a flags argument.
133670         (mbsnwidth): New function.
133672 2000-07-24  Jim Meyering  <meyering@lucent.com>
133674         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133676 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133678         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133680 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133682         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133683         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133684         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133685         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133686         invoke multibyte primitives.
133688 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133690         * lib/quotearg.c:
133691         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133692         so that mbstate_t is always defined.
133694         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133695         be 1 in at least one GCC installation, and this configuration
133696         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133697         performance on hosts that have mbrtowc but have only unibyte
133698         locales, but I assume these hosts are rare.
133700 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133702         * lib/mbswidth.c (_XOPEN_SOURCE):
133703         Don't define; this causes problems on Solaris 7.
133704         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133706 2000-07-23  Jim Meyering  <meyering@lucent.com>
133708         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133709         too: getgrgid, getpwuid, getuid.
133711 2000-07-23  Jim Meyering  <meyering@lucent.com>
133713         * lib/basename.c (base_name): Add an assertion.
133715 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133717         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133718         shadow its mbsinit function.
133720 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133722         * lib/mbswidth.h: New file.
133723         * lib/mbswidth.c: New file.
133724         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133725         (noinst_HEADERS): Add mbswidth.h.
133727 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133729         * lib/config.charset: Add support for FreeBSD. Improve support for
133730         HP-UX and IRIX 6.
133732 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133734         * m4/mbswidth.m4: New file.
133735         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133737 2000-07-15  Jim Meyering  <meyering@lucent.com>
133739         * lib/makepath.c: Include quote.h.
133740         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133741         corresponding argument in a `quote (...)' call.
133742         Give better diagnostics.
133744         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133745         (noinst_HEADERS): Add quote.h.
133747         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133748         from tar's src/misc.c.
133749         * lib/quote.h: New file.  Prototypes for same.
133751 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133753         From a suggestion by Bruno Haible.
133754         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133755         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133756         to decide whether to define the BeOS workaround macro;
133757         this adjusts to the change to AC_MBSTATE_T.
133759 2000-07-14  Jim Meyering  <meyering@lucent.com>
133761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133762         jm_AC_TYPE_UINTMAX_T.
133764 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133766         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133768         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133769         quotearg_buffer_restyled): Add support for
133770         clocale_quoting_style.  Undo previous change to
133771         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133772         and "{RIGHT QUOTATION MARK}" msgids.
133774 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133776         From a suggestion by Bruno Haible.
133777         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133778         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133779         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133780         and mbstate_t, to a single-part test that simply defines mbstate_t.
133781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133782         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133784 2000-07-10  Jim Meyering  <meyering@lucent.com>
133786         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133788         * m4/gnu-source.m4: Output to confdefs.h directly.
133789         Suggestion from Akim Demaille.
133791 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133793         The old behavior of quoting `like this' doesn't look good with
133794         newer, ISO-style fonts.  See:
133795         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133797         Instead, quote "like this" by default.  Let the translator
133798         tailor the locale-specific quoting behavior by providing
133799         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133801         * lib/quotearg.c (N_): New macro.
133802         (gettext_default): New function.
133803         (quotearg_buffer_restyled): Use
133804         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133805         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133807 2000-07-09  Jim Meyering  <meyering@lucent.com>
133809         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133810         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133812         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133815 2000-07-09  Jim Meyering  <meyering@lucent.com>
133817         * lib/Most files: Update copyright dates to include 2000.
133819 2000-07-08  Jim Meyering  <meyering@lucent.com>
133821         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133822         if not defined.
133823         (xgethostname): Remove now-unnecessary #ifdef.
133824         Move declaration of `err' into loop where it's used.
133826 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133827         and Bruno Haible  <haible@clisp.cons.org>
133829         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133830         only if the test for an object-type mbstate_t fails.  This
133831         prevents us from mistakenly reporting that mbstate_t is a
133832         system object type after we "#define mbstate_t int" to work
133833         around its lack.
133835 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133836         and Bruno Haible  <haible@clisp.cons.org>
133838         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133840 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133842         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133843         to strerror_r.
133844         Include <ctype.h> for use of isalpha.
133846 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133848         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133849         by allocating a larger buffer. Test the gethostname return value for
133850         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133851         returns an error and ENAMETOOLONG isn't defined.
133853 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133855         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133856         dimension.
133858 2000-07-04  Jim Meyering  <meyering@lucent.com>
133860         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133861         of the deprecated AC_CHECKING.
133863 2000-07-04  Jim Meyering  <meyering@lucent.com>
133865         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133866         Reported by Bruno Haible.
133868 2000-07-04  Jim Meyering  <meyering@lucent.com>
133870         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133871         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133872         lacks mbrtowc.
133874 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133876         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133877         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133879 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133880         and Bruno Haible  <haible@clisp.cons.org>
133882         * lib/quotearg.c (mbrtowc):
133883         Assign to *pwc, and return 1 only if result is nonzero.
133884         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133886 2000-07-03  Jim Meyering  <meyering@lucent.com>
133888         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133890 2000-07-03  Jim Meyering  <meyering@lucent.com>
133892         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133893         This is necessary to get a definition of e.g., UTMP_FILE on
133894         HP-UX 10.20.
133895         From Bob Proulx.
133897 2000-07-02  Jim Meyering  <meyering@lucent.com>
133899         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133901         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133902         AC_LIBOBJ(function_name).
133903         * m4/chown.m4: Likewise.
133904         * m4/fnmatch.m4: Likewise.
133905         * m4/ftruncate.m4: Likewise.
133906         * m4/getgroups.m4: Likewise.
133907         * m4/getline.m4: Likewise.
133908         * m4/group-member.m4: Likewise.
133909         * m4/jm-macros.m4: Likewise.
133910         * m4/lstat.m4: Likewise.
133911         * m4/malloc.m4: Likewise.
133912         * m4/memcmp.m4: Likewise.
133913         * m4/nanosleep.m4: Likewise.
133914         * m4/putenv.m4: Likewise.
133915         * m4/realloc.m4: Likewise.
133916         * m4/regex.m4: Likewise.
133917         * m4/stat.m4: Likewise.
133918         * m4/strftime.m4: Likewise.
133920 2000-07-02  Jim Meyering  <meyering@lucent.com>
133922         * lib/quotearg.c (mbstate_t): Don't define here.
133924 2000-07-02  Jim Meyering  <meyering@lucent.com>
133926         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133928 2000-07-01  Jim Meyering  <meyering@lucent.com>
133930         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133932 2000-07-01  Jim Meyering  <meyering@lucent.com>
133934         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133935         problem.
133937 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133940         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133942 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133944         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133945         per change in ../m4/ls-mntd-fs.m4.
133946         (read_filesystem_list): Ignore symbolic links.
133948 2000-06-29  Jim Meyering  <meyering@lucent.com>
133950         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133951         for declaration of strcmp.
133953         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133955         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133956         Avoid warning by casting result to `char *' to remove `const'.
133958 2000-06-28  Jim Meyering  <meyering@lucent.com>
133960         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133961         included by quotearg.c, for which we perform this test.  From
133962         Bruno Haible.
133964 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133966         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133967         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133968         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133970 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133972         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133974 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133976         savedir now sets errno on failure and invokes xmalloc to get memory.
133977         Fix a couple of other minor bugs while we're at it.
133979         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133980         (NAMLEN): Remove macro.
133981         (malloc, realloc): Remove decls.
133982         (stpcpy): Likewise.
133983         ("xalloc.h"): Include.
133984         (NAME_SIZE_DEFAULT): New macro.
133985         (savedir): Use xmalloc / xrealloc to allocate memory.
133986         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133987         Skip "" directory entries.
133988         Use strlen to calculate directory entry length, since the old method
133989         is rarely used these days and isn't worth supporting.
133990         Don't use a pointer after freeing it.
133991         Check for integer overflow when calculating allocation size.
133992         Use memcpy to copy entries, instead of stpcpy.
133993         Set errno properly when returning NULL.
133994         Check for readdir error.
133996 2000-06-26  Jim Meyering  <meyering@lucent.com>
133998         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
134000 2000-06-25  Jim Meyering  <meyering@lucent.com>
134002         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
134003         Linux header bug when _XOPEN_SOURCE is defined to 500.
134005 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134007         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
134008         deficiency.
134010 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134012         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
134013         Include xalloc.h.
134014         Don't include <stdlib.h>.  Don't declare malloc, realloc.
134016 2000-06-24  Jim Meyering  <meyering@lucent.com>
134018         * m4/strerror_r.m4: Revive this file -- to try out an experimental
134019         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
134020         for which strerror does return char*, but which lacks a conveniently
134021         accessible declaration of the function.  If the compile-test says
134022         strerror_r doesn't work, then resort to a `run'-test that works on
134023         BeOS and segfaults on DEC Unix.
134025 2000-06-24  Jim Meyering  <meyering@lucent.com>
134027         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
134029 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134031         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
134032         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
134034 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134036         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
134037         (mbrtowc, mbstate_t): Define substitutes if
134038         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
134039         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
134040         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
134042 2000-06-23  Jim Meyering  <meyering@lucent.com>
134044         * m4/afs.m4: Add missing AC_MSG_RESULT.
134045         Reported by Bruno Haible.
134047         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
134048         Suggestion from Bruno Haible.
134050 2000-06-23  Jim Meyering  <meyering@lucent.com>
134052         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
134054 2000-06-21  Jim Meyering  <meyering@lucent.com>
134056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
134058 2000-06-21  Jim Meyering  <meyering@lucent.com>
134060         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
134061         (noinst_HEADERS): Add getstr.h.
134063         * lib/getline.c (getstr): Move into a separate file.
134064         * lib/getstr.c (getstr): New file, extracted from getline.c, with
134065         the following changes: new parameter, delim2; both delim[12]
134066         parameters have type `int', not `char'.  The latter would lose
134067         with 8-bit delimiters.
134068         * lib/getstr.h: New file.
134070 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134072         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
134073         than 1024, return a memory chunk of least possible size, instead
134074         of size PATH_MAX + 2. In the loop, increment the size proportionally.
134075         Use free/xmalloc instead of xrealloc to avoid copying for very long
134076         paths.
134078 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134080         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
134081         the empty string.
134083 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134085         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
134086         address, not strdup.  Include <stdlib.h> and don't declare free().
134088 2000-06-19  Jim Meyering  <meyering@lucent.com>
134090         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
134092 2000-06-18  Jim Meyering  <meyering@lucent.com>
134094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
134096         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
134097         `checking whether...' message to be consistent with that of the
134098         lstat test.
134100 2000-06-18  Jim Meyering  <meyering@lucent.com>
134102         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
134103         Besides, these days every porting target provides a mkdir function.
134105         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
134106         needed. (this snippet comes from src/system.h).
134108 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
134110         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
134112 2000-06-15  Paul Eggert  <eggert@twinsun.com>
134114         * lib/human.c (adjust_value): New function.
134115         (human_readable_inexact): Apply rounding style even when
134116         printing approximate values.
134118 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134120         * lib/human.c (human_readable_inexact): Allow an input block
134121         size that is not a multiple of the output block size, and vice versa.
134122         Reported by Piergiorgio Sartor.
134124 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134126         * lib/getdate.y (get_date): Apply relative times after time
134127         zone indicator, not before.  Reported by Todd A. Jacobs.
134129 2000-06-13  Jim Meyering  <meyering@lucent.com>
134131         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
134133         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
134135 2000-06-12  Paul Eggert  <eggert@twinsun.com>
134137         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
134139 2000-06-12  Jim Meyering  <meyering@lucent.com>
134141         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
134142         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
134143         optional argument.
134144         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
134145         the optional argument, `lib'.
134147 2000-06-08  Jim Meyering  <meyering@lucent.com>
134149         * m4/largefile.m4: Remove file (now that it's part of autoconf).
134151 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134153         Rewrite largefile configuration so that we don't need to run
134154         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
134155         AC_CANONICAL_HOST in configure.in -- jmm]
134157         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
134158         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
134159         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
134160         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
134161         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
134162         All uses changed.
134163         Instead of inspecting the output of getconf, try to compile the
134164         test program without and with the macro definition.
134165         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
134166         for getconf.  Instead, check for the needed flags by compiling
134167         test programs.
134169 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134171         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
134173 2000-06-04  Jim Meyering  <meyering@lucent.com>
134175         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
134176         SunOS 4.1.4 for which gid_t is an unsigned type.
134178 2000-06-03  Jim Meyering  <meyering@lucent.com>
134180         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
134181         now that autoconf requires that.
134183         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
134184         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
134185         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
134187 2000-06-03  Jim Meyering  <meyering@lucent.com>
134189         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
134191 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134193         * m4/glibc21.m4: New file.
134194         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
134196 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134198         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
134199         newer, don't install charset.alias.
134200         * lib/config.charset: Change the Linux/glibc rules so they become empty
134201         on glibc-2.1 or newer.
134203 2000-06-02  Jim Meyering  <meyering@lucent.com>
134205         * lib/mountlist.c: Back out last change.  Instead, do this...
134206         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
134207         me_dummy member using the same `ignore'-testing code.
134208         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
134209         fs_type strings.
134210         From Mark D. Roth.
134212 2000-05-29  Jim Meyering  <meyering@lucent.com>
134214         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
134215         mounts with the `ignore' attribute.  Based on a patch from
134216         Mark D. Roth.
134218 2000-05-28  Jim Meyering  <meyering@lucent.com>
134220         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
134221         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134222         * m4/stat.m4: Likewise.
134223         * m4/lstat.m4: Likewise.
134224         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
134226         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
134227         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
134229 2000-05-26  Jim Meyering  <meyering@lucent.com>
134231         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
134233 2000-05-24  Jim Meyering  <meyering@lucent.com>
134235         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
134236         autoconf requires that.
134237         * m4/lib-check.m4: Likewise.
134238         * m4/jm-macros.m4: Likewise.
134239         * m4/strftime.m4: Likewise.
134241         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
134242         AC_CHECK_DECLS, now that autoconf requires that.
134244 2000-05-22  Jim Meyering  <meyering@lucent.com>
134246         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134247         * m4/lstat.m4: Likewise.
134249 2000-05-22  Jim Meyering  <meyering@lucent.com>
134251         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
134253 2000-05-20  Jim Meyering  <meyering@lucent.com>
134255         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
134256         (jm_PREREQ): Use it.
134258 2000-05-18  Jim Meyering  <meyering@lucent.com>
134260         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
134261         back, too, since it may have been modified by allocate_entry.
134262         (hash_delete): Rewrite to use neither the assignment operator
134263         nor the comma operator in an if-expression.
134265 2000-05-15  Paul Eggert  <eggert@twinsun.com>
134267         * lib/closeout.c:
134268         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
134269         Remove; no longer needed.
134270         "quotearg.h": Add include.
134271         (file_name): Do not bother to explicitly initialize to NULL; it's less
134272         efficient on some hosts.
134273         (close_stdout_status): Remove test as to whether stdout was already
134274         closed; it breaks for the case "echo x | sort >&-".
134275         Quote file name colons.
134276         Do not assume that _("write error") lacks format strings.
134278 2000-05-15  Jim Meyering  <meyering@lucent.com>
134280         * lib/version-etc.c (version_etc_copyright): Update the copyright
134281         string used in all --version output.
134283 2000-05-14  Jim Meyering  <meyering@lucent.com>
134285         * lib/closeout.c (close_stdout_set_file_name): New function.
134286         (close_stdout_status): Use new file-scoped global.
134287         Return right away if fstat says the stdout file descriptor is invalid.
134288         * lib/closeout.h (close_stdout_set_file_name): Declare.
134290 2000-05-10  Jim Meyering  <meyering@lucent.com>
134292         * lib/closeout.c [default_exit_status]: New file-scoped variable.
134293         (close_stdout_set_status): New function.
134294         * lib/closeout.h (close_stdout_set_status): Declare.
134296 2000-05-09  Jim Meyering  <meyering@lucent.com>
134298         * m4/gettext.m4: Rename this...
134299         * m4/libintl.m4: ...to this.
134301 2000-05-08  Jim Meyering  <meyering@lucent.com>
134303         * lib/long-options.c: Don't include closeout.h.
134304         (parse_long_options): Don't call close_stdout for --version.
134306 2000-05-06  Paul Eggert  <eggert@twinsun.com>
134308         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
134309         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
134310         2.1.3 bug.  This avoids a clash when files like regex.c define
134311         _GNU_SOURCE.
134313 2000-05-06  Jim Meyering  <meyering@lucent.com>
134315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
134316         (AC_REPLACE_FUNCS): Add strnlen.
134318         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
134319         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
134321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
134322         AC_SEARCH_LIBS call for nanosleep.
134323         (LIB_NANOSLEEP): Set and AC_SUBST.
134325 2000-05-06  Jim Meyering  <meyering@lucent.com>
134327         * lib/strnlen.c: Undefine __strnlen and strnlen.
134328         [!weak_alias]: Define __strnlen to strnlen.
134330         * lib/atexit.c: New file, from libiberty.
134332 2000-05-06  Jim Meyering  <meyering@lucent.com>
134334         * lib/closeout.c (close_stdout_status): Also check for errors on the
134335         stderr stream.
134337 2000-05-05  Jim Meyering  <meyering@lucent.com>
134339         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
134340         AC_SEARCH_LIBS call for clock_gettime.
134341         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
134343         * m4/search-libs.m4: Update from autoconf.
134345         su doesn't work on Solaris 2.6.
134346         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
134347         <shadow.h>.  Reported by Dragos Harabor.
134349 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
134351         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
134352         memcpy instead of xmalloc, xrealloc, path_concat.
134353         (locale_charset): Treat empty environment variables as absent.
134354         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
134356 2000-05-04  Jim Meyering  <meyering@lucent.com>
134358         * lib/getopt.c: Update from glibc.
134359         * lib/obstack.c: Likewise.
134360         * lib/obstack.h: Likewise.
134361         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
134362         file
134364         * lib/regex.h: Likewise.
134365         * lib/strndup.c: Likewise.
134366         * lib/strnlen.c: New file, from glibc.
134368 2000-05-03  Jim Meyering  <meyering@lucent.com>
134370         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
134372 2000-05-02  Paul Eggert  <eggert@twinsun.com>
134374         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
134375         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
134376         compile-time test, rather than inspecting host and OS, to
134377         decide whether to define _LARGEFILE_SOURCE.
134379 2000-05-01  Jim Meyering  <meyering@lucent.com>
134381         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
134383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
134384         Based on a patch from Bruno Haible.
134386 2000-05-01  Jim Meyering  <meyering@lucent.com>
134388         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
134390 2000-04-29  Jim Meyering  <meyering@lucent.com>
134392         * lib/path-concat.c: Declare strdup only if it's not defined.
134393         * lib/canon-host.c: Likewise.
134395 2000-04-28  Jim Meyering  <meyering@lucent.com>
134397         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
134398         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
134399         is included first, then limits.h is included by locale.h by libintl.h.
134400         From John David Anglin.
134402 2000-04-25  Jim Meyering  <meyering@lucent.com>
134404         * lib/makepath.c (S_IRWXUGO): Define.
134405         (make_path): Always perform explicit chmod if MODE specifies any
134406         of the `special' permission bits.  Prompted by a bug report against
134407         install from Mate Wierdl and Joost van Baal.
134409 2000-04-18  Jim Meyering  <meyering@lucent.com>
134411         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
134412         (jm_PREREQ): Use it.
134414 2000-04-18  Jim Meyering  <meyering@lucent.com>
134416         * lib/README: New file.
134418         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
134419         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134421 2000-04-17  Jim Meyering  <meyering@lucent.com>
134423         Get it right :-)
134424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134425         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134426         Suggestion from Akim Demaille.
134428 2000-04-17  Jim Meyering  <meyering@lucent.com>
134430         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134431         the definition of it to rpl_strftime also defined-away the system's
134432         declaration.
134434 2000-04-15  Jim Meyering  <meyering@lucent.com>
134436         Use `C' to denote so-called `contiguous' files, the same way
134437         that tar does.
134438         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134439         (ftypelet): Use S_ISCTG.
134440         From Michael Deutschmann.
134442 2000-04-14  Jim Meyering  <meyering@lucent.com>
134444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134445         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134446         clobbered.
134448 2000-04-14  Jim Meyering  <meyering@lucent.com>
134450         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134452 2000-04-13  Jim Meyering  <meyering@lucent.com>
134454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134455         AH_VERBATIM to insert required #ifndef into config.h.in.
134456         Suggestion from Akim Demaille.
134458 2000-04-12  Jim Meyering  <meyering@lucent.com>
134460         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134461         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134462         Christian Krackowizer.
134464         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134465         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134466         (AC_SYS_LARGEFILE): Require.
134467         (AM_C_PROTOTYPES): Require.
134469 2000-04-08  Jim Meyering  <meyering@lucent.com>
134471         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134472         names don't conflict.  Reported by Eli Zaretskii.
134474 2000-04-07  Jim Meyering  <meyering@lucent.com>
134476         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134477         sys/types.h, to work around system header problems on AIX 3.2.5.
134478         From Bruno Haible.
134480 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134482         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134483         bug.  Deal with the different error behavior of Irix iconv.
134485 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134487         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134488         IRIX if the installer said otherwise.
134490 2000-04-05  Jim Meyering  <meyering@lucent.com>
134492         Portability tweaks required for ultrix4.3.
134493         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134494         (jm_CHECK_DECLS): Add getutent to the list of functions.
134495         (_jm_DECL_HEADERS): Add utmpx.h.
134496         From John David Anglin.
134498         * m4/strftime.m4: Back out the 2000-04-02 change.
134499         Instead of that change, simply undefine putenv in the test program.
134501 2000-04-05  Jim Meyering  <meyering@lucent.com>
134503         Portability tweaks required for ultrix4.3.
134504         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134505         getutent.
134506         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134507         * lib/canon-host.c: Declare strdup.
134508         * lib/path-concat.c: Likewise.
134509         From John David Anglin.
134511 2000-04-04  Jim Meyering  <meyering@lucent.com>
134513         Be more DOS 8.3-friendly.
134514         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134515         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134516         * lib/Makefile.am: Reflect renaming.
134517         Reported by Eli Zaretskii.
134519         Use a temporary file name that won't clash with `charset.alias'
134520         in the DOS 8.3 name space.
134521         * lib/Makefile.am (charset_tmp): Define.
134522         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134523         (uninstall-local): Likewise.
134524         Reported by Eli Zaretskii.
134526 2000-04-03  Jim Meyering  <meyering@lucent.com>
134528         * m4/gettext.m4: Fix typo in comment.
134530         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134531         textutils/configure.in).  Suggestion from Paul Eggert.
134532         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134534 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134536         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134537         variable in the shell rather than using putenv, which isn't
134538         portable.  This avoids the configure-time inter-test dependency
134539         on the potentially-renamed putenv function.
134541 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134544         before checking struct stat.st_blksize, so that
134545         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134547 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134550         since strftime.c uses HAVE_STRFTIME to decide whether to use
134551         the underlying strftime.
134553 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134555         * lib/time/strftime.c (my_strftime): Make sure we call the system
134556         strftime, not ourselves, when invoking the underlying strftime.
134558 2000-03-24  Jim Meyering  <meyering@lucent.com>
134560         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134561         (charset_alias): Define.
134562         (install-exec-local): Factor out common code.
134563         (uninstall-local): Split lines longer than 80.
134564         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134565         (SUFFIXES): Define.
134566         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134567         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134569 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134571         * lib/config.charset: Output a line containing "Packages using this
134572         file".
134573         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134574         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134575         ref-del.sed): New rules.
134577 2000-03-17  Jim Meyering  <meyering@lucent.com>
134579         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134580         Otherwise, include <strings.h>
134582 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134584         * lib/unicodeio.c (utf8_wctomb): New function.
134585         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134586         format instead of in UCS-4 with platform dependent endianness.
134588 2000-03-10  Jim Meyering  <meyering@lucent.com>
134590         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134591         From Marco Franzen.
134593 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134595         * lib/savedir.c (savedir): Work even if directory size is
134596         negative; this can happen with some screwy NFS configurations.
134598 2000-03-06  Jim Meyering  <meyering@lucent.com>
134600         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134601         if it's NULL (because we ran out of memory).  From Bruno Haible.
134603 2000-03-05  Jim Meyering  <meyering@lucent.com>
134605         * lib/localcharset.c ("path-concat.h"): Include.
134606         (get_charset_aliases): Use path_concat instead of ANSI string
134607         concatenation.
134609         * lib/unicodeio.h (PARAMS): Define.
134610         Use it to guard prototype.
134612 2000-03-04  Jim Meyering  <meyering@lucent.com>
134614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134615         for lib/localcharset.c.
134617 2000-03-04  Jim Meyering  <meyering@lucent.com>
134619         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134620         installing into it.
134621         (uninstall-local): Uncomment this rule so `make distcheck' works
134622         once again.
134624         * lib/unicodeio.c (<errno.h>): Include it.
134625         (errno): Declare if not defined.
134627         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134629         * lib/config.charset: New version, incorporating remarks from a linux
134630         i18n mailing list.  From Bruno Haible.
134632 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134634         * m4/codeset.m4: New file.
134635         * m4/iconv.m4: New file.
134636         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134638 2000-03-03  Jim Meyering  <meyering@lucent.com>
134640         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134642 2000-03-02  Jim Meyering  <meyering@lucent.com>
134644         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134645         the messages come out on separate lines.
134647         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134648         rather than jm_CHECK_DECLARATIONS.
134649         * m4/decl.m4: Remove now-unused file.
134651         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134652         geteuid.
134654 2000-03-02  Jim Meyering  <meyering@lucent.com>
134656         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134658 2000-03-01  Jim Meyering  <meyering@lucent.com>
134660         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134661         * lib/unicodeio.c: Likewise.
134663 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134665         * lib/config.charset: New file.
134666         * lib/localcharset.c: New file.
134667         * lib/unicodeio.h, lib/unicodeio.c: New files.
134668         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134669         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134670         (noinst_HEADERS): Add unicodeio.h.
134671         (all-local, install-exec-local, charset.alias): New targets.
134673 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134675         * lib/quotearg.c (ALERT_CHAR): New macro.
134676         (quotearg_buffer_restyled): Use it.
134678 2000-02-27  Jim Meyering  <meyering@lucent.com>
134680         * m4/check-decl.m4: Add getenv to the list.
134682 2000-02-27  Jim Meyering  <meyering@lucent.com>
134684         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134685         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134687         * lib/backupfile.c: Guard inclusion of stdlib.h with
134688         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134689         Declare malloc if needed.
134691         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134692         `#ifndef HAVE_DECL..'
134693         now that autoconf always defines the HAVE_DECL_ symbols.
134694         * lib/human.c: Likewise.
134695         * lib/same.c: Likewise.
134696         * lib/strtoumax.c: Likewise.
134698         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134699         declaration check was not run.
134700         * lib/hash.c: Likewise.
134701         * lib/human.c: Likewise.
134702         * lib/same.c: Likewise.
134703         * lib/strtoumax.c: Likewise.
134705         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134706         `.', then first look up the entire `.'-containing string as a login
134707         name.
134709 2000-02-23  Jim Meyering  <meyering@lucent.com>
134711         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134712         in place of my hack.
134714 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134716         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134717         (textint): New typedef.
134718         (parser_control): Member year changed from int to textint.
134719         All uses changed.
134720         (YYSTYPE): Removed; replaced by %union with int and textint members.
134721         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134722         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134723         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134724         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134725         (date, number, to_year): Use width of number in digits, not its value,
134726         to determine whether it's a 2-digit year, or a 2-digit time.
134727         (yylex): Store number of digits of numeric tokens.
134728         Reported by John Kendall.
134730         (parser_control): Changed from struct parser_control to typedef (for
134731         consistency).  All uses changed.
134733         (tID): Removed; not used.
134734         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134736 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134738         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134739         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134741 2000-02-12  Jim Meyering  <meyering@lucent.com>
134743         * lib/userspec.c (ISDIGIT): Define it.
134744         (isdigit): Remove definition.
134745         (is_number): Use ISDIGIT, not isdigit.
134746         <libintl.h>: Include.
134747         (_ and N_): Define.
134748         (parse_user_spec): Mark translatable strings.
134750 2000-02-10  Jim Meyering  <meyering@lucent.com>
134752         With these changes, nanosleep.[ch] are finally enough like the other
134753         lib/* replacement files to compile on a few more losing systems.
134755         * lib/nanosleep.h: Don't include config.h.
134756         Remove prototype from declaration of nanosleep.
134757         (PARAMS): Remove now-unneeded definition.
134758         * lib/nanosleep.c: #undef nanosleep.
134759         (rpl_nanosleep): Rename from nanosleep.
134761 2000-02-10  Jim Meyering  <meyering@lucent.com>
134763         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134764         gnu_nanosleep to rpl_nanosleep.
134766 2000-02-09  Jim Meyering  <meyering@lucent.com>
134768         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134769         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134771 2000-02-08  Akim Demaille  <akim@epita.fr>
134773         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134774         `[' and `]' and remove uses of `changequote'.
134775         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134776         (AC_SYS_LARGEFILE): Likewise.
134777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134778         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134779         of changequote.
134780         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134781         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134782         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134783         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134785 2000-02-05  Jim Meyering  <meyering@lucent.com>
134787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134788         Remove explicit use of AC_HEADER_TIME.  It is required by
134789         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134790         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134791         in autoconf whereby the expansion of the latter ended up preceding
134792         the expansion of its prerequisite, AC_HEADER_TIME.
134793         Reported by Volker Borchert.
134795 2000-02-03  Jim Meyering  <meyering@lucent.com>
134797         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134799 2000-02-03  Jim Meyering  <meyering@lucent.com>
134801         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134802         rather than with `#if HAVE_UTMPNAME'.
134804 2000-02-02  Jim Meyering  <meyering@lucent.com>
134806         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134807         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134808         Reported by Eli Zaretskii.
134810 2000-02-01  Jim Meyering  <meyering@lucent.com>
134812         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134814 2000-01-31  Jim Meyering  <meyering@lucent.com>
134816         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134817         functions.  Add the time.h and sys/time.h headers along with the
134818         AC_REQUIRE'ment of AC_HEADER_TIME.
134820 2000-01-31  Jim Meyering  <meyering@lucent.com>
134822         * lib/nanosleep.h (nanosleep): Guard declaration with
134823         `#if ! HAVE_DECL_NANOSLEEP'.
134824         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134825         the declaration in that vendor's sys/timers.h.
134826         Reported by Christian Krackowizer.
134828         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134829         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134830         (ISPRINT): Likewise.
134831         Reported by Tom Tromey.
134833 2000-01-30  Jim Meyering  <meyering@lucent.com>
134835         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134837         * m4/prereq.m4 (utmp_includes): Define.
134838         Check for ut_user and ut_name members in both struct utmpx
134839         and struct utmp.
134841 2000-01-30  Jim Meyering  <meyering@lucent.com>
134843         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134844         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134845         header files where only utmpx.ut_user is declared.
134847         * lib/readutmp.h (UT_USER): Define.
134849 2000-01-29  Jim Meyering  <meyering@lucent.com>
134851         * m4/lib-check.m4: New file containing library-related checks from
134852         fileutils and sh-utils (textutils had none).
134854 2000-01-28  Jim Meyering  <meyering@lucent.com>
134856         * m4/perl.m4: Change format of warning message to look more like that
134857         from the missing script.  Suggestion from François Pinard.
134859 2000-01-25  Jim Meyering  <meyering@lucent.com>
134861         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134862         well as time.h in the compile check.
134863         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134864         Fix typo in cross-compiling case: s/yes/no/.
134866 2000-01-23  Jim Meyering  <meyering@lucent.com>
134868         * m4/jm-macros.m4: Move df-related tests here from
134869         fileutils/configure.in
134871         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134872         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134874         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134875         s/space/ac_fsusage_space/.
134876         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134878         * m4/ftruncate.m4: New file (derived from part of
134879         fileutils/configure.in).
134880         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134881         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134883         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134884         AC_SUBST these here, rather than just in sh-util/configure.in, so
134885         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134886         all the same.
134887         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134888         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134889         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134890         (AC_SUBST(POW_LIBM)): Likewise.
134891         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134893 2000-01-23  Jim Meyering  <meyering@lucent.com>
134895         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134896         obstack.c.
134898 2000-01-22  Jim Meyering  <meyering@lucent.com>
134900         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134904         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134905         configure.in
134906         (AC_CHECK_HEADERS): Likewise for sh-utils.
134907         (AC_CHECK_HEADERS): Likewise for textutils.
134908         Merge the three lists of headers.
134910         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134911         from fileutils' configure.in.
134913         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134914         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134915         check-decl.m4.
134917         * m4/check-decl.m4: Use #if rather than #ifdef.
134918         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134919         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134920         (_jm_DECL_HEADERS): Define new function.
134921         (jm_CHECK_DECLARATIONS): Require it.
134923 2000-01-22  Jim Meyering  <meyering@lucent.com>
134925         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134926         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134927         Required for some AIX systems.  Reported by Christian Krackowizer.
134928         [TESTING] (main): New function.
134930         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134931         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134932         letters.
134934         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134935         iswprint.
134937         * lib/strverscmp.c (ISDIGIT): Define.
134938         (strverscmp): Use ISDIGIT, not isdigit.
134940 2000-01-19  Jim Meyering  <meyering@lucent.com>
134942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134943         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134944         defines `struct timespec' in <sys/time.h>
134946         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134947         Thanks to Akim for explaining.
134949 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134951         * lib/nanosleep.c (nanosleep):
134952         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134953         POSIX.1 doesn't require SA_INTERRUPT and some systems
134954         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134955         it's been part of POSIX.1 since day 1 (in 1988).
134957 2000-01-17  Jim Meyering  <meyering@lucent.com>
134959         * lib/interlock: Remove unused file.  Reported by François Pinard.
134961 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134963         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134964         alert, backslash, formfeed, and vertical tab unnecessarily in
134965         shell quoting style.
134967 2000-01-16  Jim Meyering  <meyering@lucent.com>
134969         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134970         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134971         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134972         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134974 2000-01-16  Jim Meyering  <meyering@lucent.com>
134976         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134977         because the latter didn't work.
134979 2000-01-15  Jim Meyering  <meyering@lucent.com>
134981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134982         (AC_REPLACE_FUNCS): Add memcpy and memset.
134983         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134984         Add strpbrk.
134985         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134987 2000-01-12  Jim Meyering  <meyering@lucent.com>
134989         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134990         (jm_PREREQ): Use it.
134991         (jm_PREREQ_READUTMP): New macro.
134992         (jm_PREREQ): Use it.
134994 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134996         Quote multibyte characters correctly.
134997         * m4/c-bs-a.m4: New file.
134998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134999         (jm_PREREQ): Use it.
135001 2000-01-11  Paul Eggert  <eggert@twinsun.com>
135003         * m4/uintmax_t.m4: Port to autoconf 2.13.
135005 2000-01-08  Jim Meyering  <meyering@ascend.com>
135007         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
135008         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
135010 2000-01-04  Jim Meyering  <meyering@ascend.com>
135012         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
135013         jm_STRUCT_DIRENT_D_TYPE.
135014         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
135015         jm_STRUCT_DIRENT_D_INO.
135016         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
135017         jm_STRUCT_UTIMBUF.
135018         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
135019         renamings.
135020         * m4/utime.m4: Likewise.
135022         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
135023         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
135025 2000-01-03  Paul Eggert  <eggert@twinsun.com>
135027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
135028         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
135030 2000-01-02  Jim Meyering  <meyering@ascend.com>
135032         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
135033         remember if this is necessary.
135035 1999-12-26  Jim Meyering  <meyering@ascend.com>
135037         * m4/jm-macros.m4: Use it here.
135038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
135040 1999-12-23  Jim Meyering  <meyering@ascend.com>
135042         * m4/jm-macros.m4: Check for clock_gettime (moved from
135043         fileutils/configure.in)
135044         Check for gettimeofday.
135046 1999-12-20  Jim Meyering  <meyering@ascend.com>
135048         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
135049         autoconf-2.14a-1999-12-20.
135051 1999-12-19  Jim Meyering  <meyering@ascend.com>
135053         * m4/lstat-slash.m4: New file.
135054         * m4/jm-macros.m4: Use the new macro:
135055         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
135057 1999-12-07  Jim Meyering  <meyering@ascend.com>
135059         * m4/perl.m4: Require that File::Compare be available, too.
135060         Too many systems seem to lack it.
135062         * m4/strftime.m4: Add checks for most of the cpp macros tested in
135063         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
135065 1999-11-18  Paul Eggert  <eggert@twinsun.com>
135067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
135068         problem with the QNX 4.25 shell, which doesn't propagate exit
135069         status of failed commands inside shell assignments.
135071 1999-11-17  Jim Meyering  <meyering@ascend.com>
135073         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
135075 1999-11-07  Jim Meyering  <meyering@ascend.com>
135077         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
135079 1999-11-06  Jim Meyering  <meyering@ascend.com>
135081         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
135082         * m4/jm-macros.m4 (jm_MACROS): Use it here.
135084 1999-11-05  Jim Meyering  <meyering@ascend.com>
135086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
135087         configure.in of textutils, fileutils, and sh-utils into this one
135088         (shared between those packages) file.
135089         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
135090         AC_STRUCT_ST_BLKSIZE.
135092 1999-11-03  Jim Meyering  <meyering@ascend.com>
135094         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
135095         of AC_CHECK_TYPE checks includes unistd.h.
135096         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
135097         Suggestion from Akim Demaille.
135099 1999-10-30  Jim Meyering  <meyering@ascend.com>
135101         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
135102         m4-quoted string.
135103         * m4/ls-mntd-fs.m4: Likewise.
135104         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
135105         * m4/jm-winsz1.m4: Likewise.
135107         * m4/const.m4: Remove file, since the fix made it into the experimental
135108         version of autoconf.
135109         * m4/mktime.m4: Likewise.
135111         * m4/check-type.m4: Remove file, now that the latest version of
135112         AC_CHECK_TYPE takes a third arg to specify additional #includes.
135114         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
135115         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
135116         AC_CHECK_TYPE.
135118 1999-10-04  Jim Meyering  <meyering@ascend.com>
135120         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
135122 1999-09-22  Paul Eggert  <eggert@twinsun.com>
135124         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
135125         2.95.1 bug with HP-UX 10.20.
135127 1999-09-17  Jim Meyering  <meyering@ascend.com>
135129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
135130         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
135131         due to missing strdup (against sh-utils-2.0).
135133 1999-08-29  Jim Meyering  <meyering@ascend.com>
135135         * m4/jm-macros.m4: Require jm_BISON.
135136         * m4/bison.m4: New file.
135138 1999-08-17  Paul Eggert  <eggert@twinsun.com>
135140         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
135141         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
135143 1999-08-05  Jim Meyering  <meyering@ascend.com>
135145         * m4/getline.m4: Rename test file from conftestdata to conftest.data
135146         to avoid conflicts with `conftest' on 8+3 filesystems.
135147         Suggestion from Eli Zaretskii.
135149 1999-08-04  Jim Meyering  <meyering@ascend.com>
135151         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
135152         fileutils and sh-utils (textutils's getline test was inadequate).
135153         (AM_FUNC_GETLINE): Run this test.
135154         (AC_CHECK_FUNCS): Check for getdelim.
135155         Reported by Bob Proulx.
135157 1999-08-02  Jim Meyering  <meyering@ascend.com>
135159         * m4/jm-macros.m4: Add a comment.
135161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
135164         <inttypes.h> defines strtoumax as a macro (and not as a
135165         function).
135167 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135169         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
135170         that we can shift, multiply and divide unsigned long long
135171         values; Ultrix cc can't do it.
135173 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135175         * m4/mktime.m4: New file, which is a preview of what should appear
135176         in the next public autoconf release.
135178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135180         * m4/lfs.m4: Remove this file.
135181         * m4/largefile.m4: New file.  It contains the old contents of
135182         lfs.m4, except that all names with prefix AC_LFS have been
135183         changed to use the prefix AC_SYS_LARGEFILE instead, to be
135184         compatible with future autoconf versions.  Also, some minor m4
135185         quoting problems have been fixed.
135187 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135189         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
135190         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
135191         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
135192         and simplify the shell code.
135194 1999-08-01  Jim Meyering  <meyering@ascend.com>
135196         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
135197         m4.
135199 1999-07-20  Jim Meyering  <meyering@ascend.com>
135201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
135203 1999-07-15  Jim Meyering  <meyering@ascend.com>
135205         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
135207 1999-05-22  Jim Meyering  <meyering@ascend.com>
135209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
135211 1999-05-20  Jim Meyering  <meyering@ascend.com>
135213         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
135214         Add a colon after each `then' in case $4 is empty.
135216 1999-05-16  Jim Meyering  <meyering@ascend.com>
135218         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
135220 1999-05-10  Jim Meyering  <meyering@ascend.com>
135222         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
135224         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
135225         AC_FUNC_MKTIME.
135227 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
135229         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
135231 1999-05-04  Paul Eggert  <eggert@twinsun.com>
135233         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
135234         not CPPFLAGS, so that linking works correctly in IRIX.
135236 1999-04-30  Paul Eggert  <eggert@twinsun.com>
135238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
135240 1999-04-20  Paul Eggert  <eggert@twinsun.com>
135242         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
135243         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
135244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
135245         jm_AC_TYPE_UNSIGNED_LONG_LONG.
135246         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
135248         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
135250 1999-04-20  Jim Meyering  <meyering@ascend.com>
135252         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
135253         AC_REPLACE xstroull if necessary.  From Paul Eggert.
135254         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
135256 1999-04-18  Jim Meyering  <meyering@ascend.com>
135258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
135259         * m4/jm-macros.m4: Use it.
135261 1999-04-06  Jim Meyering  <meyering@ascend.com>
135263         * m4/strftime.m4: Remove test for %f.
135265 1999-03-29  Jim Meyering  <meyering@ascend.com>
135267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
135268         superset of the AC_TYPE_* checks in the textutils, fileutils,
135269         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
135270         AC_TYPE_PID_T.
135272 1999-03-28  Jim Meyering  <meyering@ascend.com>
135274         * m4/jm-macros.m4: Define GNU_PACKAGE here.
135275         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
135276         replaced e.g., in the *.sh files of the sh-utils.
135278 1999-03-20  Jim Meyering  <meyering@ascend.com>
135280         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
135281         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
135282         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
135284 1999-03-19  Jim Meyering  <meyering@ascend.com>
135286         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
135288 1999-03-12  Jim Meyering  <meyering@ascend.com>
135290         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
135292 1999-03-07  Jim Meyering  <meyering@ascend.com>
135294         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
135295         declared.
135297 1999-02-17  Jim Meyering  <meyering@ascend.com>
135299         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
135300         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
135302 1999-02-07  Jim Meyering  <meyering@ascend.com>
135304         * m4/group-member.m4: New file -- extracted from sh-utils'
135305         configure.in.
135307         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
135308         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
135310 1999-02-06  Jim Meyering  <meyering@ascend.com>
135312         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
135313         * m4/fnmatch.m4: Likewise.
135314         * m4/getgroups.m4: Likewise.
135315         * m4/lstat.m4: Likewise.
135316         * m4/malloc.m4: Likewise.
135317         * m4/putenv.m4: Likewise.
135318         * m4/realloc.m4: Likewise.
135319         * m4/regex.m4: Likewise.
135320         * m4/stat.m4: Likewise.
135321         * m4/strftime.m4: Likewise.
135322         Suggestion from Alain Magloire.
135324         * m4/chown.m4: Use `.$ac_objext', not `.o'.
135325         * m4/fnmatch.m4: Likewise.
135326         * m4/getgroups.m4: Likewise.
135327         * m4/getline.m4: Likewise.
135328         * m4/lstat.m4: Likewise.
135329         * m4/malloc.m4: Likewise.
135330         * m4/memcmp.m4: Likewise.
135331         * m4/putenv.m4: Likewise.
135332         * m4/realloc.m4: Likewise.
135333         * m4/regex.m4: Likewise.
135334         * m4/stat.m4: Likewise.
135335         * m4/strftime.m4: Likewise.
135336         Suggestion from Alain Magloire.
135338         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
135339         an argument.
135341         * m4/regex.m4: Add a run-time Test for proper operation of
135342         re_compile_pattern.
135344 1999-01-31  Jim Meyering  <meyering@ascend.com>
135346         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
135348 1999-01-30  Jim Meyering  <meyering@ascend.com>
135350         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
135352         * m4/jm-mktime.m4: Make this a wrapper around the official
135353         AM_FUNC_MKTIME rather than my private copy, now that the official one
135354         is up to date.
135355         * m4/mktime.m4: Remove file.
135357         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
135358         * m4/uptime.m4: Likewise.
135359         * m4/uintmax_t.m4: Likewise.
135361 1999-01-28  Jim Meyering  <meyering@ascend.com>
135363         * m4/jm-macros.m4: Use jm_AFS.
135364         * m4/afs.m4: New file (from fileutils' configure.in).
135366         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
135367         * m4/chown.m4: Likewise.
135368         * m4/d-ino.m4: Likewise.
135369         * m4/d-type.m4: Likewise.
135370         * m4/fnmatch.m4: Likewise.
135371         * m4/getgroups.m4: Likewise.
135372         * m4/gettext.m4: Likewise.
135373         * m4/jm-mktime.m4: Likewise.
135374         * m4/jm-winsz2.m4: Likewise.
135375         * m4/lcmessage.m4: Likewise.
135376         * m4/ls-mntd-fs.m4: Likewise.
135377         * m4/malloc.m4: Likewise.
135378         * m4/memcmp.m4: Likewise.
135379         * m4/putenv.m4: Likewise.
135380         * m4/realloc.m4: Likewise.
135381         * m4/st_mtim.m4: Likewise.
135382         * m4/strftime.m4: Likewise.
135384 1999-01-16  Jim Meyering  <meyering@ascend.com>
135386         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
135387         (ARGMATCH_DIE_DECL): Define.
135389 1999-01-12  Jim Meyering  <meyering@ascend.com>
135391         * m4/Makefile.am.in: Rewrite to avoid using fmt.
135392         Reported by Lars Hecking.
135394 1999-01-10  Jim Meyering  <meyering@ascend.com>
135396         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
135397         gross kludge.
135398         * m4/inttypes_h.m4: Likewise.
135399         * m4/lstat.m4: Likewise.
135400         * m4/malloc.m4: Likewise.
135401         * m4/readdir.m4: Likewise.
135402         * m4/realloc.m4: Likewise.
135403         * m4/st_dm_mode.m4: Likewise.
135404         * m4/stat.m4: Likewise.
135405         * m4/utimbuf.m4: Likewise.
135406         * m4/utimes.m4: Likewise.
135408         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
135409         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
135410         comments in config.h.in are meaningful.
135412         * m4/jm-macros.m4: Require autoconf-2.13 here.
135414         * m4/regex.m4: By default, don't use the included regex.c on systems
135415         with glibc 2.  Suggestion from Uli Drepper.
135417 1999-01-02  Jim Meyering  <meyering@ascend.com>
135419         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135421 1998-12-18  Jim Meyering  <meyering@ascend.com>
135423         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135424         Based on a suggestion from Lars Hecking.
135426 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135428         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135430 1998-11-16  Jim Meyering  <meyering@ascend.com>
135432         * m4/lfs.m4: Double-quote the `uname...` expression.
135434 1998-11-14  Jim Meyering  <meyering@ascend.com>
135436         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135437         * m4/stat.m4: Likewise.
135439 1998-11-03  Jim Meyering  <meyering@ascend.com>
135441         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135442         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135444 1998-10-18  Jim Meyering  <meyering@ascend.com>
135446         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135448 1998-10-17  Jim Meyering  <meyering@ascend.com>
135450         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135451         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135452         calls for those previously hard-coded headers.  Instead, take a new
135453         parameter.
135454         (jm_CHECK_DECLARATIONS): Reflect interface change.
135455         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135456         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135458         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135460 1998-10-14  Jim Meyering  <meyering@ascend.com>
135462         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135463         instead of "TZ=America/Vancouver".  From Paul Eggert.
135465 1998-10-11  Jim Meyering  <meyering@ascend.com>
135467         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135468         This adds a test for a recently added compatibility fix for mktime.c.
135469         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135471 1998-09-27  Jim Meyering  <meyering@ascend.com>
135473         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135475         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135476         ../configure.in, including a change from Gordon Matzigkeit to allow
135477         cross-compiling for the Hurd.
135479         * m4/glibc.m4: New file/macro to test for the GNU C Library
135480         versions 1 and 2.  From Gordon Matzigkeit.
135481         Indent.
135483 1998-09-21  Jim Meyering  <meyering@ascend.com>
135485         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135487 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135489         Port nanosecond-resolution times to UnixWare 2.1.2 and
135490         pedantic Solaris 2.6.
135492         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135493         AC_STRUCT_ST_MTIM.
135494         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135495         Generate name of ns member, instead of just 1 or undef.
135496         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135498 1998-08-15  Jim Meyering  <meyering@ascend.com>
135500         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135501         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135502         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135503         instead of jm_TYPE_SSIZE_T.
135505 1998-08-12  Jim Meyering  <meyering@ascend.com>
135507         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135509 1998-08-02  Jim Meyering  <meyering@ascend.com>
135511         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135512         in acconfig.h manually.
135514 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135516         * m4/st_mtim.m4: New file.
135518 1998-07-28  Jim Meyering  <meyering@ascend.com>
135520         * m4/utimes.m4: Undef stat.
135522 1998-07-25  Jim Meyering  <meyering@ascend.com>
135524         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135525         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135527 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135529         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135530         uid and gid actually remain unchanged.
135532 1998-07-07  Jim Meyering  <meyering@ascend.com>
135534         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135536 1998-07-04  Jim Meyering  <meyering@ascend.com>
135538         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135539         to prove that this macro can be used in packages without regex.c.
135541 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135543         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135544         is to be used.
135546 1998-07-03  Jim Meyering  <meyering@ascend.com>
135548         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135550         * m4/gettext.m4: New file -- from gettext-0.10.35.
135551         * m4/lcmessage.m4: Likewise.
135552         * m4/progtest.m4: Likewise.
135554         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135555         * m4/jm-macros.m4: Require the new macro.
135557 1998-06-29  Jim Meyering  <meyering@ascend.com>
135559         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135560         for the definition of NGROUPS (used in a system header included
135561         by sys/mount.h).
135563 1998-06-28  Jim Meyering  <meyering@ascend.com>
135565         * m4/ls-mntd-fs.m4: New file.
135566         * m4/fstypename.m4: New file.
135568         * m4/jm-macros.m4: Require the new macro.
135569         * m4/jm-glibc-io.m4: New file.
135571 1998-05-19  Jim Meyering  <meyering@ascend.com>
135573         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135574         * m4/lchown.m4: New file.
135576         * m4/Makefile.am.in: New file.
135577         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135579 1998-05-14  Jim Meyering  <meyering@ascend.com>
135581         * m4/Makefile.am (EXTRA_DIST): Add them.
135582         * m4/jm-macros.m4: New file.
135583         * m4/utimbuf.m4: New file.
135585 1998-05-12  Jim Meyering  <meyering@ascend.com>
135587         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135589 1998-05-11  Jim Meyering  <meyering@ascend.com>
135591         * m4/isc-posix.m4: New file.
135593 1998-05-10  Jim Meyering  <meyering@ascend.com>
135595         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135597 1998-05-09  Jim Meyering  <meyering@ascend.com>
135599         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135600         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135601         with automake.
135603         * m4/ssize_t.m4: New file.
135604         * m4/mktime.m4: Remove file -- the new automake has this now.
135606 1998-04-26  Jim Meyering  <meyering@ascend.com>
135608         * m4/assert.m4: New file.
135609         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135611 1998-04-05  Jim Meyering  <meyering@ascend.com>
135613         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135614         (jm_PREREQ): Use it here.
135616 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135618         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135619         in acconfig.h.
135621 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135623         * m4/prereq.m4: New file.
135624         * m4/error.m4: New file.
135625         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135627 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135629         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135630         cache-check for the same variable -- that defeated the purpose of
135631         the test; the test program was never run.  This was a problem only
135632         on systems with losing getline functions -- HP-UX 10.20 is one.
135633         Reported by Bjorn Helgaas.
135635 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135637         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135639 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135641         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135643         * m4/const.m4: New file.  Use an initializer in this declaration
135644         typedef int charset[2]; const charset x;
135645         Reported by Bob Glickstein.
135647 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135649         * m4/chown.m4: Fix reversed types on -1 args to chown.
135650         From Kaveh Ghazi.
135652 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135654         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135655         Add lseek and memchr.
135657         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135658         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135659         have a 20-character limit on names.
135661 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135663         * m4/inttypes_h.m4: New file.
135664         * m4/uintmax_t.m4: New file.
135665         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135668         -----
135670         Local Variables:
135671         coding: utf-8
135672         End:
135674         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135676         Copying and distribution of this file, with or without
135677         modification, are permitted provided the copyright notice
135678         and this notice are preserved.